:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --brand: #10b981;
  --brand-strong: #059669;
  --brand-soft: rgba(16, 185, 129, 0.14);
  --orange: #f59e0b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.88);
  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;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), #22d3ee);
  color: #00150f;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.28);
}

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

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

.nav-link,
.mobile-link {
  color: var(--muted-strong);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 9px 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.95);
}

.mobile-link {
  display: block;
  padding: 11px 14px;
}

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

.hero {
  position: relative;
  min-height: 620px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background: #020617;
  box-shadow: var(--shadow);
}

.hero-stage,
.hero-slide,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  padding: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 320px;
  align-items: center;
  gap: 54px;
}

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

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0 18px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
}

.hero-copy p {
  max-width: 690px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 18px;
}

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

.primary-btn,
.ghost-btn,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.hero-search button {
  background: linear-gradient(135deg, var(--brand), #34d399);
  color: #022c22;
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.24);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.primary-btn:hover,
.ghost-btn:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
}

.hero-panel {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-search {
  width: min(520px, 100%);
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(12px);
}

.hero-search input,
.search-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.hero-search input {
  padding: 0 16px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.content-section {
  margin: 56px 0;
}

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

.section-heading h2,
.story-card h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}

.section-more {
  color: #6ee7b7;
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(15, 23, 42, 0.95);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  aspect-ratio: 3 / 4.12;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.play-corner,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.play-corner {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.94);
  color: #022c22;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.94);
  color: #211400;
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span,
.detail-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
}

.card-body h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.card-body p {
  min-height: 46px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags {
  margin-top: 14px;
}

.card-tags span,
.tag-cloud span,
.filter-pill {
  border-radius: 999px;
  background: var(--brand-soft);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 700;
}

.card-tags span,
.tag-cloud span {
  padding: 5px 9px;
}

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

.category-tile,
.category-card-wide {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(6, 78, 59, 0.24));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile {
  min-height: 138px;
  padding: 20px;
  border-radius: 24px;
}

.category-tile:hover,
.category-card-wide:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.42);
}

.category-tile span,
.category-card-wide h2 {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  margin: 10px 0;
  color: #6ee7b7;
  font-size: 30px;
  line-height: 1;
}

.category-tile em,
.category-card-wide p {
  color: var(--muted);
  font-style: normal;
}

.page-shell {
  padding-top: 34px;
}

.page-hero {
  margin-bottom: 34px;
  padding: clamp(28px, 6vw, 62px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.72)),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.2), transparent 32rem);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 18px;
}

.slim-hero {
  min-height: 250px;
}

.wide-list {
  display: grid;
  gap: 16px;
  margin-bottom: 56px;
}

.category-card-wide {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-radius: 24px;
}

.category-index {
  color: #6ee7b7;
  font-size: 28px;
  font-weight: 900;
}

.category-card-wide h2 {
  margin: 0 0 6px;
}

.category-card-wide p {
  margin: 0;
}

.category-card-wide strong {
  color: #6ee7b7;
  font-size: 28px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.filter-pill {
  border: 1px solid rgba(16, 185, 129, 0.26);
  padding: 8px 13px;
  cursor: pointer;
}

.filter-pill.is-active,
.filter-pill:hover {
  background: var(--brand);
  color: #022c22;
}

.search-panel {
  max-width: 720px;
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
}

.search-panel input {
  font-size: 18px;
}

.result-line,
.empty-state {
  margin-bottom: 18px;
  color: var(--muted-strong);
  font-weight: 800;
}

.empty-state {
  padding: 40px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.6);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
  color: var(--muted);
}

.breadcrumb a {
  color: #6ee7b7;
}

.detail-shell {
  padding-bottom: 42px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.72)),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 30rem);
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.detail-poster img {
  aspect-ratio: 3 / 4.18;
  object-fit: cover;
}

.detail-info h1 {
  font-size: clamp(36px, 6vw, 68px);
}

.detail-line {
  max-width: 840px;
  color: var(--muted-strong);
  font-size: 18px;
}

.detail-meta {
  margin: 22px 0;
}

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

.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: var(--text);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.84));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #022c22;
  font-size: 34px;
  box-shadow: 0 18px 46px rgba(16, 185, 129, 0.34);
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(20px, 4vw, 34px);
  text-align: center;
}

.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.story-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
}

.story-card p {
  margin: 16px 0 0;
  color: var(--muted-strong);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 560px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--muted-strong);
}

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

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

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

  .hero-content {
    grid-template-columns: 1fr;
    padding: 42px 30px 120px;
  }

  .hero-poster {
    width: min(320px, 80vw);
    transform: none;
  }

  .hero-panel {
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-dots {
    justify-content: center;
  }

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

  .detail-hero,
  .story-section {
    grid-template-columns: 1fr;
  }

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

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

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

  .main-shell,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    min-height: 720px;
    margin-top: 16px;
    border-radius: 24px;
  }

  .hero-content {
    min-height: 720px;
    padding: 30px 22px 130px;
  }

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

  .hero-search {
    flex-direction: column;
    border-radius: 22px;
  }

  .hero-search input {
    min-height: 42px;
  }

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

  .category-card-wide {
    grid-template-columns: 1fr;
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }
}
