
:root {
  --bg: #090d16;
  --bg-2: #0d1222;
  --panel: rgba(16, 22, 38, 0.84);
  --panel-2: rgba(12, 17, 30, 0.92);
  --text: #edf2ff;
  --muted: #9aa6c3;
  --line: rgba(148, 163, 184, 0.18);
  --brand: #f8c75a;
  --brand-2: #7b61ff;
  --brand-3: #48c2ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 0% 0%, rgba(123, 97, 255, 0.20), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(248, 199, 90, 0.18), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(72, 194, 255, 0.12), transparent 25%),
    linear-gradient(180deg, #070b12 0%, #0a0f1d 34%, #0f1426 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8, 12, 22, 0.72);
  border-bottom: 1px solid var(--line);
}
.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 strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #10131b;
  background: linear-gradient(135deg, var(--brand), #ffd98b 45%, var(--brand-2));
  box-shadow: 0 12px 32px rgba(248, 199, 90, 0.18);
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-link, .nav-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: .2s ease;
}
.nav-link:hover, .nav-mini:hover { transform: translateY(-1px); border-color: rgba(248, 199, 90, 0.4); }
.mobile-toggle { display: none; }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 22, 0.90);
}
.mobile-menu.open { display: block; }
.mobile-menu-inner { padding: 14px 0 18px; display: grid; gap: 14px; }
.mobile-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mobile-mini-grid .nav-mini { width: 100%; }
.hero { padding: 22px 0 10px; }
.hero-shell { display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px; align-items: stretch; }
.hero-copy, .carousel, .panel, .movie-card, .hero-mini-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 23, 39, 0.92), rgba(11, 15, 26, 0.88));
  box-shadow: var(--shadow);
}
.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 30px;
}
.hero-copy::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at top right, rgba(248, 199, 90, 0.16), transparent 35%),
              radial-gradient(circle at bottom left, rgba(123, 97, 255, 0.20), transparent 30%);
  pointer-events: none;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(248, 199, 90, 0.22);
  background: rgba(248, 199, 90, 0.10);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.hero h1 {
  margin: 14px 0 14px;
  font-size: clamp(30px, 5.4vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.hero p, .panel p, .section-head p, .footer p { color: var(--muted); }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.stat {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
}
.hero-actions, .toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(248, 199, 90, 0.42); }
.btn.primary {
  background: linear-gradient(135deg, var(--brand), #ffd77d 40%, #f59e0b);
  color: #10131b;
  font-weight: 800;
  border-color: transparent;
}
.searchbar {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.searchbar input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.76);
  color: var(--text);
}
.searchbar input:focus, .filterbar input:focus {
  outline: none;
  border-color: rgba(248, 199, 90, 0.52);
  box-shadow: 0 0 0 4px rgba(248, 199, 90, 0.08);
}
.section { padding: 18px 0 34px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.section-head h2, .section-head h1 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
}
.section-head p { margin: 6px 0 0; font-size: 14px; }
.carousel {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 520px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .6s ease, transform .6s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-media, .hero-mini-poster, .poster {
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04)), var(--cover);
}
.hero-media { position: absolute; inset: 0; }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 15, 0.10), rgba(6, 9, 15, 0.88));
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 14px;
  padding: 26px;
  z-index: 1;
}
.hero-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.06;
}
.hero-desc { margin: 0; color: #d5defa; max-width: 54ch; }
.hero-meta, .card-meta, .meta-row, .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip, .small-chip, .meta-chip, .tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: #dce6ff;
}
.chip { padding: 6px 10px; font-size: 12px; }
.small-chip, .meta-chip { padding: 5px 9px; font-size: 11px; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.movie-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.movie-card, .hero-mini-card, .panel, .section-card {
  border-radius: 24px;
  overflow: hidden;
}
.movie-card { display: flex; flex-direction: column; min-height: 100%; transition: .22s ease; }
.movie-card:hover { transform: translateY(-4px); border-color: rgba(248, 199, 90, 0.36); }
.poster { position: relative; aspect-ratio: 2 / 3; }
.poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.00) 30%, rgba(8, 12, 22, 0.90));
}
.poster-badges {
  position: absolute;
  inset: 10px 10px auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #f8fbff;
  font-size: 11px;
  backdrop-filter: blur(10px);
}
.card-body { padding: 13px 13px 14px; }
.card-body h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.38; }
.card-body p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.hero-side { display: grid; gap: 14px; }
.hero-mini-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  transition: .2s ease;
}
.hero-mini-card:hover { transform: translateY(-2px); border-color: rgba(248, 199, 90, 0.32); }
.hero-mini-poster { border-radius: 16px; min-height: 130px; background-size: cover; background-position: center; }
.hero-mini-body { padding: 6px 4px 8px 0; min-width: 0; }
.hero-mini-body h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.28; }
.hero-mini-body p { margin: 0 0 10px; font-size: 12px; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.panel { padding: 18px; background: linear-gradient(180deg, rgba(17, 23, 39, 0.92), rgba(11, 15, 26, 0.88)); box-shadow: var(--shadow); }
.filterbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.filterbar input {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.76);
  color: var(--text);
}
.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.page-links a { min-height: 36px; padding: 0 12px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.detail-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items: start;
}
.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(17, 23, 39, 0.92), rgba(11, 15, 26, 0.88));
}
.detail-poster .poster { aspect-ratio: 2 / 3; }
.detail-info h1 { margin: 0 0 10px; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.06; }
.detail-info p { margin: 0 0 14px; color: var(--muted); }
.info-list { display: grid; gap: 10px; margin-top: 18px; }
.info-row { display: flex; gap: 10px; align-items: flex-start; }
.info-row strong { min-width: 70px; color: #dce6ff; }
.info-row span { color: var(--muted); }
.player-box { margin-top: 18px; }
.player-shell { position: relative; }
.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
}
.player-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.player-status { margin-top: 10px; color: var(--muted); font-size: 13px; }
.overview-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.rank-list { display: grid; gap: 12px; }
.rank-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,.06);
}
.rank-num {
  width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-weight: 900;
  background: linear-gradient(135deg, rgba(248,199,90,.95), rgba(123,97,255,.85)); color:#10131b;
}
.rank-item h3 { margin: 0 0 6px; font-size: 16px; }
.rank-item p { margin: 0; color: var(--muted); font-size: 12px; }
.rank-item .btn { min-height: 40px; }
.footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.footer-inner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.section-note { color: var(--muted); font-size: 14px; }
.back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
}
.back-top.show { display: inline-flex; }
@media (max-width: 1080px) {
  .hero-shell, .layout, .detail-hero { grid-template-columns: 1fr; }
  .carousel { min-height: 460px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 20px, 1320px); }
  .nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .hero { padding-top: 16px; }
  .hero-copy { padding: 22px; border-radius: 24px; }
  .hero-mini-card { grid-template-columns: 84px 1fr; }
  .movie-grid, .overview-grid { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }
  .panel { padding: 14px; border-radius: 20px; }
  .section-head { align-items: start; flex-direction: column; }
  .rank-item { grid-template-columns: 42px 1fr; }
  .rank-item .btn { grid-column: 1 / -1; justify-self: start; }
}
