/* Biblioteca de Alejandría — modo oscuro, móvil primero */
:root {
  --bg: #0b0a14;
  --bg-2: #110f1f;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --surface-solid: #17142a;
  --border: rgba(255, 255, 255, .09);
  --text: #f1effa;
  --muted: #a39fbd;
  --accent: #8b5cf6;
  --accent-2: #c4b5fd;
  --accent-glow: rgba(139, 92, 246, .45);
  --accent-b: #ec4899;
  --on-accent: #fff;
  --gold: #fbbf24;
  --danger: #f87171;
  --success: #34d399;
  --radius: 18px;
  --radius-sm: 12px;
  --tabbar-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
[data-accent="azul"] { --accent: #3b82f6; --accent-2: #bfdbfe; --accent-b: #06b6d4; --accent-glow: rgba(59, 130, 246, .42); }
[data-accent="cyan"] { --accent: #06b6d4; --accent-2: #a5f3fc; --accent-b: #3b82f6; --accent-glow: rgba(6, 182, 212, .4); }
[data-accent="emerald"] { --accent: #10b981; --accent-2: #a7f3d0; --accent-b: #84cc16; --accent-glow: rgba(16, 185, 129, .4); }
[data-accent="gold"] { --accent: #f59e0b; --accent-2: #fde68a; --accent-b: #ef4444; --accent-glow: rgba(245, 158, 11, .4); --on-accent: #1a1100; }
[data-accent="naranja"] { --accent: #f97316; --accent-2: #fed7aa; --accent-b: #facc15; --accent-glow: rgba(249, 115, 22, .4); }
[data-accent="rose"] { --accent: #f43f5e; --accent-2: #fecdd3; --accent-b: #a855f7; --accent-glow: rgba(244, 63, 94, .4); }
[data-accent="rojo"] { --accent: #dc2626; --accent-2: #fecaca; --accent-b: #f97316; --accent-glow: rgba(220, 38, 38, .42); }
[data-accent="rosa"] { --accent: #ec4899; --accent-2: #fbcfe8; --accent-b: #8b5cf6; --accent-glow: rgba(236, 72, 153, .4); }
/* Blanco: fondo negro, letras blancas y botones blancos con texto negro */
[data-accent="blanco"] { --accent: #f4f4f5; --accent-2: #ffffff; --accent-b: #a1a1aa; --accent-glow: rgba(255, 255, 255, .22); --on-accent: #000;
  --bg: #000; --bg-2: #000; --surface: rgba(255, 255, 255, .05); --surface-2: rgba(255, 255, 255, .1); --surface-solid: #0e0e0e; --border: rgba(255, 255, 255, .14); --text: #fff; --muted: #a1a1aa; }
[data-accent="blanco"] .ambient { background: #000; }
[data-accent="blanco"] .ambient i { background: #fff; opacity: .05; }
[data-accent="blanco"] .brand h1, [data-accent="blanco"] .num, [data-accent="blanco"] .ep-big b, [data-accent="blanco"] .ep-big .num { background: none; -webkit-text-fill-color: #fff; color: #fff; }
[data-amoled="1"] { --bg: #000; --bg-2: #000; --surface-solid: #0d0c16; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
}
body.no-scroll { overflow: hidden; }
a { color: var(--accent-2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
img { display: block; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xsmall { font-size: 11.5px; }
.center { text-align: center; display: block; margin-inline: auto; }
.grow { flex: 1; min-width: 0; }
.pad { padding: 8px 16px; }
.gold { color: var(--gold); letter-spacing: 1px; }
.accent { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 8px; }

/* Fondo ambiental animado */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 50% -10%, #1b1534 0%, var(--bg) 60%); }
[data-amoled="1"] .ambient { background: #000; }
.ambient i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .22; animation: drift 26s ease-in-out infinite alternate; }
.ambient i:nth-child(1) { background: var(--accent); top: -25vmax; left: -20vmax; }
.ambient i:nth-child(2) { background: #f59e0b; bottom: -35vmax; right: -25vmax; opacity: .1; animation-duration: 32s; }
.ambient i:nth-child(3) { background: #06b6d4; top: 30%; left: 50%; width: 40vmax; height: 40vmax; opacity: .08; animation-duration: 40s; }
[data-amoled="1"] .ambient i { opacity: .08; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

/* Splash */
#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--bg); transition: opacity .5s var(--ease), visibility .5s; }
#splash img { animation: splashIn .7s var(--spring) both; filter: drop-shadow(0 10px 30px var(--accent-glow)); }
#splash span { font-weight: 700; letter-spacing: .3px; color: var(--muted); animation: fadeUp .6s .15s var(--ease) both; }
#splash.hide { opacity: 0; visibility: hidden; }
@keyframes splashIn { from { transform: scale(.6) rotate(-8deg); opacity: 0; } }

/* Vistas */
main { max-width: 980px; margin: 0 auto; outline: none; overflow-x: clip; }
.view-enter { animation: viewIn .38s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* Barra superior */
.topbar { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-t) + 14px) 16px 10px; }
.topbar.clear { position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.brand img { filter: drop-shadow(0 4px 14px var(--accent-glow)); }
.brand h1 { font-size: 19px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(90deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.page-title { font-size: 19px; font-weight: 750; }
.page-title.big { font-size: 26px; font-weight: 800; letter-spacing: -.4px; }

.icon-btn { width: 42px; height: 42px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .2s var(--spring), background .2s; flex: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.icon-btn:active { transform: scale(.9); }
.icon-btn.sm { width: 38px; height: 38px; border-radius: 12px; }
.icon-btn.xs { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
.icon-btn.xs svg { width: 16px; height: 16px; }
.icon-btn.on-fav { color: #fb7185; background: rgba(251, 113, 133, .14); border-color: rgba(251, 113, 133, .35); }
.icon-btn.on-fav svg { fill: currentColor; animation: heartPop .4s var(--spring); }
@keyframes heartPop { 50% { transform: scale(1.35); } }
.icon-btn.spin svg { animation: spin .8s linear infinite; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; transition: transform .18s var(--spring), background .2s, box-shadow .2s, opacity .2s; text-align: center; }
.btn, .chip, .badge, .pbadge, .tag { overflow-wrap: normal; }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-b)); border-color: transparent; color: var(--on-accent); box-shadow: 0 8px 24px -8px var(--accent-glow); }
.btn.success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; border-color: transparent; }
.btn.danger { background: rgba(248, 113, 113, .16); color: #fecaca; border-color: rgba(248, 113, 113, .3); }
.btn.ghost { background: transparent; }
.btn.danger.ghost { background: transparent; color: var(--danger); border-color: rgba(248, 113, 113, .25); }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13.5px; border-radius: 11px; }
.btn.lg { min-height: 54px; font-size: 16.5px; border-radius: 16px; }
.btn.block { display: flex; width: 100%; }
.btn svg { width: 18px; height: 18px; }
.link-btn { color: var(--accent-2); font-weight: 600; padding: 6px 0; }
.row-btns { display: flex; gap: 10px; margin-top: 14px; }
.row-btns > * { flex: 1; }
.row-btns.sm { margin-top: 8px; gap: 8px; }
.col-btns { display: grid; gap: 10px; margin-top: 12px; }

/* Buscador */
.searchbar { margin: 6px 16px 12px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .2s, box-shadow .2s; }
.searchbar:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.searchbar .ic { color: var(--muted); display: grid; }
.searchbar .ic svg { width: 19px; height: 19px; }
.searchbar input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 9px 0; font-size: 15.5px; }
.paste-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-2); font-weight: 650; font-size: 13.5px; white-space: nowrap; transition: transform .2s var(--spring); }
.paste-btn:active { transform: scale(.94); }
.paste-btn svg { width: 17px; height: 17px; }

.banner { margin: 0 16px 12px; padding: 10px 12px; border-radius: 14px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; animation: fadeUp .4s var(--ease) both; }
.banner span { flex: 1; }
.banner.warn { background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .25); color: #fde68a; }

/* Chips y filtros */
.chips { display: flex; gap: 8px; padding: 0 16px; }
.chips.scroll-x { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chips.scroll-x::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; padding: 0; }
.chips.tight { padding: 0; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); white-space: nowrap; font-weight: 600; font-size: 14px; color: var(--muted); transition: all .25s var(--ease); }
.chip em { font-style: normal; font-size: 11.5px; opacity: .7; background: var(--surface-2); padding: 1px 7px; border-radius: 99px; }
.chip.on { color: #fff; background: color-mix(in srgb, var(--accent) 28%, transparent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 4px 18px -6px var(--accent-glow); }
.chip:active { transform: scale(.95); }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); flex: none; display: inline-block; }

.hidden, [hidden] { display: none !important; }
.filter-row { display: flex; gap: 8px; padding: 10px 16px 14px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.select { position: relative; flex: none; }
.filter-row select { width: auto; max-width: 190px; }
.select::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select, input[type=text], input[type=url], input[type=number], input[type=password], input[type=search], input:not([type]), textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; outline: none; transition: border-color .2s, box-shadow .2s; min-height: 42px;
}
.searchbar input { background: none; border: 0; min-height: 0; padding: 9px 0; }
select { appearance: none; padding-right: 30px; font-size: 13.5px; white-space: nowrap; text-overflow: ellipsis; }
select option { background: var(--surface-solid); }
input:focus, select:focus, textarea:focus { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { resize: vertical; line-height: 1.5; }

/* Carrusel "Continuar" (3D) */
.continue { margin-bottom: 14px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.continue .sec-head { padding: 0 16px; }
.continue h2 { font-size: 18px; font-weight: 750; }
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 16px; padding: 6px 16px 10px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.c-item { flex: 0 0 116px; width: 116px; min-width: 0; scroll-snap-align: start; animation: fadeUp .5s var(--ease) both; }
.c-cover { display: block; position: relative; width: 116px; height: 174px; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .8), 0 0 0 1px var(--border); transition: transform .2s var(--ease); }
.c-cover:active { transform: scale(.96); }
.c-cover .cover { width: 100%; height: 100%; aspect-ratio: auto; }
.c-shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .18) var(--shine, 50%), transparent 70%); mix-blend-mode: overlay; pointer-events: none; }
.c-title { font-weight: 650; font-size: 13.5px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.c-go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 14px var(--accent-glow); transition: transform .2s var(--spring); font-weight: 800; font-size: 12px; }
.c-go.ghost { background: var(--surface-2); box-shadow: none; }
.c-go svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.c-go:active { transform: scale(.85); }

/* Portadas */
.cover { position: relative; width: 100%; aspect-ratio: 2/3; overflow: hidden; background: var(--surface-solid); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.cover img.ok { opacity: 1; }
.cover-ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 50) 60% 18%)); }
.cover-ph span { font-size: 30px; font-weight: 800; color: rgba(255, 255, 255, .9); text-shadow: 0 4px 20px rgba(0, 0, 0, .4); letter-spacing: 1px; }
.cover.sm { width: 84px; border-radius: 12px; }
.cover.sm .cover-ph span { font-size: 20px; }
.cover.xs { width: 42px; border-radius: 8px; flex: none; }
.cover.xs .cover-ph span { font-size: 13px; }

/* Cuadrícula de tarjetas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding: 0 16px; }
@media (max-width: 400px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.card { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i) * 35ms); transition: transform .3s var(--ease), box-shadow .3s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.card:active { transform: scale(.98); }
@media (hover: hover) { .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px var(--accent-glow); } .card:hover .cover img { transform: scale(1.05); } }
.card-link { display: block; position: relative; color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(8, 6, 18, .75)); pointer-events: none; }
.card-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: rgba(10, 8, 20, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12); }
.badge.fav { color: #fb7185; padding: 4px; }
.badge.fav svg { width: 14px; height: 14px; fill: currentColor; }
.badge.soft { background: var(--surface-2); }
.type-manhwa { --t: #34d399; } .type-manga { --t: #f87171; } .type-anime { --t: #f472b6; } .type-serie { --t: #60a5fa; } .type-pelicula { --t: #fbbf24; }
.badge[class*="type-"] { color: var(--t); }
.card-plats { position: absolute; bottom: 10px; left: 10px; display: flex; gap: 4px; z-index: 1; }
.card-plats i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); }
.card-pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); z-index: 1; }
.card-pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.card-info { padding: 10px 10px 10px 12px; }
.card-info h3 { font-size: 14px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; }
.card-prog { font-size: 13px; font-weight: 700; color: var(--accent-2); display: inline-block; overflow: hidden; white-space: nowrap; }
.card-plus { min-width: 44px; height: 34px; border-radius: 11px; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-b)); box-shadow: 0 4px 14px -4px var(--accent-glow); transition: transform .15s var(--spring); }
.card-plus:active { transform: scale(.82); }

/* Vista de lista */
.grid.list { grid-template-columns: 1fr; gap: 10px; }
.grid.list .card { display: grid; grid-template-columns: 64px 1fr; align-items: center; }
.grid.list .card-link::after, .grid.list .card-badges, .grid.list .card-plats { display: none; }
.grid.list .cover { border-radius: 0; }
.grid.list .card-info h3 { min-height: 0; -webkit-line-clamp: 1; }

/* Estado vacío */
.empty { text-align: center; padding: 40px 24px; animation: fadeUp .5s var(--ease) both; }
.empty.small { padding: 28px 20px; }
.empty h2 { font-size: 22px; margin: 16px 0 6px; }
.empty h3 { margin: 10px 0 4px; }
.empty .col-btns { max-width: 320px; margin: 20px auto 0; }
.empty-art { display: flex; justify-content: center; gap: 6px; font-size: 38px; }
.empty-art span { animation: floaty 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .25s); display: inline-block; }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(-5deg); } }

/* Barra de pestañas */
.tabbar { position: fixed; z-index: 20; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); height: var(--tabbar-h); max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border-radius: 24px; background: color-mix(in srgb, var(--surface-solid) 82%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--border); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7); }
.tabbar a { display: grid; justify-items: center; gap: 3px; font-size: 10.5px; font-weight: 650; color: var(--muted); padding: 6px 0; position: relative; transition: color .25s; }
.tabbar a .ic { display: grid; transition: transform .3s var(--spring); }
.tabbar a.active { color: #fff; }
.tabbar a.active .ic { transform: translateY(-2px) scale(1.08); color: var(--accent-2); }
.tabbar a.active::after { content: ""; position: absolute; bottom: -2px; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: fadeUp .3s var(--ease); }
.fab { justify-self: center; width: 58px; height: 58px; margin-top: -26px; border-radius: 20px; display: grid; place-items: center; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-b)); box-shadow: 0 12px 28px -6px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .25s var(--spring); }
.fab svg { width: 28px; height: 28px; stroke-width: 2.6; }
.fab:active { transform: scale(.88) rotate(90deg); }

/* Detalle */
.detail { padding-bottom: 20px; }
.hero { position: relative; padding-bottom: 18px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) saturate(1.4) brightness(.55); transform: scale(1.3); animation: heroZoom 18s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11, 10, 20, .3), var(--bg) 95%); }
@keyframes heroZoom { to { transform: scale(1.45) translateY(-4%); } }
.hero-main { position: relative; z-index: 1; display: flex; gap: 16px; padding: 6px 16px 0; align-items: flex-end; }
.hero-cover { position: relative; width: 120px; height: 180px; flex: none; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .2s ease-out; transform-style: preserve-3d; animation: coverIn .6s var(--spring) both; touch-action: pan-y; }
@keyframes coverIn { from { transform: perspective(700px) rotateY(-25deg) translateY(20px); opacity: 0; } }
.hero-cover .cover { width: 100%; height: 100%; aspect-ratio: auto; }
.glare { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .25), transparent 55%); mix-blend-mode: overlay; pointer-events: none; }
.hero-info { flex: 1; min-width: 0; display: grid; gap: 8px; animation: fadeUp .5s .1s var(--ease) both; }
.hero-info h1 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); overflow-wrap: anywhere; }
.genres { display: flex; flex-wrap: wrap; gap: 5px; }
.genres span { font-size: 11.5px; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.stars { display: flex; gap: 2px; }
.star { color: rgba(255, 255, 255, .2); padding: 2px; transition: color .2s, transform .2s var(--spring); }
.star svg { width: 24px; height: 24px; }
.star.on { color: var(--gold); }
.star.on svg { fill: currentColor; filter: drop-shadow(0 0 6px rgba(251, 191, 36, .5)); }
.star.pop { animation: starPop .45s var(--spring) both; }
@keyframes starPop { 40% { transform: scale(1.4) rotate(15deg); } }
.btn.continue-btn { margin: 4px 16px 0; width: calc(100% - 32px); position: relative; overflow: hidden; }
.continue-btn svg { fill: currentColor; stroke: none; }
.continue-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .25) 50%, transparent 65%); transform: translateX(-100%); animation: shimmer 3.2s 1s ease-in-out infinite; }
@keyframes shimmer { 40%, 100% { transform: translateX(100%); } }

.panel { min-width: 0; overflow-wrap: anywhere; margin: 14px 16px 0; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); animation: fadeUp .45s var(--ease) both; }
.panel h3 { font-size: 15.5px; font-weight: 750; margin-bottom: 10px; }
.panel .sec-head h3 { margin: 0; }

/* Contador */
.counter { display: grid; grid-template-columns: 72px minmax(0, 1fr) 104px; align-items: center; gap: 12px; }
.counter.series { grid-template-columns: 72px minmax(0, 1fr); margin-top: 14px; }
.counter.series .cbtn.plus { height: 72px; font-size: 20px; }
.ep-now { text-align: center; display: grid; justify-items: center; gap: 2px; }
.ep-now small { color: var(--muted); font-size: 12.5px; }
.ep-big { display: flex; align-items: baseline; gap: 6px; font-weight: 850; line-height: 1.05; }
.ep-big b, .ep-big .num { font-size: 48px; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.ep-tag { font-size: 20px; color: var(--muted); font-weight: 800; }
.ep-sep { font-size: 30px; color: var(--muted); margin: 0 4px; }
.series-panel .season-row { margin: 14px 0 6px; padding: 14px 0 0; border-top: 1px dashed var(--border); border-bottom: 0; }
.movie-panel p { margin: 10px 0 0; }
.cbtn { height: 72px; border-radius: 20px; font-size: 20px; font-weight: 800; display: grid; place-items: center; transition: transform .15s var(--spring), box-shadow .2s; -webkit-user-select: none; user-select: none; }
.cbtn.minus { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.cbtn.plus { height: 88px; font-size: 28px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-b)); box-shadow: 0 14px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.cbtn.plus::before { content: ""; position: absolute; inset: -50%; background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 50%); opacity: 0; transition: opacity .3s; }
.cbtn.plus:active::before { opacity: 1; transition: 0s; }
.cbtn:active { transform: scale(.9); }
.cval { text-align: center; display: grid; justify-items: center; }
.cval small { color: var(--muted); font-size: 12px; }
.num { font-size: 52px; font-weight: 850; line-height: 1.05; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 1ch; display: inline-block; }
.num-input { font-size: 34px !important; font-weight: 800; text-align: center; width: 120px !important; }
.season-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; white-space: nowrap; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper b { font-size: 20px; min-width: 1.6ch; text-align: center; display: inline-block; }
.season-row .btn { margin-left: auto; }
.pbar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; margin: 14px 0 6px; }
.pbar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width .6s var(--ease); box-shadow: 0 0 12px var(--accent-glow); }

/* Número que salta */
.bump { animation: bump .45s var(--spring); }
@keyframes bump { 35% { transform: scale(1.3); } }
.roll { display: inline-grid; overflow: hidden; vertical-align: bottom; }
.roll > span { grid-area: 1 / 1; }
.roll-old.up { animation: rollOutUp .4s var(--ease) forwards; }
.roll-new.up { animation: rollInUp .4s var(--ease) both; }
.roll-old.down { animation: rollOutDown .4s var(--ease) forwards; }
.roll-new.down { animation: rollInDown .4s var(--ease) both; }
@keyframes rollOutUp { to { transform: translateY(-100%); opacity: 0; } }
@keyframes rollInUp { from { transform: translateY(100%); opacity: 0; } }
@keyframes rollOutDown { to { transform: translateY(100%); opacity: 0; } }
@keyframes rollInDown { from { transform: translateY(-100%); opacity: 0; } }
.float-text { position: fixed; z-index: 90; transform: translate(-50%, 0); font-weight: 900; font-size: 22px; color: var(--gold); text-shadow: 0 2px 12px rgba(251, 191, 36, .6); pointer-events: none; animation: floatUp .9s var(--ease) forwards; }
@keyframes floatUp { to { transform: translate(-50%, -70px) scale(1.3); opacity: 0; } }
.confetti { position: fixed; z-index: 95; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; animation: confetti 1.1s var(--ease) forwards; }
@keyframes confetti { to { transform: translate(var(--dx), calc(var(--dy) + 160px)) rotate(var(--r)); opacity: 0; } }

/* Links */
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.link-row { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .2); min-width: 0; overflow: hidden; }
.link-url { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); opacity: .85; }
.pbadge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 750; padding: 4px 9px 4px 8px; border-radius: 99px; color: #fff; background: color-mix(in srgb, var(--c) 32%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); white-space: nowrap; flex: none; }
.pbadge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

.synopsis { margin: 0; white-space: pre-line; color: #d9d6ea; font-size: 14px; }
.synopsis.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.meta-foot { margin: 18px 16px 12px; font-size: 12px; color: var(--muted); display: grid; gap: 4px; text-align: center; }
.detail > .btn.danger { margin: 8px 16px; width: calc(100% - 32px); }

/* Hojas modales */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(4, 3, 10, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s var(--ease); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; max-height: 88dvh; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; background: var(--surface-solid); border: 1px solid var(--border); border-bottom: 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); transform: translateY(105%); transition: transform .38s var(--ease); }
.sheet.tall { max-height: 94dvh; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-grip { padding: 10px 0 6px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.sheet-grip::before { content: ""; width: 44px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .22); }
.sheet-body { overflow-y: auto; overflow-x: hidden; overflow-wrap: anywhere; padding: 4px 18px calc(18px + var(--safe-b)); overscroll-behavior: contain; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-title { font-size: 19px; font-weight: 800; margin: 2px 0 10px; }
.sheet-head .sheet-title { margin: 0; }
.sticky-actions { position: sticky; bottom: calc(-18px - var(--safe-b)); padding: 12px 0 calc(12px + var(--safe-b)); margin-bottom: calc(-18px - var(--safe-b)); background: linear-gradient(transparent, var(--surface-solid) 30%); z-index: 2; }
#view .sticky-actions { bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); padding: 12px 16px; margin: 0; background: none; }

/* Formularios */
.field { display: grid; gap: 8px; margin: 14px 0 0; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.field.inline { display: flex; align-items: center; gap: 12px; }
.field.inline > span { flex: none; }
.field-row { display: flex; gap: 8px; align-items: center; }
.field-row input { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { display: grid; gap: 4px; }
.mini small { color: var(--muted); font-size: 12px; }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .25); margin-top: 8px; }
.seg button { padding: 9px 2px; border-radius: 10px; font-size: 13px; font-weight: 650; color: var(--muted); transition: all .25s var(--ease); }
.seg button.on { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 14px -4px var(--accent-glow); }
.shake { animation: shake .4s; border-color: var(--danger) !important; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Autocompletar */
.ac-wrap { position: relative; }
.ac-spin { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--surface-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
.ac-results { display: grid; gap: 6px; margin-top: 8px; }
.ac-item { display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); animation: fadeUp .3s var(--ease) both; animation-delay: calc(var(--i) * 40ms); transition: background .2s, transform .15s; }
.ac-item:active { transform: scale(.98); background: var(--surface-2); }
.ac-cover { width: 44px; aspect-ratio: 2/3; border-radius: 7px; overflow: hidden; background: var(--surface-2); flex: none; }
.ac-cover img { width: 100%; height: 100%; object-fit: cover; }
.ac-text { display: grid; gap: 1px; min-width: 0; }
.ac-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-text small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-gen { opacity: .75; }
.ac-attr, .attr { font-size: 11px; color: var(--muted); padding: 4px 2px; }
.attr { padding: 12px 16px; text-align: center; }
.ac-empty { font-size: 13px; color: var(--muted); padding: 8px 2px; }
.info-pill { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--accent-2); padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); animation: fadeUp .3s var(--ease); }
.info-pill svg { width: 16px; height: 16px; }

.cover-edit { display: flex; gap: 12px; align-items: flex-start; }
.cover-actions { flex: 1; display: grid; gap: 8px; min-width: 0; }
.link-edit { display: grid; grid-template-columns: 104px minmax(0, 1fr) 30px; gap: 6px; align-items: center; margin-bottom: 6px; }
.link-edit select, .link-edit input { min-height: 38px; padding: 6px 8px; font-size: 13px; }
.link-edit select { padding-right: 22px; }

/* Reporte de link */
.lr { min-width: 0; margin-top: 10px; padding: 12px; border-radius: 14px; display: grid; gap: 6px; font-size: 14px; animation: fadeUp .3s var(--ease); border: 1px solid var(--border); }
.lr-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lr.ok { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .25); }
.lr.warn { background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .25); }
.lr.info { background: rgba(96, 165, 250, .07); border-color: rgba(96, 165, 250, .22); }
.lr.bad { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .25); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--accent-2); }
.tag.ok { background: rgba(52, 211, 153, .15); color: var(--success); }
.tag.warn { background: rgba(251, 191, 36, .15); color: var(--gold); }
.path-pick { font-family: ui-monospace, "Cascadia Code", Menlo, monospace; font-size: 12.5px; line-height: 2.1; word-break: break-all; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); color: var(--muted); }
.num-chip { display: inline-block; padding: 1px 8px; margin: 0 1px; border-radius: 7px; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold); font-weight: 800; border: 1px solid rgba(251, 191, 36, .4); font-family: inherit; animation: pulse 1.8s ease-in-out infinite; }
.num-chip.on { background: var(--gold); color: #1a1300; animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(251, 191, 36, .15); } }
.match-card > div { min-width: 0; }
.match-card { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); margin-top: 6px; animation: fadeUp .3s var(--ease); }

/* Toasts */
#toasts { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 22px); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 520px; width: 100%; padding: 12px 12px 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface-solid) 92%, #fff 3%); border: 1px solid var(--border); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: toastIn .4s var(--spring) both; font-size: 14px; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast-msg { flex: 1; }
.toast-btn { color: var(--accent-2); font-weight: 750; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 16%, transparent); white-space: nowrap; }
@keyframes toastIn { from { transform: translateY(20px) scale(.95); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(10px); opacity: 0; } }
body.no-scroll #toasts { bottom: auto; top: calc(var(--safe-t) + 12px); }
#offline-pill { position: fixed; z-index: 30; top: calc(var(--safe-t) + 8px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(251, 191, 36, .15); color: #fde68a; border: 1px solid rgba(251, 191, 36, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); white-space: nowrap; animation: fadeUp .4s var(--ease); }
#offline-pill svg { width: 15px; height: 15px; }
#offline-pill .ic { display: grid; }
#offline-pill[hidden] { display: none; }

/* Plataformas */
.plat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 16px; }
.plat-tile { position: relative; overflow: hidden; display: grid; gap: 4px; padding: 18px 16px; min-height: 120px; border-radius: 20px; color: var(--text); background: linear-gradient(145deg, color-mix(in srgb, var(--c) 35%, transparent), color-mix(in srgb, var(--c) 8%, transparent)); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i) * 50ms); transition: transform .25s var(--spring); }
.plat-tile:active { transform: scale(.96); }
.plat-tile::after { content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%; background: var(--c); opacity: .25; filter: blur(30px); }
.plat-glyph { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 45%, transparent); }
.plat-glyph svg { width: 20px; height: 20px; }
.plat-name { font-weight: 800; font-size: 16px; margin-top: 8px; }
.plat-count { font-size: 12.5px; color: var(--muted); }
.plat-hero { margin: 0 16px 8px; padding: 20px; border-radius: 20px; display: flex; align-items: center; gap: 12px; font-size: 20px; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 45%, transparent), transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.plat-hero span { display: grid; }
.group-title { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 18px 16px 10px; }
.group-title em { font-style: normal; color: var(--muted); font-size: 13px; }

/* Fútbol */
.team-results { list-style: none; margin: 0 16px; padding: 0; display: grid; gap: 8px; }
.team-results li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); animation: fadeUp .3s var(--ease) both; }
.team-results small { display: block; font-size: 12px; }
.team-av { width: 48px; height: 48px; flex: none; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; display: grid; place-items: center; font-weight: 900; font-size: 14px; letter-spacing: .5px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 6px 16px -6px var(--c1); }
.team-av.sm { width: 38px; height: 38px; font-size: 12px; }
.team-card { min-width: 0; margin: 14px 16px 0; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); animation: cardIn .45s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.team-head { display: flex; align-items: center; gap: 10px; }
.team-head h3 { font-size: 16px; }
.team-body h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 14px 0 6px; }
.evs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.ev { position: relative; min-width: 0; padding: 10px 40px 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); border-left: 3px solid var(--surface-2); }
.ev.win { border-left-color: var(--success); } .ev.loss { border-left-color: var(--danger); } .ev.draw { border-left-color: var(--gold); }
.ev-teams { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ev-teams span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-teams span:last-child { text-align: right; }
.ev-teams .me { font-weight: 800; }
.score { font-variant-numeric: tabular-nums; font-size: 15px; padding: 2px 8px; border-radius: 8px; background: var(--surface-2); white-space: nowrap; }
.vs { font-size: 12px; color: var(--muted); }
.ev-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.res-tag { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 900; background: var(--surface-2); }
.ev.win .res-tag { background: rgba(52, 211, 153, .2); color: var(--success); }
.ev.loss .res-tag { background: rgba(248, 113, 113, .2); color: var(--danger); }
.ev.draw .res-tag { background: rgba(251, 191, 36, .2); color: var(--gold); }
.loading-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 12px 16px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--surface-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Estadísticas */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 16px 0; }
.kpi { display: grid; justify-items: start; gap: 2px; padding: 14px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms); position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -20px; bottom: -20px; width: 70px; height: 70px; border-radius: 50%; background: var(--accent); opacity: .12; filter: blur(14px); }
.kpi-ic { font-size: 20px; }
.kpi b { font-size: 24px; font-weight: 850; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 74px 1fr 30px; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-row b { text-align: right; }
.bar { height: 12px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--t) 60%, transparent), var(--t)); animation: growW .9s var(--ease) both; animation-delay: calc(var(--i) * 80ms + .15s); box-shadow: 0 0 10px color-mix(in srgb, var(--t) 50%, transparent); }
@keyframes growW { from { width: 0; } }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { width: 130px; height: 130px; flex: none; border-radius: 50%; display: grid; place-items: center; animation: donutIn .9s var(--spring) both; box-shadow: 0 10px 30px -10px var(--accent-glow); }
.donut > div { width: 84px; height: 84px; border-radius: 50%; background: var(--surface-solid); display: grid; place-content: center; text-align: center; }
.donut b { font-size: 24px; }
.donut small { color: var(--muted); font-size: 11px; }
@keyframes donutIn { from { transform: rotate(-120deg) scale(.6); opacity: 0; } }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { margin-left: auto; }
.heat { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.heat i, .heat-legend i { aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); display: block; }
.heat i.l1, .heat-legend i.l1 { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.heat i.l2, .heat-legend i.l2 { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.heat i.l3, .heat-legend i.l3 { background: color-mix(in srgb, var(--accent) 80%, transparent); }
.heat i.l4, .heat-legend i.l4 { background: var(--accent-2); box-shadow: 0 0 6px var(--accent-glow); }
.heat-legend { display: flex; align-items: center; gap: 3px; justify-content: flex-end; margin-top: 8px; }
.heat-legend i { width: 10px; }
.genre-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-cloud span { font-size: calc(13px * var(--s)); padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-2); animation: fadeUp .4s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.genre-cloud em { font-style: normal; opacity: .6; font-size: 11px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-list a { display: flex; align-items: center; gap: 10px; color: var(--text); }
.mini-list small { display: block; font-size: 11.5px; }
.fav-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.fav-strip .cover.sm { width: 72px; }

/* Ajustes */
.backup-state { display: grid; gap: 4px; padding: 12px; border-radius: 12px; font-size: 14px; }
.backup-state small { color: var(--muted); }
.backup-state.warn { background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .25); }
.backup-state.ok { background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .22); }
.swatches { display: flex; gap: 10px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px transparent; transition: all .25s var(--spring); }
.swatch.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c); transform: scale(1.1); }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); margin-top: 12px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { width: 48px; height: 28px; border-radius: 99px; background: var(--surface-2); position: relative; transition: background .25s; flex: none; }
.toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); }
.toggle input:checked + i { background: var(--accent); }
.toggle input:checked + i::after { transform: translateX(20px); background: var(--on-accent); }
.toggle input:focus-visible + i { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.pattern-list, .attr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pattern-list li { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .2); }
.pattern-list small { display: block; font-size: 12px; }
.attr-list li { padding-left: 14px; position: relative; color: var(--muted); }
.attr-list li::before { content: "·"; position: absolute; left: 2px; }
.steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }

/* Importación */
.import-sum { margin: 14px 16px 8px; font-size: 13.5px; color: var(--muted); }
.import-sum b { color: var(--text); }
#bm-review > .row-btns { margin: 0 16px 10px; }
.bm-list { list-style: none; margin: 0 16px; padding: 0; display: grid; gap: 8px; }
.bm { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: opacity .25s; animation: fadeUp .35s var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
.bm.off { opacity: .45; }
.bm-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.bm-title { font-weight: 700; min-height: 36px !important; padding: 6px 10px !important; }
.bm-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.bm-meta select { width: auto; min-height: 34px; padding: 4px 26px 4px 8px; font-size: 12.5px; flex: 1; }
.bm-ch { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.bm-ch input { width: 70px; min-height: 34px; padding: 4px 8px; }
.check { padding-top: 6px; cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check i { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--border); display: grid; place-items: center; transition: all .2s var(--spring); background: var(--surface-2); }
.check input:checked + i { background: var(--accent); border-color: var(--accent); }
.check input:checked + i::after { content: "✓"; color: var(--on-accent); font-weight: 900; font-size: 14px; }

/* Pantallas grandes */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .hero-cover { width: 180px; }
  .hero-info h1 { font-size: 30px; }
  .plat-grid { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: repeat(6, 1fr); }
}

/* Respeto a "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ambient i { animation: none; }
}
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

/* ===================== v1.3: más visual e interactiva ===================== */

/* Onda al tocar */
.btn, .chip, .icon-btn, .cbtn, .fab, .plat-tile, .paste-btn, .qa-btn, .next-pick, .seg button { position: relative; overflow: hidden; isolation: isolate; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); pointer-events: none; z-index: -1; animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Saludo */
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out 1s 2; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
.flame { display: inline-block; animation: flame 1.6s ease-in-out infinite; }
@keyframes flame { 50% { transform: scale(1.18) rotate(-6deg); } }

/* Tarjeta destacada */
.spotlight { position: relative; margin: 2px 16px 14px; padding: 14px; border-radius: 24px; display: flex; gap: 14px; align-items: stretch; overflow: hidden; border: 1px solid var(--border); background: var(--surface-solid); box-shadow: 0 24px 50px -24px var(--accent-glow); animation: cardIn .55s var(--ease) both; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sp-bg { position: absolute; inset: 0; z-index: 0; }
.sp-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(26px) saturate(1.5) brightness(.5); transform: scale(1.4); animation: heroZoom 20s ease-in-out infinite alternate; }
.sp-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 10, 20, .55), rgba(11, 10, 20, .15)); }
.sp-cover { position: relative; z-index: 1; width: 104px; height: 156px; flex: none; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .25s var(--spring); }
.sp-cover:active { transform: scale(.95) rotate(-1deg); }
.sp-cover .cover { width: 100%; height: 100%; aspect-ratio: auto; }
.sp-info { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sp-kicker { font-size: 12px; font-weight: 700; color: var(--accent-2); letter-spacing: .3px; }
.sp-info h2 { font-size: 19px; font-weight: 800; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.sp-meta { display: flex; align-items: center; gap: 10px; }
.sp-meta b { display: block; font-size: 14px; }
.sp-meta small { color: var(--muted); font-size: 12px; }
.sp-actions { margin-top: auto; }
.sp-actions .btn svg { width: 15px; height: 15px; }
.ring { width: 52px; height: 52px; flex: none; }
.ring circle { fill: none; stroke-width: 6; transform: rotate(-90deg); transform-origin: 30px 30px; }
.ring-bg { stroke: rgba(255, 255, 255, .12); }
.ring-fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--off); animation: ringIn 1.2s var(--ease) both .2s; filter: drop-shadow(0 0 4px rgba(251, 191, 36, .6)); }
.ring text { font-size: 14px; font-weight: 800; fill: #fff; stroke: none; }
@keyframes ringIn { from { stroke-dashoffset: var(--len); } }

/* Botón ¿Qué sigue? */
.next-pick { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 0 16px 16px; padding: 12px 14px; border-radius: 18px; text-align: left; color: var(--text); background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, #f59e0b 14%, transparent)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); animation: fadeUp .5s .1s var(--ease) both; transition: transform .2s var(--spring); }
.next-pick:active { transform: scale(.97); }
.next-pick > span:nth-of-type(2) { flex: 1; display: grid; }
.next-pick b { font-size: 15px; }
.next-pick small { color: var(--muted); font-size: 12px; }
.next-pick > svg { color: var(--gold); animation: twinkle 2s ease-in-out infinite; }
.dice { font-size: 26px; display: inline-block; animation: dice 3s ease-in-out infinite; }
@keyframes dice { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-20deg) scale(1.1); } 92% { transform: rotate(15deg) scale(1.1); } }
@keyframes twinkle { 50% { transform: scale(1.25) rotate(20deg); opacity: .7; } }

/* Carrusel: barra de progreso y aparición escalonada */
.c-item { animation-delay: calc(var(--i, 0) * 60ms); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.c-bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 4px; background: rgba(0, 0, 0, .45); overflow: hidden; z-index: 1; }
.c-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--gold)); }

/* Tarjetas: brillo según estado, borde animado en favoritas, presión larga */
.card { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--sc); opacity: .8; box-shadow: 0 0 12px var(--sc); z-index: 2; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.card.is-fav { border-color: transparent; background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, conic-gradient(from var(--ang), #f472b6, var(--gold), var(--accent), #f472b6) border-box; animation: cardIn .5s var(--ease) both, spinBorder 6s linear infinite; animation-delay: calc(var(--i) * 35ms), 0s; }
@keyframes spinBorder { to { --ang: 360deg; } }
.card.holding, .c-item.holding, .spotlight.holding { transform: scale(.95); transition: transform .45s var(--ease); }
.card.pressed, .c-item.pressed, .spotlight.pressed { animation: pressPop .3s var(--spring); }
@keyframes pressPop { 50% { transform: scale(1.03); } }
.card-stars { font-size: 12px; font-weight: 800; color: var(--gold); white-space: nowrap; }

/* Hoja de acciones rápidas */
.qa-head { display: flex; gap: 12px; align-items: center; }
.qa-head h3 { font-size: 17px; margin: 6px 0 2px; }
.qa-head .cover.sm { width: 70px; }
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 16px; }
.qa-btn { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 650; font-size: 14px; transition: transform .18s var(--spring); }
.qa-btn:active { transform: scale(.95); }
.qa-btn.on { color: #fb7185; background: rgba(251, 113, 133, .12); }
.qa-btn.on svg { fill: currentColor; }

/* Ruleta */
.seg.mini3 { grid-template-columns: repeat(3, 1fr); max-width: 300px; margin: 0 auto 14px; }
.slot { position: relative; width: 124px; height: 186px; margin: 6px auto 14px; border-radius: 18px; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 55%, transparent), 0 20px 50px -14px var(--accent-glow); }
.slot-reel { will-change: transform; }
.slot-item { width: 124px; height: 186px; }
.slot-item .cover { width: 100%; height: 100%; aspect-ratio: auto; }
.slot-glow { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(11, 10, 20, .55), transparent 25%, transparent 75%, rgba(11, 10, 20, .55)); }
.rl-result { min-height: 64px; text-align: center; }
.rl-pick { display: grid; gap: 6px; justify-items: center; animation: toastIn .45s var(--spring) both; }
.rl-pick h3 { font-size: 19px; }
.rl-pick .btn { margin-top: 6px; }
.rl-wait { animation: pulseText 1s ease-in-out infinite; }
@keyframes pulseText { 50% { opacity: .4; } }

/* Transiciones entre pantallas (la portada viaja de la tarjeta al detalle) */
.tabbar { view-transition-name: tabbar; }
::view-transition-old(root) { animation: vtOut .2s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .32s var(--ease) both; }
::view-transition-group(vt-cover) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(vt-cover), ::view-transition-new(vt-cover) { height: 100%; object-fit: cover; }
@keyframes vtOut { to { opacity: 0; transform: scale(.98); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* los chips no se encogen (el overflow de la onda los recortaba) */
.chip, .icon-btn, .paste-btn { flex-shrink: 0; }

/* iPhone: los campos de 16px evitan que Safari haga zoom al escribir */
@supports (-webkit-touch-callout: none) {
  input, select, textarea, .searchbar input { font-size: 16px !important; }
}

/* ===================== v1.4 ===================== */

/* Saludo que cambia al nombre de la app */
.brand-text { min-width: 0; }
.brand-title { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.brand-title.greeting { background: none; -webkit-text-fill-color: currentColor; color: var(--text); }
.brand-title.swap-out { opacity: 0; transform: translateY(-8px); }
.brand-title.swap-in { animation: swapIn .5s var(--spring) both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px) scale(.96); letter-spacing: 2px; } }

/* Aviso de instalación */
.banner.install-hint { background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); }
.banner.ok { background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); margin: 0 0 12px; }

/* Colores por tipo en los filtros del inicio */
.tchip.on.type-manhwa, .tchip.on.type-manga, .tchip.on.type-anime, .tchip.on.type-serie, .tchip.on.type-pelicula {
  background: color-mix(in srgb, var(--t) 24%, transparent); border-color: color-mix(in srgb, var(--t) 65%, transparent); box-shadow: 0 4px 18px -6px var(--t); color: #fff; }
.tchip { transition: all .25s var(--ease), transform .2s var(--spring); }
.tchip.on { transform: translateY(-1px); }

/* Selector "¿Qué quieres agregar?" */
.add-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 14px; }
.add-tile { position: relative; overflow: hidden; display: grid; justify-items: start; gap: 2px; padding: 16px 14px; min-height: 108px; border-radius: 20px; text-align: left; color: var(--text);
  background: linear-gradient(150deg, color-mix(in srgb, var(--t, var(--accent)) 30%, transparent), color-mix(in srgb, var(--t, var(--accent)) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--t, var(--accent)) 40%, transparent); animation: tileIn .45s var(--spring) both; animation-delay: calc(var(--i) * 45ms); transition: transform .2s var(--spring); }
.add-tile:active { transform: scale(.94); }
.add-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--t, var(--accent)); opacity: .22; filter: blur(24px); }
.add-tile b { font-size: 16px; }
.add-tile small { color: var(--muted); font-size: 12px; }
.at-emoji { font-size: 32px; line-height: 1; margin-bottom: 6px; display: inline-block; transition: transform .3s var(--spring); }
.add-tile:active .at-emoji { transform: scale(1.25) rotate(-8deg); }
.link-tile { --t: #14b8a6; }
@keyframes tileIn { from { opacity: 0; transform: translateY(16px) scale(.92); } }

/* Selector de tipo dentro del editor */
.type-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.type-tile { display: grid; justify-items: center; gap: 4px; padding: 10px 2px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-weight: 700; font-size: 12px; transition: all .25s var(--ease), transform .2s var(--spring); animation: tileIn .4s var(--spring) both; animation-delay: calc(var(--i) * 35ms); }
.tt-emoji { font-size: 24px; filter: grayscale(.6); transition: transform .3s var(--spring), filter .3s; }
.type-tile.on { color: #fff; background: color-mix(in srgb, var(--t) 26%, transparent); border-color: color-mix(in srgb, var(--t) 70%, transparent); box-shadow: 0 8px 20px -10px var(--t); transform: translateY(-2px); }
.type-tile.on .tt-emoji { filter: none; transform: scale(1.18); }
.type-tile:active { transform: scale(.93); }

/* Botones Siguiente / Último visto */
.go-row { display: flex; gap: 10px; margin: 4px 16px 0; }
.go-row .btn { flex: 1; justify-content: flex-start; gap: 10px; padding: 10px 14px; text-align: left; }
.go-row .btn span { display: grid; line-height: 1.15; font-size: 16px; }
.go-row .btn small { font-size: 11.5px; font-weight: 600; opacity: .8; }
.go-row .go-next { flex: 1.3; }
.go-row .go-next svg { fill: currentColor; stroke: none; }
.go-row .go-last b { font-size: 22px; }
.btn.ghost-glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sp-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Paleta de colores */
.palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.pal { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--muted); animation: tileIn .4s var(--spring) both; animation-delay: calc(var(--i) * 30ms); }
.pal i { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--c) 50%, var(--c2) 50%); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--border); transition: transform .3s var(--spring), box-shadow .3s; }
.pal[data-accent="blanco"] i { background: linear-gradient(135deg, #fff 50%, #000 50%); }
.pal.on { color: var(--text); }
.pal.on i { transform: scale(1.12); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c); }
.pal:active i { transform: scale(.9); }

/* Pestañas de fútbol */
.tabs2 { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 16px 14px; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.tabs2 button { position: relative; z-index: 1; padding: 11px 6px; border-radius: 12px; font-weight: 750; color: var(--muted); transition: color .25s; }
.tabs2 button.on { color: var(--on-accent); }
.tabs2 em { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: rgba(0, 0, 0, .2); margin-left: 4px; }
.tabs2-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-b)); box-shadow: 0 6px 18px -8px var(--accent-glow); transform: translateX(calc(var(--x) * 100%)); transition: transform .35s var(--spring); }
.tab-in { animation: viewIn .35s var(--ease) both; }

/* Ligas */
.lg-add { margin: 0 16px; }
.lg-add .sec-head h3 { font-size: 15px; }
.lg-pop { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.lg-pop::-webkit-scrollbar { display: none; }
.lg-chip { position: relative; flex: none; width: 132px; display: grid; justify-items: start; gap: 2px; padding: 12px; border-radius: 18px; text-align: left; color: #fff; background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: 0 10px 22px -12px var(--c1); animation: tileIn .45s var(--spring) both; animation-delay: calc(var(--i) * 35ms); transition: transform .2s var(--spring), opacity .2s; overflow: hidden; }
.lg-chip:active { transform: scale(.94); }
.lg-chip b { font-size: 14px; line-height: 1.15; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.lg-chip small { font-size: 11.5px; opacity: .85; }
.lg-flag { font-size: 22px; }
.lg-chip.on { outline: 2px solid #fff; outline-offset: -2px; }
.lg-check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #111; font-style: normal; font-weight: 900; font-size: 13px; display: grid; place-items: center; animation: toastIn .3s var(--spring); }
.lg-search { margin: 4px 0 10px; }
.lg-badge { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: 0 6px 16px -8px var(--c1); }
.team-results .lg-badge { width: 38px; height: 38px; font-size: 18px; border-radius: 12px; }
.lg-card { margin: 14px 16px 0; padding: 14px; border-radius: var(--radius); background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 22%, transparent), var(--surface) 55%); border: 1px solid var(--border); animation: cardIn .45s var(--ease) both; animation-delay: calc(var(--i) * 60ms); min-width: 0; }
.lg-head { display: flex; align-items: center; gap: 10px; }
.lg-head h3 { font-size: 16px; }
.lg-tabs { margin: 12px 0 4px; max-width: none; }
.lg-body h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 12px 0 6px; }
.lg-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.lg-table th { font-size: 11px; color: var(--muted); font-weight: 700; padding: 6px 4px; text-align: center; }
.lg-table td { padding: 8px 4px; text-align: center; border-top: 1px solid var(--border); animation: fadeUp .3s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.lg-table .tl { text-align: left; }
.tcell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tcell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--surface-2); font-weight: 800; font-size: 12px; }
.rank.r1 { background: var(--gold); color: #1a1100; }
.rank.r2, .rank.r3, .rank.r4 { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.form { display: flex; gap: 3px; margin-top: 4px; padding-left: 30px; }
.form i { width: 16px; height: 16px; border-radius: 4px; font-size: 9.5px; font-weight: 900; font-style: normal; display: grid; place-items: center; background: var(--surface-2); }
.form .fW { background: rgba(52, 211, 153, .3); color: var(--success); }
.form .fL { background: rgba(248, 113, 113, .3); color: var(--danger); }
.form .fD { background: rgba(251, 191, 36, .25); color: var(--gold); }
.team-av.xs { width: 22px; height: 22px; font-size: 8.5px; letter-spacing: 0; }
.team-av.lg { width: 64px; height: 64px; font-size: 18px; }
.team-results li { animation-delay: calc(var(--i, 0) * 40ms); }

/* Partidos tocables */
.ev { cursor: pointer; transition: transform .15s var(--spring), background .2s; }
.ev:active { transform: scale(.98); background: var(--surface-2); }
.ev-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; }
.evs .more-ev { display: none; }
.evs.show-all .more-ev { display: block; animation: fadeUp .3s var(--ease) both; }

/* Detalle del partido */
.match-hero { text-align: center; padding: 6px 0 14px; margin: 0 -18px 6px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.mh-league { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.mh-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 14px 12px 8px; }
.mh-team { display: grid; justify-items: center; gap: 8px; min-width: 0; animation: tileIn .45s var(--spring) both; }
.mh-team:last-child { animation-delay: .08s; }
.mh-team b { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.mh-score { display: flex; align-items: center; gap: 8px; font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; animation: toastIn .5s .15s var(--spring) both; }
.mh-score i { font-style: normal; color: var(--muted); font-size: 26px; }
.mh-score small { font-size: 13px; font-weight: 700; color: var(--muted); max-width: 110px; }
.mh-meta { font-size: 12px; color: var(--muted); padding: 0 12px; }
.video-btn { margin: 4px 0 6px; }
.video-btn svg { fill: currentColor; stroke: none; }
.mh-sec { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); animation: fadeUp .4s var(--ease) both; }
.mh-sec h4 { font-size: 14px; margin-bottom: 10px; }
.mh-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mh-cols h5 { font-size: 12.5px; margin: 0 0 6px; color: var(--accent-2); }
.mh-cols h6 { font-size: 11.5px; color: var(--muted); margin: 10px 0 4px; text-transform: uppercase; letter-spacing: .5px; }
.tl, .lu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.tl li, .lu li { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.tl li > span:last-child, .lu li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.tl small, .lu small { display: block; color: var(--muted); font-size: 11.5px; }
.tl.right li { flex-direction: row-reverse; text-align: right; }
.min { flex: none; min-width: 32px; padding: 2px 6px; border-radius: 7px; background: var(--surface-2); font-size: 11.5px; font-weight: 800; text-align: center; }
.in { color: var(--success); font-weight: 650; }
.out { color: var(--danger); font-weight: 650; }
.num { font-variant-numeric: tabular-nums; }
.lu .num { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; font-size: 11px; font-weight: 800; -webkit-text-fill-color: currentColor; color: var(--text); letter-spacing: 0; }
.lu.subs { opacity: .8; }
.stat { margin-bottom: 10px; }
.stat-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.stat-top span { color: var(--muted); font-size: 12px; }
.stat-bar { display: flex; gap: 4px; height: 7px; }
.stat-bar i { display: block; height: 100%; border-radius: 6px; width: var(--w); animation: growW .8s var(--ease) both; }
.stat-bar .h { background: var(--accent); }
.stat-bar .a { background: var(--gold); margin-left: auto; }

/* Instrucciones de instalación */
.seg.two { grid-template-columns: 1fr 1fr; max-width: 260px; margin: 0 auto 14px; }
.big-steps { list-style: none; padding: 0; gap: 10px; }
.big-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); animation: fadeUp .35s var(--ease) both; }
.big-steps li:nth-child(2) { animation-delay: .05s; } .big-steps li:nth-child(3) { animation-delay: .1s; } .big-steps li:nth-child(4) { animation-delay: .15s; }
.big-steps li > span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: var(--accent); color: var(--on-accent); }
.ios-share { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); color: #60a5fa; }

/* Barra de pestañas: indicador con rebote */
.tabbar a.active .ic { animation: tabPop .45s var(--spring); }
@keyframes tabPop { 40% { transform: translateY(-5px) scale(1.2); } }
.fab { animation: fabIn .6s .3s var(--spring) both; }
@keyframes fabIn { from { transform: scale(0) rotate(-90deg); } }

.sp-actions .btn svg { fill: currentColor; stroke: none; }

/* ===================== v1.5 ===================== */

/* Tarjetas de tipo en el inicio (grandes y animadas) */
.types-head { padding: 0 16px; margin: 4px 0 8px; }
.types-head h2 { font-size: 18px; font-weight: 750; }
.type-cards { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 16px 12px; scroll-snap-type: x proximity; scroll-padding: 0 16px; }
.type-cards::-webkit-scrollbar { display: none; }
.tcard { --t: var(--accent); position: relative; flex: none; width: 98px; height: 112px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; padding: 12px; border-radius: 22px; text-align: left; color: var(--text); overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, color-mix(in srgb, var(--t) 26%, var(--surface-solid)), var(--surface-solid) 85%);
  border: 1px solid color-mix(in srgb, var(--t) 28%, transparent);
  animation: tcardIn .5s var(--spring) both; animation-delay: calc(var(--i) * 55ms);
  transition: transform .3s var(--spring), box-shadow .3s, border-color .3s; }
.tcard.type-all { --t: var(--accent); }
.tcard::before { content: ""; position: absolute; z-index: -1; width: 90px; height: 90px; right: -26px; top: -26px; border-radius: 50%; background: var(--t); opacity: .28; filter: blur(18px); transition: opacity .3s, transform .5s var(--ease); }
.tc-emoji { position: absolute; top: 10px; left: 12px; font-size: 34px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); transition: transform .4s var(--spring); }
.tc-label { font-weight: 800; font-size: 14px; }
.tc-count { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tcard:active { transform: scale(.93); }
.tcard.on { transform: translateY(-4px); border-color: color-mix(in srgb, var(--t) 80%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--t) 55%, var(--surface-solid)), color-mix(in srgb, var(--t) 14%, var(--surface-solid)));
  box-shadow: 0 14px 28px -12px var(--t), inset 0 1px 0 rgba(255, 255, 255, .18); }
.tcard.on::before { opacity: .55; transform: scale(1.4); }
.tcard.on .tc-emoji { animation: emojiBounce 1.8s var(--ease) infinite; }
.tcard.on .tc-count { color: var(--text); }
.tcard.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--t); box-shadow: 0 0 10px var(--t); animation: growW .4s var(--ease) both; }
@keyframes tcardIn { from { opacity: 0; transform: translateX(24px) scale(.9) rotate(2deg); } }
@keyframes emojiBounce { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-6px) rotate(-8deg) scale(1.1); } 60% { transform: translateY(0) rotate(4deg); } }
.tcard.type-manhwa { --t: #34d399; } .tcard.type-manga { --t: #f87171; } .tcard.type-anime { --t: #f472b6; } .tcard.type-serie { --t: #60a5fa; } .tcard.type-pelicula { --t: #fbbf24; }

/* Filas de partidos más limpias */
.ev-teams .team-av { flex: none; }
.ev-teams { gap: 6px; }
.ev { padding: 12px 34px 10px 12px; }
.ev-meta { padding-left: 2px; }

/* Detalle del partido organizado */
.match-sheet .sheet-body { padding-top: 0; }
.match-hero { padding-bottom: 10px; }
.mh-team small { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: -4px; }
.mh-score span { min-width: 1ch; }
.mh-pill { display: inline-block; margin-top: 4px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-2); }
.mh-pill.done { color: var(--success); background: rgba(52, 211, 153, .12); }
.mh-pill.soon { color: var(--gold); background: rgba(251, 191, 36, .12); }
.mh-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 10px; }
.mh-tabs { position: sticky; top: 0; z-index: 3; margin: 0 0 4px; background: color-mix(in srgb, var(--surface-solid) 92%, #000); grid-template-columns: repeat(3, 1fr); }
.mh-view { animation: viewIn .3s var(--ease) both; }
.mh-empty { text-align: center; padding: 26px 12px; color: var(--muted); }
.mh-empty span { font-size: 40px; display: block; margin-bottom: 6px; animation: floaty 3s ease-in-out infinite; }
.note { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); line-height: 1.4; }
.note.top { margin: 10px 0 2px; }

/* Goles: marcador con balones por equipo */
.gs-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; }
.gs-mid { align-self: center; font-weight: 900; font-size: 18px; color: var(--muted); padding: 0 4px; }
.gs { display: grid; gap: 8px; min-width: 0; }
.gs.away { text-align: right; justify-items: end; }
.gs-balls { font-size: 15px; letter-spacing: 2px; min-height: 20px; }
.gs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13.5px; }
.gs.away .gs-row { justify-content: flex-end; }
.gs-row small { flex-basis: 100%; color: var(--muted); font-size: 11.5px; }
.gs-row em { font-size: 11px; color: var(--gold); font-style: normal; }
.gs-row.unknown { color: var(--muted); font-size: 12px; font-style: italic; }

/* Momentos: línea de tiempo central */
.mo-head { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.moments { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 6px; }
.moments::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; transform: translateX(-50%); background: linear-gradient(var(--border), color-mix(in srgb, var(--accent) 50%, transparent), var(--border)); border-radius: 2px; }
.mo { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; animation: fadeUp .35s var(--ease) both; }
.mo-min { position: relative; z-index: 1; justify-self: center; min-width: 38px; padding: 3px 6px; border-radius: 99px; text-align: center; font-size: 11.5px; font-weight: 850; background: var(--surface-solid); border: 1px solid var(--border); }
.mo.is-goal .mo-min { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 0 12px var(--accent-glow); }
.mo-side { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.mo.home .mo-side:first-child { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.mo-ic { flex: none; font-size: 15px; }
.mo-txt { min-width: 0; display: grid; }
.mo-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.mo-txt small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Alineaciones por equipo */
.lu-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
.lu-team { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); animation: fadeUp .35s var(--ease) both; }
.lu-team.away { border-top-color: var(--gold); animation-delay: .06s; }
.lu-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lu-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-head em { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); }
.lu-team h6 { font-size: 11px; color: var(--muted); margin: 12px 0 6px; text-transform: uppercase; letter-spacing: .5px; }
.lu2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.lu2 li { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .22); min-width: 0; animation: tileIn .35s var(--spring) both; animation-delay: calc(var(--i) * 30ms); }
.shirt { flex: none; width: 30px; height: 30px; border-radius: 9px 9px 12px 12px; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: var(--on-accent); background: linear-gradient(160deg, var(--accent), var(--accent-b)); }
.lu-team.away .shirt { background: linear-gradient(160deg, #fbbf24, #f97316); color: #1a1100; }
.pl { min-width: 0; display: grid; }
.pl b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl small { font-size: 11px; color: var(--muted); }
.lu2.subs li { opacity: .75; }

/* Estadísticas */
.stat { animation: fadeUp .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.stat-top b.lead { color: var(--accent-2); }
.stat-bar { height: 8px; }

/* ===================== v1.6: fútbol en recuadros ===================== */
.add-big { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 0 16px 14px; padding: 14px 16px; border-radius: 18px; color: var(--text); text-align: left;
  background: transparent; border: 2px dashed color-mix(in srgb, var(--accent) 50%, transparent); transition: transform .2s var(--spring), background .2s; animation: fadeUp .4s var(--ease) both; position: relative; overflow: hidden; isolation: isolate; }
.add-big:active { transform: scale(.97); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.add-big span { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 22px; font-weight: 900; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-b)); box-shadow: 0 6px 16px -6px var(--accent-glow); }
.add-big b { font-size: 15px; }

.fb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; }
@media (min-width: 720px) { .fb-grid { grid-template-columns: repeat(3, 1fr); } }
.fb-tile { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px 12px; min-height: 172px; border-radius: 22px; color: var(--text);
  background: linear-gradient(170deg, color-mix(in srgb, var(--c1, var(--accent)) 30%, var(--surface-solid)), var(--surface-solid) 75%);
  border: 1px solid var(--border); animation: tileIn .45s var(--spring) both; animation-delay: calc(var(--i) * 50ms); transition: transform .2s var(--spring), box-shadow .3s; }
.fb-tile::before { content: ""; position: absolute; z-index: -1; width: 120px; height: 120px; top: -50px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: var(--c2, var(--accent)); opacity: .22; filter: blur(26px); }
.fb-tile:active { transform: scale(.95); }
.fb-tile b { font-size: 14px; line-height: 1.2; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fb-tile small { font-size: 11.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.fb-next { margin-top: auto; width: 100%; padding: 6px 8px; border-radius: 10px; background: rgba(0, 0, 0, .25); font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 26px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: dot 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .4; } }

.team-av.md { width: 58px; height: 58px; font-size: 17px; }
.team-av.xl { width: 92px; height: 92px; font-size: 26px; }
.team-av.logo { background: none; box-shadow: none; border-radius: 0; }
.team-av.logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.lg-badge.sm { width: 38px; height: 38px; font-size: 18px; border-radius: 12px; }
.lg-badge.md { width: 58px; height: 58px; font-size: 28px; border-radius: 18px; }
.lg-badge.xl { width: 92px; height: 92px; font-size: 44px; border-radius: 26px; }
.lg-badge.logo { background: none; box-shadow: none; }
.lg-badge.logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }

/* Hoja de equipo / liga */
.fb-hero { text-align: center; padding: 6px 0 16px; margin: 0 -18px 4px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c1, var(--accent)) 35%, transparent), transparent 70%); }
.fb-hero-av { display: grid; place-items: center; margin: 4px auto 10px; animation: toastIn .5s var(--spring) both; }
.fb-hero h3 { font-size: 21px; font-weight: 800; padding: 0 16px; }
.fb-hero p { margin: 4px 0 0; }
.fb-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0 12px; }
.searchbar.in-sheet { margin: 4px 0 12px; }
.ls-title { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 16px 0 10px; }
.lg-popgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lg-popgrid .lg-chip { width: auto; }

/* Escudo propio */
.crest-edit { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.crest-prev { width: 92px; height: 92px; flex: none; border-radius: 22px; display: grid; place-items: center; font-size: 40px; background: var(--surface-2); border: 1px dashed var(--border); overflow: hidden; }
.crest-prev img { width: 100%; height: 100%; object-fit: contain; }
.crest-edit .col-btns { margin-top: 0; }

/* Partido: solo resultado */
.match-hero.solo { margin-bottom: 0; padding-bottom: 6px; }
.vs-big { font-size: 28px; font-weight: 900; color: var(--muted); letter-spacing: 2px; }
.mh-info { display: grid; gap: 8px; margin: 16px 0 12px; padding: 0 4px; text-align: left; }
.mh-info > div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.mh-info > div span { font-size: 18px; }
.mh-info b { font-weight: 600; }
#mh-video .video-btn { margin: 0; }

.go-search { display: block; margin: 6px 16px 0; text-align: center; width: calc(100% - 32px); font-weight: 600; opacity: .85; }
.chap-url { margin-top: 10px; }
.chap-url small { line-height: 1.35; }

/* ===================== v1.7 ===================== */
/* Contador: números sólidos (sin degradado recortado) y rodillo limpio */
.num, .ep-big b, .ep-big .num { background: none !important; -webkit-text-fill-color: currentColor !important; color: #fff; text-shadow: 0 4px 24px var(--accent-glow); }
.num.rolling, .ep-big b.rolling { display: inline-grid; overflow: hidden; vertical-align: bottom; padding: 0 2px; }
.rn { grid-area: 1 / 1; display: block; }
.rn-old.up { animation: rnOutUp .34s cubic-bezier(.4, 0, .2, 1) forwards; }
.rn-cur.up { animation: rnInUp .34s cubic-bezier(.2, .8, .2, 1) both; }
.rn-old.down { animation: rnOutDown .34s cubic-bezier(.4, 0, .2, 1) forwards; }
.rn-cur.down { animation: rnInDown .34s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rnOutUp { to { transform: translateY(-75%); opacity: 0; filter: blur(2px); } }
@keyframes rnInUp { from { transform: translateY(75%); opacity: 0; filter: blur(2px); } }
@keyframes rnOutDown { to { transform: translateY(75%); opacity: 0; filter: blur(2px); } }
@keyframes rnInDown { from { transform: translateY(-75%); opacity: 0; filter: blur(2px); } }
.num.bump, .ep-big .bump { animation: numPop .4s var(--spring); }
@keyframes numPop { 30% { transform: scale(1.18); text-shadow: 0 0 30px var(--accent-glow); } }
.cbtn.plus:active span { display: inline-block; transform: scale(1.15); }

/* Hoja "¿Hasta dónde leíste?" */
.ci-head { display: flex; gap: 12px; align-items: center; }
.ci-head small { color: var(--accent-2); font-weight: 700; font-size: 12px; }
.ci-head h3 { font-size: 18px; margin-top: 2px; }
.ci-q { text-align: center; font-weight: 750; font-size: 16px; margin: 16px 0 10px; }
.ci-stepper { display: grid; grid-template-columns: 64px 1fr 64px; gap: 12px; align-items: center; }
.ci-stepper .cbtn { height: 64px; font-size: 28px; }
.ci-val { display: grid; justify-items: center; gap: 2px; }
.ci-val input { text-align: center; font-size: 40px !important; font-weight: 850; min-height: 64px; padding: 4px; border-radius: 18px; font-variant-numeric: tabular-nums; }
.ci-val small { color: var(--muted); font-size: 12px; }
.ci-quick { justify-content: center; margin: 12px 0 2px; flex-wrap: wrap; padding: 0; }
.ci-hint { display: block; font-size: 12px; line-height: 1.4; }
input.bump { animation: numPop .35s var(--spring); }

/* ===================== v1.8: link primero ===================== */
.counter.locked { grid-template-columns: minmax(0, 1fr) 132px; }
.lf-btn { display: grid; place-items: center; align-content: center; gap: 0; height: 96px !important; font-size: 14px !important; line-height: 1.15; padding: 6px; }
.lf-btn span { font-size: 22px; }
.lf-btn b { font-size: 14px; }
.lf-btn small { font-size: 11px; opacity: .85; font-weight: 600; }
.lf-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 12px; color: var(--muted); line-height: 1.45; }
.lf-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 2px; }
.lf-dots i { width: 28px; height: 5px; border-radius: 5px; background: var(--surface-2); transition: background .3s, width .3s var(--spring); }
.lf-dots i.on { background: var(--accent); width: 40px; }
.lf-step { animation: viewIn .3s var(--ease) both; }
.lf-msg { min-height: 2.6em; margin: 8px 2px 0; }
.lf-msg.ok { color: var(--success); }
.lf-prev { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface-2); font-size: 12.5px; margin-bottom: 12px; min-width: 0; }
.lf-prev span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lock-hint { grid-column: 1 / -1; font-size: 11.5px; }
input:disabled { opacity: .55; }

/* ===================== v1.9 ===================== */
/* Buscador con sugerencias */
.search-wrap { position: relative; z-index: 6; }
.search-wrap .searchbar { position: relative; }
.q-clear { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 0; }
.suggest { position: absolute; left: 16px; right: 16px; top: calc(100% - 6px); max-height: 60vh; overflow-y: auto; padding: 6px; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .85), 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent); animation: sgIn .22s var(--ease) both; transform-origin: top center; }
@keyframes sgIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.sg-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; text-align: left; color: var(--text); animation: fadeUp .25s var(--ease) both; animation-delay: calc(var(--i) * 30ms); transition: background .15s; }
.sg-item:active, .sg-item:hover { background: var(--surface-2); }
.sg-item .cover.xs { width: 38px; }
.sg-text { flex: 1; min-width: 0; display: grid; }
.sg-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-empty { padding: 14px 10px 6px; font-size: 13.5px; color: var(--muted); text-align: center; }
.sg-foot { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px 2px; border-top: 1px solid var(--border); margin-top: 4px; flex-wrap: wrap; }

/* Tarjeta destacada: toda clicable */
.spotlight { cursor: pointer; transition: transform .2s var(--spring), box-shadow .3s; }
.spotlight:active { transform: scale(.985); }
.spotlight::after { content: "›"; position: absolute; right: 14px; top: 12px; z-index: 1; font-size: 22px; color: rgba(255, 255, 255, .55); }
.c-item { cursor: pointer; }

/* Plataformas */
.plat-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px 14px; }
.plat-summary div { display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); animation: cardIn .45s var(--ease) both; }
.plat-summary div:nth-child(2) { animation-delay: .06s; } .plat-summary div:nth-child(3) { animation-delay: .12s; }
.plat-summary b { font-size: 24px; font-weight: 850; font-variant-numeric: tabular-nums; }
.plat-summary small { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.plat-none { text-decoration: none; }
.plat-none b { font-size: 20px; }
.plat-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; }
@media (min-width: 720px) { .plat-grid2 { grid-template-columns: repeat(3, 1fr); } }
.ptile { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 4px; padding: 14px; min-height: 168px; border-radius: 22px; color: var(--text);
  background: linear-gradient(155deg, color-mix(in srgb, var(--c) 42%, var(--surface-solid)), color-mix(in srgb, var(--c) 8%, var(--surface-solid)) 70%);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 14px 30px -18px var(--c);
  animation: tileIn .5s var(--spring) both; animation-delay: calc(var(--i) * 55ms); transition: transform .25s var(--spring); }
.ptile::before { content: ""; position: absolute; z-index: -1; width: 140px; height: 140px; right: -50px; bottom: -60px; border-radius: 50%; background: var(--c); opacity: .3; filter: blur(30px); animation: drift 14s ease-in-out infinite alternate; }
.ptile:active { transform: scale(.95); }
.ptile.is-empty { opacity: .62; filter: saturate(.6); }
.ptile-top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 64px; }
.ptile-name { font-size: 16px; font-weight: 800; margin-top: auto; }
.ptile-desc { font-size: 12px; color: color-mix(in srgb, var(--text) 75%, transparent); }
.plat-glyph.big { width: 56px; height: 56px; border-radius: 18px; font-size: 26px; }
.plat-glyph.big svg { width: 26px; height: 26px; }
.pstack { position: relative; width: 74px; height: 64px; }
.pstack span { position: absolute; right: calc(var(--k) * 16px); top: calc(var(--k) * 3px); width: 42px; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 14px rgba(0, 0, 0, .55); transform: rotate(calc(var(--k) * -7deg)); z-index: calc(3 - var(--k)); transition: transform .35s var(--spring); }
.pstack span .cover { aspect-ratio: 2/3; }
.ptile:hover .pstack span, .ptile:active .pstack span { transform: rotate(calc(var(--k) * -14deg)) translateX(calc(var(--k) * -4px)); }
.sbar { display: flex; gap: 2px; height: 6px; border-radius: 6px; overflow: hidden; background: rgba(0, 0, 0, .25); margin-top: 8px; }
.sbar i { display: block; height: 100%; background: var(--c); animation: growW .8s var(--ease) both; }
.sbar.empty { opacity: .4; }

.plat-hero2 { position: relative; overflow: hidden; margin: 0 16px 14px; padding: 18px; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 45%, var(--surface-solid)), var(--surface-solid) 80%); animation: cardIn .5s var(--ease) both; }
.ph-glow { position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: var(--c); opacity: .35; filter: blur(40px); animation: drift 16s ease-in-out infinite alternate; }
.ph-row { position: relative; display: flex; align-items: center; gap: 14px; }
.ph-row h2 { font-size: 24px; font-weight: 850; }
.ph-row small { color: color-mix(in srgb, var(--text) 75%, transparent); font-size: 12.5px; }
.ph-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.ph-stats div { display: grid; padding: 10px 6px; border-radius: 14px; background: rgba(0, 0, 0, .25); text-align: center; }
.ph-stats b { font-size: 20px; font-weight: 850; font-variant-numeric: tabular-nums; }
.ph-stats small { font-size: 10.5px; color: color-mix(in srgb, var(--text) 70%, transparent); }
.pf-chips { margin-bottom: 12px; }
.pstack .cover-ph span { font-size: 12px; }

/* ===================== v2.0 ===================== */
/* Tarjeta destacada que rota */
.spot-deck { position: relative; touch-action: pan-y; }
.spot-deck .spotlight { margin-bottom: 8px; }
.spotlight.sp-in-next { animation: spNext .5s var(--ease) both; }
.spotlight.sp-in-prev { animation: spPrev .5s var(--ease) both; }
@keyframes spNext { from { opacity: 0; transform: translateX(36px) scale(.97); } }
@keyframes spPrev { from { opacity: 0; transform: translateX(-36px) scale(.97); } }
.spot-dots { display: flex; justify-content: center; gap: 6px; margin: 0 16px 14px; }
.spot-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; background: var(--surface-2); overflow: hidden; position: relative; transition: width .35s var(--spring), background .3s; }
.spot-dots button.on { width: 28px; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.spot-dots button.on i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: dotFill 5s linear both; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
[data-motion="off"] .spot-dots button.on i { animation: none; }

/* Ajustes: navegador */
.br-list { display: grid; gap: 8px; margin-top: 10px; }
.br-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; text-align: left; background: var(--surface); border: 1px solid var(--border); color: var(--text); animation: fadeUp .3s var(--ease) both; animation-delay: calc(var(--i) * 30ms); transition: border-color .2s, background .2s, transform .2s var(--spring); }
.br-opt:active { transform: scale(.98); }
.br-opt .grow { display: grid; gap: 2px; min-width: 0; }
.br-opt b { font-size: 14.5px; }
.br-opt small { font-size: 12px; color: var(--muted); }
.br-emoji { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); font-size: 20px; }
.br-radio { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--border); transition: all .25s var(--spring); }
.br-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.br-opt.on .br-radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); transform: scale(1.1); }
#br-test { margin-top: 10px; }

/* Deportes */
.sport-switch { display: flex; gap: 8px; padding: 0 16px 14px; overflow-x: auto; scrollbar-width: none; }
.sport-switch::-webkit-scrollbar { display: none; }
.sport-pill { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-weight: 750; animation: tileIn .4s var(--spring) both; animation-delay: calc(var(--i) * 40ms); transition: all .3s var(--spring); }
.sport-pill span { font-size: 22px; transition: transform .35s var(--spring); }
.sport-pill.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #000)); box-shadow: 0 10px 24px -10px var(--c); }
.sport-pill.on span { transform: scale(1.18) rotate(-8deg); }
.sports .tabs2-pill { background: linear-gradient(135deg, var(--sc), color-mix(in srgb, var(--sc) 55%, #000)); box-shadow: 0 6px 18px -8px var(--sc); }
.sports .tabs2 button.on { color: #fff; }
.tabs2.three { grid-template-columns: repeat(3, 1fr); }
.tabs2.three .tabs2-pill { width: calc(33.333% - 2.67px); }
.tabs2.three button { font-size: 13px; padding: 11px 2px; }
#sport-body.tab-in, #lg-view.tab-in, #f1-view.tab-in, #ufc-view.tab-in { animation: viewIn .3s var(--ease) both; }

/* Días */
.day-strip { display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
.day-strip::-webkit-scrollbar { display: none; }
.day-pill { flex: none; display: grid; justify-items: center; gap: 1px; min-width: 54px; padding: 8px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: all .25s var(--spring); }
.day-pill small { font-size: 11px; font-weight: 650; }
.day-pill b { font-size: 18px; font-weight: 850; color: var(--text); }
.day-pill.today { border-color: color-mix(in srgb, var(--sc) 60%, transparent); }
.day-pill.on { background: var(--sc); border-color: transparent; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px -8px var(--sc); }
.day-pill.on b { color: #fff; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 0 18px 8px; font-size: 13px; }
.day-head span { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.games { display: grid; gap: 10px; padding: 0 16px 10px; }
@media (min-width: 720px) { .games { grid-template-columns: repeat(2, 1fr); } }
.mh-view .games { padding: 0; }
.game-card { display: grid; gap: 8px; width: 100%; padding: 12px 14px; border-radius: 18px; text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--border); animation: cardIn .4s var(--ease) both; animation-delay: calc(var(--i) * 35ms); transition: transform .2s var(--spring), border-color .2s; }
.game-card:active { transform: scale(.98); }
.game-card.is-fav { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: linear-gradient(135deg, rgba(251, 191, 36, .08), var(--surface) 60%); }
.game-card.is-live { border-color: rgba(239, 68, 68, .55); box-shadow: 0 0 0 1px rgba(239, 68, 68, .2), 0 12px 26px -16px rgba(239, 68, 68, .8); }
.gc-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.gc-status { font-weight: 750; display: inline-flex; align-items: center; gap: 5px; }
.gc-status.live { color: #f87171; }
.gc-status.done { color: var(--muted); }
.gc-note { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.gc-team { display: flex; align-items: center; gap: 10px; }
.gc-name { flex: 1; min-width: 0; display: grid; font-weight: 700; font-size: 14.5px; }
.gc-name small { font-size: 11px; font-weight: 500; color: var(--muted); }
.gc-score { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.gc-team.lose { opacity: .55; }
.gc-team.win .gc-score { color: var(--text); }
.fav-star { font-style: normal; color: var(--gold); font-size: 12px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: livePulse 1.4s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.mh-pill.live { color: #fca5a5; background: rgba(239, 68, 68, .15); display: inline-flex; align-items: center; gap: 6px; }
.linescore { margin: 14px 0 0; overflow-x: auto; }
.linescore table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.linescore th { font-size: 11px; color: var(--muted); padding: 6px 5px; font-weight: 700; }
.linescore td { padding: 7px 5px; border-top: 1px solid var(--border); text-align: center; }
.linescore .tl { text-align: left; font-weight: 700; }
.fav-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.fav-row .btn.on, .fb-actions .btn.on { border-color: var(--gold); color: var(--gold); }
.st-group { margin-bottom: 12px; }
.st-group h3 { margin-bottom: 2px; }
.st-table td, .st-table th { padding-left: 2px; padding-right: 2px; }
.st-table tr { cursor: pointer; }
.st-table tr.is-fav td { background: rgba(251, 191, 36, .07); }
.st-table tr.cut td { border-top: 2px dashed color-mix(in srgb, var(--sc) 70%, transparent); }
.st-table tr.cut2 td { border-top: 2px dashed var(--border); }
.st-table .up { color: var(--success); font-weight: 700; }
.st-table .down { color: var(--danger); font-weight: 700; }
.st-table .tcell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }

/* Fórmula 1 */
.f1-hero { position: relative; overflow: hidden; display: grid; gap: 6px; margin: 0 16px 14px; padding: 18px; border-radius: 24px; text-align: left; border: 1px solid rgba(220, 38, 38, .4);
  background: radial-gradient(120% 120% at 100% 0%, rgba(220, 38, 38, .35), transparent 55%), var(--surface-solid); animation: cardIn .5s var(--ease) both; }
.f1-hero.in-sheet { margin: 0 0 12px; }
.f1-stripes { position: absolute; right: -30px; top: -10px; width: 160px; height: 120px; opacity: .22; pointer-events: none;
  background: repeating-linear-gradient(-55deg, #fff 0 10px, transparent 10px 22px); -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); animation: stripes 2.5s linear infinite; }
@keyframes stripes { to { background-position: 44px 0; } }
.f1-kicker, .ufc-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #fca5a5; display: inline-flex; align-items: center; gap: 6px; }
.f1-hero h2, .ufc-hero h2 { font-size: 22px; font-weight: 850; line-height: 1.15; }
.f1-cd { display: grid; gap: 2px; margin: 8px 0 4px; padding: 12px 14px; border-radius: 16px; background: rgba(0, 0, 0, .3); border: 1px solid var(--border); }
.f1-cd small { font-size: 11.5px; color: var(--muted); }
.f1-cd b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.f1-sessions { display: grid; gap: 4px; margin: 4px 0; padding: 0; list-style: none; }
.f1-sessions li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; background: var(--surface); font-size: 13px; }
.f1-sessions li b { font-weight: 650; text-align: right; }
.f1-sessions li.past { opacity: .5; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.f1-sessions li.race { background: rgba(220, 38, 38, .18); font-weight: 750; }
.f1-prog { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.f1-prog i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #dc2626, #f97316); animation: growW 1s var(--ease) both; }
.f1-cal { display: grid; gap: 8px; padding: 0 16px 10px; margin: 0; list-style: none; }
.f1-race { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--border); animation: fadeUp .3s var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
.f1-race .grow { display: grid; min-width: 0; }
.f1-race b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f1-race small { font-size: 12px; color: var(--muted); }
.f1-race.past { opacity: .8; }
.f1-race.next { border-color: rgba(220, 38, 38, .6); background: linear-gradient(135deg, rgba(220, 38, 38, .15), var(--surface) 70%); }
.f1-round { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); font-weight: 850; font-size: 13px; }
.f1-race.next .f1-round { background: #dc2626; color: #fff; }
.f1-win { font-size: 12px; font-weight: 700; white-space: nowrap; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; margin: 4px 16px 14px; }
.pd { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 0; text-align: center; animation: tileIn .5s var(--spring) both; animation-delay: calc(var(--i) * 90ms); }
.pd b { font-size: 13.5px; overflow-wrap: anywhere; }
.pd small { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.pd-medal { font-size: 28px; }
.pd i { display: block; width: 100%; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 70%, transparent), color-mix(in srgb, var(--sc) 15%, transparent)); }
.pd1 i { height: 70px; } .pd2 i { height: 50px; } .pd3 i { height: 36px; }
.f1-stand { display: grid; gap: 6px; padding: 0 16px 10px; margin: 0; list-style: none; }
.mh-view .f1-stand, #rc-body .f1-stand { padding: 0; }
.f1-stand li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); animation: fadeUp .3s var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
.f1-stand li.top { border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.f1-stand .grow { display: grid; gap: 2px; min-width: 0; }
.f1-stand b { font-size: 14px; }
.f1-stand small { font-size: 11.5px; color: var(--muted); }
.f1-bar { display: block; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 3px; }
.f1-bar i { display: block; height: 100%; background: var(--sc); border-radius: 4px; animation: growW .8s var(--ease) both; }
.f1-pts { display: grid; justify-items: end; text-align: right; }
.f1-pts b { font-size: 16px; font-weight: 850; font-variant-numeric: tabular-nums; }
.tag.fast { font-style: normal; background: rgba(168, 85, 247, .2); color: #d8b4fe; margin-left: 4px; }
#rc-tabs { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin-bottom: 10px; }
#rc-body { min-height: 120px; }

/* UFC */
.ufc-hero { position: relative; overflow: hidden; display: grid; gap: 6px; width: calc(100% - 32px); margin: 0 16px 14px; padding: 18px; border-radius: 24px; text-align: left; color: var(--text); border: 1px solid rgba(161, 98, 7, .5);
  background: radial-gradient(120% 120% at 0% 0%, rgba(202, 138, 4, .3), transparent 55%), radial-gradient(100% 100% at 100% 100%, rgba(220, 38, 38, .25), transparent 60%), var(--surface-solid); animation: cardIn .5s var(--ease) both; }
.ufc-hero.in-sheet { width: 100%; margin: 0 0 12px; }
.ufc-hero .ufc-kicker { color: #fcd34d; }
.ufc-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 8px 0 2px; }
.ufc-vs div { display: grid; gap: 2px; }
.ufc-vs div:last-child { text-align: right; }
.ufc-vs b { font-size: 16px; font-weight: 850; line-height: 1.15; }
.ufc-vs small { font-size: 11.5px; color: var(--muted); }
.ufc-vs > span { font-size: 18px; font-weight: 900; color: #fcd34d; text-shadow: 0 0 18px rgba(252, 211, 77, .5); animation: pulseText 2s ease-in-out infinite; }
.ufc-weight { font-size: 12px; color: var(--muted); text-align: center; }
.ufc-list { display: grid; gap: 8px; padding: 0 16px 10px; margin: 0; list-style: none; }
.ufc-ev { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--border); animation: fadeUp .3s var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
.ufc-ev.is-live { border-color: rgba(239, 68, 68, .55); }
.ufc-ev .grow { display: grid; gap: 2px; min-width: 0; }
.ufc-ev b { font-size: 14.5px; }
.ufc-ev small { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ufc-ev .ufc-res { color: var(--gold); font-weight: 650; }
.ufc-date { width: 46px; flex: none; display: grid; justify-items: center; padding: 6px 0; border-radius: 12px; background: linear-gradient(160deg, rgba(202, 138, 4, .35), rgba(220, 38, 38, .2)); }
.ufc-date b { font-size: 18px; font-weight: 900; line-height: 1; }
.ufc-date small { font-size: 10.5px; text-transform: uppercase; color: var(--text); }
.fight-card { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.fight-card li { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); animation: fadeUp .3s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
.fight-card li.main { border-color: rgba(202, 138, 4, .55); background: linear-gradient(135deg, rgba(202, 138, 4, .14), var(--surface) 70%); }
.fc-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); font-weight: 650; margin-bottom: 8px; }
.fc-method { color: var(--gold); }
.fc-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.fc-f { display: grid; gap: 2px; min-width: 0; }
.fc-f:last-child { text-align: right; }
.fc-f b { font-size: 14px; line-height: 1.2; }
.fc-f small { font-size: 11px; color: var(--muted); }
.fc-f.win b { color: var(--success); }
.fc-f.lose { opacity: .55; }
.fc-vs { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.sport-pill, .game-card, .f1-race, .ufc-ev, .br-opt, .day-pill { position: relative; overflow: hidden; isolation: isolate; }
.game-hero { padding-left: 16px; padding-right: 16px; }
.br-list { grid-template-columns: 1fr 1fr; }
.br-opt[data-browser="system"], .br-opt[data-browser="app"], .br-opt[data-browser="ask"] { grid-column: 1 / -1; }
.br-opt:not([data-browser="system"]):not([data-browser="app"]):not([data-browser="ask"]) { padding: 10px; gap: 8px; }
.br-opt:not([data-browser="system"]):not([data-browser="app"]):not([data-browser="ask"]) .br-emoji { width: 32px; height: 32px; font-size: 17px; border-radius: 10px; }
.br-opt:not([data-browser="system"]):not([data-browser="app"]):not([data-browser="ask"]) b { font-size: 13px; }
.br-opt:not([data-browser="system"]):not([data-browser="app"]):not([data-browser="ask"]) .br-radio { width: 18px; height: 18px; }

/* ===================== v2.1 ===================== */
/* Fútbol con ESPN */
.gc-score small { font-size: 13px; color: var(--muted); font-weight: 700; }
.mh-score small { font-size: 15px; color: var(--muted); margin-left: 2px; }
.day-strip.in-sheet { padding: 2px 0 12px; }
.day-strip.in-sheet .day-pill small:last-child { font-size: 10px; text-transform: uppercase; }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.form-row .form { padding: 0; margin: 0; gap: 5px; }
.form-row .form i { width: 24px; height: 24px; font-size: 11px; border-radius: 7px; }
.today-sec h4 { padding: 4px 18px 8px; font-size: 14px; }
.st-name { margin: 12px 0 2px; font-size: 14px; }
.fb-table th, .fb-table td { padding-left: 2px; padding-right: 2px; }
.fb-table tr { cursor: pointer; }
.fb-table tr.noted td:first-child { box-shadow: inset 3px 0 0 var(--nc); }
.fb-table tr.is-fav td { background: rgba(251, 191, 36, .08); }
.fb-table .tcell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 112px; }
.st-legend { display: grid; gap: 4px; margin: 10px 0 4px; padding: 0; list-style: none; font-size: 11.5px; color: var(--muted); }
.st-legend li { display: flex; align-items: center; gap: 8px; }
.st-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--nc); flex: none; }

/* Línea de tiempo del partido */
.timeline { position: relative; display: grid; gap: 6px; margin: 4px 0 10px; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: var(--border); }
.tl-ev { position: relative; display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 8px; animation: fadeUp .3s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
.tl-ic { grid-column: 2; grid-row: 1; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-solid); border: 1px solid var(--border); font-size: 15px; z-index: 1; }
.tl-what { display: grid; gap: 1px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.tl-what b { font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.tl-what small { font-size: 11px; color: var(--muted); }
.tl-min { font-size: 12px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-ev.home .tl-what { grid-column: 1; grid-row: 1; text-align: right; }
.tl-ev.home .tl-min { grid-column: 3; grid-row: 1; }
.tl-ev.away .tl-what { grid-column: 3; grid-row: 1; }
.tl-ev.away .tl-min { grid-column: 1; grid-row: 1; text-align: right; }
.tl-ev.k-goal .tl-what, .tl-ev.k-og .tl-what { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .1); }
.tl-ev.k-goal .tl-ic { background: var(--success); border-color: transparent; animation: bump .6s .2s var(--spring) both; }
.tl-ev.k-red .tl-what { border-color: rgba(248, 113, 113, .45); }
.tl-ht { display: flex; justify-content: center; position: relative; z-index: 1; }
.tl-ht span { font-size: 11px; font-weight: 800; padding: 3px 12px; border-radius: 99px; background: var(--surface-solid); border: 1px solid var(--border); color: var(--muted); text-transform: uppercase; }

/* Alineaciones */
.lineups { display: grid; gap: 12px; }
@media (min-width: 600px) { .lineups { grid-template-columns: 1fr 1fr; } }
.lu-team { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); animation: fadeUp .35s var(--ease) both; }
.lu-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lu-head b { flex: 1; min-width: 0; font-size: 14.5px; }
.lu-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.lu-list li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-top: 1px solid var(--border); font-size: 13.5px; }
.lu-list li:first-child { border-top: 0; }
.lu-list small { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.lu-num { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); font-size: 12px; font-weight: 850; font-variant-numeric: tabular-nums; }
.lu-in { font-style: normal; color: var(--success); font-weight: 900; }
.lu-out { font-style: normal; color: var(--danger); font-weight: 900; }
.lu-list li.came .lu-num { background: rgba(52, 211, 153, .2); color: var(--success); }
.lu-bench { margin-top: 8px; }
.lu-bench summary { cursor: pointer; font-size: 12.5px; font-weight: 750; color: var(--muted); padding: 6px 0; }

/* Estadísticas */
.mstats { display: grid; gap: 12px; margin: 6px 0 10px; padding: 0; list-style: none; }
.mstats li { animation: fadeUp .3s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
.ms-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; margin-bottom: 5px; }
.ms-row span { color: var(--muted); font-size: 12px; text-align: center; }
.ms-row b { font-size: 15px; font-weight: 850; font-variant-numeric: tabular-nums; min-width: 40px; }
.ms-row b:last-child { text-align: right; }
.ms-bar { display: flex; gap: 4px; height: 7px; }
.ms-bar i { display: block; height: 100%; border-radius: 6px; background: var(--surface-2); animation: growW .8s var(--ease) both; }
.ms-bar i:first-child { margin-left: auto; }
.ms-bar i.lead { background: linear-gradient(90deg, var(--sc, var(--accent)), color-mix(in srgb, var(--sc, var(--accent)) 60%, #fff)); }

/* Elegir navegador al abrir */
.br-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.br-pick .br-opt { padding: 12px 10px; }
.br-remember { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
:root { --sc: var(--accent); }

/* ===================== v2.2 ===================== */
/* Plataformas: las vacías en fila compacta y sin estirar la cuadrícula */
.plat-grid2 { align-content: start; grid-auto-rows: auto; }
.plat-sub { margin: 18px 16px 8px; font-size: 14px; color: var(--muted); font-weight: 750; }
.plat-minis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 16px; align-content: start; }
.ptile-mini { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; color: var(--text); text-decoration: none; background: color-mix(in srgb, var(--c) 10%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); animation: fadeUp .35s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.ptile-mini > span:last-child { display: grid; min-width: 0; }
.ptile-mini b { font-size: 13.5px; }
.ptile-mini small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptile-mini .plat-glyph { width: 34px; height: 34px; border-radius: 11px; flex: none; }
.ptile-mini .plat-glyph svg { width: 16px; height: 16px; }
/* Buscador: sin la X propia del navegador (ya hay una de la app) */
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
input[type="search"]::-ms-clear { display: none; }
.grid, .fb-grid, .games { align-content: start; }
.status-hint { margin: 8px 2px 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; animation: fadeUp .25s var(--ease) both; }
.fb-sec { margin: 14px 16px 8px; font-size: 14px; font-weight: 800; color: var(--muted); }

/* Inicio: ¿Qué sigue? + Descubrir */
.pick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 16px 16px; }
.pick-row.solo { grid-template-columns: 1fr; }
.pick-row .next-pick { width: 100%; margin: 0; padding: 12px; gap: 10px; text-decoration: none; }
.pick-row .next-pick small { font-size: 11.5px; line-height: 1.25; }
.pick-row .dice { font-size: 24px; }
.next-pick.disc { background: linear-gradient(120deg, color-mix(in srgb, #06b6d4 22%, transparent), color-mix(in srgb, var(--accent) 18%, transparent)); border-color: color-mix(in srgb, #06b6d4 40%, transparent); animation-delay: .16s; }
.next-pick.disc .dice { animation: twinkle 2.4s ease-in-out infinite; }

/* Descubrir */
.dtabs { padding: 0 16px 10px; }
#d-body.tab-in { animation: viewIn .3s var(--ease) both; }
.dsec { margin-bottom: 8px; }
.dsec .sec-head h2 em { font-style: normal; color: var(--accent-2); }
.drow { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 16px; padding: 4px 16px 12px; scrollbar-width: none; }
.drow::-webkit-scrollbar { display: none; }
.dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 4px 16px 12px; }
@media (min-width: 720px) { .dgrid { grid-template-columns: repeat(5, 1fr); } }
.dgrid .dcard { width: auto; }
.dcard { flex: none; width: 118px; display: grid; gap: 4px; align-content: start; text-align: left; color: var(--text); scroll-snap-align: start; animation: cardIn .4s var(--ease) both; animation-delay: calc(var(--i) * 35ms); transition: transform .2s var(--spring); }
.dcard:active { transform: scale(.95); }
.dcover { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: linear-gradient(150deg, var(--surface-2), var(--surface)); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .8); }
.dcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.dcover > i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 22px; color: var(--muted); }
.dscore, .dhave { position: absolute; z-index: 2; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 8px; font-size: 11px; font-weight: 800; background: rgba(0, 0, 0, .7); color: var(--gold); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dhave { color: var(--success); }
.dcard b { font-size: 13px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard small { font-size: 11px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard.skel .dcover { animation: pulseText 1.4s ease-in-out infinite; }
.dcard.skel b, .dcard.skel small { height: 10px; border-radius: 5px; background: var(--surface-2); }
.dcard.skel small { width: 60%; }
.dprev { display: flex; gap: 14px; margin-bottom: 12px; }
.dprev-cover { width: 120px; flex: none; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .9); animation: coverIn .5s var(--spring) both; }
.dprev-cover img { width: 100%; height: 100%; object-fit: cover; }
.dprev-info { display: grid; gap: 6px; align-content: start; min-width: 0; }
.dprev-info h3 { font-size: 20px; line-height: 1.2; }
.dprev-info .badge { justify-self: start; }
.dprev-score { font-size: 20px; font-weight: 900; color: var(--gold); }
.dprev-score small { font-size: 12px; color: var(--muted); }
.dprev-syn { font-size: 14px; line-height: 1.55; color: color-mix(in srgb, var(--text) 85%, transparent); margin: 12px 0 4px; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.dprev-syn.open { -webkit-line-clamp: unset; }
.dprev-actions { margin-top: 14px; }
.rl-new { margin-top: 18px; }
.rl-new .sec-head { padding: 0; }
.rl-new h4 { font-size: 15px; }
.rl-new .drow { padding-left: 0; padding-right: 0; }
.rl-new .dcard { width: 100px; }
.dsec .sec-head { padding: 0 16px; gap: 10px; }
.dsec .sec-head h2 { font-size: 17px; min-width: 0; }
.dsec .sec-head > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.searchbar input:focus, .searchbar input:focus-visible { outline: none; box-shadow: none; }

/* ===================== v2.3 ===================== */
/* Fecha y hora en el inicio */
.clock { font-size: 11.5px; color: var(--muted); opacity: .8; margin-top: 1px; }
/* Última lectura */
.last-read { display: grid; gap: 4px; margin: -4px 16px 14px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; color: var(--muted); animation: fadeUp .3s var(--ease) both; }
.last-read b { color: var(--text); font-weight: 700; }
.card-when { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Links con fecha */
.link-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.link-main .link-url { flex: none; }
.link-when { font-size: 11px; color: var(--muted); }
.link-row:first-child .link-when { color: var(--accent-2); }

/* Temporadas */
.season-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; }
.season-chips::-webkit-scrollbar { display: none; }
.season-chip { flex: none; display: grid; justify-items: center; gap: 1px; min-width: 62px; padding: 8px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: all .25s var(--spring); }
.season-chip b { font-size: 15px; color: var(--text); }
.season-chip small { font-size: 10.5px; }
.season-chip.done { border-color: color-mix(in srgb, var(--success) 45%, transparent); }
.season-chip.done small { color: var(--success); }
.season-chip.now { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.season-chip.on { background: linear-gradient(135deg, var(--accent), var(--accent-b)); color: var(--on-accent); border-color: transparent; transform: translateY(-2px); }
.season-chip.on b, .season-chip.on small { color: var(--on-accent); }
.season-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.ep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ep-row { display: grid; grid-template-columns: 104px 1fr auto; gap: 10px; align-items: start; padding: 8px; border-radius: 14px; background: rgba(0, 0, 0, .18); border: 1px solid transparent; animation: fadeUp .3s var(--ease) both; }
.ep-row.next { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ep-row.future { opacity: .55; }
.ep-img { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.ep-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep-img span { position: absolute; left: 5px; bottom: 4px; z-index: 1; font-size: 10px; font-weight: 900; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; }
.ep-row.seen .ep-img img { filter: saturate(.6) brightness(.8); }
.ep-text { display: grid; gap: 2px; min-width: 0; }
.ep-text b { font-size: 13.5px; line-height: 1.25; }
.ep-text small { font-size: 11.5px; color: var(--muted); }
.ep-text em { font-style: normal; color: var(--accent-2); font-weight: 700; }
.ep-sum { font-size: 12.5px; line-height: 1.45; color: color-mix(in srgb, var(--text) 80%, transparent); margin: 4px 0 0; animation: fadeUp .25s var(--ease) both; }
.ep-spoil { justify-self: start; margin-top: 4px; padding: 6px 10px; border-radius: 10px; font-size: 11.5px; color: var(--muted); background: var(--surface-2); text-align: left; }
.ep-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 900; color: var(--muted); border: 2px solid var(--border); transition: all .25s var(--spring); }
.ep-mark.on { background: var(--success); border-color: transparent; color: #04140d; }
.ep-mark:active { transform: scale(.85); }
.spoiler-notes { margin-top: 12px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--border); padding: 10px 12px; }
.spoiler-notes summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); }
.spoiler-notes[open] summary { margin-bottom: 8px; }
.spoiler-notes textarea { width: 100%; }

/* Reparto */
.cast-row { list-style: none; margin: 0; padding: 2px 0 4px; display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.cast-row::-webkit-scrollbar { display: none; }
.cast-row li { flex: none; width: 68px; display: grid; justify-items: center; gap: 2px; text-align: center; animation: fadeUp .3s var(--ease) both; }
.cast-img { position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.cast-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cast-img i { font-style: normal; font-size: 13px; font-weight: 800; color: var(--muted); }
.cast-row b { font-size: 11px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cast-row small { font-size: 10px; color: var(--muted); line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seasons-panel > .sec-head { flex-direction: column; align-items: flex-start; gap: 2px; }
.ep-sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.ep-sum.open { -webkit-line-clamp: unset; }
.ep-sum[hidden] { display: none; }
.cast-panel > .sec-head { flex-wrap: wrap; }
