
:root {
  --bg: #07070c;
  --bg-soft: #0f1220;
  --bg-card: rgba(18, 20, 34, 0.82);
  --bg-elev: rgba(24, 28, 48, 0.96);
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.14);
  --text: #eef1ff;
  --muted: #97a1c6;
  --accent: #ea580c;
  --accent-soft: rgba(234, 88, 12, .18);
  --accent-2: #f59e0b;
  --shadow: 0 20px 60px rgba(0,0,0,.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(234,88,12,.14), transparent 25%),
    radial-gradient(circle at top right, rgba(245,158,11,.14), transparent 28%),
    linear-gradient(180deg, #050507 0%, #0a0b10 35%, #08090d 100%);
  color: var(--text);
  font-family: Inter, PingFang SC, Hiragino Sans GB, Microsoft YaHei, system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5,7,12,.72);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  min-height: 74px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 18px 40px rgba(234,88,12,.35);
  display: grid; place-items: center; color: #fff; font-weight: 900;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1rem; }
.brand-text span { font-size: .78rem; color: var(--muted); font-weight: 500; }
.nav {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.nav a, .nav button {
  border: 1px solid transparent;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: .2s ease;
  background: transparent;
}
.nav a:hover, .nav button:hover, .nav a.active {
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}
.header-tools { display: flex; align-items: center; gap: 12px; }
.search-mini {
  width: 250px; max-width: 35vw;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 11px 16px;
  outline: none;
}
.search-mini::placeholder { color: #7d86a8; }
.menu-btn {
  display: none;
  width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: var(--text);
}
.page-hero {
  padding: 26px 0 18px;
}
.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 25% 15%, rgba(234,88,12,.22), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(245,158,11,.18), transparent 20%),
    linear-gradient(140deg, rgba(11,14,25,.98), rgba(19,22,40,.92));
  box-shadow: var(--shadow);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 24px;
  padding: 28px;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content; padding: 8px 12px; border-radius: 999px;
  background: rgba(234,88,12,.14); color: #ffd1b6; border: 1px solid rgba(234,88,12,.22);
  font-size: .86rem;
}
.hero-copy h1, .page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.hero-copy p, .page-lead {
  margin: 0;
  color: #c6cce0;
  font-size: 1.02rem;
  max-width: 58ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1); transition: .2s ease;
  background: rgba(255,255,255,.04); color: var(--text);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 16px 34px rgba(234,88,12,.26);
}
.btn:hover { transform: translateY(-1px); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.stat {
  padding: 14px 16px; border-radius: 18px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.stat strong { display: block; font-size: 1.3rem; }
.stat span { color: var(--muted); font-size: .88rem; }
.hero-carousel {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
}
.carousel-frame {
  position: relative; min-height: 520px; border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.carousel-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.01);
  transition: opacity .45s ease, transform .45s ease;
  padding: 22px;
  display: grid; align-content: end;
  background:
    linear-gradient(180deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,.16) 40%, rgba(0,0,0,.84) 100%),
    linear-gradient(135deg, rgba(234,88,12,.16), rgba(245,158,11,.1));
}
.carousel-slide.active { opacity: 1; transform: scale(1); }
.carousel-slide .cover {
  position: absolute; inset: 0; border-radius: 0; background-size: cover; background-position: center;
  filter: saturate(1.08) contrast(1.02);
}
.carousel-slide .cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,20,.15) 0%, rgba(10,12,20,.72) 65%, rgba(10,12,20,.96) 100%);
}
.carousel-copy {
  position: relative; z-index: 1;
  display: grid; gap: 10px; max-width: 28rem;
}
.carousel-copy h2 { margin: 0; font-size: 1.8rem; line-height: 1.08; }
.carousel-copy p { margin: 0; color: #d0d5ea; }
.hero-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); color: #edf0ff;
  font-size: .82rem;
}
.carousel-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.carousel-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.dot {
  width: 10px; height: 10px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.24);
  transition: .2s ease;
}
.dot.active { width: 28px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.06); color: var(--text); cursor: pointer;
}
.section { padding: 10px 0 28px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 16px;
}
.section-head h2, .section-head h1 {
  margin: 0; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.1;
}
.section-head p { margin: 0; color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.movie-card {
  display: block; overflow: hidden; border-radius: 22px;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.movie-card:hover { transform: translateY(-4px); border-color: rgba(234,88,12,.4); background: var(--bg-elev); }
.cover {
  position: relative; aspect-ratio: 2 / 3;
  background:
    linear-gradient(160deg, rgba(234,88,12,.28), rgba(245,158,11,.08)),
    var(--cover) center/cover no-repeat;
}
.cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.62) 100%);
}
.cover-badge, .cover-tag {
  position: absolute; z-index: 1; left: 12px; right: 12px; display: inline-flex; width: fit-content;
  padding: 5px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700;
}
.cover-badge { top: 12px; background: rgba(11,14,25,.72); border: 1px solid rgba(255,255,255,.08); color: #f2f5ff; }
.cover-tag { bottom: 12px; background: rgba(234,88,12,.9); color: white; }
.card-body { padding: 14px 14px 16px; }
.card-body h3 { margin: 0 0 8px; font-size: .98rem; line-height: 1.35; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .78rem; }
.card-body p { margin: 10px 0 0; color: #c3cae1; font-size: .88rem; line-height: 1.55; }
.pane {
  background: rgba(12, 14, 24, .75); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl); box-shadow: var(--shadow); overflow: hidden;
}
.category-strip {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
.category-link {
  padding: 18px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  display: grid; gap: 10px; transition: .2s ease;
}
.category-link:hover { transform: translateY(-3px); background: rgba(255,255,255,.06); }
.category-link strong { font-size: 1rem; }
.category-link span { color: var(--muted); font-size: .88rem; }
.ranking-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.rank-list { display: grid; gap: 10px; }
.rank-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.rank-item:hover { border-color: rgba(234,88,12,.35); background: rgba(255,255,255,.06); }
.rank-no {
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; font-weight: 800;
}
.rank-title { font-weight: 700; }
.rank-meta { color: var(--muted); font-size: .9rem; }
.page-body { padding: 18px 0 38px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .9rem; }
.crumbs a { color: #d6dbef; }
.detail-layout {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 18px;
}
.player-shell {
  position: relative; border-radius: 28px; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(234,88,12,.18), rgba(245,158,11,.08)),
    rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.player-stage { position: relative; aspect-ratio: 16/9; background: #000; }
.player-stage video {
  width: 100%; height: 100%; display: block; background: #000; object-fit: contain;
}
.player-cover {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,.74) 100%),
    var(--cover) center/cover no-repeat;
  display: grid; place-items: center; text-align: center; padding: 28px;
}
.player-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.68) 100%);
}
.player-cover .copy { position: relative; z-index: 1; max-width: 30rem; }
.player-cover h2 { margin: 0 0 8px; font-size: 1.8rem; }
.player-cover p { margin: 0; color: #d9deef; }
.play-btn {
  width: 76px; height: 76px; border-radius: 999px; border: 0; cursor: pointer;
  display: inline-grid; place-items: center; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 44px rgba(234,88,12,.35);
}
.play-btn svg { width: 28px; height: 28px; color: white; margin-left: 4px; }
.detail-meta, .detail-summary, .detail-review, .detail-relations {
  padding: 18px;
}
.detail-meta h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 3rem); }
.detail-meta .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #edf0ff; font-size: .84rem;
}
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.info-item { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.info-item span { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 2px; }
.info-item strong { font-size: .96rem; }
.prose { color: #d5daed; }
.prose h2 { margin-top: 0; }
.prose p { color: #d7dbee; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.mini-card {
  display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center;
  padding: 10px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.mini-card:hover { border-color: rgba(234,88,12,.35); }
.mini-cover {
  aspect-ratio: 2 / 3; border-radius: 14px;
  background: linear-gradient(160deg, rgba(234,88,12,.28), rgba(245,158,11,.08)), var(--cover) center/cover no-repeat;
}
.mini-copy { display: grid; gap: 3px; }
.mini-copy strong { font-size: .95rem; line-height: 1.25; }
.mini-copy span { color: var(--muted); font-size: .82rem; }
.filter-bar {
  display: grid; grid-template-columns: 1.5fr repeat(4, .8fr) auto;
  gap: 10px;
  margin: 14px 0 18px;
}
.filter-bar input, .filter-bar select {
  min-height: 46px; width: 100%; padding: 0 14px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: var(--text);
  outline: none;
}
.filter-bar input::placeholder { color: #7d86a8; }
.notice {
  padding: 16px 18px; border-radius: 18px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #d9def0;
}
.footer {
  padding: 30px 0 42px; color: var(--muted);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08);
}
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color: #d2d7ea; }
.page-list { display: grid; gap: 14px; }
.category-top {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px;
}
.category-top .pane { padding: 18px; }
.card-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.hero-subgrid { display: grid; gap: 14px; }
.small-note { color: var(--muted); font-size: .92rem; }
.mobile-only { display: none; }

@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-layout, .ranking-layout, .hero-grid { grid-template-columns: 1fr; }
  .carousel-frame { min-height: 440px; }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .filter-bar button { grid-column: span 4; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 20px, 1240px); }
  .nav, .search-mini { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .header-inner { min-height: 66px; }
  .header-tools { gap: 8px; }
  .hero-grid { padding: 18px; }
  .page-hero { padding-top: 14px; }
  .hero-copy h1, .page-title { font-size: 2.1rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-row, .category-top, .related-grid { grid-template-columns: 1fr; }
  .category-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar button { grid-column: span 2; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .carousel-copy h2 { font-size: 1.45rem; }
  .carousel-frame { min-height: 380px; }
  .info-grid { grid-template-columns: 1fr; }
  .mobile-only { display: block; }
}
