
:root {
  --bg: #060816;
  --bg2: #0b1020;
  --card: rgba(16, 22, 42, 0.78);
  --card-strong: rgba(20, 28, 52, 0.92);
  --line: rgba(255,255,255,0.09);
  --text: #edf2ff;
  --muted: #a8b3cf;
  --accent: #7c5cff;
  --accent2: #30d5c8;
  --accent3: #f8b84e;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124,92,255,.25), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(48,213,200,.18), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #080b18 40%, #070912 100%);
  font-family: Inter, PingFang SC, Microsoft YaHei, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 8, 22, .68);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-badge {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow);
}
.brand-text { min-width: 0; }
.brand-text strong { display: block; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { display: block; color: var(--muted); font-size: .86rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nav-links a {
  padding: 10px 14px; border-radius: 999px; color: var(--muted);
  background: rgba(255,255,255,.03); border: 1px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff; border-color: rgba(124,92,255,.35);
  background: rgba(124,92,255,.14);
}
.menu-toggle { display: none; }
.hero {
  padding: 22px 0 10px;
}
.hero-shell {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  border-radius: 32px; background: linear-gradient(135deg, rgba(18,24,50,.92), rgba(8,10,22,.92));
  box-shadow: var(--shadow);
}
.hero-slides { position: relative; min-height: 520px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center;
  padding: 28px; transition: opacity .45s ease, transform .45s ease;
  transform: translateY(8px);
}
.hero-slide.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.hero-copy { z-index: 2; padding: 20px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: .88rem; margin-bottom: 18px; }
.hero-copy h1, .hero-copy h2 { margin: 0 0 14px; font-size: clamp(2rem, 5vw, 4.3rem); line-height: 1.04; letter-spacing: -.03em; }
.hero-copy p { margin: 0 0 20px; color: var(--muted); font-size: 1.02rem; max-width: 62ch; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pill { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.05); color: #dfe7ff; border: 1px solid rgba(255,255,255,.08); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #4d82ff); color: white; }
.btn-ghost { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.09); color: #fff; }
.hero-panel {
  position: relative; min-height: 450px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at top left, rgba(124,92,255,.24), transparent 35%), rgba(10,14,30,.85);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-poster {
  position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(1.1);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,7,14,.85) 0%, rgba(5,7,14,.45) 38%, rgba(5,7,14,.06) 100%),
              linear-gradient(180deg, rgba(5,7,14,.05), rgba(5,7,14,.55));
}
.hero-bubble {
  position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2;
  background: rgba(12,16,29,.72); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px; padding: 18px;
}
.hero-bubble strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.hero-bubble p { margin: 0; color: var(--muted); font-size: .94rem; }
.hero-controls { position: absolute; inset: auto 22px 22px auto; display: flex; gap: 10px; z-index: 3; }
.hero-controls button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
}
.hero-dots { position: absolute; left: 22px; bottom: 82px; display: flex; gap: 8px; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.28); cursor: pointer; }
.hero-dot.active { background: linear-gradient(135deg, var(--accent2), var(--accent)); width: 28px; border-radius: 999px; }
.section { padding: 28px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.section-head h3 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.section-head p { margin: 0; color: var(--muted); }
.search-bar {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 12px; border-radius: 20px;
}
.search-bar input, .filter-select {
  width: 100%; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(8,10,20,.95); color: #fff;
}
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.movie-card, .cat-card, .info-card, .rank-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.movie-card { grid-column: span 3; display: flex; flex-direction: column; min-height: 100%; }
.movie-poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #121526; }
.movie-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.movie-card:hover .movie-poster img { transform: scale(1.05); }
.movie-badge {
  position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgba(6,8,22,.72); border: 1px solid rgba(255,255,255,.14); font-size: .78rem;
}
.movie-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.movie-body h4 { margin: 0; font-size: 1rem; line-height: 1.25; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .84rem; }
.meta span { padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.05); }
.snippet { color: #c8d0e4; font-size: .92rem; line-height: 1.65; }
.movie-card .card-links { margin-top: auto; display: flex; gap: 10px; }
.card-links a { flex: 1; text-align: center; min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.08); }
.card-links a.primary { background: rgba(124,92,255,.18); border-color: rgba(124,92,255,.34); }
.cat-card { grid-column: span 4; padding: 18px; }
.cat-card h4 { margin: 0 0 8px; font-size: 1.1rem; }
.cat-card .count { color: #fff; font-size: 2rem; font-weight: 800; margin: 6px 0 12px; }
.cat-card p { margin: 0 0 14px; color: var(--muted); }
.cat-card .card-links { display: flex; gap: 10px; }
.rank-list { display: grid; gap: 14px; }
.rank-card { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: center; padding: 14px; }
.rank-no { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(48,213,200,.8)); }
.rank-card h4 { margin: 0 0 6px; }
.rank-card .actions { display: flex; gap: 10px; }
.detail-hero {
  margin: 24px 0 0; padding: 18px; border-radius: 30px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(18, 24, 50, .94), rgba(8, 10, 22, .94)); box-shadow: var(--shadow);
}
.detail-top { display: grid; grid-template-columns: 340px 1fr; gap: 20px; }
.detail-poster { border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); min-height: 480px; background: #11172a; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-main h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.08; }
.detail-summary { font-size: 1.02rem; color: #d8def1; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.tag-row span { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.detail-info { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.info-card { padding: 16px; }
.info-card strong { display: block; margin-bottom: 6px; font-size: .9rem; color: var(--muted); }
.info-card span { font-size: 1rem; }
.player-shell { margin-top: 18px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-frame video { width: 100%; height: 100%; background: #000; }
.play-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.56));
  cursor: pointer;
}
.play-overlay .play-btn {
  width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12); display: grid; place-items: center; backdrop-filter: blur(12px);
}
.play-overlay .play-btn:before {
  content: ''; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent white; margin-left: 5px;
}
.page-footer { margin-top: 24px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.footer-grid a { display: block; margin: 8px 0; color: #dce4ff; }
.small { font-size: .86rem; color: var(--muted); }
.mobile-only { display: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: #fff; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.chips button.active { background: rgba(124,92,255,.22); border-color: rgba(124,92,255,.35); }

@media (max-width: 1080px) {
  .hero-slide, .detail-top, .footer-grid { grid-template-columns: 1fr; }
  .movie-card { grid-column: span 4; }
  .cat-card { grid-column: span 6; }
}
@media (max-width: 760px) {
  .nav-bar { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav-links { display: none; width: 100%; }
  .nav-links.open { display: flex; }
  .hero-slides { min-height: 0; }
  .hero-slide { position: relative; opacity: 0; display: none; padding: 16px; }
  .hero-slide.active { display: grid; opacity: 1; }
  .hero-panel { min-height: 380px; }
  .hero-copy { padding: 6px; }
  .search-bar { grid-template-columns: 1fr; }
  .movie-card, .cat-card { grid-column: span 12; }
  .rank-card { grid-template-columns: 64px 1fr; }
  .rank-card .actions { grid-column: 1 / -1; }
  .detail-info { grid-template-columns: 1fr; }
  .hero-controls { inset: auto 16px 16px auto; }
  .hero-dots { left: 16px; bottom: 72px; }
  .mobile-only { display: inline-flex; }
}
