/* Medios — oscuro cálido con acento coral y barras menta (inspirado en la referencia que pasó Lucas).
   Títulos en SF Pro Rounded (ui-rounded) en el iPhone y la Mac; texto en la fuente del sistema. */
:root {
  --bg: #150c0b;
  --bg-2: #1c100e;
  --surface: #241512;
  --surface-2: #301d19;
  --line: #3b2521;
  --ink: #f6ece8;
  --muted: #a99390;
  --faint: #7a6461;
  --coral: #ef8672;
  --coral-ink: #2a0f0a;
  --coral-soft: rgba(239, 134, 114, .14);
  --mint: #93d4c8;
  --miss: #ff7b6b;
  --ok: #93d4c8;
  --amber: #f2c46d;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --tabs-h: 62px;
  --pad: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background: radial-gradient(120% 60% at 50% -10%, #2a1411 0%, var(--bg) 55%) fixed, var(--bg);
  font: 15px/1.45 var(--text);
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 28px);
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
img { display: block; }
.ic { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- barra superior ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 4px) 10px 4px;
  background: rgba(21, 12, 11, .82);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.bar h1 { margin: 0; text-align: center; font: 700 17px/1.2 var(--round); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .2s; }
.bar-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; text-decoration: none; }
.bar-btn .ic { width: 22px; height: 22px; }
/* En las fichas la barra flota sobre la imagen y el título aparece al bajar. */
.has-hero .bar { position: fixed; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .2s; }
.has-hero .bar h1 { opacity: 0; }
.has-hero .bar .bar-btn { background: rgba(21, 12, 11, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); width: 38px; height: 38px; margin: 3px; }
.has-hero.scrolled .bar { background: rgba(21, 12, 11, .86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.has-hero.scrolled .bar h1 { opacity: 1; }
.has-hero.scrolled .bar .bar-btn { background: transparent; }

main { max-width: 1100px; margin: 0 auto; padding: 8px var(--pad) 0; }
.has-hero main { padding-top: 0; }

/* ---------- saludo (inicio) ---------- */
.greet { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 14px) 0 6px; }
.greet-hi { margin: 0; font: 700 26px/1.1 var(--round); }
.greet-sub { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.greet .bar-btn { margin-right: -10px; }

/* ---------- pestañas de abajo ---------- */
.tabs {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding: 4px 6px env(safe-area-inset-bottom);
  background: rgba(24, 13, 12, .9);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid rgba(255, 255, 255, .05);
}
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--faint); font: 600 10.5px var(--round); }
.tabs a .ic { width: 24px; height: 24px; stroke-width: 1.8; }
.tabs a.on { color: var(--coral); }
.tabs a.on::before { content: ""; position: absolute; top: -4px; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.badge {
  position: absolute; top: 2px; left: calc(50% + 7px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--coral); color: var(--coral-ink); font: 800 11px/18px var(--round); text-align: center;
}
.bar-btn .badge { top: 3px; left: 25px; }
@media (min-width: 900px) {
  .tabs { inset: 0 auto 0 0; width: 96px; height: auto; grid-template-columns: 1fr; grid-auto-rows: 78px; align-content: start; padding: calc(env(safe-area-inset-top) + 72px) 0 0; border-top: 0; border-right: 1px solid rgba(255, 255, 255, .05); }
  .tabs a.on::before { top: 50%; left: 0; width: 4px; height: 26px; border-radius: 0 3px 3px 0; transform: translateY(-50%); }
  body { padding-left: 96px; padding-bottom: 40px; }
  .has-hero .bar { left: 96px; }
}

/* ---------- avisos ---------- */
.flash { margin: 8px 0 12px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; }
.flash.error { background: rgba(255, 123, 107, .12); color: #ffd4cd; }
.flash p { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.flash p + p { margin-top: 4px; }
.flash .ic { width: 17px; height: 17px; margin-top: 1px; color: var(--miss); }
.notice { display: flex; gap: 10px; align-items: center; margin: 6px 0 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--coral-soft); color: var(--coral); text-decoration: none; font: 700 14px var(--round); }
.notice span { flex: 1; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 14px); z-index: 30;
  transform: translate(-50%, 20px); opacity: 0; transition: transform .25s, opacity .25s;
  max-width: min(92vw, 420px); padding: 11px 18px; border-radius: 22px; background: var(--ink); color: var(--bg); font: 600 14px var(--round);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: var(--miss); color: #2a0f0a; }

/* ---------- secciones ---------- */
.sec { margin: 22px 0 6px; }
.sec:empty { display: none; }
.sec-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.sec-head h2 { flex: 1; margin: 0; font: 700 16px/1.2 var(--round); }
.sec-head h2 a { text-decoration: none; }
.sec-more { color: var(--muted); display: grid; place-items: center; width: 28px; height: 28px; }
.sec-more .ic { width: 18px; height: 18px; }
.sec-figure { margin: 0; color: var(--muted); font: 600 13px var(--round); }
.sec-figure b { color: var(--mint); font-size: 17px; }
.empty { color: var(--muted); padding: 22px 0; margin: 0; text-align: center; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0; }
.lead { font: 700 19px/1.2 var(--round); margin: 0 0 4px; }
.more { display: block; margin: 10px 0 0; text-align: center; color: var(--coral); font: 700 14px var(--round); text-decoration: none; }
.count { margin: 4px 0 12px; color: var(--muted); font-size: 12.5px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.chips.links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 10px calc(-1 * var(--pad)) 8px; padding: 0 var(--pad); }
.chips.links::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font: 600 12.5px var(--round); text-decoration: none; white-space: nowrap; }
.chip.on { background: var(--coral); border-color: var(--coral); color: var(--coral-ink); }

/* pastillas de filtro */
.pills { display: flex; gap: 6px; margin: 4px 0 10px; }
.pills.scroll { overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); }
.pills.scroll::-webkit-scrollbar { display: none; }
.pills a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--muted); text-decoration: none; font: 700 13px var(--round); white-space: nowrap; }
.pills a.on { background: var(--coral); color: var(--coral-ink); }
.pills a b { opacity: .7; margin-left: 2px; }

/* búsqueda */
.searchbox { position: relative; margin: 6px 0 10px; }
.searchbox .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.searchbox input {
  width: 100%; min-height: 44px; padding: 0 14px 0 40px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 16px var(--text); -webkit-appearance: none; appearance: none;
}
.searchbox input::placeholder { color: var(--faint); }
.searchbox input:focus { outline: none; border-color: var(--coral); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 700 14.5px/1 var(--round); text-decoration: none; cursor: pointer;
}
.btn.small { min-height: 34px; padding: 0 13px; font-size: 13px; }
.btn.small .ic { width: 16px; height: 16px; }
.btn.wide { display: flex; width: 100%; margin: 12px 0; }
form.inline:has(> .btn.wide) { display: block; }
.btn.primary { background: var(--coral); border-color: var(--coral); color: var(--coral-ink); }
.btn.outline { background: transparent; border-color: rgba(246, 236, 232, .35); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); position: relative; z-index: 2; }
.btn.danger { background: var(--miss); border-color: var(--miss); color: #2a0f0a; }
.btn.danger.ghost { background: transparent; color: var(--miss); border-color: rgba(255, 123, 107, .35); }
.btn.icon { width: 36px; min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--faint); }
.btn.icon.on { color: var(--mint); }
.btn.icon .ic { width: 19px; height: 19px; }
.btn:disabled { opacity: .5; }
.btn.busy { opacity: .55; pointer-events: none; }
form.inline { display: inline; margin: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stack { display: grid; gap: 10px; margin: 16px 0; }
.danger-zone { margin: 30px 0 8px; text-align: center; }

/* ---------- carrusel destacado ---------- */
.hero-carousel { margin: 8px calc(-1 * var(--pad)) 0; }
.slides { list-style: none; margin: 0; padding: 0 var(--pad); display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding: 0 var(--pad); }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; aspect-ratio: 16 / 10.5; border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start; background: var(--surface); }
@media (min-width: 700px) { .slide { flex-basis: 70%; aspect-ratio: 16 / 8; } }
.slide-link { position: absolute; inset: 0; z-index: 1; }
.slide-bg { position: absolute; inset: 0; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(12, 6, 5, .92) 100%); pointer-events: none; }
.slide-body { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; pointer-events: none; }
.slide-body .btn { pointer-events: auto; }
.slide-kicker { margin: 0 0 2px; color: var(--coral); font: 700 12px var(--round); }
.slide-title { margin: 0; font: 800 22px/1.1 var(--round); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.slide-sub { margin: 3px 0 10px; color: rgba(255, 255, 255, .78); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { display: flex; justify-content: center; gap: 5px; margin: 10px 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .25s, background .25s; }
.dots i.on { width: 16px; background: var(--coral); }

/* ---------- filas horizontales y grilla ---------- */
.shelf { list-style: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 4px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; scroll-padding: 0 var(--pad); }
.shelf::-webkit-scrollbar { display: none; }
.shelf > li { flex: 0 0 31%; max-width: 150px; scroll-snap-align: start; }
.tile { position: relative; display: grid; gap: 2px; text-decoration: none; }
.poster { display: block; aspect-ratio: 2 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.tile .poster { margin-bottom: 6px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .8); }
.tile-title { font: 700 13px/1.2 var(--round); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-badge {
  position: absolute; top: 6px; left: 6px; max-width: calc(100% - 12px); padding: 3px 8px; border-radius: 999px;
  font: 800 10.5px/1.3 var(--round); background: rgba(21, 12, 11, .78); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile-badge.ok { background: var(--mint); color: #0f2a25; }
.tile-badge.miss { left: auto; right: 6px; background: var(--coral); color: var(--coral-ink); min-width: 22px; text-align: center; }
.tile-badge.soon { background: var(--amber); color: #2b1d05; }
.tile-badge.off { left: auto; right: 6px; padding: 4px; border-radius: 50%; line-height: 0; }
.tile-badge.off .ic { width: 13px; height: 13px; }
.tile.is-off .poster img { opacity: .4; filter: grayscale(.7); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 16px 10px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 16px; } .shelf > li { flex-basis: 140px; } }

/* ---------- descargas ---------- */
.transfer { display: flex; gap: 10px; margin: 0; color: var(--muted); font: 600 12px var(--round); font-variant-numeric: tabular-nums; }
.transfer span { display: inline-flex; gap: 2px; align-items: center; }
.transfer .ic { width: 14px; height: 14px; }
.sec-head .transfer { margin-left: auto; }
.dls { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dl { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: var(--r); background: var(--surface); }
.dl.is-done { background: transparent; border: 1px solid var(--line); }
.dl-main { min-width: 0; }
.dl-top { display: flex; gap: 10px; align-items: baseline; margin: 0; }
.dl-title { flex: 1; min-width: 0; font: 700 14.5px/1.25 var(--round); overflow-wrap: anywhere; }
.dl-title a { text-decoration: none; }
.dl-state { flex: none; font: 800 13px var(--round); color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-state.tone-down { color: var(--mint); }
.dl-state.tone-stall, .dl-state.tone-error { color: var(--miss); }
.dl-sub { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
.dl-sub.raw { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl .facts { margin: 4px 0 0; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.thumb { display: block; width: 48px; aspect-ratio: 2 / 3; border-radius: var(--r-xs); overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.blank { display: grid; place-items: center; color: var(--faint); }
.prog { position: relative; height: 6px; margin: 9px 0 4px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.prog i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--coral); transition: width .8s cubic-bezier(.3, .7, .3, 1); }
.prog.tone-down i { background: linear-gradient(90deg, var(--coral), #f6a796); }
.prog.tone-paused i, .prog.tone-wait i { background: var(--faint); }
.prog.tone-stall i, .prog.tone-error i { background: var(--miss); opacity: .7; }
.facts { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 2px 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.warn { display: flex; gap: 6px; align-items: flex-start; margin: 5px 0 0; color: var(--miss); font-size: 12.5px; }
.warn .ic { width: 14px; height: 14px; margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .prog i { transition: none; } }

/* ---------- ficha ---------- */
.detail-head { position: relative; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.backdrop { display: block; position: relative; height: calc(250px + env(safe-area-inset-top)); margin: 0 calc(-1 * var(--pad)); background: var(--surface); overflow: hidden; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 12, 11, .25) 0%, rgba(21, 12, 11, 0) 30%, rgba(21, 12, 11, .7) 70%, var(--bg) 100%); }
@media (min-width: 700px) { .backdrop { height: 340px; border-radius: 0 0 var(--r-lg) var(--r-lg); } }
.detail-id { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 92px; gap: 14px; align-items: end; margin-top: -86px; }
.title { margin: 0 0 4px; font: 800 clamp(25px, 7vw, 38px)/1.05 var(--round); overflow-wrap: anywhere; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.detail-line { margin: 0; color: var(--muted); font-size: 13px; }
.detail-line b { color: var(--ink); font-weight: 600; }
.poster.small { width: 92px; border-radius: var(--r-xs); box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .9); }
@media (min-width: 700px) { .detail-id { grid-template-columns: 1fr 140px; margin-top: -120px; } .poster.small { width: 140px; } }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 6px; }
.pill-note { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--muted); font: 700 12.5px var(--round); }
.pill-note .ic { width: 15px; height: 15px; }
.pill-note.ok { color: var(--mint); }
.pill-note.miss { color: var(--miss); }
.overview { color: #d9c9c5; margin: 10px 0; font-size: 14px; max-width: 68ch; }
.overview.clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.next { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 11px 14px; border-radius: var(--r-sm); background: var(--surface); color: var(--muted); font-size: 13.5px; }
.next .ic { color: var(--coral); width: 18px; height: 18px; }
.next b { color: var(--ink); font-weight: 600; }
.miss-t { color: var(--miss); }
.dates { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 14px 0; padding: 0; }
.dates li { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); display: grid; }
.dates span { color: var(--muted); font-size: 11.5px; }
.dates b { font: 700 14px var(--round); }

/* barras por temporada (la "distribución" de la referencia) */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; padding: 4px 2px 0; }
.bar-col { flex: 1; max-width: 42px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; text-decoration: none; }
.bar-track { position: relative; width: 100%; border-radius: 7px; background: rgba(147, 212, 200, .16); overflow: hidden; }
.bar-track i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--mint); border-radius: 7px; }
.bar-lab { font: 700 11px var(--round); color: var(--muted); }

/* reparto */
.cast { list-style: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.cast::-webkit-scrollbar { display: none; }
.cast li { flex: 0 0 64px; display: grid; justify-items: center; text-align: center; gap: 1px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--surface-2); margin-bottom: 4px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.cast-name { font: 700 11px/1.2 var(--round); }
.cast-role { font-size: 10.5px; color: var(--muted); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* temporadas y episodios */
.seasons { display: grid; gap: 8px; margin-top: 18px; }
.season { border-radius: var(--r); background: var(--surface); overflow: hidden; scroll-margin-top: 70px; }
.season summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.season summary::-webkit-details-marker { display: none; }
.season-name { flex: 1; font: 700 15px var(--round); }
.season-meta { color: var(--muted); font: 600 12.5px var(--round); font-variant-numeric: tabular-nums; }
.season-chev { width: 16px; height: 16px; color: var(--faint); transition: transform .2s; }
.season[open] .season-chev { transform: rotate(90deg); }
.season-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.eps { list-style: none; margin: 0; padding: 0 0 4px; }
.ep { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px 8px 16px; border-top: 1px solid rgba(255, 255, 255, .05); }
.ep-n { font: 800 13px var(--round); color: var(--faint); font-variant-numeric: tabular-nums; }
.ep-main { min-width: 0; display: grid; }
.ep-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.ep.off .ep-title { color: var(--muted); }
.ep-sub { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.dot-s { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; }
.ep.have .dot-s { background: var(--mint); }
.ep.queued .dot-s { background: var(--coral); }
.ep.missing .dot-s { background: var(--miss); }
.ep.missing .ep-sub { color: var(--miss); }
.ep.soon .dot-s { background: var(--amber); }
.ep-actions { display: flex; }

/* pedir */
.season-picks { list-style: none; margin: 0; padding: 0; border-radius: var(--r); background: var(--surface); overflow: hidden; }
.season-picks li + li { border-top: 1px solid rgba(255, 255, 255, .05); }
.check { display: flex; gap: 12px; align-items: center; padding: 13px 16px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--coral); flex: none; }
.check.disabled { cursor: default; color: var(--muted); }
.sp-name { font: 700 14px var(--round); }
.sp-meta { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font: 800 11px var(--round); white-space: nowrap; }
.tag.req-1 { background: var(--coral); color: var(--coral-ink); }
.tag.req-2, .tag.req-5 { background: rgba(147, 212, 200, .16); color: var(--mint); }
.tag.req-3, .tag.req-4 { background: rgba(255, 123, 107, .16); color: var(--miss); }
#season-form > .btn.ghost { justify-self: start; }

/* pedidos */
.reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.req { border-radius: var(--r); background: var(--surface); }
.req-row { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 12px; text-decoration: none; }
.req-main { min-width: 0; display: grid; gap: 2px; justify-items: start; }
.req-title { font: 700 14.5px var(--round); }
.req-sub { color: var(--muted); font-size: 12.5px; }
.req-actions { display: flex; gap: 8px; padding: 0 12px 12px 72px; }

/* paneles, listas y ajustes */
.panel { padding: 14px 16px; border-radius: var(--r); background: var(--surface); }
.panel .check { padding: 4px 0; }
.del-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.svc { list-style: none; margin: 0; }
.svc li { display: grid; grid-template-columns: 12px 110px 1fr; gap: 10px; align-items: center; padding: 9px 0; }
.svc li + li { border-top: 1px solid rgba(255, 255, 255, .05); }
.svc-name { font: 700 14px var(--round); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.ok { background: var(--mint); }
.dot.bad { background: var(--miss); }
#push-box .panel p { margin: 0 0 8px; }
.list { list-style: none; margin: 0; padding: 4px 16px; }
.list li + li { border-top: 1px solid rgba(255, 255, 255, .05); }
.list a { display: flex; gap: 10px; align-items: center; padding: 10px 0; text-decoration: none; }
.list-main { flex: 1; min-width: 0; display: grid; }
.list-title { font: 700 14px var(--round); }
.list-sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* login */
.login { min-height: 82vh; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 0 12px; }
.login-mark { border-radius: 22px; box-shadow: 0 16px 40px -12px rgba(239, 134, 114, .45); }
.login-title { margin: 8px 0 0; font: 800 30px var(--round); }
.login .btn { margin-top: 14px; min-width: 260px; }

/* deslizar para actualizar */
.ptr { position: fixed; top: calc(env(safe-area-inset-top) + 4px); left: 50%; z-index: 40; width: 34px; height: 34px; margin-left: -17px; margin-top: -40px; padding: 7px; border-radius: 50%; background: var(--surface-2); color: var(--coral); opacity: 0; transition: transform .2s, opacity .2s; }
.ptr.dragging { transition: none; }
.ptr.loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.has-hero .bar span.bar-btn { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
