:root {
  --bg: #0f172a;
  --bg-deep: #090e1a;
  --panel: #111827;
  --panel-soft: #1f2937;
  --panel-line: #293548;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --gold: #facc15;
  --gold-dark: #f59e0b;
  --danger: #ef4444;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.11), transparent 32%), linear-gradient(135deg, #101827 0%, #0f172a 45%, #111827 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.26);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #111827;
  box-shadow: 0 10px 22px rgba(250, 204, 21, 0.28);
}

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.main-nav a {
  padding: 9px 12px;
  color: #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
  transition: 0.18s ease;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(31, 41, 55, 0.9);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 270px;
}

.header-search input,
.page-tools input {
  width: 100%;
  color: #fff;
  background: #111827;
  border: 1px solid #334155;
  outline: none;
  border-radius: 13px;
  padding: 11px 14px;
  transition: 0.18s ease;
}

.header-search input:focus,
.page-tools input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.header-search button,
.page-tools button {
  color: #111827;
  background: var(--gold);
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 12px;
  cursor: pointer;
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #0b1020;
}

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

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

.hero-slide img,
.detail-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 14, 26, 0.97) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.18) 100%), linear-gradient(0deg, rgba(15, 23, 42, 0.96) 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  color: #fff;
  line-height: 1.08;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-intro p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #d1d5db;
  font-size: 18px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  color: #dbeafe;
  background: rgba(31, 41, 55, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.dark-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 800;
  transition: 0.18s ease;
}

.primary-btn {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.26);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(250, 204, 21, 0.34);
}

.ghost-btn {
  color: #fff;
  background: rgba(31, 41, 55, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.ghost-btn:hover,
.dark-btn:hover,
.section-more:hover {
  background: #374151;
}

.dark-btn {
  color: #fff;
  background: #111827;
}

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

.hero-dot {
  width: 34px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--gold);
}

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

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

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--subtle);
}

.section-more {
  color: #111827;
  background: var(--gold);
}

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

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

.movie-card,
.list-card,
.overview-card,
.detail-main-card {
  background: rgba(31, 41, 55, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.18);
  transition: 0.2s ease;
}

.movie-card:hover,
.list-card:hover,
.overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.7);
  box-shadow: var(--shadow);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0b1020;
}

.movie-cover img,
.list-cover img,
.detail-poster img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-cover img,
.list-card:hover .list-cover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.cover-shade,
.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 50%);
}

.corner-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #111827;
  background: var(--gold);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 16px;
}

.movie-info h3,
.list-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.list-head h3 a:hover {
  color: var(--gold);
}

.movie-info p,
.list-body p {
  min-height: 46px;
  margin: 8px 0 12px;
  color: #aebbd0;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 13px;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 20px;
  background: #111827;
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  z-index: 2;
}

.category-tile strong {
  bottom: 48px;
  color: #fff;
  font-size: 25px;
  font-style: normal;
}

.category-tile em {
  bottom: 22px;
  color: #e5e7eb;
  font-style: normal;
}

.tile-shade {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.06));
}

.wide-section {
  background: linear-gradient(90deg, rgba(31, 41, 55, 0.88), rgba(17, 24, 39, 0.94));
  padding: 72px 0;
}

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

.list-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 150px;
}

.list-cover {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  background: #0b1020;
}

.rank-number {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #111827;
  background: var(--gold);
  border-radius: 50%;
  font-weight: 900;
}

.list-body {
  padding: 20px;
}

.list-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.list-head span {
  color: #111827;
  background: var(--gold);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tag-row.rich-tags {
  margin-top: 26px;
}

.cta-section {
  padding: 72px 0 92px;
}

.cta-section > div {
  text-align: center;
  padding: 48px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #111827;
}

.cta-section h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.cta-section p {
  margin: 0 auto 24px;
  max-width: 680px;
  color: #1f2937;
}

.page-hero {
  position: relative;
  padding: 78px 0 58px;
  background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.16), transparent 26%), linear-gradient(90deg, #1f2937, #0f172a);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.small-hero {
  padding-bottom: 70px;
}

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

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

.page-tools {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  max-width: 640px;
}

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

.overview-card {
  display: block;
  padding: 30px;
}

.overview-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #111827;
  background: var(--gold);
  border-radius: 14px;
  font-weight: 900;
}

.overview-card h2 {
  margin: 22px 0 8px;
  font-size: 28px;
}

.overview-card p {
  color: #aebbd0;
}

.overview-card em {
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: #0b1020;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(3px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0f172a, rgba(15, 23, 42, 0.72));
}

.detail-top {
  position: relative;
  z-index: 2;
  padding: 54px 0 60px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
  background: #111827;
}

.detail-intro h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.detail-tags {
  margin-top: 22px;
}

.player-section {
  padding: 42px 0 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.64));
  cursor: pointer;
}

.player-overlay[hidden] {
  display: none;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: #111827;
  background: var(--gold);
  border-radius: 50%;
  font-size: 32px;
  padding-left: 5px;
  box-shadow: 0 16px 40px rgba(250, 204, 21, 0.32);
}

.detail-content {
  padding: 38px 0 0;
}

.detail-main-card {
  padding: 30px;
}

.detail-main-card h2,
.review-box h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.detail-main-card p,
.review-box p {
  color: #d1d5db;
  font-size: 16px;
}

.review-box {
  margin-top: 28px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.site-footer {
  margin-top: 40px;
  background: #090e1a;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 0;
}

.footer-grid p {
  max-width: 600px;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  color: #cbd5e1;
  background: #111827;
  border-radius: 999px;
  padding: 8px 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: #64748b;
  text-align: center;
  padding: 18px;
}

[data-movie-card].is-hidden {
  display: none;
}

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

  .header-search {
    width: 220px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    order: 3;
    padding: 10px 0;
  }

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

  .main-nav a {
    background: rgba(31, 41, 55, 0.72);
  }

  .header-search {
    width: 100%;
    order: 4;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

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

  .list-card {
    grid-template-columns: 150px 1fr;
  }

  .detail-layout {
    grid-template-columns: 150px 1fr;
    gap: 22px;
  }
}

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

  .hero,
  .hero-content {
    min-height: 600px;
  }

  .hero-content {
    justify-content: end;
    padding-bottom: 86px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero p,
  .page-hero p,
  .detail-intro p {
    font-size: 16px;
  }

  .section-block,
  .wide-section {
    padding: 48px 0;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

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

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

  .list-cover {
    aspect-ratio: 16 / 9;
  }

  .detail-poster {
    width: 58%;
  }

  .page-tools {
    display: block;
  }

  .page-tools button {
    width: 100%;
    margin-top: 10px;
  }

  .footer-grid {
    display: block;
  }
}
