:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(245, 158, 11, 0.36);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --radius: 24px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -12%, rgba(245, 158, 11, 0.24), transparent 34rem),
    radial-gradient(circle at 86% 10%, rgba(59, 130, 246, 0.18), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

img {
  max-width: 100%;
}

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;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}

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

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #451a03;
  background: linear-gradient(135deg, #fde68a, #f59e0b 55%, #b45309);
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.36);
  font-size: 20px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fde68a, #fff7ed, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

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

.desktop-nav a {
  position: relative;
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 2px;
  border-radius: 999px;
  background: var(--amber-soft);
  transition: right 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--amber-soft);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: #f8fafc;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0 16px 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #cbd5e1;
  font-weight: 600;
}

.mobile-nav.is-open {
  display: block;
}

.hero-slider {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
  opacity: 0.36;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.97) 0%, rgba(2, 6, 23, 0.76) 44%, rgba(2, 6, 23, 0.52) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 45%, rgba(2, 6, 23, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.58fr);
  gap: 50px;
  align-items: center;
  min-height: 660px;
  padding: 70px 0 116px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--amber-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber-soft);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.86);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 14px;
  max-width: 840px;
  font-size: clamp(42px, 7.6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy h3 {
  margin: 0 0 20px;
  color: #fde68a;
  font-size: clamp(26px, 3vw, 42px);
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 26px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.detail-meta span,
.movie-meta em {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.primary-btn {
  color: #451a03;
  background: linear-gradient(135deg, #fde68a, #f59e0b 62%, #b45309);
  box-shadow: 0 16px 44px rgba(245, 158, 11, 0.36);
}

.ghost-btn {
  color: #f8fafc;
  border: 1px solid rgba(245, 158, 11, 0.36);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 54px rgba(245, 158, 11, 0.26);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 510px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.5);
  box-shadow: var(--shadow);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), transparent 50%);
}

.hero-poster span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  font-size: 26px;
  font-weight: 900;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-bottom {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  transform: translateX(-50%);
}

.hero-dots {
  display: flex;
  gap: 9px;
  padding-bottom: 14px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.42);
  transition: width 0.3s ease, background 0.3s ease;
}

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

.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.content-block {
  padding: 72px 0 0;
}

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

.page-head {
  display: block;
  padding-top: 56px;
}

.section-head h2,
.page-head h1,
.content-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-head a {
  color: var(--amber-soft);
  font-weight: 800;
}

.page-head p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(30, 41, 59, 0.7);
  box-shadow: 0 22px 58px rgba(245, 158, 11, 0.12);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(2, 6, 23, 0.98));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, transparent 45%);
  opacity: 0.92;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #451a03;
  background: rgba(251, 191, 36, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 14px;
  color: #451a03;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-card-body strong {
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.4;
  transition: color 0.24s ease;
}

.movie-card:hover strong {
  color: #fde68a;
}

.movie-card-body small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.movie-meta {
  gap: 6px;
}

.movie-meta em {
  min-height: 24px;
  padding: 4px 8px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.14);
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.11);
  font-size: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 128px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
}

.compact-card .poster-wrap {
  aspect-ratio: auto;
  height: 128px;
}

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

.compact-card .movie-card-body small,
.compact-card .tag-row {
  display: none;
}

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

.category-tile,
.region-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.region-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.1);
}

.tile-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  height: 128px;
  background: rgba(15, 23, 42, 0.8);
}

.tile-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile strong,
.region-card strong {
  display: block;
  padding: 18px 18px 8px;
  font-size: 20px;
}

.category-tile small,
.region-card small {
  display: block;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.7;
}

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

.filter-panel,
.search-hero-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.search-hero-panel {
  max-width: 740px;
  margin-top: 34px;
}

.search-box {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.62);
  color: var(--muted);
}

.search-box input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #f8fafc;
  background: transparent;
  font: inherit;
}

.filter-panel select {
  width: auto;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: #0f172a;
}

.search-hero-panel button {
  border: 0;
}

.empty-state {
  margin: 30px 0 0;
  color: var(--muted);
  text-align: center;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.72)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 10%, rgba(245, 158, 11, 0.22), transparent 30rem);
  pointer-events: none;
}

.breadcrumb {
  position: relative;
  z-index: 1;
  padding-top: 38px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #fcd34d;
}

.detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  padding: 42px 0 66px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-info p {
  max-width: 830px;
  margin: 22px 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.85;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.player-section {
  padding-top: 72px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #f8fafc;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.24)),
    var(--poster-image);
  background-size: cover;
  background-position: center;
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-cover .play-icon-large {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #451a03;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 18px 46px rgba(245, 158, 11, 0.36);
  font-size: 30px;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 42px;
  padding: 32px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.56);
}

.content-section p {
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.9;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  font-size: 13px;
  font-weight: 700;
}

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

.site-footer {
  margin-top: 92px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(2, 6, 23, 0.98));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 34px;
  padding: 46px 0 30px;
}

.footer-grid h3 {
  margin: 0 0 15px;
  color: #f8fafc;
  font-size: 17px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--amber-soft);
}

.footer-brand p {
  max-width: 520px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-content,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-slider {
    min-height: 690px;
  }

  .hero-content {
    min-height: 580px;
    padding-top: 48px;
  }

  .hero-bottom {
    display: block;
  }

  .hero-mini-list {
    display: none;
  }

  .movie-grid,
  .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .filter-panel,
  .search-hero-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-panel select {
    width: 100%;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 38px;
  }

  .hero-copy h3 {
    font-size: 25px;
  }

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

  .movie-grid,
  .category-grid,
  .region-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    gap: 24px;
  }

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

  .content-section {
    padding: 22px;
  }
}
