
:root {
  --bg: #020617;
  --bg-2: #0b1120;
  --panel: rgba(15, 23, 42, 0.84);
  --panel-strong: rgba(15, 23, 42, 0.95);
  --line: rgba(148, 163, 184, 0.14);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #f8fafc;
  --accent-2: #fbbf24;
  --shadow: 0 30px 80px rgba(2, 6, 23, 0.48);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

*,:before,:after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 35%),
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08), transparent 30%),
    linear-gradient(180deg, #020617 0%, #050b18 100%);
  font-family: Inter, "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button,input,select,textarea { font: inherit; }
.container { width: min(1320px, calc(100% - 32px)); margin: 0 auto; }
.app-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.76);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, rgba(248,250,252,0.98), rgba(248,250,252,0.24)); box-shadow: 0 10px 30px rgba(248, 250, 252, 0.12); position: relative; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; inset: 8px; border-radius: 10px; background: linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.96)); border: 1px solid rgba(255,255,255,0.12); }
.brand-text { min-width: 0; }
.brand-title { margin: 0; font-size: 1.02rem; font-weight: 800; letter-spacing: 0.02em; color: var(--accent); }
.brand-subtitle { margin: 0.28rem 0 0; color: var(--muted); font-size: 0.82rem; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links a, .nav-links button { appearance: none; border: 1px solid rgba(148, 163, 184, 0.12); background: rgba(15, 23, 42, 0.52); color: var(--soft); border-radius: 999px; padding: 10px 14px; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.nav-links a:hover, .nav-links button:hover { transform: translateY(-1px); border-color: rgba(248, 250, 252, 0.22); background: rgba(30, 41, 59, 0.92); }
.nav-links a[aria-current="page"] { background: rgba(248, 250, 252, 0.10); color: var(--accent); }
.searchbar { display: flex; align-items: center; gap: 10px; min-width: 300px; padding: 11px 14px; border-radius: 999px; background: rgba(15, 23, 42, 0.64); border: 1px solid rgba(148, 163, 184, 0.12); }
.searchbar input { width: 100%; border: 0; outline: none; background: transparent; color: var(--accent); }
.searchbar input::placeholder { color: rgba(148, 163, 184, 0.84); }
.menu-toggle { display: none; }
.hero { padding: 18px 0 8px; }
.hero-surface { position: relative; min-height: 85vh; border-radius: 32px; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.14); background: linear-gradient(180deg, rgba(15,23,42,0.88), rgba(2,6,23,0.96)); box-shadow: var(--shadow); }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media .hero-bg { width: 100%; height: 100%; object-fit: cover; }
.hero-media .hero-bg { filter: saturate(1.02) contrast(1.03); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.84) 36%, rgba(2, 6, 23, 0.18) 72%, rgba(2, 6, 23, 0.58) 100%), linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.88)); }
.hero-grid { position: relative; min-height: 85vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.78fr); gap: 24px; padding: 34px; align-items: end; }
.hero-copy { max-width: 900px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(15, 23, 42, 0.74); border: 1px solid rgba(248, 250, 252, 0.12); color: var(--soft); font-size: 0.82rem; margin-bottom: 14px; }
.hero-copy h1 { margin: 0; font-size: clamp(2.6rem, 5vw, 5.8rem); line-height: 0.94; letter-spacing: -0.03em; }
.hero-copy .lede { margin: 20px 0 0; max-width: 52rem; color: rgba(226, 232, 240, 0.84); font-size: clamp(1rem, 1.28vw, 1.18rem); line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 16px; padding: 12px 18px; border: 1px solid transparent; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; cursor: pointer; font-weight: 700; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #020617; background: linear-gradient(135deg, #f8fafc, #dbeafe); }
.btn-secondary { color: var(--accent); background: rgba(15, 23, 42, 0.64); border-color: rgba(248, 250, 252, 0.12); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.stat-chip, .pill, .tag, .chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.14); background: rgba(15, 23, 42, 0.72); color: var(--soft); }
.stat-chip { padding: 8px 12px; font-size: 0.86rem; }
.hero-side { display: grid; gap: 12px; align-content: end; }
.hero-side-panel { border-radius: 24px; background: rgba(15, 23, 42, 0.64); border: 1px solid rgba(148, 163, 184, 0.14); backdrop-filter: blur(16px); overflow: hidden; }
.hero-side-head { padding: 14px 16px 0; color: var(--muted); font-size: 0.82rem; }
.hero-mini-list { display: grid; gap: 12px; padding: 14px; }
.hero-mini-card { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 20px; background: rgba(2, 6, 23, 0.38); border: 1px solid rgba(148, 163, 184, 0.12); transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; cursor: pointer; text-align: left; width: 100%; }
.hero-mini-card:hover, .hero-mini-card.is-active { transform: translateY(-2px); border-color: rgba(248, 250, 252, 0.20); background: rgba(15, 23, 42, 0.90); }
.hero-mini-card img { width: 90px; height: 130px; border-radius: 16px; object-fit: cover; }
.hero-mini-copy h3, .card-title, .rank-title { margin: 0; font-weight: 800; line-height: 1.25; color: var(--accent); }
.hero-mini-copy h3 { font-size: 1rem; }
.hero-mini-copy p { margin: 6px 0 0; color: rgba(203, 213, 225, 0.78); font-size: 0.84rem; line-height: 1.6; }
.page-section { padding: 22px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.section-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-input, .filter-select { appearance: none; border: 1px solid rgba(148, 163, 184, 0.14); background: rgba(15, 23, 42, 0.66); color: var(--accent); padding: 12px 16px; border-radius: 16px; outline: none; }
.filter-input { min-width: 260px; flex: 1 1 300px; }
.filter-select { min-width: 180px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 13px; transition: transform 0.18s ease, border-color 0.18s ease; }
.chip:hover { transform: translateY(-1px); border-color: rgba(248, 250, 252, 0.22); }
.cards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cards-grid.cards-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cards-grid.cards-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards-grid.cards-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.movie-card { min-width: 0; border-radius: 22px; overflow: hidden; background: rgba(15, 23, 42, 0.82); border: 1px solid rgba(148, 163, 184, 0.12); box-shadow: 0 14px 40px rgba(2, 6, 23, 0.28); transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.movie-card:hover { transform: translateY(-4px); border-color: rgba(248, 250, 252, 0.20); box-shadow: 0 24px 60px rgba(2, 6, 23, 0.42); }
.movie-card-sm .poster { aspect-ratio: 3 / 4; }
.movie-card-lg .poster { aspect-ratio: 16 / 10; }
.card-link { display: block; }
.poster { position: relative; aspect-ratio: 2 / 3; background: #0f172a; overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 6, 23, 0.00) 44%, rgba(2, 6, 23, 0.84) 100%), linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.38)); }
.poster-chip { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(2, 6, 23, 0.64); border: 1px solid rgba(248, 250, 252, 0.14); font-size: 0.76rem; color: var(--accent); }
.card-body { padding: 14px 14px 16px; }
.card-title { font-size: 1rem; }
.card-meta { margin: 8px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.card-desc { margin: 10px 0 0; color: rgba(203, 213, 225, 0.84); font-size: 0.86rem; line-height: 1.65; min-height: 3.3em; }
.card-footer { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pill, .tag { padding: 7px 10px; font-size: 0.76rem; }
.pill-soft { background: rgba(248, 250, 252, 0.08); }
.horizontal-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.horizontal-scroll > .movie-card { min-width: 220px; flex: 0 0 220px; scroll-snap-align: start; }
.large-callout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.large-callout { position: relative; min-height: 300px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.12); background: rgba(15, 23, 42, 0.8); box-shadow: var(--shadow); }
.large-callout img { width: 100%; height: 100%; object-fit: cover; }
.large-callout .overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,6,23,0.92), rgba(2,6,23,0.18) 72%, rgba(2,6,23,0.74)); }
.large-callout .copy { position: absolute; left: 26px; bottom: 22px; right: 26px; max-width: 60%; }
.large-callout h3 { margin: 0; font-size: 1.7rem; line-height: 1.08; }
.large-callout p { margin: 10px 0 0; color: rgba(226, 232, 240, 0.84); line-height: 1.8; }
.large-callout .copy .hero-actions { margin-top: 16px; }
.rank-list { display: grid; gap: 12px; }
.rank-row { display: grid; grid-template-columns: 64px 84px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(15, 23, 42, 0.78); border: 1px solid rgba(148, 163, 184, 0.12); }
.rank-number { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(248,250,252,0.16), rgba(15,23,42,0.78)); color: var(--accent); font-weight: 900; font-size: 1.15rem; }
.rank-row .poster img { border-radius: 14px; }
.rank-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; color: var(--muted); font-size: 0.82rem; }
.rank-score { font-size: 0.82rem; color: var(--accent-2); white-space: nowrap; }
.detail-shell { padding: 22px 0 34px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 18px; font-size: 0.92rem; }
.breadcrumb a { color: var(--soft); }
.detail-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.detail-aside, .detail-panel, .detail-box { border-radius: 28px; background: rgba(15, 23, 42, 0.82); border: 1px solid rgba(148, 163, 184, 0.12); box-shadow: 0 20px 60px rgba(2, 6, 23, 0.25); }
.detail-aside { padding: 16px; position: sticky; top: 96px; }
.detail-aside img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 20px; }
.detail-aside .fact-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, 0.12); color: var(--muted); font-size: 0.90rem; }
.detail-panel { padding: 18px; }
.player-box { border-radius: 24px; overflow: hidden; background: #000; border: 1px solid rgba(148, 163, 184, 0.14); aspect-ratio: 16 / 9; }
.player-box video { width: 100%; height: 100%; background: #000; }
.detail-title { margin: 18px 0 0; font-size: clamp(2rem, 3vw, 3.4rem); line-height: 1.02; letter-spacing: -0.03em; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.detail-meta .tag { background: rgba(248,250,252,0.08); }
.detail-section { margin-top: 20px; }
.detail-section h2 { margin: 0 0 10px; font-size: 1.15rem; }
.detail-section p, .detail-section .rich-text { margin: 0; line-height: 1.85; color: rgba(226, 232, 240, 0.84); }
.detail-grid-info { display: grid; gap: 10px; margin-top: 16px; }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(2, 6, 23, 0.38); color: var(--soft); border: 1px solid rgba(148, 163, 184, 0.10); }
.related-area { margin-top: 24px; }
.footer { margin-top: 30px; padding: 28px 0 40px; border-top: 1px solid rgba(148, 163, 184, 0.10); color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer p { margin: 0; line-height: 1.8; }
.hidden { display: none !important; }

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { max-width: 720px; }
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-grid.cards-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-grid.cards-grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .large-callout .copy { max-width: 72%; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 20px, 1320px); }
  .header-inner { align-items: flex-start; }
  .header-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  body.menu-open .nav-links { display: flex; flex-direction: column; }
  body.menu-open .header-actions { padding-bottom: 6px; }
  .searchbar { min-width: 0; width: 100%; }
  .hero { padding-top: 12px; }
  .hero-surface { min-height: auto; border-radius: 24px; }
  .hero-grid { padding: 20px; gap: 18px; }
  .hero-copy h1 { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  .cards-grid, .cards-grid.cards-grid-5, .cards-grid.cards-grid-6, .cards-grid.cards-grid-3, .large-callout-grid { grid-template-columns: 1fr; }
  .horizontal-scroll > .movie-card { min-width: 190px; flex-basis: 190px; }
  .rank-row { grid-template-columns: 52px 76px 1fr; }
  .rank-score { grid-column: 1 / -1; }
  .detail-panel { padding: 14px; }
  .detail-aside { padding: 12px; }
  .detail-title { font-size: 1.8rem; }
}
