/* AISlopMediaBox design system. Dark by default, loud on purpose. */
:root {
  --font: "Inter", "SF Pro Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --bg: #09080d; --bg-soft: #0f0d16; --surface: #15121f; --surface-2: #1c1829; --surface-3: #251f36;
  --fg: #f4f1ff; --muted: #9f97b8; --faint: #6e6884;
  --border: rgba(255, 255, 255, 0.09); --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #c8ff3d; --accent-ink: #12160a; --accent-2: #ff4d9d; --accent-3: #7b5cff;
  --success: #5ce1a4; --warning: #ffcc5c; --error: #ff6b6b;
  --c1: #c8ff3d; --c2: #ff4d9d; --c3: #7b5cff; --c4: #37d5ff; --c5: #ffcc5c; --c6: #5ce1a4;
  --radius: 16px; --radius-lg: 24px; --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --sidebar-w: 236px; --topbar-h: 68px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent);
}
:root[data-theme="light"] {
  --bg: #f5f2ec; --bg-soft: #eee9df; --surface: #ffffff; --surface-2: #f7f4ee; --surface-3: #ece6da;
  --fg: #17141d; --muted: #64606f; --faint: #918b9c;
  --border: rgba(20, 15, 30, 0.12); --border-strong: rgba(20, 15, 30, 0.24);
  --accent: #7b2fbe; --accent-ink: #ffffff; --accent-2: #d81b6a; --accent-3: #4f46e5;
  --shadow: 0 18px 50px rgba(60, 40, 20, 0.16);
}
:root[data-theme="midnight"] {
  --bg: #020409; --bg-soft: #050a12; --surface: #08111c; --surface-2: #0c1725; --surface-3: #122235;
  --fg: #e9f4ff; --muted: #8aa0b8; --faint: #5c7086;
  --accent: #37d5ff; --accent-ink: #001018; --accent-2: #ff7ad9; --accent-3: #6f8cff;
}
:root[data-theme="goblin"] {
  --bg: #071006; --bg-soft: #0a1609; --surface: #0f1d0d; --surface-2: #142614; --surface-3: #1c331b;
  --fg: #eaffd9; --muted: #92b184; --faint: #648157;
  --accent: #9dff2e; --accent-ink: #071006; --accent-2: #ff8a3d; --accent-3: #66e2c9;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--accent-3) 14%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--accent-2) 8%, transparent), transparent 60%), var(--bg);
  color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.45;
  min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.05rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

.boot-screen { position: fixed; inset: 0; display: grid; place-content: center; gap: 14px; text-align: center; background: var(--bg); z-index: 500; }
.boot-mark { font-size: 72px; color: var(--accent); animation: pulse 1.2s infinite ease-in-out; text-shadow: 0 0 50px var(--accent); }
.boot-text { color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.88); opacity: 0.6; } }

.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.main-col { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
#view { flex: 1; padding: 26px 34px 60px; max-width: 1680px; width: 100%; margin: 0 auto; outline: none; }

.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 14px 18px; display: flex; flex-direction: column; gap: 22px; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--bg-soft) 86%, transparent); backdrop-filter: blur(20px); z-index: 50; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px; }
.brand-mark { color: var(--accent); font-size: 30px; line-height: 1; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 60%, transparent)); }
.brand-mark.small { font-size: 22px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 15px; letter-spacing: -0.02em; }
.brand-copy small { color: var(--accent); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 3px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-weight: 550; font-size: 14px; transition: background 0.15s, color 0.15s; }
.nav-link .nav-icon { width: 20px; text-align: center; font-size: 16px; opacity: 0.9; }
.nav-link:hover { background: var(--surface); color: var(--fg); }
.nav-link.active { background: color-mix(in srgb, var(--accent) 13%, var(--surface)); color: var(--fg); }
.nav-link.active .nav-icon { color: var(--accent); }
.nav-link .nav-badge { margin-left: auto; font-family: var(--mono); font-size: 10px; background: var(--accent-2); color: #fff; padding: 2px 7px; border-radius: 99px; font-weight: 700; }
.side-section { color: var(--faint); font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.16em; padding: 16px 12px 6px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.privacy-chip { font-size: 10.5px; color: var(--faint); font-family: var(--mono); padding: 0 12px; }
.profile-chip { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 12px; width: 100%; border: 1px solid var(--border); background: var(--surface); }
.profile-chip:hover { border-color: var(--border-strong); }
.avatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-content: center; font-weight: 800; font-size: 13px; color: #101; background: linear-gradient(135deg, var(--accent), hsl(var(--avatar-hue, 280) 90% 65%)); flex: 0 0 auto; }
.profile-name { font-size: 13px; font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { margin-left: auto; color: var(--faint); }

.topbar { height: var(--topbar-h); display: flex; align-items: center; gap: 18px; padding: 0 34px; position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(22px); border-bottom: 1px solid var(--border); }
.topbar-brand { display: none; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.search-box { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 0 12px; height: 40px; transition: border-color 0.15s; }
.search-box:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.search-icon { color: var(--faint); font-size: 18px; }
.search-box input { flex: 1; background: none; border: 0; outline: none; font-size: 13.5px; min-width: 0; }
.search-box input::placeholder { color: var(--faint); }
.search-box kbd { font-family: var(--mono); font-size: 10px; color: var(--faint); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.topbar-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-content: center; color: var(--muted); font-size: 16px; border: 1px solid transparent; }
.icon-btn:hover { background: var(--surface); color: var(--fg); border-color: var(--border); }
.menu-toggle { display: none; }

.scan-banner { display: flex; align-items: center; gap: 10px; padding: 8px 34px; background: color-mix(in srgb, var(--accent) 10%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); font-size: 12.5px; color: var(--fg); }
.scan-banner .mini-link { margin-left: auto; }

.spinner { width: 16px; height: 16px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.view-loading { display: grid; place-items: center; min-height: 50vh; }
.view-loading .spinner { width: 30px; height: 30px; border-width: 3px; }

.app-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 18px 34px 22px; color: var(--faint); font-size: 11.5px; border-top: 1px solid var(--border); }
.mini-link { color: var(--accent); font-weight: 650; font-size: 12px; }
.mini-link:hover { text-decoration: underline; }

/* Shared UI components */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; padding: 10px 18px; font-size: 13.5px; font-weight: 680; background: var(--surface-2); border: 1px solid var(--border); color: var(--fg); transition: transform 0.12s, background 0.15s, border-color 0.15s; white-space: nowrap; }
.btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: color-mix(in srgb, var(--error) 16%, var(--surface)); color: var(--error); border-color: color-mix(in srgb, var(--error) 35%, transparent); }
.btn.small { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--fg); background: var(--surface); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ghost-btn { background: none; border: 0; color: inherit; }
.icon-round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-content: center; background: color-mix(in srgb, var(--bg) 50%, transparent); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); font-size: 15px; }
.icon-round:hover { background: var(--surface-3); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-family: var(--mono); }
.pill.accent { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.pill.hot { color: #fff; background: var(--accent-2); border-color: transparent; }
.pill.good { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.pill.warn { color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.pill.bad { color: var(--error); background: color-mix(in srgb, var(--error) 10%, transparent); border-color: color-mix(in srgb, var(--error) 30%, transparent); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card.pad-lg { padding: 24px; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; justify-content: space-between; }
.card-title h3 { font-size: 14px; font-weight: 700; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.small { font-size: 12px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.spacer { flex: 1; }
.grid { display: grid; gap: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.section { margin-bottom: 34px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-head h2 { font-size: 17px; letter-spacing: -0.02em; }
.section-head .count { color: var(--faint); font-family: var(--mono); font-size: 10.5px; }

.hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: clamp(320px, 42vw, 470px); display: flex; align-items: flex-end; isolation: isolate; background: var(--surface); border: 1px solid var(--border); margin-bottom: 34px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 30%; transform: scale(1.02); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 3, 8, 0.94) 0%, rgba(4, 3, 8, 0.6) 45%, rgba(4, 3, 8, 0.05) 80%), linear-gradient(0deg, rgba(4, 3, 8, 0.85) 0%, transparent 55%); }
.hero-inner { padding: clamp(22px, 4vw, 44px); max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.hero-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-title { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 850; letter-spacing: -0.04em; line-height: 0.98; color: #fff; text-wrap: balance; }
.hero-desc { color: rgba(255,255,255,0.78); font-size: 14px; max-width: 520px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hero-dots { position: absolute; right: 22px; bottom: 22px; display: flex; gap: 6px; z-index: 2; }
.hero-dot { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,0.3); transition: width 0.2s, background 0.2s; }
.hero-dot.active { width: 22px; background: var(--accent); }

/* Poster cards */
.rail-wrap { position: relative; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 10px; margin: -4px -4px 0; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.rail-btn { position: absolute; top: 50%; transform: translateY(-60%); width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-strong); display: grid; place-content: center; z-index: 5; opacity: 0; transition: opacity 0.15s; }
.rail-wrap:hover .rail-btn { opacity: 1; }
.rail-btn.left { left: -12px; }
.rail-btn.right { right: -12px; }
.rail-btn:hover { background: var(--accent); color: var(--accent-ink); }

.poster-card { width: 168px; display: flex; flex-direction: column; gap: 8px; }
.poster { position: relative; aspect-ratio: 2/3; border-radius: 13px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); box-shadow: 0 10px 28px rgba(0,0,0,0.25); transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-card:hover .poster, .poster-card:focus-visible .poster { transform: translateY(-4px) scale(1.015); border-color: var(--border-strong); box-shadow: var(--shadow); }
.poster-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.15s; font-size: 34px; color: #fff; }
.poster-card:hover .poster-play { opacity: 1; }
.poster-card .title { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.poster-card .meta { font-size: 10.5px; color: var(--faint); font-family: var(--mono); }
.poster-badges { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 4px; pointer-events: none; }
.progress-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,0.5); }
.progress-bar > i { display: block; height: 100%; background: var(--accent); }
.poster-card.landscape { width: 280px; }
.poster-card.landscape .poster { aspect-ratio: 16/9; }

.wide-card { width: 300px; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.wide-card .thumb { aspect-ratio: 16/9; background: var(--surface-2); position: relative; }
.wide-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.wide-card .body { padding: 10px 12px; }
.wide-card .title { font-size: 13px; font-weight: 650; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 550; transition: all 0.13s; }
.chip:hover { color: var(--fg); border-color: var(--border-strong); }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
.chip .x { opacity: 0.6; }

.empty-state { padding: 50px 24px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state .emoji { font-size: 42px; }
.empty-state h3 { color: var(--fg); }

.skeleton { background: linear-gradient(100deg, var(--surface) 20%, var(--surface-2) 40%, var(--surface) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 10px; min-height: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 40px)); }
.toast { background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; font-size: 13px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: flex-start; animation: toast-in 0.22s ease-out; }
.toast.success { border-color: color-mix(in srgb, var(--success) 45%, transparent); }
.toast.error { border-color: color-mix(in srgb, var(--error) 55%, transparent); }
.toast.fun { border-color: var(--accent); }
.toast .emoji { font-size: 17px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } }

.modal-backdrop { position: fixed; inset: 0; background: rgba(2, 2, 6, 0.72); backdrop-filter: blur(8px); z-index: 800; display: grid; place-items: center; padding: 20px; animation: fade-in 0.16s; }
.modal { width: min(560px, 100%); max-height: min(84vh, 800px); overflow: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); position: relative; }
.modal.wide { width: min(760px, 100%); }
.modal h2 { margin-bottom: 8px; }
.modal-close { position: absolute; right: 14px; top: 14px; }
@keyframes fade-in { from { opacity: 0; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 11.5px; font-weight: 650; color: var(--muted); letter-spacing: 0.02em; }
.input, .select, .textarea { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; outline: none; width: 100%; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.textarea { min-height: 100px; resize: vertical; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 6px 0; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.form-error { color: var(--error); font-size: 12.5px; margin: 6px 0; }
.help { color: var(--faint); font-size: 11.5px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data th { text-align: left; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft); position: sticky; top: 0; z-index: 1; }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab { padding: 10px 14px; color: var(--muted); font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); border-bottom-color: var(--accent); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat .label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.stat .value { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.stat .value.accent { color: var(--accent); }

.divider { height: 1px; background: var(--border); margin: 20px 0; }
.kv { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 18px; font-size: 12.5px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; color: var(--fg); word-break: break-word; }

.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; }
.tag-input input { border: 0; background: none; outline: none; padding: 4px 6px; flex: 1; min-width: 80px; font-size: 12.5px; }
.tag { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-3); border-radius: 6px; padding: 3px 7px; font-size: 11px; }

.bottom-nav { display: none; }

@media (max-width: 1100px) {
  :root { --sidebar-w: 76px; }
  .brand-copy, .nav-link span:not(.nav-icon), .side-section, .privacy-chip, .profile-name, .chev { display: none; }
  .brand { justify-content: center; padding: 2px; }
  .nav-link { justify-content: center; padding: 12px; }
  .nav-link .nav-badge { display: none; }
  .profile-chip { justify-content: center; }
  .sidebar { align-items: center; padding: 18px 10px; }
  .side-nav { width: 100%; }
}
@media (max-width: 820px) {
  .app { display: block; }
  .sidebar { display: none; }
  .topbar { padding: 0 16px; gap: 10px; height: 60px; }
  .menu-toggle { display: grid; }
  .topbar-brand { display: flex; }
  .topbar-actions #random-btn, .topbar-actions #tv-btn { display: none; }
  .search-box { max-width: none; }
  .search-box kbd { display: none; }
  .topbar-brand span:last-child { display: none; }
  #view { padding: 18px 16px 96px; }
  .app-footer { display: none; }
  .bottom-nav { display: flex; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 60; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(24px); border: 1px solid var(--border-strong); border-radius: 18px; padding: 7px; justify-content: space-around; box-shadow: var(--shadow); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border-radius: 12px; color: var(--faint); font-size: 9.5px; font-weight: 650; }
  .bottom-nav a .nav-icon { font-size: 17px; }
  .bottom-nav a.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
  .rail { gap: 12px; }
  .poster-card { width: 132px; }
  .hero { min-height: 360px; }
  .hero-title { font-size: 2rem; }
  .hero-desc { -webkit-line-clamp: 2; }
  .toasts { bottom: 90px; }
  .page-head { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
