:root {
  --bg: #07111f;
  --bg-2: #0b172a;
  --panel: rgba(10, 18, 34, 0.82);
  --panel-2: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e5eefc;
  --muted: #9fb2ce;
  --accent: #60a5fa;
  --accent-2: #8b5cf6;
  --good: #22c55e;
  --shadow: 0 24px 80px rgba(2, 6, 23, .45);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(96,165,250,.15), transparent 34%),
    radial-gradient(circle at top right, rgba(139,92,246,.14), transparent 28%),
    linear-gradient(180deg, #04101f 0%, #07111f 42%, #050b14 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(4, 10, 20, .68);
  border-bottom: 1px solid rgba(148,163,184,.12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  white-space: nowrap;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(96,165,250,.25);
}
.brand-text { font-size: 1.05rem; }
.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: .2s ease;
}
.nav a:hover, .nav a.active {
  color: #fff;
  background: rgba(96,165,250,.12);
  border-color: rgba(96,165,250,.2);
}
.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 320px;
}
.nav-search input,
.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(15, 23, 42, .72);
  color: var(--text);
  border-radius: 16px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s, transform .2s;
}
.nav-search input:focus,
.search-box input:focus,
.filter-bar input:focus {
  border-color: rgba(96,165,250,.55);
  box-shadow: 0 0 0 4px rgba(96,165,250,.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  font-weight: 700;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 16px 40px rgba(96,165,250,.18);
}
.btn-ghost {
  border-color: rgba(148,163,184,.18);
  background: rgba(15,23,42,.6);
}

.hero {
  padding: 30px 0 18px;
}
.hero-shell {
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(12,18,34,.96), rgba(5,10,18,.98));
}
.hero-top {
  display: grid;
  grid-template-columns: 1.2fr .95fr;
  gap: 18px;
  padding: 22px;
}
.hero-copy {
  padding: 14px 8px 14px 6px;
}
.hero-copy .eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(96,165,250,.18);
  margin-bottom: 16px;
  font-weight: 700;
}
.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
.hero-copy h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.hero-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.8;
}
.hero-meta,
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-meta span,
.hero-tags span,
.tag {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.16);
  color: #dbeafe;
  background: rgba(15,23,42,.55);
  font-size: .92rem;
}
.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-panel {
  display: grid;
  gap: 14px;
}
.hero-poster {
  min-height: 320px;
  border-radius: 28px;
  padding: 18px;
  background: var(--poster);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.hero-poster::before,
.poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.36));
}
.hero-poster::after,
.poster::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  filter: blur(4px);
}
.hero-poster > *, .poster > * { position: relative; z-index: 1; }
.hero-poster-chip,
.poster-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(2,6,23,.35);
  border: 1px solid rgba(255,255,255,.18);
  font-size: .88rem;
}
.hero-poster-title,
.poster-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 8px 18px rgba(0,0,0,.36);
}
.hero-poster-sub,
.poster-meta {
  color: rgba(255,255,255,.82);
  font-size: .95rem;
}
.hero-side-list {
  border-radius: 24px;
  padding: 18px;
  background: rgba(15,23,42,.78);
  border: 1px solid rgba(148,163,184,.14);
}
.hero-side-title {
  font-weight: 800;
  margin-bottom: 10px;
}
.hero-side-desc { color: var(--muted); line-height: 1.7; }
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(148,163,184,.12);
}
.hero-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transform: translateX(0);
  transition: transform .5s ease;
}
.hero-slide {
  min-height: 280px;
  padding: 26px;
  position: relative;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,6,23,.76), rgba(2,6,23,.32) 50%, rgba(2,6,23,.65));
}
.hero-slide-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 18px;
}
.hero-slide .hero-copy p { color: rgba(255,255,255,.82); }
.hero-slide .hero-copy .eyebrow { background: rgba(255,255,255,.1); color: #fff; }
.hero-slide .hero-actions .btn-ghost {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 18px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.3);
  cursor: pointer;
}
.hero-dots button.active { width: 28px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.section {
  padding: 22px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head h2,
.section-head h1 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 2rem);
}
.section-head p { margin: 8px 0 0; color: var(--muted); }
.section-link { color: #bfdbfe; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

.movie-card,
.feature-card,
.rank-card,
.category-card,
.detail-panel,
.search-panel,
.info-card {
  border: 1px solid rgba(148,163,184,.14);
  background: var(--panel);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: 0 12px 44px rgba(2,6,23,.2);
}
.movie-link { display: block; height: 100%; }
.movie-card { overflow: hidden; }
.movie-card.small .poster { min-height: 200px; }
.poster {
  min-height: 260px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  background: var(--poster);
}
.poster-glow {
  position: absolute;
  inset: auto -20px -20px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  filter: blur(6px);
}
.poster-title { font-size: 1.18rem; margin-top: 10px; }
.movie-body { padding: 16px; }
.movie-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.movie-head h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.score {
  color: #bfdbfe;
  background: rgba(96,165,250,.12);
  border: 1px solid rgba(96,165,250,.18);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.movie-meta,
.movie-desc,
.info-grid dt,
.info-grid dd,
.rank-meta,
.detail-synopsis,
.detail-review {
  color: var(--muted);
}
.movie-meta { margin: 9px 0 8px; font-size: .92rem; }
.movie-desc { margin: 0; line-height: 1.7; min-height: 3.4em; }
.movie-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .82rem; }

.category-card { padding: 18px; }
.category-card h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.category-card p { color: var(--muted); line-height: 1.7; margin: 0; }
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(96,165,250,.12);
  border: 1px solid rgba(96,165,250,.18);
  color: #dbeafe;
}

.rank-card { padding: 14px; display: flex; gap: 14px; align-items: center; }
.rank-no {
  width: 48px; height: 48px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
}
.rank-content h3 { margin: 0 0 6px; font-size: 1rem; }
.rank-content p { margin: 0; color: var(--muted); line-height: 1.6; }
.rank-meta { font-size: .92rem; margin-top: 6px; }

.search-panel { padding: 18px; }
.search-box { display: grid; gap: 12px; grid-template-columns: 1fr auto; }
.search-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.filter-chip {
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(15,23,42,.72);
  color: #dbeafe;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.filter-chip.active { background: rgba(96,165,250,.15); border-color: rgba(96,165,250,.3); }

.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}
.detail-panel { padding: 18px; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted);
  margin-bottom: 14px;
  font-size: .92rem;
}
.breadcrumbs a { color: #bfdbfe; }
.detail-title { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.1; }
.detail-sub { margin: 10px 0 0; color: var(--muted); line-height: 1.8; }
.player-shell {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.16);
  background: #000;
}
.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.player-actions {
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(15,23,42,.8);
  border-top: 1px solid rgba(148,163,184,.14);
}
.play-line {
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(2,6,23,.36);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.play-line.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.info-grid dl {
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15,23,42,.68);
  border: 1px solid rgba(148,163,184,.12);
}
.info-grid dt { margin-bottom: 6px; font-weight: 700; color: #bfdbfe; }
.info-grid dd { margin: 0; line-height: 1.7; }
.text-block {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(148,163,184,.12);
}
.text-block h3 { margin: 0 0 10px; }
.text-block p { margin: 0; line-height: 1.85; color: #dbeafe; }
.footer {
  margin-top: 26px;
  border-top: 1px solid rgba(148,163,184,.12);
  background: rgba(2,6,23,.5);
}
.footer .container {
  padding: 22px 0 30px;
  color: var(--muted);
  line-height: 1.8;
}
.footer a { color: #bfdbfe; }

@media (max-width: 1100px) {
  .hero-top, .hero-slide-inner, .detail-layout, .grid-5 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .container { width: min(100% - 20px, 1400px); }
  .nav-wrap { flex-wrap: wrap; }
  .nav-search { width: 100%; margin-left: 0; flex-basis: 100%; }
  .hero { padding-top: 18px; }
  .hero-slide { padding: 18px; min-height: 320px; }
  .hero-top { padding: 16px; }
  .grid-4, .grid-3, .grid-2, .info-grid { grid-template-columns: 1fr; }
  .movie-card .poster { min-height: 230px; }
  .search-box { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
}
