:root {
  --bg: #07111f;
  --bg-2: #0a1628;
  --panel: rgba(14, 23, 39, 0.84);
  --panel-2: rgba(19, 31, 52, 0.96);
  --text: #f8fafc;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #f97316;
  --accent-2: #f59e0b;
  --accent-soft: rgba(249, 115, 22, 0.16);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --radius: 26px;
  --radius-sm: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.20), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.12), transparent 26%),
    linear-gradient(180deg, #040b16 0%, var(--bg) 34%, #060d19 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
::selection { background: rgba(249,115,22,.35); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(20px);
  background: rgba(4, 9, 18, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(249, 115, 22, .32);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
}

.brand-text { font-size: 1.02rem; }
.brand-sub { display:block; font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(248,250,252,.88);
  border: 1px solid transparent;
  transition: .2s ease;
  font-size: 14px;
}

.nav a:hover, .nav a.active {
  background: rgba(255,255,255,.06);
  border-color: var(--line);
  color: #fff;
  transform: translateY(-1px);
}

.hero {
  padding: 34px 0 18px;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 20px;
  align-items: stretch;
}

.hero-panel,
.section-panel,
.detail-card,
.soft-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 31, 52, .84), rgba(10, 17, 31, .92));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-main {
  padding: 34px;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.hero-main:before,
.hero-main:after {
  content: '';
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.hero-main:before {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(249,115,22,.32), transparent 70%);
  right: -30px; top: -18px;
}

.hero-main:after {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(245,158,11,.16), transparent 72%);
  left: -40px; bottom: -88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(249,115,22,.12);
  color: #fed7aa;
  border: 1px solid rgba(249,115,22,.18);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.2rem, 4.6vw, 4.95rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero p,
.section-intro,
.muted {
  color: var(--muted);
}

.hero p {
  margin: 0;
  max-width: 64ch;
  font-size: 1.02rem;
}

.hero-actions,
.page-tools,
.chip-row,
.meta-row,
.info-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions { margin-top: 22px; }

.btn,
.chip,
.tag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  transition: .22s ease;
}

.btn {
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(249, 115, 22, .22);
}

.btn.secondary {
  background: rgba(255,255,255,.06);
  border-color: var(--line);
  color: #fff;
}

.btn:hover,
.chip:hover,
.tag:hover,
.film-card:hover {
  transform: translateY(-2px);
}

.search-box {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  max-width: 720px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  color: #fff;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.search-box input::placeholder { color: rgba(255,255,255,.40); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.stat {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}

.stat b { display:block; font-size: 1.4rem; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 13px; }

.hero-side {
  display: grid;
  gap: 14px;
}

.side-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.side-card h3,
.section-title,
.detail-title {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section {
  padding: 14px 0 34px;
}

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

.section-title { font-size: clamp(1.4rem, 2.3vw, 2.15rem); }
.section-intro { margin: 4px 0 0; max-width: 76ch; }

.grid-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.film-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  min-height: 320px;
}

.film-card:hover {
  border-color: rgba(249,115,22,.25);
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--poster, linear-gradient(160deg, #111827, #0f172a 55%, #020617));
  overflow: hidden;
}

.poster:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 32%), linear-gradient(180deg, transparent, rgba(0,0,0,.65));
}

.poster .poster-no {
  position: relative;
  z-index: 1;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.poster .abbr {
  position: absolute;
  inset: 50% 16px auto auto;
  transform: translateY(-50%);
  z-index: 1;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,.10);
  text-shadow: 0 12px 24px rgba(0,0,0,.26);
  max-width: 70%;
  text-align: right;
  word-break: break-all;
}

.poster .poster-title {
  position: relative;
  z-index: 1;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.28;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.poster .poster-sub {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.poster .poster-sub span,
.tag,
.chip {
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.90);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 14px 14px 16px;
}

.card-body h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: calc(1.55em * 3);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.card-foot strong { color: #fff; }

.soft-panel { padding: 18px; }

.chip-row { margin-top: 14px; }
.chip.active {
  background: rgba(249,115,22,.18);
  border-color: rgba(249,115,22,.24);
  color: #fed7aa;
}

.catalog-summary {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.search-results {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.search-hit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.search-hit b { display:block; margin-bottom: 4px; }
.search-hit span { color: var(--muted); font-size: 12px; }

.hero-list {
  display: grid;
  gap: 10px;
}

.hero-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}

.hero-mini .mini-no {
  width: 42px; height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  background: rgba(249,115,22,.16);
  color: #fed7aa;
  flex: 0 0 auto;
}

.hero-mini .mini-title { font-weight: 800; }
.hero-mini .mini-meta { color: var(--muted); font-size: 12px; margin-top: 3px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 18px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 420px;
  background: var(--poster, linear-gradient(160deg, #111827, #0f172a 55%, #020617));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detail-poster:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.13), transparent 30%), linear-gradient(180deg, transparent, rgba(0,0,0,.68));
}

.detail-poster .detail-abbr {
  position: relative;
  z-index: 1;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 900;
  line-height: .92;
  color: rgba(255,255,255,.12);
  text-align: right;
  word-break: break-all;
}

.detail-poster .detail-labels { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.detail-poster .detail-labels span { font-size: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); }

.detail-card { padding: 22px; }

.detail-title {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  margin-bottom: 8px;
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.detail-meta .row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
}

.detail-meta .row b { color: #fff; }

.player-box {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 22px 55px rgba(0,0,0,.30);
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.player-head .label { font-weight: 800; }
.player-head .hint { color: var(--muted); font-size: 12px; }

video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.copy-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.copy-grid p { margin: 0; color: #dbe3f0; }
.copy-grid .review { color: var(--muted); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.related-grid .film-card { min-height: 290px; }

.site-footer {
  margin-top: 30px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.pill {
  padding: 7px 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 12px;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 26, .9);
  color: #fff;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}

.back-top.show { opacity: 1; pointer-events: auto; }

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,.03);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.overview-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.overview-card h3 { margin: 0 0 8px; }
.overview-card p { margin: 0; color: var(--muted); }

.tiny-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.tiny-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grid-columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.score {
  color: #fecf8d;
  font-weight: 800;
  font-size: 13px;
}

.subtle-line { height: 1px; background: var(--line); margin: 18px 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 980px) {
  .hero-shell,
  .detail-layout,
  .grid-columns-2 {
    grid-template-columns: 1fr;
  }
  .hero-main { min-height: 0; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 20px, 1200px); }
  .header-inner { min-height: 66px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: absolute;
    left: 10px; right: 10px; top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(6, 10, 18, .96);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; justify-content: center; }
  .hero { padding-top: 18px; }
  .hero-main, .detail-card, .soft-panel { padding: 18px; }
  .hero-stats { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; }
  .search-box .btn { width: 100%; justify-content: center; }
  .film-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .related-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .detail-meta .row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
