/* Cinemateca de Andy — sistema visual "Petróleo Nocturno" (MUBI / Criterion) + opción Claro. */
:root {
  --bg: #0b1414; --surface: #122120; --surface-2: #182b2a; --surface-3: #1f3635;
  --line: rgba(211, 232, 228, 0.10);
  --text: #edf2f0; --muted: #95aba7;
  --accent: #289e97; --on-accent: #061514;
  --accent-soft: rgba(40, 158, 151, 0.18); --on-accent-soft: #8ce7df;
  --ok: #38c98b; --gold: #eab364;
  --chip: #edf2f0; --on-chip: #0b1414;
  --nav-bg: #070e0e; --nav-fg: #edf2f0; --nav-muted: #8aa5a1;
  --nav-active: #ffffff; --nav-active-bg: rgba(40, 158, 151, 0.20); --nav-active-fg: #8ce7df;
  --nav-card: #0f1c1b;
  --p1: #7c1c23; --p2: #224338; --p3: #8a431f; --p4: #362f68; --p5: #1b3850;
  --warn-bg: rgba(40, 158, 151, 0.14); --warn-fg: #bcebe6;
  --poster-border: rgba(255, 255, 255, 0.08);
  --poster-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
  --poster-shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.62);
  --glass-bg: rgba(16, 31, 30, 0.78);
  --badge-bg: rgba(7, 15, 15, 0.78); --badge-fg: #8ce7df;
  --fx-fade: linear-gradient(180deg, rgba(7,14,14,.32) 0%, rgba(7,14,14,.14) 38%, rgba(11,20,20,.78) 76%, var(--bg) 100%);
  --f-display: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --f-body: 'Archivo', system-ui, -apple-system, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r-s: 8px; --r-m: 12px; --r-l: 14px; --r-xl: 18px;
  --side-w: 244px; --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #eef1ee; --surface: #ffffff; --surface-2: #e1e8e4; --surface-3: #d4ded9;
  --line: #cfd9d4;
  --text: #16130f; --muted: #4f5a56;
  --accent: #1e6b68; --on-accent: #ffffff;
  --accent-soft: #d3e8e4; --on-accent-soft: #0f3a37;
  --ok: #17714d; --gold: #9a5b13;
  --chip: #16130f; --on-chip: #eef1ee;
  --nav-bg: #143f3d; --nav-fg: #f2f6f4; --nav-muted: #b9d3cf;
  --nav-active: #ffffff; --nav-active-bg: #d3e8e4; --nav-active-fg: #0f3a37;
  --nav-card: #1c4f4c;
  --p1: #8f1d24; --p2: #2c463b; --p3: #9a4a22; --p4: #3d3670; --p5: #1f3e57;
  --warn-bg: #d3e8e4; --warn-fg: #0f3a37;
  --poster-border: rgba(0, 0, 0, 0.08);
  --poster-shadow: 0 8px 20px rgba(14, 30, 28, 0.14);
  --poster-shadow-lg: 0 16px 36px rgba(14, 30, 28, 0.24);
  --glass-bg: rgba(255, 255, 255, 0.90);
  --badge-bg: rgba(12, 28, 27, 0.82); --badge-fg: #a4f0e8;
  --fx-fade: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.06) 40%, rgba(238,241,238,.78) 78%, var(--bg) 100%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 14px; line-height: 1.42; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- splash ---------- */
.splash { position: fixed; inset: 0; z-index: 100; background: var(--nav-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; transition: opacity .3s; }
.splash.hide { opacity: 0; pointer-events: none; }
.splash img { border-radius: 22px; }
.splash-name { display: flex; flex-direction: column; align-items: center; color: var(--nav-fg); line-height: 1; }
.splash-name span { font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: .05em; }
.splash-name small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--nav-muted); margin-top: 4px; }

/* ---------- layout ---------- */
.app { min-height: 100vh; min-height: 100dvh; display: flex; }
.side { display: none; }
.main { flex: 1 1 auto; min-width: 0; padding: 0 0 calc(var(--nav-h) + var(--safe-b) + 28px); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + var(--safe-t)) 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-txt b { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: .05em; }
.brand-txt small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--muted); margin-top: 3px; }
.avatar { width: 42px; height: 42px; border-radius: 21px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; position: relative; flex: none; }
.avatar .dot { position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; border-radius: 5px; background: var(--accent); border: 2px solid var(--bg); }

/* barra inferior (teléfono) */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--nav-bg); border-top: 1px solid rgba(255,255,255,.07); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); }
.bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; color: var(--nav-muted); text-decoration: none; min-width: 0; min-height: 44px; }
.bnav a[aria-current="page"] { color: var(--nav-active); font-weight: 700; }
html:not([data-theme="light"]) .bnav a[aria-current="page"] { color: var(--nav-active-fg); }
.bnav svg { width: 22px; height: 22px; }

/* barra lateral (iPad / PC) */
@media (min-width: 768px) {
  .side { display: flex; flex-direction: column; gap: 20px; flex: 0 0 var(--side-w); width: var(--side-w); position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; padding: 24px 15px; background: var(--nav-bg); color: var(--nav-fg); border-right: 1px solid var(--line); }
  .side .brand-txt small { color: var(--nav-muted); }
  .side .brand-txt b { font-size: 21px; }
  .side .brand img { width: 36px; height: 36px; }
  .snav { display: flex; flex-direction: column; gap: 3px; }
  .snav a { height: 44px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; gap: 10px; color: var(--nav-muted); text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
  .snav a:hover { background: rgba(255,255,255,.06); color: var(--nav-fg); }
  .snav a[aria-current="page"] { background: var(--nav-active-bg); color: var(--nav-active-fg); font-weight: 700; }
  .snav a svg { width: 20px; height: 20px; flex: none; }
  .snav .lbl { flex: 1; min-width: 0; }
  .snav .cnt { font-family: var(--f-mono); font-size: 11.5px; }
  .scard { margin-top: auto; padding: 12px; border-radius: 14px; background: var(--nav-card); border: 1px solid rgba(255,255,255,.07); font-size: 12px; line-height: 1.35; cursor: pointer; transition: border-color .15s; }
  .scard:hover { border-color: rgba(140, 231, 223, 0.32); }
  .scard .nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
  .scard .nums > div { min-width: 0; }
  .scard .nums b { font-family: var(--f-display); font-size: 20px; display: block; line-height: 1.05; color: var(--nav-fg); }
  .scard .nums span { display: block; font-size: 10.5px; color: var(--nav-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
  .scard-btn { width: 100%; min-height: 34px; padding: 5px 9px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: var(--nav-fg); font-size: 11.5px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 6px; text-align: left; }
  .scard-btn:hover { background: rgba(40, 158, 151, 0.22); border-color: rgba(140, 231, 223, 0.35); }
  .scard-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .scard-btn svg { flex: none; opacity: .85; }
  .suser { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: 12px; background: transparent; color: var(--nav-fg); text-align: left; }
  .suser:hover { background: rgba(255,255,255,.06); }
  .suser .avatar { background: var(--nav-active-bg); color: var(--nav-active-fg); border-color: transparent; }
  .suser .avatar .dot { border-color: var(--nav-bg); background: #ff6b57; }
  .suser > span:not(.avatar) { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app { background: linear-gradient(to right, var(--nav-bg) var(--side-w), var(--bg) var(--side-w)); }
  .bnav, .mhead { display: none; }
  .main { padding: 24px clamp(18px, 3vw, 42px) 52px; }
  .wrap { padding: 0; }
}

/* ---------- tipografía ---------- */
.h-screen { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.h-sec { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.1; text-transform: uppercase; letter-spacing: .03em; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.ok { color: var(--ok); font-weight: 600; }
.gold { color: var(--gold); font-weight: 600; }
.acc-t { color: var(--accent); }
.clamp1, .clamp2, .clamp3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.clamp1 { -webkit-line-clamp: 1; } .clamp2 { -webkit-line-clamp: 2; } .clamp3 { -webkit-line-clamp: 3; }
.sec { padding-top: 28px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; min-width: 0; }
.sec-head > * { min-width: 0; }
.sec-sub { font-size: 12.5px; color: var(--muted); margin: -6px 0 12px; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { color: var(--text); }

/* ---------- botones y chips ---------- */
.btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { border-color: var(--muted); background: var(--surface-2); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-acc { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.btn-acc:hover { filter: brightness(1.08); background: var(--accent); border-color: var(--accent); }
.btn-chip { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-chip:hover { background: var(--surface-3); border-color: var(--muted); }
.btn-glass { background: rgba(255, 255, 255, 0.08); color: #f2f7f5; border-color: rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.30); }
html[data-theme="light"] .btn-glass { background: rgba(15, 32, 30, 0.07); color: var(--text); border-color: rgba(15, 32, 30, 0.16); }
.btn-pill { border-radius: 22px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); font-weight: 500; padding: 0 6px; }
.btn-ghost:hover { color: var(--text); background: transparent; border-color: transparent; }
.btn-icon { width: 44px; padding: 0; flex: none; }
.btn[aria-pressed="true"].btn-toggle, .acts3 .btn-chip[aria-pressed="true"] { background: var(--chip); color: var(--on-chip); border-color: var(--chip); }
.btn:disabled { opacity: .45; cursor: default; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { min-height: 36px; padding: 0 12px; border-radius: 19px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"], .chip.on { background: var(--chip); color: var(--on-chip); border-color: var(--chip); font-weight: 600; }
.chip-vpn[aria-pressed="true"] { background: var(--accent-soft); color: var(--on-accent-soft); border-color: var(--accent); }
.chip-gold[aria-pressed="true"] { background: rgba(234, 179, 100, 0.18); color: var(--gold); border-color: var(--gold); }
.chip .n { font-family: var(--f-mono); font-size: 11px; opacity: .75; }
.chip svg { width: 14px; height: 14px; }
@media (pointer: coarse) { .chip { min-height: 42px; } }
.tag { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; padding: 2px 7px; border-radius: 5px; background: var(--surface-3); color: var(--text); white-space: nowrap; display: inline-block; line-height: 1.5; }
.tag-af { background: var(--accent-soft); color: var(--on-accent-soft); border: 1px solid rgba(40, 158, 151, 0.30); }
.pill { font-family: var(--f-mono); font-size: 11.5px; padding: 3px 8px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }

/* Tira horizontal compacta de plataformas con logos TMDB */
.plat-bar { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 2px; align-items: center; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.plat-bar::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .plat-bar { margin: 0; padding-left: 0; padding-right: 0; } }
.plat-pill { flex: none; min-height: 34px; padding: 0 11px 0 7px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: border-color .15s, background .15s; }
.plat-pill.all { padding: 0 12px; }
.plat-pill:hover { border-color: var(--muted); }
.plat-pill[aria-pressed="true"] { background: var(--accent-soft); color: var(--on-accent-soft); border-color: var(--accent); font-weight: 700; }
.plat-pill img { width: 20px; height: 20px; border-radius: 5px; flex: none; object-fit: cover; }
.plat-pill .pi { width: 20px; height: 20px; border-radius: 5px; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; }

/* segmentos / pestañas */
.seg { display: inline-flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); gap: 2px; max-width: 100%; }
.seg button { flex: none; white-space: nowrap; min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-selected="true"] { background: var(--surface-3); color: var(--text); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
html[data-theme="light"] .seg button[aria-selected="true"] { background: var(--surface); }
.seg .n { font-family: var(--f-mono); font-size: 11px; }

/* interruptor */
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; cursor: pointer; font-size: 13.5px; user-select: none; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--surface-3); border: 1px solid var(--line); position: relative; transition: background .2s; margin: 0; flex: none; cursor: pointer; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 10px; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }

/* selects / campos */
.field { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 14px; max-width: 100%; }
select.field { padding-right: 32px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2395aba7' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
html[data-theme="light"] select.field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234f5a56' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
textarea.field { padding: 10px 12px; min-height: 80px; width: 100%; }
label.lab { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 5px; }

/* ---------- superficies ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); min-width: 0; }
.pad { padding: 14px; }
.card-soft { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px 16px; min-width: 0; }

/* póster: imagen o respaldo de color con título */
.poster { display: block; aspect-ratio: 2 / 3; border-radius: var(--r-s); overflow: hidden; position: relative; background: var(--p5); flex: none; border: 1px solid var(--poster-border); box-shadow: var(--poster-shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.poster img.ok { opacity: 1; }
.poster .fb { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 8px; font-family: var(--f-display); font-weight: 700; font-size: 13px; line-height: 1.05; color: #fff; text-transform: uppercase; overflow-wrap: anywhere; }
.poster .badge { position: absolute; left: 6px; bottom: 6px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: var(--badge-bg); color: var(--badge-fg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(140, 231, 223, 0.24); }
.poster .seen { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 12px; background: var(--chip); color: var(--on-chip); display: flex; align-items: center; justify-content: center; }
.poster .seen svg { width: 14px; height: 14px; }

/* Botón discreto "Hoy no" (✕) sobre tarjetas */
.pc-item { position: relative; width: 118px; flex: none; min-width: 0; }
.pc-item .pc { width: 100%; }
@media (min-width: 768px) { .pc-item { width: 160px; } }
.grid .pc-item { width: auto; }
.hoy-no { position: absolute; top: 6px; right: 6px; z-index: 3; width: 26px; height: 26px; border-radius: 13px; border: 1px solid rgba(255,255,255,.18); background: rgba(7, 14, 14, 0.72); color: #edf2f0; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: inline-flex; align-items: center; justify-content: center; padding: 0; opacity: .82; transition: opacity .16s, background .16s, transform .16s; }
.hoy-no:hover { opacity: 1; background: rgba(138, 28, 36, 0.88); transform: scale(1.06); }
@media (hover: hover) and (pointer: fine) {
  .pc-item .hoy-no, .wide-item .hoy-no { opacity: 0; }
  .pc-item:hover .hoy-no, .pc-item:focus-within .hoy-no, .wide-item:hover .hoy-no, .wide-item:focus-within .hoy-no { opacity: .95; }
}

/* carrusel horizontal */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-top: 4px; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .rail { gap: 14px; margin: 0; padding-left: 0; padding-right: 0; } }
.pc { width: 118px; flex: none; display: flex; flex-direction: column; gap: 5px; color: var(--text); text-decoration: none; min-width: 0; }
.pc:hover .poster { transform: translateY(-3px); border-color: rgba(140, 231, 223, 0.28); }
.pc .t { font-size: 13.5px; font-weight: 700; line-height: 1.2; margin-top: 2px; }
.pc .s { font-size: 11.5px; color: var(--muted); }
.pc .w { font-size: 11.5px; font-weight: 600; }
@media (min-width: 768px) { .pc { width: 160px; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 16px 14px; }
.grid .pc { width: auto; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 20px 16px; } }

/* Tarjetas panorámicas 16:9 (Joyas ocultas) */
.wide-item { position: relative; width: 268px; flex: none; min-width: 0; }
@media (min-width: 768px) { .wide-item { width: 316px; } }
.wide-card { display: flex; flex-direction: column; gap: 7px; text-decoration: none; color: var(--text); min-width: 0; }
.wide-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: var(--p5); border: 1px solid var(--poster-border); box-shadow: var(--poster-shadow); transition: transform .22s ease, border-color .22s ease; }
.wide-card:hover .wide-thumb { transform: translateY(-3px); border-color: rgba(140, 231, 223, 0.30); }
.wide-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.wide-thumb img.ok { opacity: 1; }
.wide-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,14,14,.08) 25%, rgba(7,14,14,.84) 100%); pointer-events: none; }
.wide-meta-in { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wide-meta-in .badge { font-family: var(--f-mono); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: var(--badge-bg); color: var(--badge-fg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(140, 231, 223, 0.24); }
.wide-meta-in .imdb { font-family: var(--f-mono); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: rgba(7, 14, 14, 0.72); color: #f6d58e; backdrop-filter: blur(6px); }
.wide-card .t { font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.wide-card .s { font-size: 12px; color: var(--muted); }

/* filas de lista (poster + datos + acción) */
.li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; text-decoration: none; color: var(--text); }
.li:last-child { border-bottom: 0; }
.li .poster { width: 48px; border-radius: 5px; box-shadow: none; }
.li .poster .fb { font-size: 8px; padding: 4px; }
.li .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.li .ttl { font-weight: 700; line-height: 1.25; }
.li .meta { font-size: 12.5px; color: var(--muted); }
.li .where { font-size: 12px; font-weight: 600; }
.li .aff { text-align: right; flex: none; }
.li .aff b { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--accent); display: block; line-height: 1; }
.li .aff span { font-family: var(--f-mono); font-size: 9.5px; color: var(--muted); }
.where.ok { color: var(--ok); }
.where.vpn { color: var(--accent); }
.where.no, .where.mid { color: var(--muted); }
.check { width: 42px; height: 42px; border-radius: 21px; border: 1px solid var(--line); background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.check svg { width: 18px; height: 18px; }
.check[aria-pressed="true"] { background: var(--chip); color: var(--on-chip); border-color: var(--chip); }

/* barras de progreso */
.bar { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }

/* ---------- menús, hojas y toasts ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px); z-index: 90; max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 12px; background: var(--chip); color: var(--on-chip); font-size: 13.5px; display: flex; align-items: center; gap: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 8px 28px rgba(0,0,0,.38); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.err { background: #8c2026; color: #fff; }
.toast button { border: 0; background: rgba(128,128,128,.24); color: inherit; min-height: 34px; padding: 0 12px; border-radius: 8px; font-weight: 700; }
@media (min-width: 768px) { .toast { bottom: 24px; } }
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(4, 9, 9, .68); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { width: 100%; max-width: 540px; max-height: 88vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); animation: up .22s; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
@media (min-width: 768px) { .scrim { align-items: center; padding: 16px; } .sheet { border-radius: 18px; padding: 20px; } }
.sheet h2 { margin: 0 0 12px; }
.menu-list { display: flex; flex-direction: column; }
.menu-list button, .menu-list a { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; text-decoration: none; font-size: 15px; }
.menu-list button:last-child, .menu-list a:last-child { border-bottom: 0; }
.menu-list .danger { color: #e06368; }
.menu-list svg { width: 20px; height: 20px; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
.fade-in { animation: fade .28s ease-out; }

/* ---------- vacíos y carga ---------- */
.empty { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-l); background: rgba(255,255,255,.01); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.sk { background: linear-gradient(90deg, var(--surface), var(--surface-3), var(--surface)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-l); }
@keyframes sk { to { background-position: -200% 0; } }
.err-box { padding: 18px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; width: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--nav-bg); }
.login .card { width: 100%; max-width: 380px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.login input { width: 100%; text-align: center; font-family: var(--f-mono); font-size: 18px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Inicio: Hero panorámico "Esta noche" + tira Continúa ---------- */
.daybar { padding-top: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.cta-elige { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-l); background: linear-gradient(135deg, rgba(40,158,151,.22), rgba(24,43,42,.85)); border: 1px solid rgba(40,158,151,.35); color: var(--text); text-decoration: none; }
.cta-elige .t { font-family: var(--f-display); font-weight: 700; font-size: 21px; line-height: 1.05; text-transform: uppercase; }
.cta-elige p { font-size: 12.5px; color: var(--muted); line-height: 1.35; margin: 3px 0 0; }
.cta-elige .go { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 19px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; flex: none; }
@media (min-width: 768px) { .cta-elige { display: none; } }

.hero-tonight { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid rgba(211, 232, 228, 0.14); background: var(--surface); box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36); }
.hero-tonight .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 22%; filter: blur(10px) saturate(1.12); transform: scale(1.08); opacity: .45; pointer-events: none; }
.hero-tonight .hero-vig { position: absolute; inset: 0; background: radial-gradient(circle at 75% 25%, rgba(11,20,20,.38), rgba(11,20,20,.88) 70%), linear-gradient(180deg, rgba(11,20,20,.42) 0%, rgba(11,20,20,.92) 100%); pointer-events: none; }
html[data-theme="light"] .hero-tonight .hero-bg { opacity: .26; }
html[data-theme="light"] .hero-tonight .hero-vig { background: linear-gradient(135deg, rgba(255,255,255,.84) 0%, rgba(225,232,228,.94) 100%); }
.hero-inner { position: relative; z-index: 2; display: flex; gap: 16px; padding: 16px; align-items: flex-start; min-width: 0; }
.hero-inner > a { flex: none; }
.hero-inner .poster { width: 122px; border-radius: 10px; box-shadow: var(--poster-shadow-lg); border: 1px solid rgba(255,255,255,.16); }
.hero-inner .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hero-inner h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 28px; line-height: 1.0; letter-spacing: .01em; }
.hero-inner .why { font-size: 13.5px; line-height: 1.42; max-width: 62ch; }
.hero-plat { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 4px 10px 4px 5px; border-radius: 9px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 12.5px; font-weight: 600; }
html[data-theme="light"] .hero-plat { background: rgba(15,32,30,.06); border-color: rgba(15,32,30,.12); }
.hero-plat img { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }
.hero-inner .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; align-items: center; }
.hero-inner .acts .btn { min-height: 42px; }
@media (min-width: 768px) {
  .hero-inner { gap: 26px; padding: 26px 28px; align-items: center; }
  .hero-inner .poster { width: 172px; border-radius: 12px; }
  .hero-inner h3 { font-size: 40px; }
}

/* Tira horizontal "Continúa" (sin media pantalla vacía) */
.cont-rail { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .cont-rail { margin: 0; padding-left: 0; padding-right: 0; } }
.cont { flex: 0 0 min(84vw, 330px); display: flex; gap: 12px; align-items: center; padding: 10px 12px; min-width: 0; transition: border-color .15s; }
.cont:hover { border-color: var(--muted); }
.cont .poster { width: 52px; border-radius: 6px; box-shadow: none; }
.cont .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }

/* Noches temáticas: portadas cinematográficas con backdrop + tinte + viñeta */
.nights { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; }
.night { position: relative; overflow: hidden; width: 164px; height: 122px; flex: none; border-radius: 14px; color: #fff; padding: 13px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; min-width: 0; background: var(--tint, var(--p1)); border: 1px solid rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 8px 22px rgba(0,0,0,.32); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.night:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 30px rgba(0,0,0,.46); }
.night .nbg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .52; mix-blend-mode: luminosity; transition: transform .35s ease, opacity .25s ease; pointer-events: none; }
.night:hover .nbg { transform: scale(1.05); opacity: .64; }
.night::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,12,12,.30) 0%, rgba(6,12,12,.82) 100%); pointer-events: none; }
.night .k, .night .n { position: relative; z-index: 2; }
.night .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .13em; color: rgba(255,255,255,.82); }
.night .n { font-family: var(--f-display); font-weight: 700; font-size: 23px; line-height: .96; text-transform: uppercase; overflow-wrap: anywhere; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
@media (min-width: 768px) { .nights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; overflow: visible; margin: 0; padding: 0; } .night { width: auto; height: 126px; } }

.fresh { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); column-gap: 24px; }
.fresh .li { border-bottom: 1px solid var(--line) !important; }
.desk-search { display: none; }
@media (min-width: 768px) {
  .desk-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
  .desk-search .sbox { flex: 1 1 320px; }
}
.sbox { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 6px 0 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.sbox:focus-within { border: 2px solid var(--accent); padding-left: 13px; }
.sbox svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.sbox input { flex: 1; min-width: 0; min-height: 42px; border: 0; background: transparent; outline: none; font-size: 15px; }
.sbox .clear { width: 38px; height: 38px; border-radius: 19px; border: 0; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sbox .clear svg { width: 15px; height: 15px; color: var(--text); }

/* Buscar */
.best { display: flex; gap: 12px; align-items: center; padding: 12px; text-decoration: none; color: var(--text); }
.best .poster { width: 56px; border-radius: 6px; box-shadow: none; }
.best .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.best b.t { font-size: 15px; line-height: 1.2; }
.leido { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.leido .pill { background: var(--accent-soft); color: var(--on-accent-soft); }
.tmdb .li .btn { min-height: 40px; }
.person { display: flex; gap: 12px; align-items: center; padding: 12px; min-width: 0; }
.person .ini { width: 44px; height: 44px; border-radius: 22px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); flex: none; }
.ex-list .li { padding: 12px 0; }
.ex-q { font-family: var(--f-mono); font-size: 12px; color: var(--muted); display: block; }

/* Ficha cinematográfica */
.ficha { max-width: 880px; margin: 0 auto; }
.app[data-route="ficha"] .mhead { display: none; }
.fx-back { height: 250px; position: relative; background: var(--p5) center 20%/cover no-repeat; margin: 0 -16px; }
.fx-back::after { content: ''; position: absolute; inset: 0; background: var(--fx-fade); }
@media (min-width: 768px) { .fx-back { margin: 0; border-radius: 20px; height: 360px; } .fx-back::after { border-radius: 20px; } }
.fx-top { position: absolute; top: calc(12px + var(--safe-t)); left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 2; }
.fx-top .grp { display: flex; gap: 8px; }
.fab { width: 42px; height: 42px; border-radius: 21px; border: 1px solid rgba(255,255,255,.18); background: rgba(11, 20, 20, 0.72); color: #edf2f0; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.fab:hover { background: rgba(11, 20, 20, 0.90); }
.fab svg { width: 20px; height: 20px; }
.fx-head { display: flex; gap: 16px; align-items: flex-start; margin-top: -92px; position: relative; z-index: 2; }
.fx-head .poster { width: 120px; border: 2px solid rgba(255,255,255,.16); border-radius: 10px; box-shadow: var(--poster-shadow-lg); }
html[data-theme="light"] .fx-head .poster { border-color: var(--bg); }
.fx-head .body { display: flex; flex-direction: column; gap: 6px; padding-top: 98px; min-width: 0; }
.fx-head h1.largo { font-size: 25px; }
.fx-head h1 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: .98; overflow-wrap: anywhere; }
@media (min-width: 768px) { .fx-head { margin-top: -124px; padding: 0 22px; gap: 22px; } .fx-head .body { padding-top: 132px; } .fx-head .poster { width: 158px; border-radius: 12px; } .fx-head h1 { font-size: 42px; } .fx-head h1.largo { font-size: 33px; } }
.fx-cred { padding-top: 12px; font-size: 13px; line-height: 1.5; }
.scores { margin-top: 16px; display: grid; grid-template-columns: 96px repeat(var(--n, 3), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.scores .af { background: var(--accent); color: var(--on-accent); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; }
.scores .af b { font-family: var(--f-display); font-weight: 700; font-size: 34px; line-height: 1; }
.scores .af span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; margin-top: 4px; font-weight: 600; }
.scores .af.na b { font-size: 20px; }
.scores .sc { padding: 12px 10px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.scores .sc .src { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.scores .sc b { font-family: var(--f-display); font-weight: 700; font-size: 24px; }
.scores .sc .sub { font-size: 11px; color: var(--muted); }
.where-box { overflow: hidden; }
.where-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-width: 0; flex-wrap: wrap; }
.where-row + .where-row, .where-foot { border-top: 1px solid var(--line); }
.prov-ini { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3); color: var(--text); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; overflow: hidden; }
.prov-ini img { width: 100%; height: 100%; object-fit: cover; }
.where-ok { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--ok); }
.where-vpn { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.where-ok svg, .where-vpn svg { width: 14px; height: 14px; }
.where-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: 13px; flex-wrap: wrap; }
.warn { display: flex; gap: 10px; align-items: flex-start; padding: 14px; background: var(--warn-bg); color: var(--warn-fg); }
.warn svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.acts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 14px; }
.acts3 .btn { min-height: 48px; padding: 0 8px; }
.acts3 .btn-chip[aria-pressed="false"] { background: var(--surface); color: var(--text); border-color: var(--line); }
.ten { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.ten button { min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; padding: 0; }
.ten button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.ten button.in { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--on-accent-soft); }
.why-box ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; line-height: 1.4; }
.syn { margin: 0; line-height: 1.58; }
.eps .ep { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.eps .ep .n { width: 34px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); flex: none; }
.eps .ep .b { flex: 1; min-width: 0; }
.st-done { color: var(--ok); } .st-next { color: var(--accent); } .st-todo { color: var(--muted); }
.dl { margin: 0; display: grid; grid-template-columns: minmax(96px, 120px) 1fr; row-gap: 9px; column-gap: 10px; font-size: 13.5px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.person-chip { min-height: 42px; padding: 0 14px 0 4px; border-radius: 21px; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; text-decoration: none; color: var(--text); max-width: 100%; }
.person-chip .i { width: 34px; height: 34px; border-radius: 17px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--muted); flex: none; }
.person-chip span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-l); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; margin-top: 8px; }
.rel-link svg { width: 16px; height: 16px; flex: none; }
.foot-acts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 16px; font-size: 13px; }

/* Mi lista */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 14px; }
.toolbar > * { min-width: 0; }

/* Elige */
.step { padding-top: 22px; }
.step h2 { margin: 0 0 10px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.opt { min-height: 56px; padding: 8px 12px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.opt b { font-size: 14.5px; } .opt span { font-size: 12px; color: var(--muted); }
.opt[aria-pressed="true"] { background: var(--chip); color: var(--on-chip); border-color: var(--chip); }
.opt[aria-pressed="true"] span { color: var(--on-chip); opacity: .8; }
.pick-wrap { position: relative; }
.pick { display: flex; gap: 12px; align-items: center; padding: 12px; text-decoration: none; color: var(--text); }
.pick .poster { width: 74px; }
.pick .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pick .aff { font-family: var(--f-display); font-weight: 700; font-size: 24px; color: var(--accent); flex: none; padding-right: 4px; }
.sticky-cta { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); padding-top: 18px; z-index: 5; }
@media (min-width: 768px) { .sticky-cta { bottom: 16px; } }

/* Tu gusto */
.bars { display: grid; grid-template-columns: minmax(70px, 110px) 1fr 44px; gap: 10px 12px; align-items: center; font-size: 13.5px; }
.bars .track { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.bars .track i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.bars .v { font-family: var(--f-mono); font-size: 12px; text-align: right; color: var(--muted); }
.loves { display: flex; flex-wrap: wrap; gap: 6px; }
.love { min-height: 38px; padding: 0 12px; border-radius: 19px; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.love .s { font-family: var(--f-mono); font-size: 11.5px; color: var(--accent); font-weight: 600; }
.calib { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-xl); padding: 16px; }
.calib .mono { color: var(--muted); }
.how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.45; }

/* Perfil */
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.plat { min-height: 52px; padding: 6px 10px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; gap: 10px; text-align: left; font-size: 13.5px; min-width: 0; transition: border-color .15s, background .15s; }
.plat:hover { border-color: var(--muted); }
.plat img { width: 32px; height: 32px; border-radius: 7px; flex: none; object-fit: cover; }
.plat span { min-width: 0; overflow-wrap: anywhere; }
.plat[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--on-accent-soft); font-weight: 600; padding: 5px 9px; }

/* Explorar */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding-top: 12px; }
.filters .field { width: 100%; }
.months h3 { font-family: var(--f-display); font-size: 18px; text-transform: uppercase; margin: 22px 0 6px; color: var(--accent); }
.tbl-wrap { overflow-x: auto; }

/* ---------- Hemeroteca (revista editorial MUBI Notebook / Letterboxd Journal) ---------- */
.hem-head { padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hem-cabin { margin-top: 14px; padding: 14px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.hem-row2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.hem-src-sel { min-height: 36px; border-radius: 18px; font-size: 13px; padding: 0 30px 0 12px; max-width: 100%; -webkit-appearance: none; appearance: none; }

.hem-lead { margin-top: 20px; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--poster-shadow); display: grid; grid-template-columns: minmax(0, 1fr); transition: border-color .2s; }
.hem-lead:hover { border-color: rgba(140, 231, 223, 0.30); }
.hem-lead .hem-media { aspect-ratio: 16 / 9; min-height: 210px; width: 100%; min-width: 0; }
@media (min-width: 820px) {
  .hem-lead { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: stretch; }
  .hem-lead .hem-media { aspect-ratio: auto; min-height: 260px; height: 100%; }
}
.hem-lead .hem-body { padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
@media (min-width: 820px) { .hem-lead .hem-body { padding: 24px 26px; } }
.hem-lead .hem-ttl { font-family: var(--f-display); font-weight: 700; font-size: 28px; line-height: 1.04; letter-spacing: .01em; text-decoration: none; color: var(--text); }
@media (min-width: 820px) { .hem-lead .hem-ttl { font-size: 34px; } }
.hem-lead .hem-ttl:hover { color: var(--on-accent-soft); }
html[data-theme="light"] .hem-lead .hem-ttl:hover { color: var(--accent); }

.hem-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .hem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }

.hem-card { border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.hem-card:hover { transform: translateY(-2px); border-color: rgba(140, 231, 223, 0.28); box-shadow: var(--poster-shadow); }
html[data-theme="light"] .hem-card:hover { border-color: var(--accent); }

.hem-media { display: block; position: relative; aspect-ratio: 16 / 9; width: 100%; min-width: 0; overflow: hidden; background: linear-gradient(135deg, #0d1c1b 0%, #183230 55%, #1d2636 100%); text-decoration: none; flex: none; }
.hem-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; transition: transform .35s ease; }
.hem-card:hover .hem-media img, .hem-lead:hover .hem-media img { transform: scale(1.03); }
.hem-fb { position: absolute; inset: 0; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 85% 15%, rgba(40, 158, 151, 0.24), transparent 60%), linear-gradient(145deg, #0b1717 0%, #132625 60%, #1a2130 100%); color: #edf2f0; }
.hem-fb .src { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #8ce7df; }
.hem-fb .q { font-family: var(--f-display); font-weight: 700; font-size: 21px; line-height: 1.06; text-transform: uppercase; color: rgba(237, 242, 240, 0.92); }

.hem-body { padding: 15px 16px 14px; flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.hem-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.hem-meta b { color: var(--text); font-weight: 600; }
.hem-lang { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 1px 6px; border-radius: 4px; background: var(--surface-3); color: var(--text); border: 1px solid var(--line); }
.hem-cat { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--on-accent-soft); }
.hem-ttl { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.08; text-decoration: none; color: var(--text); overflow-wrap: anywhere; }
.hem-ttl:hover { color: var(--on-accent-soft); }
html[data-theme="light"] .hem-ttl:hover { color: var(--accent); }
.hem-sum { margin: 0; font-size: 13.5px; line-height: 1.48; color: var(--muted); }

.hem-films { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.hem-film { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; max-width: 100%; padding: 3px 10px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; font-size: 12px; transition: border-color .15s, background .15s; }
.hem-film:hover { border-color: var(--accent); background: var(--surface-3); }
.hem-film .ft { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.hem-film .fa { font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: var(--on-accent-soft); }
html[data-theme="light"] .hem-film .fa { color: var(--accent); }

.hem-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hem-ext { font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hem-ext:hover { color: var(--text); }
.hem-save { min-height: 34px; padding: 0 11px; border-radius: 17px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; flex: none; transition: all .15s; }
.hem-save:hover { color: var(--text); border-color: var(--muted); }
.hem-save[aria-pressed="true"] { background: var(--accent-soft); color: var(--on-accent-soft); border-color: var(--accent); }
