:root {
  --bg: #08111f;
  --bg-soft: #0e1728;
  --bg-card: rgba(16, 24, 40, 0.82);
  --bg-card-2: rgba(11, 18, 31, 0.88);
  --border: rgba(255,255,255,.10);
  --text: #e8eefc;
  --muted: #93a4c3;
  --muted-2: #6f7f9f;
  --accent: #f5b942;
  --accent-2: #4fd1c5;
  --danger: #fb7185;
  --shadow: 0 18px 50px rgba(0,0,0,.36);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(79, 209, 197, 0.18), transparent 48%),
    radial-gradient(900px 500px at 80% 8%, rgba(245, 185, 66, 0.18), transparent 50%),
    linear-gradient(180deg, #09111d 0%, #050812 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}
.glass {
  background: linear-gradient(180deg, rgba(16, 24, 40, .86), rgba(11, 18, 31, .92));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(6, 11, 20, .76);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(245,185,66,.95), rgba(79,209,197,.92));
  color: #08111f; font-weight: 900;
  box-shadow: 0 10px 24px rgba(245,185,66,.24);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.02rem; }
.brand-text span { font-size: .78rem; color: var(--muted); font-weight: 500; }
.nav {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: .2s ease;
}
.nav a:hover, .nav a.active {
  color: #fff;
  background: rgba(255,255,255,.07);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 14px;
  width: 46px; height: 46px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 20px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 380px at 18% 14%, rgba(79,209,197,.25), transparent 56%),
    radial-gradient(700px 300px at 82% 10%, rgba(245,185,66,.24), transparent 54%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 22px;
  align-items: stretch;
}
.hero-copy, .hero-panel {
  border-radius: 30px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(16, 24, 40, .82), rgba(8, 14, 26, .92));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-copy::after, .hero-panel::after {
  content: '';
  position: absolute; inset: auto -20% -30% auto;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,185,66,.18), transparent 62%);
  pointer-events: none;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(245,185,66,.12); color: #ffd97c;
  border: 1px solid rgba(245,185,66,.25);
  font-size: .85rem; margin-bottom: 16px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero p.lead {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.02rem;
}
.hero-actions {
  margin-top: 22px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.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: .2s ease;
  background: rgba(255,255,255,.06); color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ffcf77);
  color: #111827;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(245,185,66,.22);
}
.btn-ghost { border-color: var(--border); }
.searchbox {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
}
.searchbox input, .searchbox select, .filter-bar input, .filter-bar select {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}
.searchbox input::placeholder, .filter-bar input::placeholder { color: #7a88a3; }
.searchbox input:focus, .searchbox select:focus, .filter-bar input:focus, .filter-bar select:focus {
  border-color: rgba(245,185,66,.45);
  box-shadow: 0 0 0 4px rgba(245,185,66,.10);
}
.hero-stats {
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.stat {
  padding: 14px 16px; border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.stat strong { display:block; font-size: 1.28rem; }
.stat span { color: var(--muted); font-size: .86rem; }
.hero-panel {
  display: grid; gap: 14px;
  align-content: start;
}
.panel-title {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-bottom: 2px;
}
.panel-title h2, .section-title h2 {
  margin: 0;
  font-size: 1.2rem;
}
.panel-title span, .section-title p { color: var(--muted); margin: 0; font-size: .92rem; }
.feature-list { display: grid; gap: 12px; }
.feature-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 14px;
  border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  transition: .2s ease;
}
.feature-item:hover { transform: translateY(-2px); border-color: rgba(245,185,66,.25); }
.poster {
  position: relative;
  min-height: 162px;
  display: grid;
  align-items: end;
  padding: 14px;
  background: linear-gradient(135deg, var(--c1, #243b55), var(--c2, #141e30));
}
.poster::after {
  content: attr(data-cover);
  position: absolute; top: 12px; right: 12px;
  padding: 5px 8px; border-radius: 999px;
  background: rgba(0,0,0,.30); color: #fff; font-size: .72rem;
  border: 1px solid rgba(255,255,255,.16);
}
.poster .play-chip {
  display: inline-flex; align-items: center; gap: 6px;
  width: fit-content; padding: 6px 10px; border-radius: 999px;
  background: rgba(0,0,0,.32); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15); font-size: .78rem;
}
.feature-content { padding: 14px 14px 14px 0; }
.feature-content h3 { margin: 0 0 8px; font-size: 1.05rem; }
.meta-row, .meta-list {
  display:flex; flex-wrap: wrap; gap: 8px;
}
.pill {
  display:inline-flex; align-items:center; gap:6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--muted); font-size: .78rem;
  border: 1px solid rgba(255,255,255,.08);
}
.section {
  padding: 12px 0 4px;
}
.section-head {
  display:flex; justify-content:space-between; gap:12px; align-items:end;
  margin: 18px 0 14px;
}
.grid {
  display:grid;
  gap: 16px;
}
.grid.cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.grid.categories { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.movie-card, .category-card, .rank-card, .panel-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(19, 29, 47, .88), rgba(8, 13, 24, .94));
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.movie-card { transition: .2s ease; }
.movie-card:hover { transform: translateY(-3px); border-color: rgba(245,185,66,.22); }
.movie-poster {
  min-height: 210px; padding: 16px;
  display:flex; flex-direction: column; justify-content:space-between;
  background: linear-gradient(135deg, var(--c1, #243b55), var(--c2, #141e30));
  position: relative;
}
.movie-poster .title-badge {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1rem; font-weight: 800; line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.movie-poster .poster-top { display:flex; justify-content:space-between; gap: 10px; align-items:start; }
.score {
  min-width: 56px; height: 56px; border-radius: 18px;
  display:grid; place-items:center;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 800;
}
.movie-body, .panel-pad { padding: 16px; }
.movie-body h3, .category-card h3, .rank-card h3 { margin: 0 0 8px; font-size: 1rem; }
.movie-body p, .category-card p, .rank-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.movie-actions { margin-top: 14px; display:flex; gap: 10px; flex-wrap: wrap; }
.movie-actions .btn { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.category-card { padding: 18px; }
.category-card .count { color: #ffd97c; font-weight: 800; font-size: 1.2rem; }
.rank-card { display:grid; grid-template-columns: 86px 1fr; }
.rank-no {
  display:grid; place-items:center;
  font-size: 1.35rem; font-weight: 900; color: #ffd97c;
  background: rgba(245,185,66,.10);
  border-right: 1px solid rgba(255,255,255,.06);
}
.filter-bar {
  display:grid; grid-template-columns: 1fr 160px 160px auto;
  gap: 12px; align-items:center;
  padding: 16px; border-radius: 22px; margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.breadcrumb {
  display:flex; flex-wrap: wrap; gap: 8px; align-items:center;
  color: var(--muted);
  margin: 12px 0 16px;
}
.breadcrumb a { color: #dbe7ff; }
.breadcrumb span { opacity: .6; }
.detail-wrap {
  display:grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
}
.poster-hero {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, var(--c1, #243b55), var(--c2, #141e30));
  box-shadow: var(--shadow);
  min-height: 500px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px;
}
.poster-hero h1 {
  margin: 0; font-size: 1.8rem; line-height: 1.1;
}
.poster-hero .hero-meta { display:flex; flex-wrap: wrap; gap: 8px; }
.detail-panel { border-radius: 28px; padding: 22px; }
.detail-title h2 { margin: 0; font-size: 1.6rem; }
.detail-title p { margin: 8px 0 0; color: var(--muted); }
.detail-grid { display:grid; gap: 14px; margin-top: 18px; }
.detail-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-box {
  padding: 16px; border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.detail-box h3 { margin: 0 0 10px; font-size: 1rem; }
.player-shell {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16,24,40,.9), rgba(8,12,21,.95));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.player-toolbar { display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap: wrap; margin-bottom: 12px; }
.player {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.player video {
  width: 100%; height: 100%; object-fit: contain; background: #000;
}
.player-overlay {
  position: absolute; inset: 0;
  display:grid; place-items:center;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.4));
  pointer-events: none;
}
.play-fab {
  pointer-events: auto;
  width: 88px; height: 88px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.14);
  color: #fff; display:grid; place-items:center;
  font-size: 2rem; backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.related-grid { display:grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.related-item {
  border-radius: 18px; overflow:hidden; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.related-item .poster { min-height: 140px; }
.pagination {
  margin-top: 18px;
  display:flex; flex-wrap: wrap; gap: 8px; justify-content:center;
}
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: 12px; display:grid; place-items:center;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04); color: var(--text);
}
.pagination a.active { background: rgba(245,185,66,.16); border-color: rgba(245,185,66,.35); }
.footer {
  margin-top: 28px;
  padding: 28px 0 40px;
  color: var(--muted);
}
.footer .footer-inner {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hidden { display: none !important; }
.section-gap { padding-top: 10px; }
.tag-cloud { display:flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
}
.no-results {
  padding: 28px; text-align:center; border-radius: 20px;
  border: 1px dashed rgba(255,255,255,.16);
  color: var(--muted);
}
@media (max-width: 1180px) {
  .grid.cards, .grid.categories, .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-wrap, .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { display: none; width: 100%; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; padding-bottom: 14px; }
  .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .searchbox, .filter-bar { grid-template-columns: 1fr; }
  .hero { padding-top: 18px; }
  .hero-copy, .hero-panel, .detail-panel { padding: 18px; border-radius: 24px; }
  .hero-stats { grid-template-columns: 1fr; }
  .grid.cards, .grid.categories, .related-grid, .detail-grid.two { grid-template-columns: 1fr 1fr; }
  .feature-item { grid-template-columns: 1fr; }
  .feature-content { padding: 0 14px 14px; }
}
@media (max-width: 520px) {
  .grid.cards, .grid.categories, .related-grid, .detail-grid.two { grid-template-columns: 1fr; }
  .poster-hero { min-height: 420px; }
}
