:root {
  --bg: #07131f;
  --panel: rgba(10, 22, 36, 0.92);
  --panel-soft: rgba(15, 30, 48, 0.9);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2f7ff;
  --muted: #b6c6da;
  --accent: #01b4e4;
  --good: #7ee7b4;
  --warn: #ffd37d;
  --danger: #ff9fb0;
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  background: radial-gradient(circle at top left, rgba(1, 180, 228, 0.15), transparent 24%), linear-gradient(180deg, #06111c 0%, #07131f 100%);
}
button, input, select { font: inherit; }
.page-shell { width: min(1280px, calc(100% - 28px)); margin: 0 auto; padding: 20px 0 48px; }
.site-header { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 18px; }
.eyebrow { margin: 0 0 8px; color: #7fe2ff; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; }
.brand-block h1, .section-header h2, .hero-copy h2, .mini-panel h3, .list-card h3 { margin: 0; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar input, .toolbar select, .watch-filter, .panel, .hero-surface, .rail-card, .mini-panel, .stat-chip {
  border: 1px solid var(--line); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}
.toolbar input, .toolbar select, .watch-filter {
  height: 46px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--text);
}
.toolbar input { width: min(340px, 70vw); padding: 0 16px; }
.toolbar select { min-width: 150px; padding: 0 16px; }
.watch-filter { display: inline-flex; align-items: center; gap: 10px; padding: 0 16px; }
.content-shell { display: grid; gap: 18px; }
.hero-surface {
  position: relative; overflow: hidden; border-radius: 28px; min-height: 520px; padding: 34px; display: flex; align-items: end;
  background: linear-gradient(90deg, rgba(6, 17, 28, 0.94) 0%, rgba(6, 17, 28, 0.72) 38%, rgba(6, 17, 28, 0.28) 100%), linear-gradient(135deg, var(--hero-start), var(--hero-end));
}
.hero-backdrop { position: absolute; inset: 0; background: radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.16), transparent 16%); opacity: .8; }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; width: 100%; align-items: end; }
.poster-card {
  aspect-ratio: 2 / 3; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 40%), linear-gradient(160deg, var(--hero-start), var(--hero-end));
  padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
}
.poster-type, .pill, .result-count {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 12px; font-size: 0.83rem;
  border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(7, 19, 31, 0.3);
}
.poster-title { font-size: 1.5rem; font-weight: 800; line-height: 1.08; }
.hero-copy h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.02; margin-bottom: 8px; }
.subtitle, .summary, .meta-row, .mini-panel p, .empty-state { color: var(--muted); }
.subtitle { font-size: 1.02rem; margin-bottom: 16px; }
.hero-pills, .stat-row, .collection-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill.good { color: var(--good); }
.pill.warn { color: var(--warn); }
.pill.danger { color: var(--danger); }
.summary { max-width: 64ch; line-height: 1.65; margin: 18px 0 20px; }
.stat-chip { padding: 14px 16px; border-radius: 18px; background: rgba(5, 15, 26, 0.52); min-width: 120px; }
.stat-chip strong { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.panel, .mini-panel { border-radius: 24px; padding: 24px; background: var(--panel); }
.section-header { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 16px; }
.card-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.rail-card { border-radius: 22px; overflow: hidden; background: var(--panel-soft); color: inherit; text-align: left; padding: 0; cursor: pointer; }
.rail-card.is-active { outline: 2px solid rgba(1, 180, 228, 0.55); }
.rail-card-poster { height: 240px; padding: 16px; display: flex; align-items: end; background: linear-gradient(160deg, var(--card-start), var(--card-end)); }
.rail-card-title { font-size: 1.1rem; font-weight: 800; line-height: 1.1; }
.rail-card-body { padding: 14px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 0.92rem; margin: 8px 0 10px; }
.detail-sections { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; }
.detail-column { display: grid; gap: 18px; }
.list-card { padding: 14px 0; border-top: 1px solid var(--line); }
.list-card:first-child { border-top: 0; padding-top: 0; }
.empty-state { padding: 32px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 22px; }
@media (max-width: 980px) {
  .site-header, .hero-content, .detail-sections { grid-template-columns: 1fr; display: grid; }
  .hero-surface { min-height: 0; }
  .poster-card { max-width: 260px; }
}
