:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.08);
  --radius-lg: 18px;
  --radius-xl: 26px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #f9fafb 100%);
  color: var(--gray-800);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500), var(--amber-400));
  color: var(--white);
  box-shadow: 0 12px 35px rgba(217, 119, 6, 0.26);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo {
  font-size: 23px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--amber-600);
  box-shadow: 0 8px 20px rgba(146, 64, 14, 0.28);
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 26%, rgba(245, 158, 11, 0.48), transparent 36%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62) 48%, rgba(17, 24, 39, 0.22)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.76), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 130px 24px 90px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #ffedd5;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--amber-600);
}

.hero-content h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.hero-summary {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.8;
  color: #fff7ed;
}

.hero-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.movie-tags span {
  padding: 5px 8px;
  background: var(--amber-50);
  color: var(--amber-600);
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 46px;
  padding: 0 24px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  color: var(--white);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
}

.primary-button.light {
  background: var(--white);
  color: var(--amber-600);
}

.primary-button.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

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

.ghost-button {
  min-height: 46px;
  padding: 0 24px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading.centered {
  max-width: 780px;
  margin: 0 auto 28px;
  display: block;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--gray-900);
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p,
.page-hero p {
  color: var(--gray-500);
  line-height: 1.8;
}

.text-link {
  color: var(--amber-600);
  padding: 9px 14px;
  background: var(--amber-50);
}

.text-link:hover {
  background: var(--amber-100);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin: 24px 0 32px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
  color: var(--gray-800);
  background: var(--white);
  outline: 0;
}

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

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

.category-tile,
.category-overview-card,
.content-card,
.ranking-panel {
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.84);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-xl);
}

.category-tile {
  min-height: 150px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -48px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(249, 115, 22, 0.12));
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-tile span {
  display: block;
  color: var(--amber-600);
  font-size: 22px;
  font-weight: 950;
  margin-bottom: 10px;
}

.category-tile strong {
  display: block;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.84);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--gray-100));
}

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

.movie-card:hover .poster-wrap img,
.ranking-row:hover img,
.detail-poster:hover img {
  transform: scale(1.06);
}

.play-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.88);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(12px);
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.score-badge {
  right: 12px;
  top: 12px;
  min-width: 46px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.28);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.movie-card-body strong {
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-meta,
.movie-line {
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.65;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.ranking-panel {
  padding: 28px;
}

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

.ranking-list.full {
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 48px 72px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.ranking-number {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 950;
}

.ranking-number.top {
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: var(--white);
}

.ranking-thumb {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray-100);
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ranking-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.ranking-main strong {
  color: var(--gray-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-main span {
  color: var(--gray-500);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-score {
  color: var(--amber-600);
  font-size: 18px;
  font-weight: 950;
  text-align: right;
}

.banner-panel {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.4), transparent 30%),
    linear-gradient(135deg, var(--amber-500), var(--orange-600));
  color: var(--white);
  box-shadow: var(--shadow);
}

.banner-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.banner-panel p {
  max-width: 520px;
  color: #fff7ed;
  line-height: 1.85;
}

.page-hero {
  padding: 88px 24px 72px;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 auto;
  color: var(--white);
  font-size: clamp(40px, 6vw, 68px);
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 20px auto 0;
  color: #fff7ed;
  font-size: 18px;
}

.category-overview-card {
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-card h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
}

.category-overview-card p {
  color: var(--gray-500);
  line-height: 1.75;
}

.mini-links {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.mini-links a {
  color: var(--gray-700);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-links a:hover {
  color: var(--amber-600);
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(245, 158, 11, 0.38), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72) 52%, rgba(17, 24, 39, 0.46));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px 24px 64px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--white);
}

.detail-info h1 {
  color: var(--white);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
}

.detail-line {
  max-width: 780px;
  margin: 22px 0 0;
  color: #fff7ed;
  font-size: 19px;
  line-height: 1.85;
}

.detail-score {
  margin-top: 24px;
  font-size: 18px;
  color: #ffedd5;
}

.detail-score strong {
  font-size: 34px;
  color: var(--white);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.main-column,
.side-column {
  display: grid;
  gap: 24px;
}

.player-section,
.content-card {
  padding: 28px;
}

.player-section {
  border-radius: var(--radius-xl);
  background: var(--gray-900);
  box-shadow: var(--shadow);
}

.player-section h2 {
  margin: 0 0 18px;
  color: var(--white);
}

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

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  color: var(--white);
  font-size: 34px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.content-card h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 2;
  font-size: 16px;
}

.meta-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.meta-card div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.meta-card dt {
  color: var(--gray-500);
  font-weight: 900;
}

.meta-card dd {
  margin: 0;
  color: var(--gray-800);
  line-height: 1.6;
}

.meta-card a {
  color: var(--amber-600);
  font-weight: 900;
}

.site-footer {
  margin-top: 48px;
  color: #d1d5db;
  background: linear-gradient(180deg, var(--gray-800), var(--gray-900));
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 36px;
}

.footer-logo {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 16px;
}

.site-footer p {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--amber-400);
  font-size: 18px;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 9px 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 24px;
  text-align: center;
  color: #9ca3af;
}

.is-filter-hidden {
  display: none !important;
}

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

  .split-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

  .mobile-nav .nav-link {
    display: block;
    background: rgba(255, 255, 255, 0.12);
  }

  .hero-carousel,
  .hero-slide img {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 96px;
  }

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

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 260px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo {
    font-size: 19px;
  }

  .hero-carousel,
  .hero-slide img {
    min-height: 620px;
  }

  .hero-content h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-summary,
  .detail-line {
    font-size: 16px;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 38px 56px minmax(0, 1fr);
  }

  .ranking-score {
    display: none;
  }

  .ranking-thumb {
    width: 56px;
    height: 56px;
  }

  .player-section,
  .content-card {
    padding: 20px;
  }

  .player-overlay span {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}
