:root {
  --bg: #05070c;
  --panel: #111827;
  --panel-soft: #172033;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --light: #f8fafc;
  --line: rgba(148, 163, 184, 0.22);
  --accent: #f97316;
  --accent-strong: #ea580c;
  --gold: #fbbf24;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #f3f4f6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 12, 0.86);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #fb7185);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.34);
}

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

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 4px;
}

.hero {
  position: relative;
  min-height: 680px;
  margin-top: -72px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 5.4s ease;
}

.hero-slide.is-active img {
  transform: scale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.24), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, #05070c 0%, rgba(5, 7, 12, 0.42) 42%, rgba(5, 7, 12, 0.08) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  padding-top: 124px;
  display: flex;
  align-items: center;
  color: #fff;
}

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

.eyebrow,
.hero-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-badges,
.detail-badges,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-badges span,
.detail-badges span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
}

.tag-row span {
  background: #fff7ed;
  color: #c2410c;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

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

.btn-primary,
.btn-secondary,
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #fb7185);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.35);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.btn-primary:hover,
.btn-secondary:hover,
.btn-dark:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: max(20px, calc((100vw - 1180px) / 2));
  bottom: 72px;
  display: flex;
  gap: 8px;
}

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

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

.section {
  padding: 64px 0 18px;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.section-more {
  color: var(--accent-strong);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 34px rgba(2, 6, 23, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.68));
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.rank-num {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f97316);
  font-weight: 950;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 8px 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 950;
}

.card-body p {
  min-height: 46px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.feature-band {
  margin: 44px auto 0;
  padding: 30px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.44), transparent 30%),
    linear-gradient(135deg, #111827, #030712);
  box-shadow: var(--shadow);
}

.feature-band-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
}

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

.mini-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-item img {
  width: 62px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.mini-item h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.mini-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.page-hero {
  padding: 72px 0 36px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 28%, rgba(249, 115, 22, 0.28), transparent 34%),
    linear-gradient(135deg, #05070c, #111827);
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.8;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 26px;
  border-radius: 28px;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.62), rgba(59, 130, 246, 0.18));
  opacity: 0.86;
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 950;
}

.category-card p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
}

.filter-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 190px 150px;
  gap: 14px;
  padding: 18px;
  margin: 28px 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  outline: none;
  background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  color: #9a3412;
  background: #fff7ed;
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 80px 110px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(2, 6, 23, 0.07);
}

.rank-row img {
  width: 110px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.rank-row strong {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #fb923c);
  font-size: 22px;
  font-weight: 950;
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 950;
}

.rank-row p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.score {
  min-width: 82px;
  text-align: right;
  color: #f97316;
  font-size: 24px;
  font-weight: 950;
}

.detail-page {
  background: #05070c;
}

.player-wrap {
  background: #000;
}

.player-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.15));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-start {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #fb7185);
  box-shadow: 0 22px 48px rgba(249, 115, 22, 0.42);
  cursor: pointer;
  font-size: 36px;
}

.player-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  text-align: center;
}

.detail-hero {
  padding: 42px 0 54px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(249, 115, 22, 0.18), transparent 30%),
    linear-gradient(180deg, #05070c, #111827 70%, #f3f4f6 70%);
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  color: #fff;
  margin-bottom: 16px;
}

.detail-info .summary {
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.85;
}

.detail-badges span {
  background: rgba(255, 255, 255, 0.11);
}

.content-panel {
  margin-top: -36px;
  padding: 34px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.content-panel h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 26px;
  font-weight: 950;
}

.content-panel p {
  color: #475569;
  line-height: 1.9;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.site-footer {
  margin-top: 70px;
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.7);
  background: #05070c;
}

.footer-grid {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
}

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

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

  .feature-band-grid,
  .detail-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-row {
    grid-template-columns: 58px 90px 1fr;
  }

  .score {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 18px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

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

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

  .hero-controls {
    right: 18px;
    bottom: 34px;
  }

  .hero-dots {
    left: 18px;
    bottom: 48px;
  }

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

  .section {
    padding-top: 46px;
  }

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

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

  .rank-row {
    grid-template-columns: 48px 76px 1fr;
    gap: 10px;
  }

  .rank-row img {
    width: 76px;
    border-radius: 14px;
  }

  .rank-row h2 {
    font-size: 17px;
  }

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

  .content-panel {
    padding: 22px;
  }

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

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

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

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

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

.sample-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.sample-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}
