[hidden] { display: none !important; }
:root{
  --bg: #0b0e14;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --stroke: rgba(255,255,255,.12);
}

body { background: var(--bg); color: var(--text); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.hero{
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--stroke);
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(80,120,255,.18), transparent 65%),
    radial-gradient(900px 500px at 90% 10%, rgba(255,80,200,.14), transparent 55%);
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
}

.hero h1{ font-size: 40px; line-height: 1.05; margin: 6px 0 10px; }
.hero p{ color: var(--muted); margin: 0 0 14px; max-width: 60ch; }

.search{
  display: flex; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px;
}
.search input{
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  padding: 8px 10px;
}
.search button{
  border: 1px solid var(--stroke);
  background: var(--panel2);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}

.chips{ margin-top: 10px; display:flex; gap:10px; flex-wrap: wrap; }
.chip{
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}

.status{ margin-top: 10px; color: var(--muted); min-height: 18px; }

.hero-spotlight .spotlight-card{
  border-radius: 18px;
  border: 1px solid var(--stroke);
  overflow: hidden;
  background: var(--panel);
  height: 100%;
  min-height: 260px;
  position: relative;
}

.spotlight-skeleton{
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.10), rgba(255,255,255,.04));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}
@keyframes shimmer { 0%{background-position:0%} 100%{background-position:200%} }

.section{ padding: 18px 0 34px; }
.section-head{
  display:flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 14px 0 10px;
}
.section-head h2{ margin: 0; font-size: 18px; }
.more{ color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--stroke); }

.row{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1100px){ .grid{ grid-template-columns: repeat(4, 1fr);} }
@media (max-width: 700px){ .grid{ grid-template-columns: repeat(2, 1fr);} }

.card{
  scroll-snap-align: start;
  border: 1px solid var(--stroke);
  background: var(--panel);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,.22); }

.poster{
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,.04);
}

.card-body{ padding: 10px; }
.title{ font-size: 14px; line-height: 1.2; margin: 0 0 6px; }
.sub{ color: var(--muted); font-size: 12px; display:flex; gap:8px; flex-wrap:wrap; }

.hidden{ display:none !important; }

.pager{ display:flex; gap:10px; align-items:center; }
.pager button{
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.pager button:disabled{ opacity:.45; cursor:not-allowed; }

.modal{
  border: 1px solid var(--stroke);
  background: #0b0e14;
  color: var(--text);
  border-radius: 16px;
  max-width: 980px;
  width: min(980px, calc(100vw - 30px));
}
.modal::backdrop{ background: rgba(0,0,0,.65); }
.modal-close{
  position:absolute; top:10px; right:10px;
  border:1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 9px;
  cursor: pointer;
}
.modal-body{ padding: 18px; }
