
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-2: rgba(30, 41, 59, 0.78);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(245, 158, 11, 0.3);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --title: #f8fafc;
  --accent: #f59e0b;
  --accent-2: #38bdf8;
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 28%),
    linear-gradient(180deg, #020617 0%, #071026 40%, #020617 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: 12px; z-index: 1000;
  background: #fff; color: #000; padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.72), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 1), rgba(56, 189, 248, 1));
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.28);
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute; inset: 10px 11px 10px 11px;
  border: 2px solid rgba(255,255,255,0.78); border-left-width: 5px; border-radius: 8px;
}
.brand-text { display: grid; gap: 2px; }
.brand-text strong { color: var(--title); font-size: 1.03rem; letter-spacing: 0.02em; }
.brand-text em { color: #93c5fd; font-style: normal; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: #dbeafe; font-weight: 600; opacity: .9; }
.site-nav a.active, .site-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #f8fafc; margin: 5px 0; border-radius: 99px;
}

.hero { position: relative; overflow: hidden; padding: 48px 0 28px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(245, 158, 11, 0.15), transparent 30%),
    radial-gradient(circle at 75% 30%, rgba(56, 189, 248, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(15,23,42,0.8), rgba(2,6,23,0));
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.95fr; gap: 24px; align-items: stretch; }
.hero-copy {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15,23,42,0.85), rgba(15,23,42,0.55));
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fbbf24; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.hero-copy h1, .page-hero h1 {
  margin: 16px 0 14px; color: var(--title);
  font-size: clamp(2rem, 4.7vw, 4.6rem); line-height: 1.05;
}
.hero-lead, .page-hero p, .detail-lead { color: #cbd5e1; line-height: 1.8; font-size: 1rem; }
.hero-search, .search-bar {
  display: flex; gap: 12px; align-items: center; margin: 22px 0 18px;
  padding: 10px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.45);
}
.hero-search input, .search-bar input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--title); padding: 10px 12px;
}
.hero-search input::placeholder, .search-bar input::placeholder { color: #64748b; }
.hero-stats, .inline-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.hero-stats div, .inline-stats div {
  border: 1px solid var(--line); border-radius: 18px; padding: 16px 14px;
  background: rgba(15, 23, 42, 0.65);
}
.hero-stats strong, .inline-stats strong { display: block; font-size: 1.4rem; color: var(--title); }
.hero-stats span, .inline-stats span { color: var(--muted); font-size: 0.88rem; }
.hero-panel {
  border-radius: var(--radius-xl); border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, rgba(15,23,42,0.9), rgba(30,41,59,0.75));
  box-shadow: var(--shadow);
  display: grid; grid-template-rows: auto 1fr;
}
.hero-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.hero-controls button {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 999px; background: rgba(2,6,23,0.45); color: white; cursor: pointer;
}
.hero-panel-slides { position: relative; min-height: 400px; }
.hero-slide {
  position: absolute; inset: 0; padding: 28px; opacity: 0; transform: translateY(12px) scale(.985); transition: all .45s ease;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.24));
}
.hero-slide.active { opacity: 1; transform: translateY(0) scale(1); }
.hero-slide::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at top right, rgba(245,158,11,0.16), transparent 30%),
              radial-gradient(circle at bottom left, rgba(56,189,248,0.16), transparent 35%);
}
.hero-slide > * { position: relative; z-index: 1; }
.hero-slide-badge {
  display: inline-flex; width: fit-content; align-items: center; border: 1px solid rgba(245,158,11,0.28);
  background: rgba(245,158,11,0.1); color: #fbbf24; border-radius: 999px; padding: 6px 12px; font-size: .82rem;
}
.hero-slide h2 { margin: 0; color: var(--title); font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1.12; }
.hero-slide p { margin: 0; color: #dbeafe; line-height: 1.8; }
.hero-slide-meta { display: flex; flex-wrap: wrap; gap: 10px; color: #94a3b8; font-size: .86rem; }
.hero-slide-meta span { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(2,6,23,0.28); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.section { padding: 26px 0 14px; }
.section-contrast { background: linear-gradient(180deg, rgba(15,23,42,0.35), rgba(2,6,23,0)); border-top: 1px solid rgba(148,163,184,0.08); border-bottom: 1px solid rgba(148,163,184,0.08); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2, .page-hero h1, .detail-copy h1 { color: var(--title); }
.section-head a { color: #93c5fd; }
.section-head.compact { margin-bottom: 10px; }
.category-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.category-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-tile, .category-big-tile {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15,23,42,.72), rgba(30,41,59,.55));
  padding: 18px; box-shadow: var(--shadow); display: grid; gap: 8px;
}
.category-big-tile strong, .category-tile strong { color: var(--title); font-size: 1.08rem; }
.category-tile span, .category-big-tile span { color: var(--muted); line-height: 1.7; font-size: .92rem; }
.category-big-tile em { color: #fbbf24; font-style: normal; }

.movie-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.movie-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(15,23,42,.83), rgba(30,41,59,.52));
  box-shadow: var(--shadow); transition: transform .24s ease, border-color .24s ease;
}
.movie-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.movie-poster-link { position: relative; display: block; }
.movie-poster { aspect-ratio: 360 / 520; width: 100%; object-fit: cover; background: #0f172a; }
.movie-rank {
  position: absolute; left: 14px; top: 14px; width: 42px; height: 42px; border-radius: 999px;
  display: grid; place-items: center; background: rgba(2,6,23,.65); border: 1px solid rgba(245,158,11,.3); color: #fbbf24; font-weight: 700;
}
.movie-card-body { padding: 16px; display: grid; gap: 10px; }
.movie-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.movie-card-head h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.movie-card-head h3 a:hover { color: var(--accent); }
.movie-year { color: #fbbf24; font-weight: 700; font-size: .88rem; flex-shrink: 0; }
.movie-meta, .movie-summary { margin: 0; color: #cbd5e1; line-height: 1.7; font-size: .92rem; }
.movie-summary { color: #94a3b8; }
.movie-tags, .detail-tags, .search-filters, .category-links { display: flex; flex-wrap: wrap; gap: 8px; }
.movie-tags span, .tag, .chip, .category-links a {
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(2,6,23,.28); color: #dbeafe; font-size: .82rem;
}
.movie-card-actions, .detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #f59e0b, #fb923c); color: #0f172a; font-weight: 700; }
.btn-ghost { background: rgba(2,6,23,.38); border-color: var(--line); color: #e2e8f0; }

.two-col-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; align-items: start; }
.side-panel, .content-card, .player-shell, .search-results, .search-summary {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(15,23,42,.7); box-shadow: var(--shadow);
}
.side-panel, .content-card { padding: 18px; }
.side-panel h3, .content-card h2, .player-shell h2 { margin-top: 0; color: var(--title); }
.bullet-list { margin: 14px 0 18px; padding-left: 18px; color: #cbd5e1; line-height: 1.8; }
.bullet-list li + li { margin-top: 8px; }
.latest-list { display: grid; gap: 12px; }
.mini-item {
  display: grid; grid-template-columns: 68px 1fr; gap: 12px; align-items: center;
  padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(15,23,42,.6);
}
.mini-item img { width: 68px; height: 98px; object-fit: cover; border-radius: 14px; }
.mini-item strong { display: block; color: var(--title); }
.mini-item span { color: var(--muted); font-size: .84rem; }

.page-hero { padding: 48px 0 18px; }
.page-hero.compact { padding-bottom: 0; }
.page-hero .container { border-bottom: 1px solid rgba(148,163,184,.1); padding-bottom: 18px; }
.page-hero h1 { margin: 10px 0 10px; font-size: clamp(2rem, 5vw, 3.8rem); }
.page-hero p { max-width: 860px; }
.compact-bar { margin-top: 16px; border-radius: 18px; }

.category-sections { display: grid; gap: 24px; }
.category-chunk h3 { margin: 0 0 14px; color: var(--title); }
.category-links { margin-top: 18px; }
.category-links a:hover, .chip.active { border-color: rgba(245,158,11,.5); color: #fbbf24; }
.search-summary { padding: 14px 18px; margin-bottom: 14px; color: #cbd5e1; }
.search-results { display: grid; gap: 14px; padding: 18px; }
.search-row {
  display: grid; grid-template-columns: 108px 1fr; gap: 16px; padding: 14px;
  border-radius: 18px; border: 1px solid var(--line); background: rgba(2,6,23,.28);
}
.search-row-poster img { width: 108px; height: 156px; object-fit: cover; border-radius: 16px; }
.search-row-body { display: grid; gap: 8px; }
.search-row-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.search-row-top h3 { margin: 0; }
.search-row-top span { color: #fbbf24; font-weight: 700; }
.search-row p { margin: 0; color: #cbd5e1; line-height: 1.7; }

.detail-hero { padding: 34px 0 18px; }
.detail-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.detail-poster-wrap { position: sticky; top: 96px; }
.detail-poster { width: 100%; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.detail-copy {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15,23,42,.82), rgba(30,41,59,.54)); box-shadow: var(--shadow);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: #93c5fd; margin-bottom: 10px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-badges span {
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(2,6,23,.35); color: #dbeafe; font-size: .84rem;
}
.detail-copy h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 16px 0 12px; }
.detail-lead { margin: 0; }
.detail-layout { align-items: start; }
.player-shell { padding: 18px; }
.movie-player {
  width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 20px; border: 1px solid var(--line); overflow: hidden;
}
.player-tip { color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.info-panel { position: sticky; top: 96px; }
.info-grid { display: grid; gap: 10px; }
.info-item { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(2,6,23,.28); border: 1px solid var(--line); }
.info-item span { color: var(--muted); font-size: .84rem; }
.info-item strong { color: var(--title); line-height: 1.5; }
.related-links { display: grid; gap: 10px; }
.related-links a {
  display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(2,6,23,.28);
}
.related-links a small { color: var(--muted); }
.rich-text { max-width: 900px; }
.rich-text p { line-height: 1.9; color: #cbd5e1; }

.site-footer {
  margin-top: 28px;
  border-top: 1px solid rgba(148,163,184,.14);
  background: linear-gradient(180deg, rgba(2,6,23,.4), rgba(15,23,42,.82));
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; padding: 30px 0; }
.footer-grid h3, .footer-grid h4 { color: var(--title); margin: 0 0 12px; }
.footer-grid p, .footer-grid li { color: #94a3b8; line-height: 1.8; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-copy { padding: 0 0 24px; color: #64748b; text-align: center; }

@media (max-width: 1100px) {
  .hero-grid, .detail-grid, .two-col-layout, .footer-grid { grid-template-columns: 1fr; }
  .detail-poster-wrap, .info-panel { position: static; }
  .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .container { width: min(var(--max), calc(100% - 20px)); }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 12px; right: 12px; top: 76px;
    padding: 14px; border-radius: 20px; flex-direction: column; align-items: stretch; gap: 12px;
    border: 1px solid var(--line); background: rgba(2,6,23,.96);
  }
  .site-nav.open { display: flex; }
  .hero { padding-top: 24px; }
  .hero-copy, .hero-panel, .detail-copy, .side-panel, .content-card, .player-shell { padding: 16px; }
  .hero-stats, .inline-stats, .category-grid, .movie-grid { grid-template-columns: 1fr 1fr; }
  .movie-grid, .category-grid, .category-grid-wide, .search-row { grid-template-columns: 1fr; }
  .search-row-poster img { width: 100%; height: auto; aspect-ratio: 360 / 520; }
  .hero-search, .search-bar { border-radius: 20px; }
  .hero-search { flex-direction: column; align-items: stretch; }
  .hero-search .btn, .search-bar .btn { width: 100%; }
  .hero-actions, .detail-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-panel-slides { min-height: 340px; }
}
