
:root {
  --bg: #070b14;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-2: rgba(2, 6, 23, 0.72);
  --line: rgba(255,255,255,0.08);
  --text: #e5eefb;
  --muted: #9fb0c7;
  --accent: #f97316;
  --accent-2: #22c55e;
  --accent-3: #8b5cf6;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(249,115,22,.18), transparent 30%),
    radial-gradient(circle at top right, rgba(139,92,246,.20), transparent 36%),
    linear-gradient(180deg, #08101d 0%, #060914 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .03em;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #fb7185 50%, #38bdf8);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 12px 30px rgba(249,115,22,.25);
}
.nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav a {
  padding: 10px 14px; border-radius: 999px; color: var(--muted);
  transition: .25s ease; border: 1px solid transparent;
}
.nav a:hover, .nav a.active {
  color: #fff; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1);
}
.spacer { flex: 1; }
.searchbar {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 14px; min-width: min(360px, 100%);
}
.searchbar input { border: 0; outline: none; background: transparent; color: var(--text); width: 100%; }
.searchbar input::placeholder { color: #7d8aa2; }
.searchbar .search-btn {
  border: 0; border-radius: 999px; padding: 10px 16px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #fb7185); cursor: pointer;
}
.hero {
  position: relative; overflow: hidden; margin: 18px auto 26px; border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(249,115,22,.18), rgba(139,92,246,.08) 55%, rgba(34,197,94,.08)),
    rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr .9fr; gap: 28px; padding: 38px; }
.hero h1 { font-size: clamp(34px, 5vw, 64px); margin: 0 0 14px; line-height: 1.02; }
.hero p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-actions { display:flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap: 8px;
  padding: 13px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: .25s ease;
}
.btn.primary { background: linear-gradient(135deg, var(--accent), #fb7185); border-color: transparent; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.hero-stats { display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.stat, .panel, .film-card, .rank-item, .cat-card {
  background: var(--panel); border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.stat { border-radius: 20px; padding: 16px; }
.stat .n { font-size: 26px; font-weight: 800; }
.stat .t { color: var(--muted); margin-top: 4px; font-size: 13px; }
.hero-panel { display:flex; flex-direction:column; gap: 14px; }
.feature-stack { position: relative; height: 100%; min-height: 340px; }
.feature-card {
  position:absolute; inset: 0; border-radius: 28px; overflow:hidden;
  background: linear-gradient(135deg, rgba(15,23,42,.7), rgba(2,6,23,.9));
  border: 1px solid rgba(255,255,255,.08);
  padding: 18px;
  transform: translateY(0) scale(1);
  transition: .3s ease; display:flex; flex-direction:column; justify-content:flex-end;
}
.feature-card:nth-child(1){ transform: translate(0, 0) scale(1); z-index: 3; }
.feature-card:nth-child(2){ transform: translate(14px, 14px) scale(.97); z-index: 2; opacity: .84; }
.feature-card:nth-child(3){ transform: translate(28px, 28px) scale(.94); z-index: 1; opacity: .65; }
.feature-card:hover { transform: translate(0,0) scale(1.01); z-index: 4; }
.feature-kicker { display:inline-flex; align-self:flex-start; padding: 7px 11px; border-radius: 999px; background: rgba(249,115,22,.18); color: #ffd7bd; border: 1px solid rgba(249,115,22,.25); font-size: 12px; }
.feature-title { font-size: 30px; font-weight: 800; margin: 14px 0 8px; }
.feature-text { color: rgba(229,238,251,.88); line-height: 1.7; max-width: 42ch; }
.feature-meta { display:flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.tag { display:inline-flex; align-items:center; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.section { margin: 28px 0; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 24px; margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.grid {
  display:grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px;
}
.film-card {
  border-radius: 22px; overflow:hidden; transition: .25s ease; position: relative;
}
.film-card:hover { transform: translateY(-4px); border-color: rgba(249,115,22,.35); }
.poster { aspect-ratio: 3/4; background: linear-gradient(135deg, rgba(249,115,22,.2), rgba(139,92,246,.2)); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px; }
.card-title { margin: 0 0 8px; font-size: 15px; line-height: 1.35; }
.card-meta { display:flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.card-tags { display:flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge { display:inline-flex; align-items:center; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: #c9d5e8; font-size: 11px; border: 1px solid rgba(255,255,255,.06); }
.split { display:grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.panel { border-radius: 26px; padding: 20px; }
.rank-list { display:flex; flex-direction:column; gap: 10px; }
.rank-item { display:flex; gap: 12px; align-items:center; border-radius: 18px; padding: 10px 12px; }
.rank-num {
  width: 32px; height: 32px; border-radius: 999px; display:grid; place-items:center; font-weight: 800;
  background: linear-gradient(135deg, rgba(249,115,22,.9), rgba(251,113,133,.9));
}
.rank-thumb { width: 56px; height: 78px; border-radius: 14px; overflow:hidden; flex: 0 0 auto; }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-main { flex: 1; min-width: 0; }
.rank-main h3 { margin: 0 0 4px; font-size: 14px; }
.rank-main p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.category-strip { display:grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-card {
  border-radius: 22px; padding: 18px; min-height: 120px; display:flex; flex-direction:column; justify-content:space-between;
  background: linear-gradient(135deg, rgba(15,23,42,.95), rgba(17,24,39,.7));
}
.cat-card strong { font-size: 18px; }
.cat-card span { color: var(--muted); font-size: 13px; }
.cat-card:hover { border-color: rgba(34,197,94,.25); transform: translateY(-2px); }
.footer { margin: 40px 0 28px; color: var(--muted); font-size: 14px; }
.breadcrumb { color: var(--muted); margin: 10px 0 18px; font-size: 14px; }
.breadcrumb a { color: #dbe7fa; }
.movie-hero {
  display:grid; grid-template-columns: 320px 1fr; gap: 24px; align-items:start;
  background: var(--panel); border: 1px solid rgba(255,255,255,.08); border-radius: 30px; padding: 20px; box-shadow: var(--shadow);
}
.movie-poster { border-radius: 24px; overflow:hidden; aspect-ratio: 3/4; }
.movie-poster img { width: 100%; height: 100%; object-fit: cover; }
.movie-title { margin: 0; font-size: clamp(28px, 4vw, 52px); }
.movie-sub { color: var(--muted); margin: 8px 0 0; line-height: 1.8; }
.movie-actions { display:flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.meta-row { display:flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.player { margin-top: 22px; }
.video-box { background: #000; border-radius: 24px; overflow:hidden; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); }
video { width: 100%; display:block; background:#000; }
.playlist { display:flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.play-source { cursor:pointer; }
.details-grid { display:grid; grid-template-columns: 1fr 340px; gap: 20px; margin-top: 22px; }
.article, .aside { background: var(--panel); border: 1px solid rgba(255,255,255,.08); border-radius: 26px; padding: 20px; box-shadow: var(--shadow); }
.article h2, .aside h2 { margin-top: 0; }
.kv { display:grid; grid-template-columns: 110px 1fr; gap: 10px 14px; }
.kv div { padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.kv .k { color: var(--muted); }
.tools { display:flex; gap: 10px; flex-wrap: wrap; }
.filter-bar { display:flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.filter-pill { border: 1px solid rgba(255,255,255,.08); color: #dbe7fa; background: rgba(255,255,255,.04); padding: 8px 12px; border-radius: 999px; cursor:pointer; }
.filter-pill.active { background: linear-gradient(135deg, var(--accent), #fb7185); border-color: transparent; color: #fff; }
.search-result-count { color: var(--muted); font-size: 13px; }
.notice { padding: 16px 18px; border-radius: 18px; background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.18); color: #ffd8c0; }
.hide { display:none !important; }
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .hero-inner, .split, .details-grid, .movie-hero { grid-template-columns: 1fr; }
  .category-strip { grid-template-columns: repeat(3,1fr); }
  .searchbar { min-width: 240px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 20px, 1280px); }
  .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .nav { width: 100%; overflow:auto; padding-bottom: 4px; }
  .searchbar { width: 100%; min-width: 0; }
  .hero-inner { padding: 22px; }
  .hero-stats { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-strip { grid-template-columns: repeat(2,1fr); }
}
