
:root {
  --bg: #07070b;
  --bg-soft: #10121a;
  --panel: rgba(15, 18, 28, .84);
  --panel-2: rgba(22, 27, 40, .9);
  --line: rgba(255,255,255,.09);
  --text: #f5f7fb;
  --muted: rgba(245,247,251,.7);
  --accent: #f59e0b;
  --accent-2: #fb7185;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius: 24px;
  --radius-lg: 30px;
  --container: min(1320px, calc(100vw - 32px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245,158,11,.18), transparent 32%),
    radial-gradient(circle at top right, rgba(251,113,133,.12), transparent 28%),
    linear-gradient(180deg, #0a0b10 0%, #090a0f 40%, #06070b 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.container { width: var(--container); margin: 0 auto; }
.section { padding: 42px 0 56px; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2, .detail-copy h1, .subpage-banner h1, .content-card h2 { margin: 0; }
.section-head p, .subpage-banner p, .content-card p, .movie-body p, .footer-copy, .lead { color: var(--muted); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7,7,11,.68);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 12px 30px rgba(245,158,11,.28);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 1rem; letter-spacing: .02em; }
.brand-text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 10px 14px; border-radius: 999px; color: var(--muted); transition: .2s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: #fff; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; }
.category-bar {
  display: flex; gap: 10px; overflow-x: auto; padding: 0 0 14px; scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }
.chip, .filter-chip, .hero-dot, .btn, .sort-select, .search-input { border: 1px solid var(--line); }
.chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.04); color: var(--muted);
}
.chip:hover { background: rgba(245,158,11,.14); color: #fff; }

.hero { padding: 26px 0 14px; }
.hero-wrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, .9fr); gap: 24px; align-items: stretch; }
.hero-slider {
  position: relative; min-height: 760px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: var(--panel);
  border: 1px solid var(--line);
}
.hero-slide {
  position: absolute; inset: 0; display: grid; align-items: end; opacity: 0; transform: scale(1.03);
  transition: opacity .6s ease, transform .7s ease; background-size: cover; background-position: center;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,12,.88), rgba(7,8,12,.42) 55%, rgba(7,8,12,.9)); }
.hero-copy { position: relative; z-index: 1; padding: 54px; max-width: 720px; }
.hero-kicker, .kicker {
  color: var(--accent); letter-spacing: .24em; text-transform: uppercase; font-size: .78rem; font-weight: 700;
}
.hero-copy h2 { margin: 14px 0 12px; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1.02; }
.hero-copy p { color: rgba(255,255,255,.82); max-width: 58ch; font-size: 1.04rem; line-height: 1.8; }
.hero-meta, .movie-meta, .detail-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-meta span, .movie-meta span, .tag, .poster-badge, .poster-index {
  padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.08);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 999px; color: #fff; background: rgba(255,255,255,.06);
  transition: .2s ease; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.1); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #f97316); border-color: rgba(245,158,11,.3); color: #111; font-weight: 800; }
.btn-primary:hover { background: linear-gradient(135deg, #fbbf24, #fb923c); }
.btn-ghost { background: rgba(255,255,255,.05); }
.hero-controls {
  position: absolute; left: 28px; bottom: 28px; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap;
}
.hero-dot { width: 12px; height: 12px; border-radius: 999px; background: rgba(255,255,255,.2); cursor: pointer; }
.hero-dot.is-active { background: var(--accent); width: 32px; }
.hero-side { display: grid; gap: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-card, .content-card, .category-card, .side-panel, .subpage-banner, .player-shell, .movie-card, .detail-cover {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stat-card { border-radius: 22px; padding: 20px; }
.stat-card strong { display: block; font-size: 1.5rem; margin-bottom: 6px; }
.stat-card span { color: var(--muted); }
.side-panel { border-radius: var(--radius); padding: 18px; }
.panel-head, .category-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h3, .category-top h3 { margin: 0; }
.panel-head a { color: var(--accent); }
.channel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.channel-card {
  padding: 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: grid; gap: 6px;
}
.channel-card span { color: var(--muted); font-size: .92rem; }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card-grid-small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.movie-card { border-radius: 24px; overflow: hidden; display: grid; }
.movie-card-lg { grid-column: span 1; }
.movie-poster {
  position: relative; min-height: 310px; display: flex; align-items: flex-end; padding: 16px;
  border-bottom: 1px solid var(--line); background-size: cover; background-position: center;
}
.movie-card-lg .movie-poster { min-height: 360px; }
.poster-title {
  display: block; width: 100%; color: #fff; font-size: 1.05rem; font-weight: 800; text-shadow: 0 8px 26px rgba(0,0,0,.45);
  position: relative; z-index: 1;
}
.poster-badge { position: absolute; top: 14px; left: 14px; z-index: 1; }
.poster-index { position: absolute; top: 14px; right: 14px; z-index: 1; }
.movie-body { padding: 16px; display: grid; gap: 12px; }
.movie-body h3 { margin: 0; font-size: 1.03rem; }
.movie-body p { margin: 0; line-height: 1.7; min-height: 3.4em; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { color: rgba(255,255,255,.88); }
.movie-meta { margin-top: 0; }
.movie-meta span { font-size: .84rem; }

.hero-subpage { padding-top: 28px; }
.subpage-banner {
  border-radius: var(--radius-lg); padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.subpage-banner h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 8px 0; }
.subpage-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search-input, .sort-select {
  height: 48px; min-width: 240px; border-radius: 999px; padding: 0 16px; background: rgba(255,255,255,.05); color: #fff; outline: none;
}
.search-input::placeholder { color: rgba(255,255,255,.45); }
.sort-select { min-width: 170px; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.filter-chip {
  height: 42px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.04); color: var(--muted); cursor: pointer;
}
.filter-chip.is-active, .filter-chip:hover { background: rgba(245,158,11,.15); color: #fff; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.category-card { border-radius: 26px; padding: 20px; display: grid; gap: 16px; }
.category-count { color: var(--accent); font-weight: 800; }
.category-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.category-tiles .movie-card { min-width: 0; }
.category-tiles .movie-poster { min-height: 150px; }
.category-tiles .movie-body { padding: 10px; }
.category-tiles .movie-body p, .category-tiles .movie-meta, .category-tiles .tag-row { display: none; }
.category-tiles .movie-body h3 { font-size: .92rem; }

.detail-hero { padding: 36px 0 10px; }
.detail-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 26px; align-items: start; }
.detail-cover { position: relative; min-height: 520px; border-radius: var(--radius-lg); background-size: cover; background-position: center; overflow: hidden; }
.cover-glow { position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); }
.detail-copy { padding-top: 8px; }
.breadcrumb { color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.detail-copy h1 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.05; margin: 8px 0 14px; }
.detail-copy .lead { font-size: 1.03rem; line-height: 1.9; max-width: 72ch; }
.detail-stats { margin-top: 22px; }
.detail-stats > div { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); min-width: 140px; }
.detail-stats strong { display: block; margin-bottom: 4px; }
.detail-stats span { color: var(--muted); font-size: .9rem; }
.player-shell { position: relative; border-radius: 30px; overflow: hidden; min-height: 640px; }
.movie-video { width: 100%; height: 640px; background: #000; display: block; }
.player-overlay {
  position: absolute; inset: 0; border: 0; background: linear-gradient(180deg, rgba(10,10,14,.25), rgba(10,10,14,.74)); color: #fff;
  display: grid; place-items: center; gap: 10px; cursor: pointer; z-index: 2;
}
.player-overlay.is-hidden { opacity: 0; pointer-events: none; }
.player-icon {
  width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: rgba(245,158,11,.94);
  color: #111; font-size: 1.7rem; box-shadow: 0 18px 42px rgba(245,158,11,.35);
}
.player-overlay strong { font-size: 1.4rem; }
.player-overlay small { color: rgba(255,255,255,.8); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.content-card { border-radius: 24px; padding: 24px; }
.content-card p { line-height: 1.9; }
.guide-list { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.9; }

.site-footer { padding: 28px 0 42px; border-top: 1px solid var(--line); background: rgba(255,255,255,.02); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); }

.hidden { display: none !important; }

@media (max-width: 1180px) {
  .hero-wrap, .detail-grid { grid-template-columns: 1fr; }
  .hero-slider { min-height: 680px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .container { width: min(100vw - 22px, 100vw); }
  .header-inner { min-height: 68px; }
  .brand-text small { max-width: 180px; }
  .site-nav {
    position: fixed; inset: 72px 12px auto 12px; display: grid; gap: 8px; padding: 14px; background: rgba(9,9,14,.96);
    border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .hero-slider { min-height: 720px; }
  .hero-copy { padding: 28px 18px 72px; }
  .hero-controls { left: 18px; right: 18px; }
  .card-grid, .card-grid-small, .channel-grid, .stat-grid, .category-tiles { grid-template-columns: 1fr 1fr; }
  .subpage-banner, .footer-inner { flex-direction: column; align-items: start; }
  .movie-video, .player-shell { min-height: 360px; height: 360px; }
  .detail-cover { min-height: 380px; }
  .detail-stats > div { min-width: calc(50% - 7px); }
  .search-input { min-width: 100%; width: 100%; }
}
@media (max-width: 520px) {
  .card-grid, .card-grid-small, .channel-grid, .stat-grid, .category-tiles, .detail-stats { grid-template-columns: 1fr; }
  .movie-poster, .movie-card-lg .movie-poster { min-height: 250px; }
  .hero-slider { min-height: 760px; }
  .hero-copy h2 { font-size: 2.1rem; }
  .btn { width: 100%; }
}
