/* ==========================================================================
   Splivmax Server — Tema oscuro tipo plataforma de streaming
   ========================================================================== */
:root {
    --bg: #0b0d12;
    --bg-2: #11141b;
    --surface: #161a23;
    --surface-2: #1d222d;
    --border: #262c39;
    --text: #e6e8ee;
    --muted: #8b93a7;
    --primary: #e50914;
    --primary-2: #ff3b47;
    --success: #22c55e;
    --warning: #f5a524;
    --danger: #ef4444;
    --info: #3b82f6;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --sidebar: 240px;
    font-size: 15px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: #9ec1ff; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .6rem; line-height: 1.2; }
h3 { font-size: 1.02rem; font-weight: 600; }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 4px; font-size: .85em; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.block { display: block; }
.break { word-break: break-all; }
.truncate { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-danger { color: #fca5a5; }
.inline { display: inline; }
.hide-sm { }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .55rem 1rem; border-radius: 8px; border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
    color: var(--text); background: var(--surface-2); transition: .15s ease; white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-success { background: rgba(34, 197, 94, .15); color: #86efac; border-color: rgba(34, 197, 94, .35); }
.btn-danger { background: rgba(239, 68, 68, .12); color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
.btn-sm { padding: .3rem .65rem; font-size: .8rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.btn-row form { margin: 0; }
.icon-btn { background: none; border: 0; color: var(--text); font-size: 1.2rem; cursor: pointer; padding: .3rem .5rem; border-radius: 6px; }
.icon-btn:hover { background: var(--surface-2); }

/* ---------- Badges ---------- */
.badge {
    display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem;
    font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap;
}
.badge-success { background: rgba(34, 197, 94, .14); color: #86efac; border-color: rgba(34, 197, 94, .3); }
.badge-warning { background: rgba(245, 165, 36, .14); color: #fcd34d; border-color: rgba(245, 165, 36, .3); }
.badge-info { background: rgba(59, 130, 246, .14); color: #93c5fd; border-color: rgba(59, 130, 246, .3); }
.badge-danger { background: rgba(239, 68, 68, .14); color: #fca5a5; border-color: rgba(239, 68, 68, .3); }
.badge-muted { background: rgba(139, 147, 167, .12); color: #a3aabb; border-color: rgba(139, 147, 167, .25); }
.badge-neutral { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }

/* ---------- Formularios ---------- */
input, select, textarea {
    width: 100%; padding: .55rem .75rem; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg-2); color: var(--text); font: inherit; font-size: .9rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(229, 9, 20, .45); border-color: var(--primary); }
input[type=checkbox] { width: auto; accent-color: var(--primary); }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); }
label.check { flex-direction: row; align-items: flex-start; gap: .6rem; color: var(--text); }
label.check input { margin-top: .25rem; }
.declaration { background: rgba(245, 165, 36, .08); border: 1px solid rgba(245, 165, 36, .3); padding: .8rem; border-radius: 8px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: 0; display: grid; gap: .8rem; }
legend { padding: 0 .4rem; font-weight: 600; color: var(--text); }
.form-grid { display: grid; gap: 1rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.inline-form input, .inline-form select { flex: 1 1 160px; width: auto; }
.inline-label { flex-direction: row; align-items: center; gap: .4rem; }
.inline-label input { width: auto; }

/* ---------- Alertas y toasts ---------- */
.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; font-size: .9rem; }
.alert-success { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); color: #bbf7d0; }
.alert-error { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: #fecaca; }
.alert-warning { background: rgba(245, 165, 36, .1); border-color: rgba(245, 165, 36, .35); color: #fde68a; }
.alert-info { background: rgba(59, 130, 246, .08); border-color: rgba(59, 130, 246, .3); color: #bfdbfe; }

.toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 200; max-width: min(420px, calc(100vw - 2rem)); }
.toast { padding: .8rem 1rem; border-radius: 10px; background: var(--surface-2); border-left: 4px solid var(--info); box-shadow: var(--shadow); animation: slideIn .25s ease; font-size: .9rem; }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast.hide { opacity: 0; transform: translateY(10px); transition: .3s; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Layout admin ---------- */
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--bg-2);
    border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 1rem .75rem; z-index: 100;
    transition: transform .25s ease;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; font-size: 1.15rem; padding: .4rem .5rem 1.2rem; text-decoration: none !important; }
.brand small { display: block; font-size: .65rem; color: var(--muted); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), #8b0000); color: #fff; font-weight: 900; }
.brand-center { justify-content: center; }
.sidebar nav { display: grid; gap: .15rem; }
.sidebar nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 8px; color: var(--muted); font-weight: 500; text-decoration: none; }
.sidebar nav a svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.sidebar nav a:hover { background: var(--surface); color: var(--text); }
.sidebar nav a.active { background: rgba(229, 9, 20, .12); color: #fff; box-shadow: inset 3px 0 0 var(--primary); }
.sidebar-foot { margin-top: auto; font-size: .8rem; color: var(--muted); padding: .5rem .75rem; }
.sidebar-backdrop { display: none; }

.main { margin-left: var(--sidebar); min-height: 100vh; }
.topbar {
    position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1rem;
    padding: .8rem 1.5rem; background: rgba(11, 13, 18, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 1.2rem; margin: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user { display: flex; align-items: center; gap: .6rem; }
.topbar-user form { margin: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; }
.menu-toggle { display: none; }
.content { padding: 1.5rem; display: grid; gap: 1.25rem; max-width: 1500px; }

/* ---------- Tarjetas ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.card-head h3 { margin: 0; }
.table-card { padding: 0; overflow: hidden; }
.table-card > h3, .table-card > .card-head { padding: 1rem 1.2rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.grid-2.gap { gap: 1.25rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.stat-grid.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.stat-card {
    background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; color: var(--text); text-decoration: none !important;
    transition: transform .15s ease, border-color .15s ease;
}
.stat-card:hover { transform: translateY(-2px); border-color: #3a4256; }
.stat-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat-value { font-size: 1.7rem; font-weight: 800; }
.stat-value small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.tone-success { border-top: 3px solid var(--success); }
.tone-warning { border-top: 3px solid var(--warning); }
.tone-danger { border-top: 3px solid var(--danger); }
.tone-info { border-top: 3px solid var(--info); }

.chart { width: 100%; display: block; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.list-row:last-child { border-bottom: 0; }
.list-row.stacked { flex-direction: column; align-items: flex-start; gap: .15rem; }

/* ---------- Tablas ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .8rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg-2); white-space: nowrap; }
.table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table tr:last-child td { border-bottom: 0; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { display: inline; }
.with-thumb { display: flex; align-items: center; gap: .6rem; }
.thumb { width: 34px; height: 50px; object-fit: cover; border-radius: 4px; background: var(--surface-2); }

/* ---------- Toolbar, filtros, tabs ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; flex: 1; }
.filters input[type=search] { flex: 1 1 220px; width: auto; }
.filters select { width: auto; min-width: 130px; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.bulk-bar select { width: auto; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tabs a, .tabs button { padding: .6rem 1rem; color: var(--muted); border: 0; background: none; font: inherit; cursor: pointer; border-bottom: 2px solid transparent; text-decoration: none; }
.tabs a.active, .tabs button.active { color: #fff; border-bottom-color: var(--primary); }
.tabs .count { font-size: .7rem; background: var(--surface-2); padding: .05rem .4rem; border-radius: 999px; margin-left: .2rem; }

.pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; }
.pagination div { display: flex; gap: .3rem; flex-wrap: wrap; }

.dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: .45rem 1rem; margin: 0 0 1rem; font-size: .88rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; min-width: 0; }
details summary { cursor: pointer; color: var(--muted); margin: .4rem 0; }
pre.code, pre.letter { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: .8rem; overflow-x: auto; font-size: .8rem; white-space: pre-wrap; word-break: break-all; }
pre.letter { white-space: pre-wrap; word-break: normal; font-family: inherit; font-size: .85rem; }
.request { border-top: 1px solid var(--border); padding-top: .8rem; margin-top: .8rem; }
.request:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }

.empty-state { text-align: center; padding: 3rem 1rem; }

/* ---------- Ficha admin ---------- */
.content-hero {
    display: flex; gap: 1.5rem; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(11, 13, 18, .97) 30%, rgba(11, 13, 18, .75)), var(--backdrop, none) center/cover, var(--surface);
}
.content-hero .poster { width: 160px; height: 240px; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); flex: none; }
.content-hero .meta { color: var(--muted); }
.availability { display: inline-block; margin-top: .6rem; padding: .55rem .9rem; border-radius: 8px; font-weight: 600; font-size: .9rem; }
.availability.ok { background: rgba(34, 197, 94, .12); color: #86efac; }
.availability.blocked { background: rgba(245, 165, 36, .12); color: #fcd34d; border: 1px solid rgba(245, 165, 36, .3); }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .6rem; }
.mini-poster { display: flex; flex-direction: column; gap: .25rem; color: var(--text); font-size: .75rem; text-decoration: none !important; }
.mini-poster img, .mini-poster span { aspect-ratio: 2/3; width: 100%; object-fit: cover; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; }
.mini-poster small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.season summary { font-weight: 600; color: var(--text); }
.episodes { margin: .3rem 0 1rem; padding-left: 0; list-style: none; display: grid; gap: .3rem; }
.episodes li { padding: .4rem .6rem; background: var(--bg-2); border-radius: 6px; font-size: .88rem; }
.ep-num { color: var(--primary-2); font-weight: 700; margin-right: .4rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); display: grid; place-items: center; z-index: 150; padding: 1rem; backdrop-filter: blur(3px); }
.modal-dialog { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); width: min(640px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow); animation: slideIn .2s ease; }
.modal-dialog header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.modal-dialog header h3 { margin: 0; }
.modal-body { padding: 1.2rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.check-list li::before { content: "✔"; color: var(--success); margin-right: .5rem; }
.check-list li.fail::before { content: "✖"; color: var(--danger); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 1rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Login / instalador ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(circle at 20% 0%, rgba(229, 9, 20, .18), transparent 45%), var(--bg); }
.auth-card, .install-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; width: min(420px, 100%); display: grid; gap: 1rem; box-shadow: var(--shadow); }
.install-card { width: min(760px, 100%); }
.auth-card h2 { text-align: center; font-size: 1.1rem; color: var(--muted); font-weight: 500; }
.req-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .3rem; font-size: .85rem; }
.req-list li::before { margin-right: .4rem; }
.req-list .ok::before { content: "✔"; color: var(--success); }
.req-list .bad::before { content: "✖"; color: var(--danger); }
.req-list .warn::before { content: "•"; color: var(--warning); }

/* ---------- Catálogo público ---------- */
.public-nav {
    position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.5rem; padding: .8rem 4vw;
    background: linear-gradient(180deg, rgba(11, 13, 18, .98), rgba(11, 13, 18, .85)); backdrop-filter: blur(10px);
}
.public-nav .brand { padding: 0; }
.public-nav nav { display: flex; gap: 1.2rem; }
.public-nav nav a { color: var(--muted); font-weight: 500; }
.public-nav nav a:hover { color: #fff; text-decoration: none; }
.nav-search { margin-left: auto; width: min(280px, 40vw); }
.hero-search { padding: 2.5rem 4vw 1.5rem; background: radial-gradient(ellipse at top left, rgba(229, 9, 20, .22), transparent 55%); }
.hero-search h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.2rem; padding: 1rem 4vw 2rem; }
.poster-card { color: var(--text); text-decoration: none !important; display: flex; flex-direction: column; gap: .5rem; }
.poster-img { position: relative; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.poster-img img { width: 100%; height: 100%; object-fit: cover; }
.poster-card:hover .poster-img { transform: scale(1.04); box-shadow: 0 14px 30px rgba(0, 0, 0, .55); }
.poster-fallback { display: grid; place-items: center; height: 100%; font-size: 3rem; font-weight: 900; color: var(--muted); }
.poster-badge { position: absolute; top: .5rem; left: .5rem; font-size: .68rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; backdrop-filter: blur(4px); }
.poster-badge.ok { background: rgba(34, 197, 94, .85); color: #04210f; }
.poster-badge.pending { background: rgba(0, 0, 0, .65); color: #fcd34d; }
.poster-info strong { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-info small { color: var(--muted); }
main > .pagination { padding: 0 4vw 2rem; }

.detail-hero {
    position: relative; min-height: 70vh; display: flex; align-items: flex-end;
    background: linear-gradient(0deg, #0b0d12 2%, rgba(11, 13, 18, .55) 55%, rgba(11, 13, 18, .85)), var(--backdrop, linear-gradient(#11141b, #0b0d12)) center/cover no-repeat;
}
.detail-inner { display: flex; gap: 2rem; padding: 3rem 4vw; align-items: flex-end; width: 100%; }
.detail-inner .poster { width: 220px; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); flex: none; }
.detail-text h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 900; }
.detail-text .meta { color: #c7cbd6; font-weight: 500; }
.synopsis { max-width: 720px; color: #d5d8e0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; align-items: center; }
.player-wrap { padding: 1rem 4vw 2rem; }
.player-wrap video, .player-wrap iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #000; display: block; }
.seasons-public { padding: 1rem 4vw 3rem; }
.episode-list { display: grid; gap: .8rem; margin-top: 1rem; }
.episode-card { display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .6rem; }
.ep-thumb { position: relative; width: 160px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--surface-2); flex: none; display: grid; place-items: center; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ep-thumb span { position: relative; font-weight: 800; color: #fff; text-shadow: 0 1px 4px #000; }
.public-footer { padding: 2rem 4vw; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--border); }
.public-empty { min-height: 50vh; display: grid; place-content: center; gap: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow); }
    body.sidebar-open .sidebar { transform: none; }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 90; }
    .main { margin-left: 0; }
    .menu-toggle { display: inline-block; }
    .content { padding: 1rem; }
    .hide-sm { display: none; }
    .content-hero { flex-direction: column; }
    .content-hero .poster { width: 120px; height: 180px; }
    .public-nav nav { display: none; }
    .detail-inner { flex-direction: column; align-items: flex-start; }
    .detail-inner .poster { width: 140px; }
}
@media (max-width: 640px) {
    .table.responsive thead { display: none; }
    .table.responsive tr { display: block; border-bottom: 1px solid var(--border); padding: .5rem 0; }
    .table.responsive td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .35rem 1rem; text-align: right; }
    .table.responsive td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .75rem; text-align: left; flex: none; }
    .table.responsive td.with-thumb { justify-content: flex-start; text-align: left; }
    .table.responsive .actions { justify-content: flex-end; }
    .truncate { max-width: 180px; }
    .stat-value { font-size: 1.35rem; }
    .poster-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .8rem; }
    .ep-thumb { width: 110px; }
    .req-list { grid-template-columns: 1fr; }
    .filters select { flex: 1 1 45%; }
    .dl { grid-template-columns: 1fr; gap: .1rem; }
    .dl dd { margin-bottom: .5rem; }
}
