:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --dark: #0f172a;
  --amber: #f59e0b;
  --orange: #ea580c;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell,
.footer-shell,
.section,
.hero-shell,
.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.38);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  background: linear-gradient(90deg, #d97706, #ea580c);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

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

.nav-links a {
  padding: 10px 15px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.25);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #111827;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 34%), linear-gradient(135deg, #111827, #0f172a 55%, #020617);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 38px 38px;
}

.hero-shell {
  position: relative;
  min-height: 620px;
  padding: 90px 0 74px;
}

.hero-slide {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

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

.hero-copy {
  width: min(620px, 100%);
}

.hero-eyebrow,
.page-hero span,
.section-heading span,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.16);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  background: linear-gradient(90deg, #fde68a, #fb923c, #fde68a);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 20px;
  color: #d1d5db;
  font-size: 20px;
}

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

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.heading-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.34);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover,
.heading-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  width: min(420px, 38vw);
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
  transform: perspective(900px) rotateY(-5deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 34px;
  background: #f59e0b;
}

.section {
  padding: 70px 0;
}

.intro-section {
  padding-bottom: 30px;
}

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

.section-heading.centered {
  display: grid;
  place-items: center;
  text-align: center;
}

.section-heading.light {
  color: #fff;
}

.section-heading h2,
.page-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.section-heading p,
.page-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

.section-heading.light p {
  color: #cbd5e1;
}

.heading-link {
  color: #ea580c;
  background: #fff7ed;
}

.filter-bar {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  margin-bottom: 30px;
}

.search-box {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  outline: 0;
  background: #f8fafc;
}

.search-box input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 800;
  cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #fff7ed);
  border: 1px solid rgba(251, 191, 36, 0.22);
  box-shadow: var(--soft-shadow);
  transition: 0.24s ease;
}

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

.category-glow {
  position: absolute;
  right: -28px;
  top: -28px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.17);
}

.category-card strong,
.category-card em,
.category-samples {
  position: relative;
  display: block;
}

.category-card strong {
  font-size: 22px;
}

.category-card em {
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}

.category-samples {
  margin-top: 18px;
}

.category-samples a {
  display: inline-flex;
  max-width: 100%;
  margin: 0 8px 8px 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #d97706;
  font-size: 12px;
  font-weight: 800;
}

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

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

.movie-card {
  display: grid;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--soft-shadow);
  transition: 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  background: #111827;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.68), transparent 56%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transition: 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #ef4444, #f97316);
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.movie-card-body strong {
  min-height: 48px;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8fafc;
}

.movie-desc {
  color: var(--muted);
  font-size: 14px;
}

.ranking-band {
  padding: 74px 0;
  background: linear-gradient(135deg, #0f172a, #111827);
}

.ranking-band .section-heading,
.ranking-band .rank-preview {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.rank-preview,
.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ranking-list {
  grid-template-columns: 1fr;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 84px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

.rank-row img {
  width: 84px;
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info {
  display: grid;
  gap: 4px;
}

.rank-info strong {
  font-size: 18px;
}

.rank-info em {
  color: #d97706;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.rank-info span {
  color: var(--muted);
  font-size: 14px;
}

.page-main {
  padding-bottom: 40px;
}

.page-hero {
  margin-top: 42px;
  padding: 54px;
  border-radius: 30px;
  color: #fff;
  background: radial-gradient(circle at right top, rgba(251, 191, 36, 0.28), transparent 34%), linear-gradient(135deg, #111827, #0f172a);
  box-shadow: var(--shadow);
}

.page-hero p {
  color: #cbd5e1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 30px 0;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #d97706;
  font-weight: 800;
}

.detail-main {
  padding-bottom: 50px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, #111827, #0f172a);
  color: #fff;
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 20px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-info p {
  max-width: 780px;
  color: #d1d5db;
  font-size: 18px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-meta-grid b {
  color: #fcd34d;
  font-size: 13px;
}

.player-section {
  margin-top: 32px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.12));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 6px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(234, 88, 12, 0.35);
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 32px;
}

.content-card {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #475569;
}

.related-section {
  width: 100%;
}

[hidden] {
  display: none !important;
}

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

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

  .hero-slide {
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-shell {
    min-height: auto;
    padding: 56px 0 72px;
  }

  .hero-slide.is-active,
  .detail-hero,
  .detail-content {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-poster {
    width: min(360px, 100%);
    transform: none;
  }

  .hero-dots {
    left: 0;
    bottom: 24px;
  }

  .category-grid,
  .category-grid.large,
  .movie-grid,
  .small-grid,
  .rank-preview,
  .detail-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .footer-shell,
  .section,
  .hero-shell,
  .page-main,
  .detail-main,
  .ranking-band .section-heading,
  .ranking-band .rank-preview {
    width: min(100% - 24px, 1180px);
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text em {
    display: none;
  }

  .hero-copy p,
  .detail-info p {
    font-size: 16px;
  }

  .category-grid,
  .category-grid.large,
  .movie-grid,
  .small-grid,
  .rank-preview,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 70px 1fr;
  }

  .rank-row img {
    width: 70px;
    height: 94px;
  }

  .page-hero,
  .detail-hero,
  .content-card {
    padding: 22px;
    border-radius: 22px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
