:root {
  --bg: #0b1020;
  --panel: rgba(18, 26, 51, 0.72);
  --text: #e8ecff;
  --muted: #a8b2d8;
  --line: rgba(37, 48, 87, 0.88);
  --good: #3ddc97;
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 20% -10%, #1b2a66, transparent),
    radial-gradient(900px 400px at 80% 0%, #35215c, transparent),
    var(--bg);
  color: var(--text);
}
button, input, select { font: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
  background: rgba(11, 16, 32, 0.76);
  border-bottom: 1px solid rgba(37, 48, 87, 0.7);
}
.brand { font-size: 14px; font-weight: 700; letter-spacing: 0.3px; color: var(--muted); }
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.filter-panel { display: grid; gap: 10px; }
.filter-grid { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.field { display: grid; gap: 8px; }
.field-grow { flex: 1; min-width: 280px; }
.field span, .muted { color: var(--muted); }
.small { font-size: 12px; }
.field input, .field select {
  min-height: 42px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(15, 23, 48, 0.6); color: var(--text); outline: 0;
}
.check-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; min-height: 42px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(15, 23, 48, 0.6); user-select: none;
}
.result-line strong { color: var(--text); }
.content-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin-top: 14px;
}
.content-card {
  width: 100%; padding: 0; overflow: hidden; text-align: left; color: inherit; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(18, 26, 51, 0.68);
}
.content-card.is-active { border-color: rgba(122, 162, 255, 0.72); box-shadow: 0 0 0 1px rgba(122, 162, 255, 0.3); }
.cover-block {
  height: 240px; display: flex; align-items: flex-end; padding: 12px;
  border-bottom: 1px solid rgba(37, 48, 87, 0.8);
  background: linear-gradient(135deg, var(--card-start), var(--card-end));
}
.type-pill, .status-pill {
  display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px;
  background: rgba(11, 16, 32, 0.66); border: 1px solid rgba(232, 236, 255, 0.18); font-size: 12px;
}
.card-body { display: grid; gap: 6px; padding: 12px; }
.card-title { font-size: 16px; font-weight: 800; }
.meta-line { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.status-pill { width: fit-content; color: var(--muted); }
.status-pill.good { color: var(--good); }
.detail-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 14px; margin-top: 14px; }
.poster-panel { padding: 0; overflow: hidden; }
.poster-hero {
  height: 360px; display: flex; align-items: flex-end; padding: 12px;
  border-bottom: 1px solid rgba(37, 48, 87, 0.8); background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
}
.poster-panel .meta-box { padding: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.detail-stack { display: grid; gap: 14px; }
.detail-title { font-size: 24px; font-weight: 900; }
.detail-subtitle { margin-top: 6px; color: var(--muted); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.section-title { font-weight: 900; margin-bottom: 8px; }
.item-list { display: grid; gap: 10px; }
.list-item {
  padding: 10px; border-radius: 12px; border: 1px solid rgba(37, 48, 87, 0.7);
  background: rgba(11, 16, 32, 0.35);
}
.list-item-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.list-item-title { font-weight: 800; }
.empty-state { margin-top: 14px; padding: 24px; text-align: center; }
@media (max-width: 860px) {
  .detail-wrap, .facts-grid { grid-template-columns: 1fr; }
}
