:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  --deep-shadow: 0 30px 70px rgba(120, 53, 15, 0.28);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--amber-50) 0%, var(--white) 38%, var(--orange-50) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

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

.brand-icon,
.footer-brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: clamp(19px, 2vw, 25px);
  background: linear-gradient(90deg, var(--amber-700), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--slate-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: var(--amber-700);
  background: var(--amber-100);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--amber-100);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--amber-700);
}

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

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background:
    radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.38), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(249, 115, 22, 0.28), transparent 30%),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fff 100%);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 30%;
  height: 420px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  filter: blur(40px);
  transform: rotate(-6deg);
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: 52px;
  padding: 78px 0 88px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 14px 0 18px;
  color: var(--slate-900);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p {
  max-width: 680px;
  color: var(--slate-600);
  font-size: clamp(16px, 1.6vw, 20px);
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--amber-700);
  background: rgba(254, 243, 199, 0.78);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.page-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 18px 34px rgba(217, 119, 6, 0.28);
}

.btn-secondary {
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(245, 158, 11, 0.28);
}

.btn-light {
  color: var(--amber-700);
  background: var(--white);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.hero-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.hero-categories a {
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.07);
  font-weight: 900;
}

.hero-categories span {
  display: block;
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 600;
}

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

.hero-slide {
  display: none;
  grid-template-rows: 1fr auto;
  height: 560px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--deep-shadow);
  animation: fade-in 0.4s ease both;
}

.hero-slide.is-active {
  display: grid;
}

.hero-image {
  overflow: hidden;
  min-height: 0;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.hero-card {
  margin-top: -90px;
  padding: 24px;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.92), rgba(194, 65, 12, 0.9));
  box-shadow: 0 20px 50px rgba(120, 53, 15, 0.32);
}

.hero-card h2 {
  margin: 8px 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.16;
}

.hero-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-card-meta {
  color: var(--amber-100);
  font-size: 13px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}

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

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

.section {
  padding: 72px 0;
}

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

.section-header h2 {
  margin: 10px 0 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-header > a,
.text-link,
.filter-link {
  color: var(--amber-700);
  font-weight: 900;
}

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

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  scroll-snap-align: start;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.play-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta,
.rank-meta,
.detail-meta {
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h2,
.rank-content h2 {
  margin: 8px 0;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.3;
}

.movie-card p,
.rank-content p,
.category-tile span,
.category-card-large p {
  color: var(--slate-600);
  font-size: 14px;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.card-tags span,
.detail-tags span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

.movie-card.compact .card-body {
  padding: 14px;
}

.movie-card.compact h2 {
  font-size: 16px;
}

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

.category-tile {
  min-height: 140px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 243, 199, 0.78));
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 16px 34px rgba(120, 53, 15, 0.08);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  color: var(--slate-900);
  font-size: 20px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--amber-100);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.28), transparent 30%),
    linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

.compact-page-hero {
  padding: 70px 0;
}

.ranking-hero,
.category-page-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(249, 115, 22, 0.26), transparent 32%),
    linear-gradient(135deg, var(--white), var(--amber-50));
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.07);
}

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

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

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

.filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--amber-100);
}

.category-overview {
  display: grid;
  gap: 24px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(120, 53, 15, 0.08);
}

.category-card-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.category-card-images img {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
}

.detail-hero {
  padding: 72px 0 50px;
  background:
    radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.28), transparent 30%),
    linear-gradient(135deg, var(--amber-50), var(--white));
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 14px solid var(--white);
  border-radius: 32px;
  background: var(--amber-100);
  box-shadow: var(--deep-shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--amber-700);
  font-weight: 900;
}

.detail-info h1 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  margin-top: 22px;
  color: var(--slate-700);
  font-size: 18px;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.player-panel video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.76));
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--white);
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.play-overlay strong {
  max-width: min(80%, 720px);
  font-size: clamp(24px, 4vw, 42px);
  text-align: center;
}

.content-card {
  padding: 32px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(120, 53, 15, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 28px;
}

.content-card h2:not(:first-child) {
  margin-top: 26px;
}

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

.related-row {
  grid-auto-columns: minmax(210px, 1fr);
}

.site-footer {
  margin-top: 40px;
  color: var(--amber-50);
  background: linear-gradient(135deg, #78350f, #9a3412 55%, #7c2d12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0;
}

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

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 251, 235, 0.82);
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 251, 235, 0.16);
  color: rgba(255, 251, 235, 0.75);
  text-align: center;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero-shell,
  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 520px;
  }

  .hero-slide {
    height: 520px;
  }

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

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

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

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

  .nav-toggle {
    display: inline-block;
  }

  .hero-shell {
    padding: 48px 0 60px;
  }

  .hero-categories,
  .movie-grid,
  .small-grid,
  .category-grid,
  .footer-grid,
  .filter-panel,
  .category-card-large {
    grid-template-columns: 1fr;
  }

  .hero-carousel,
  .hero-slide {
    min-height: 480px;
    height: auto;
  }

  .hero-card {
    margin-top: -60px;
  }

  .section {
    padding: 48px 0;
  }

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

  .rank-item {
    grid-template-columns: 48px 78px 1fr;
    gap: 12px;
  }

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

  .detail-poster {
    width: min(280px, 100%);
  }

  .content-card {
    padding: 24px;
  }
}
