:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --rose-50: #fff1f2;
  --rose-300: #fda4af;
  --rose-500: #f43f5e;
  --rose-900: #881337;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(180, 83, 9, 0.14);
  --shadow-card: 0 12px 32px rgba(31, 41, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--amber-50), #ffffff 45%, var(--rose-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 241, 242, 0.94), rgba(255, 251, 235, 0.94));
  border-bottom: 1px solid var(--amber-100);
  box-shadow: 0 8px 30px rgba(217, 119, 6, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-300), var(--amber-300));
  box-shadow: 0 12px 22px rgba(245, 158, 11, 0.26);
  font-size: 21px;
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--amber-600), var(--rose-500), var(--amber-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  color: var(--gray-700);
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--amber-600);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--amber-600);
}

.nav-link:hover::after,
.nav-link.is-current::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(254, 243, 199, 0.8);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--amber-700);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--amber-100);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 600;
}

.mobile-link:hover,
.mobile-link.is-current {
  color: var(--amber-700);
  background: var(--amber-50);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(253, 164, 175, 0.22), rgba(251, 191, 36, 0.2));
}

.hero-carousel {
  position: relative;
  min-height: 610px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 251, 235, 0.96), rgba(255, 251, 235, 0.72) 32%, transparent 54%),
    linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 241, 242, 0.72), rgba(17, 24, 39, 0.52));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 120px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(252, 211, 77, 0.7);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 14px;
  color: var(--gray-900);
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content h1 {
  max-width: 780px;
  background: linear-gradient(90deg, var(--amber-600), var(--rose-500), var(--amber-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content h2 {
  max-width: 760px;
  font-size: clamp(28px, 4.2vw, 50px);
}

.hero-content p {
  max-width: 690px;
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: clamp(16px, 2vw, 21px);
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.primary-button,
.ghost-button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-button,
.hero-search button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

.ghost-button {
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(252, 211, 77, 0.76);
}

.primary-button:hover,
.ghost-button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.2);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  font-size: 34px;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 92px;
  z-index: 6;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-500);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 7;
  width: min(760px, calc(100% - 32px));
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(252, 211, 77, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.hero-search input,
.filter-bar input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--amber-100);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--gray-800);
  background: #ffffff;
  outline: none;
  font-size: 15px;
}

.hero-search input:focus,
.filter-bar input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.page-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
}

.content-section {
  margin-bottom: 62px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--gray-500);
}

.section-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-100), var(--rose-50));
  box-shadow: var(--shadow-soft);
  font-size: 22px;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 24px;
}

.stacked-cards {
  display: grid;
  gap: 24px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.movie-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dense-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-movie-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transform: translateY(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(31, 41, 55, 0.18);
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: var(--amber-100);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .movie-cover img,
.category-panel:hover {
  transform: scale(1.06);
}

.card-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  right: auto;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
}

.movie-card-body {
  padding: 16px;
}

.movie-card-body h3 {
  min-height: 54px;
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-compact .movie-card-body h3 {
  min-height: 0;
  font-size: 16px;
}

.movie-card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--gray-500);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
}

.movie-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--amber-50);
}

.movie-card-large {
  position: relative;
  min-height: 100%;
}

.movie-card-large .movie-cover {
  aspect-ratio: 16 / 10;
}

.movie-card-large .movie-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0));
  padding: 76px 24px 24px;
}

.movie-card-large .movie-card-body h3,
.movie-card-large .movie-card-body p {
  color: #ffffff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-panel {
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 235, 0.95));
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-panel:hover {
  box-shadow: 0 24px 48px rgba(217, 119, 6, 0.18);
}

.category-panel-link {
  display: block;
  padding: 20px 20px 12px;
}

.category-panel-link span {
  color: var(--gray-900);
  font-size: 20px;
  font-weight: 900;
}

.category-panel-link p {
  margin: 8px 0 0;
  color: var(--gray-500);
  font-size: 14px;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 0 20px 20px;
}

.category-samples a {
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.ranking-card {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.compact-heading {
  margin-bottom: 16px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--gray-50);
  transition: transform 0.25s ease, background 0.25s ease;
}

.rank-row:hover {
  transform: translateX(3px);
  background: var(--amber-50);
}

.rank-row strong {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  font-size: 14px;
}

.rank-row img {
  width: 82px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-row h3 {
  margin: 0 0 4px;
  color: var(--gray-900);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row p {
  margin: 0 0 4px;
  color: var(--gray-500);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row span {
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--amber-700);
  font-weight: 800;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(253, 164, 175, 0.28), transparent 38%),
    linear-gradient(135deg, var(--amber-50), #ffffff 45%, var(--rose-50));
}

.slim-hero {
  padding: 76px 0 48px;
}

.page-hero > div,
.detail-hero > nav,
.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero p {
  max-width: 740px;
  margin: 0;
  color: var(--gray-600, #4b5563);
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.filter-bar label {
  color: var(--amber-700);
  font-weight: 900;
}

.empty-message {
  display: none;
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 18px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-weight: 700;
}

.empty-message.is-visible {
  display: block;
}

.wide-rank-list {
  gap: 14px;
}

.wide-rank-list .rank-row {
  grid-template-columns: 46px 120px minmax(0, 1fr);
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

.wide-rank-list .rank-row img {
  width: 120px;
  height: 72px;
}

.detail-hero {
  padding: 30px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 18px 0 24px;
  color: var(--amber-700);
  font-size: 14px;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.player-panel,
.detail-info,
.article-section {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.player-panel {
  padding: 14px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000000;
}

.movie-video,
.player-overlay,
.player-overlay img {
  width: 100%;
  height: 100%;
}

.movie-video {
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #ffffff;
  background: #000000;
}

.player-overlay img {
  object-fit: cover;
  opacity: 0.78;
}

.player-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.08));
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.32);
  transform: translate(-50%, -50%);
  font-size: 30px;
}

.player-overlay strong {
  position: absolute;
  left: 50%;
  top: calc(50% + 62px);
  z-index: 3;
  transform: translateX(-50%);
  font-size: 18px;
}

.detail-info {
  padding: 28px;
}

.detail-info h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.detail-one-line {
  color: var(--gray-700);
  font-size: 18px;
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 10px 12px;
  border-left: 4px solid var(--amber-500);
  border-radius: 12px;
  background: var(--amber-50);
  color: var(--gray-700);
  font-weight: 700;
}

.detail-wrap {
  padding-top: 42px;
}

.article-section {
  padding: 28px;
}

.article-section h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 28px;
}

.article-section p {
  margin: 0 0 14px;
  color: var(--gray-700);
  font-size: 17px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #78350f, var(--rose-900), #92400e);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 220px 260px;
  gap: 32px;
}

.footer-brand p {
  max-width: 520px;
  color: rgba(255, 251, 235, 0.84);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: var(--amber-100);
  font-size: 18px;
}

.footer-column a {
  color: rgba(255, 251, 235, 0.84);
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(254, 243, 199, 0.25);
  color: rgba(255, 251, 235, 0.76);
  text-align: center;
}

.silk-shine {
  position: relative;
  overflow: hidden;
}

.silk-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.44), transparent);
  animation: silk-shine-animation 3s infinite;
}

@keyframes silk-shine-animation {
  0% {
    left: -120%;
  }

  55%,
  100% {
    left: 120%;
  }
}

@media (max-width: 1080px) {
  .movie-grid,
  .category-movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dense-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-layout,
  .split-section,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .header-inner {
    height: 62px;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero-section,
  .hero-carousel {
    min-height: 720px;
  }

  .hero-content {
    padding: 70px 0 168px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: 126px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 28px;
  }

  .movie-grid,
  .movie-grid.two-cols,
  .dense-grid,
  .category-movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .rank-row,
  .wide-rank-list .rank-row {
    grid-template-columns: 38px 88px minmax(0, 1fr);
  }

  .wide-rank-list .rank-row img {
    width: 88px;
    height: 58px;
  }

  .detail-info,
  .article-section {
    padding: 22px;
  }
}
