
:root {
  --bg: #070b14;
  --panel: rgba(13, 18, 34, 0.82);
  --panel-2: rgba(18, 24, 45, 0.88);
  --line: rgba(255,255,255,0.08);
  --text: #e8eefc;
  --muted: #a9b5d1;
  --brand: #89b4ff;
  --brand-2: #72f0c7;
  --accent: #f6c177;
  --shadow: 0 24px 70px rgba(0,0,0,0.35);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(137,180,255,0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(114,240,199,0.08), transparent 22%),
    linear-gradient(180deg, #050811 0%, #090f1d 30%, #050811 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1240px, calc(100vw - 32px)); margin: 0 auto; }
.glass {
  background: linear-gradient(180deg, rgba(17,22,40,0.86), rgba(13,18,34,0.72));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  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-mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 30px rgba(114,240,199,0.25);
  display:grid; place-items:center; font-weight:800; color:#07101e;
}
.brand h1 { margin: 0; font-size: 18px; line-height: 1.1; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.nav { display:flex; flex-wrap: wrap; gap: 10px; align-items:center; justify-content:flex-end; }
.nav a {
  padding: 10px 14px; border-radius: 999px; color: var(--muted);
  border: 1px solid transparent;
}
.nav a:hover, .nav a.active { color: var(--text); border-color: rgba(137,180,255,0.22); background: rgba(137,180,255,0.08); }
.topbar {
  display:flex; justify-content:space-between; align-items:center; gap: 12px;
  padding: 12px 0 0;
}
.hero {
  margin: 22px 0 28px;
  position: relative;
}
.hero-shell {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at top left, rgba(137,180,255,0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(114,240,199,0.12), transparent 32%),
    linear-gradient(135deg, rgba(9,14,26,0.9), rgba(17,25,46,0.88));
}
.hero-grid {
  display:grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; padding: 30px;
}
.hero-kicker { display:inline-flex; gap: 8px; align-items:center; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-2); }
.hero-title {
  margin: 14px 0 14px; font-size: clamp(34px, 4vw, 60px); line-height: 1.02; letter-spacing: -0.03em;
}
.hero-desc { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 60ch; }
.hero-actions { display:flex; flex-wrap:wrap; gap: 12px; margin-top: 22px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); color: var(--text); transition: .25s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(137,180,255,0.3); background: rgba(137,180,255,0.12); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color:#09111d; font-weight: 700; }
.search-box {
  margin-top: 20px; display:flex; gap: 10px; padding: 10px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
}
.search-box input {
  flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); padding: 8px 12px; font-size: 15px;
}
.search-box input::placeholder { color: rgba(232,238,252,0.45); }
.search-box button {
  border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #08111d;
}
.hero-side { display:grid; gap: 14px; }
.hero-carousel {
  position: relative; border-radius: 28px; overflow: hidden; min-height: 540px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04);
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .55s ease, transform .65s ease;
  display:grid; grid-template-rows: 1fr auto;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .overlay {
  position:absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,8,15,0.12) 0%, rgba(4,8,15,0.18) 44%, rgba(4,8,15,0.82) 100%);
}
.hero-slide .caption {
  position:absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2;
  padding: 18px; border-radius: 22px; background: rgba(6,10,18,0.48); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-slide .caption h3 { margin: 0 0 8px; font-size: 24px; }
.hero-slide .caption p { margin: 0; color: rgba(232,238,252,0.76); font-size: 13px; line-height: 1.65; }
.hero-bullets { display:flex; gap: 8px; justify-content:center; }
.hero-bullets button {
  width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,0.28); cursor:pointer;
}
.hero-bullets button.active { width: 26px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.section { margin: 28px 0; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 24px; }
.section-head p { margin: 0; color: var(--muted); }
.cards-grid {
  display:grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr));
}
.movie-card {
  position: relative; overflow: hidden; border-radius: 22px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); transition: transform .22s ease, border-color .22s ease;
}
.movie-card:hover { transform: translateY(-4px); border-color: rgba(137,180,255,0.25); }
.movie-card .poster { aspect-ratio: 2 / 3; background: #121827; }
.movie-card .poster img { width:100%; height:100%; object-fit: cover; }
.movie-card .meta { padding: 12px 12px 14px; }
.movie-card h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.35; min-height: 2.7em; }
.movie-card .sub { color: var(--muted); font-size: 12px; display:flex; justify-content:space-between; gap:10px; }
.badge-row { display:flex; flex-wrap:wrap; gap: 8px; margin-top: 10px; }
.badge { padding: 6px 10px; border-radius: 999px; background: rgba(137,180,255,0.10); color: #dbe7ff; font-size: 12px; border: 1px solid rgba(137,180,255,0.12); }
.pill-row { display:flex; flex-wrap:wrap; gap: 10px; }
.pill { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: var(--text); }
.pill:hover { background: rgba(137,180,255,0.10); border-color: rgba(137,180,255,0.2); }
.list-panel { padding: 20px; border-radius: 26px; border: 1px solid rgba(255,255,255,0.08); background: var(--panel); }
.rank-list { display:grid; gap: 12px; }
.rank-item {
  display:grid; grid-template-columns: 52px 88px 1fr auto; gap: 14px; align-items:center;
  padding: 12px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.rank-num { font-size: 22px; font-weight: 800; color: var(--brand-2); text-align:center; }
.rank-item img { width: 88px; aspect-ratio: 2/3; border-radius: 14px; object-fit: cover; }
.rank-item h3 { margin: 0 0 5px; font-size: 17px; }
.rank-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer { margin: 34px 0 22px; color: var(--muted); font-size: 13px; text-align:center; }
.breadcrumbs { color: var(--muted); font-size: 13px; display:flex; flex-wrap:wrap; gap: 8px; margin: 0 0 14px; }
.detail-layout { display:grid; grid-template-columns: 320px 1fr; gap: 22px; align-items:start; }
.detail-poster { border-radius: 26px; overflow:hidden; border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow); }
.detail-poster img { width:100%; height:auto; }
.detail-head h1 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; }
.detail-head .facts { display:flex; flex-wrap:wrap; gap: 10px; margin-bottom: 14px; }
.fact { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #dfe8ff; font-size: 13px; }
.detail-text { padding: 20px; border-radius: 26px; border: 1px solid rgba(255,255,255,0.08); background: var(--panel); }
.detail-text h2 { margin: 0 0 12px; font-size: 20px; }
.detail-text p { color: #c7d2ea; line-height: 1.88; margin: 0 0 12px; }
.player-shell { margin-top: 18px; overflow:hidden; border-radius: 26px; border: 1px solid rgba(255,255,255,0.08); background: #08101f; }
.player-bar { display:flex; flex-wrap:wrap; gap: 10px; align-items:center; justify-content:space-between; padding: 14px 16px; background: rgba(255,255,255,0.04); border-bottom:1px solid rgba(255,255,255,0.06); }
.player-bar input { flex: 1; min-width: 240px; border: 1px solid rgba(255,255,255,0.10); border-radius: 999px; background: rgba(255,255,255,0.04); color: var(--text); padding: 10px 14px; }
.player-bar .btn { padding: 10px 14px; }
video { width: 100%; display:block; background: #000; }
.tabs { display:flex; flex-wrap:wrap; gap: 10px; margin-top: 14px; }
.tab { padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); color: var(--muted); background: rgba(255,255,255,0.03); }
.tab.active { color:#08111d; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; font-weight:700; }
.search-results { display:grid; gap: 14px; }
.search-card { display:grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 14px; border-radius: 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.search-card img { width: 90px; aspect-ratio: 2/3; border-radius: 14px; object-fit: cover; }
.search-card h3 { margin: 0 0 6px; }
.search-card p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 13px; }
.section-hero-banner {
  border-radius: 28px; padding: 24px; background: linear-gradient(135deg, rgba(137,180,255,0.15), rgba(114,240,199,0.08));
  border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow);
}
.section-hero-banner h2 { margin:0 0 8px; font-size: 26px; }
.section-hero-banner p { margin:0; color: var(--muted); line-height:1.8; }
@media (max-width: 1180px) {
  .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-inner { flex-direction: column; align-items:flex-start; }
  .nav { justify-content:flex-start; }
  .hero-grid { padding: 18px; }
  .hero-carousel { min-height: 420px; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout, .rank-item, .search-card { grid-template-columns: 1fr; }
  .rank-item img, .search-card img { width: 100%; }
}
