
:root {
  --bg: #07111f;
  --bg-2: #0b1728;
  --panel: rgba(10, 18, 32, .8);
  --panel-2: rgba(8, 16, 28, .66);
  --line: rgba(148, 163, 184, .15);
  --text: #e5eefc;
  --muted: #9eb0cc;
  --cyan: #06b6d4;
  --cyan-2: #22d3ee;
  --orange: #f97316;
  --orange-2: #fb923c;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, .16), transparent 34%),
    radial-gradient(circle at top right, rgba(249, 115, 22, .12), transparent 32%),
    linear-gradient(180deg, #06101e, #081223 38%, #09111d 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.container { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(4, 10, 18, .72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}
.header-inner {
  min-height: 80px; display: flex; align-items: center; gap: 16px; padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 240px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(6,182,212,.95), rgba(249,115,22,.92));
  box-shadow: 0 16px 35px rgba(6, 182, 212, .22);
  font-weight: 800;
}
.brand-text strong { display: block; font-size: 16px; letter-spacing: .02em; }
.brand-text small { display: block; color: var(--muted); max-width: 250px; line-height: 1.25; }
.site-nav { display: flex; gap: 10px; margin-left: auto; }
.nav-link {
  padding: 10px 14px; border-radius: 999px; color: var(--muted);
  border: 1px solid transparent; transition: .2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  border-color: rgba(6,182,212,.28);
  background: rgba(6,182,212,.08);
}
.site-search {
  margin-left: 10px; display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(15, 23, 42, .75);
}
.site-search input {
  width: 230px; background: transparent; color: var(--text); border: 0; outline: none; padding: 6px 10px;
}
.site-search input::placeholder { color: rgba(158, 176, 204, .75); }
.site-search button, .btn, .btn-link {
  border: 0; border-radius: 999px; cursor: pointer; transition: .2s ease;
}
.site-search button, .btn {
  padding: 11px 16px; background: linear-gradient(135deg, rgba(6,182,212,.95), rgba(34,211,238,.75));
  color: #04131c; font-weight: 800;
}
.btn.ghost {
  background: rgba(148, 163, 184, .12); color: var(--text); border: 1px solid rgba(148,163,184,.14);
}
.btn:hover, .btn-link:hover, .site-search button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-link { color: #67e8f9; padding: 0; background: none; font-weight: 700; }
.menu-toggle { display: none; }

.page-main { padding: 28px 0 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: #8be9fb;
}
.eyebrow::before {
  content: ''; width: 10px; height: 10px; border-radius: 999px; background: linear-gradient(135deg, var(--cyan), var(--orange));
  box-shadow: 0 0 0 6px rgba(6,182,212,.08);
}

.hero-shell {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(310px, 1fr); gap: 20px; align-items: stretch;
}
.hero-slider, .hero-side-box, .panel-section, .control-bar, .detail-panel, .stat-panel, .hero-panel, .quick-stats, .category-card, .movie-card, .prose-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 24, 38, .86), rgba(11, 17, 30, .74));
  box-shadow: var(--shadow);
}
.hero-slider { position: relative; overflow: hidden; border-radius: 32px; min-height: 430px; }
.hero-track { display: flex; transition: transform .55s ease; height: 100%; }
.hero-slide {
  min-width: 100%; padding: 28px; display: grid; gap: 22px; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); align-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.10), transparent 20%),
    linear-gradient(135deg, rgba(6,182,212,.12), rgba(249,115,22,.10) 70%),
    linear-gradient(180deg, rgba(10, 18, 32, .92), rgba(10, 18, 32, .72));
}
.hero-copy h2, .page-hero h1, .detail-main h1 {
  margin: 12px 0 10px; line-height: 1.08; font-size: clamp(30px, 4vw, 60px);
}
.hero-copy p, .page-hero p, .detail-intro, .hero-side-box p { color: var(--muted); line-height: 1.8; }
.hero-art, .movie-poster, .detail-poster, .hero-mini-card {
  position: relative; overflow: hidden; border-radius: 22px;
  background: linear-gradient(160deg, var(--cover-a), var(--cover-b) 60%, var(--cover-c));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 48px rgba(0,0,0,.28);
}
.hero-art { min-height: 320px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.hero-art::after, .movie-poster::after, .detail-poster::after, .hero-mini-card::after, .category-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, .1) 45%, rgba(2, 6, 23, .84) 100%);
}
.hero-art strong, .movie-poster .poster-title, .detail-poster strong, .hero-mini-card strong, .category-card strong {
  position: relative; z-index: 1;
}
.poster-topline, .poster-meta, .hero-art span, .detail-poster span, .hero-mini-card span, .category-card p {
  position: relative; z-index: 1; color: rgba(237, 247, 255, .88); font-size: 13px;
}
.poster-topline { display: inline-flex; width: fit-content; padding: 6px 10px; border-radius: 999px; background: rgba(4, 10, 18, .32); }
.hero-side { display: grid; gap: 18px; }
.hero-side-box { border-radius: 28px; padding: 24px; }
.hero-mini-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-mini-card { min-height: 144px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.hero-mini-card strong { font-size: 16px; line-height: 1.2; }
.hero-dots { position: absolute; left: 24px; bottom: 22px; display: flex; gap: 8px; z-index: 3; }
.hero-dot {
  width: 11px; height: 11px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(226, 232, 240, .30); transition: .2s ease;
}
.hero-dot.is-active { width: 28px; background: linear-gradient(135deg, var(--cyan), var(--orange)); }

.quick-stats, .stat-panel {
  margin: 20px 0 0; border-radius: 24px; padding: 16px 18px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.quick-stats div, .stat-panel div { padding: 10px 12px; border-radius: 18px; background: rgba(148, 163, 184, .06); }
.quick-stats span, .stat-panel span, .detail-meta-grid span { display: block; color: var(--muted); font-size: 13px; }
.quick-stats strong, .stat-panel strong, .detail-meta-grid strong { font-size: 26px; }

.panel-section, .detail-panel { margin-top: 22px; border-radius: 28px; padding: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 24px; }
.panel-head p { margin: 0; color: var(--muted); }
.control-bar {
  margin-top: 20px; border-radius: 22px; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.control-left, .control-right { display: flex; align-items: center; gap: 10px; }
.control-label { color: var(--muted); font-size: 14px; }
.control-bar select {
  background: rgba(15, 23, 42, .72); color: var(--text); border: 1px solid rgba(148,163,184,.14);
  padding: 10px 12px; border-radius: 14px; outline: none;
}
.control-count { color: #67e8f9; font-weight: 800; font-size: 18px; }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.movie-card { border-radius: 24px; overflow: hidden; }
.movie-poster { min-height: 238px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.movie-poster .poster-title { font-weight: 800; font-size: 24px; line-height: 1.08; }
.movie-card-body { padding: 14px 14px 16px; }
.card-headline { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.card-headline h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.card-headline p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.card-rank { flex: 0 0 auto; display: inline-flex; width: 36px; height: 36px; border-radius: 999px; align-items: center; justify-content: center; background: rgba(6,182,212,.16); color: #67e8f9; font-weight: 800; }
.chip-row, .tag-row, .hero-actions, .detail-actions, .prev-next { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 6px 10px; border-radius: 999px; background: rgba(148,163,184,.12); color: #dbeafe; font-size: 12px; border: 1px solid rgba(148,163,184,.10); }
.chip-soft { background: rgba(249,115,22,.14); }
.tag { font-size: 12px; color: #c7d2fe; background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.12); padding: 5px 8px; border-radius: 999px; }
.card-footer { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.muted { color: var(--muted); font-size: 13px; }

.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.category-card {
  min-height: 150px; padding: 16px; border-radius: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
}
.category-card.compact { min-height: 140px; }
.category-card strong { font-size: 18px; line-height: 1.28; }
.category-index { position: relative; z-index: 1; font-size: 26px; font-weight: 900; color: rgba(255,255,255,.88); }

.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.detail-layout { padding: 28px 0 56px; }
.detail-hero {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px;
  border: 1px solid var(--line); border-radius: 30px; padding: 20px; background: linear-gradient(180deg, rgba(16, 24, 38, .92), rgba(11, 17, 30, .75));
}
.detail-poster { min-height: 430px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.detail-poster strong { font-size: 24px; line-height: 1.15; }
.poster-badge {
  position: relative; z-index: 1; width: fit-content; padding: 6px 10px; border-radius: 999px; background: rgba(2, 6, 23, .35);
}
.detail-main { align-self: center; }
.detail-intro { font-size: 17px; }
.detail-chips { margin: 16px 0; }
.detail-meta-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.detail-meta-grid > div { padding: 14px; border-radius: 18px; background: rgba(148,163,184,.08); }
.detail-panel { margin-top: 20px; }
.player-shell { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid rgba(148,163,184,.14); background: #020617; }
.movie-player { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-overlay { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 10px; }
.prose-box { border-radius: 22px; padding: 18px; line-height: 1.9; color: #d6e3f7; }
.split-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.site-footer {
  margin-top: 40px; border-top: 1px solid rgba(148,163,184,.14);
  background: rgba(2, 6, 23, .35);
}
.footer-grid {
  width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 40px;
  display: grid; grid-template-columns: 1.6fr .7fr 1fr; gap: 20px;
}
.footer-logo { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.footer-grid h3 { margin: 0 0 10px; font-size: 16px; }
.footer-grid a { display: block; margin: 6px 0; color: var(--muted); }
.footer-grid p { color: var(--muted); line-height: 1.8; }

.hero-mini-card::after, .category-card::after, .movie-poster::after, .detail-poster::after { pointer-events: none; }
.hero-mini-card strong, .hero-mini-card span, .category-card strong, .category-card p, .movie-poster .poster-topline, .movie-poster .poster-title, .movie-poster .poster-meta, .detail-poster strong, .detail-poster span, .detail-poster .poster-badge, .hero-art strong, .hero-art span { text-shadow: 0 2px 12px rgba(0,0,0,.32); }

[data-search-hide="1"] { display: none !important; }
.btn-link, .nav-link, .movie-card, .category-card { transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease; }
.movie-card:hover, .category-card:hover, .hero-mini-card:hover, .hero-art:hover { transform: translateY(-3px); }

.mobile-only { display: none; }

@media (max-width: 1100px) {
  .hero-shell, .detail-hero, .split-panel { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-meta-grid, .quick-stats, .stat-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-slide { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container, .footer-grid { width: min(100% - 20px, 1280px); }
  .header-inner { flex-wrap: wrap; }
  .brand { min-width: 0; }
  .menu-toggle {
    display: inline-flex; margin-left: auto; padding: 10px 12px; border-radius: 14px;
    border: 1px solid rgba(148,163,184,.14); background: rgba(148,163,184,.08); color: var(--text);
  }
  .site-nav, .site-search { width: 100%; display: none; margin-left: 0; }
  .site-nav.is-open, .site-search.is-open { display: flex; }
  .site-nav { flex-wrap: wrap; }
  .site-search input { width: 100%; }
  .hero-slider, .hero-slide, .hero-art, .detail-poster { min-height: auto; }
  .hero-slide, .panel-section, .detail-panel, .detail-hero { padding: 18px; }
  .card-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .panel-head, .control-bar { flex-direction: column; align-items: start; }
  .player-overlay { position: static; padding: 14px 0 0; }
  .hero-mini-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
