/* Demonscore · sistema visual (beta 2026-10).
   Base oscura, acento rojo de la marca (también señal de «en directo»), Manrope para texto y
   Barlow Condensed para marcadores, minutos y horas. Todo el movimiento respeta prefers-reduced-motion. */
@import url('../fonts/fonts.css');

:root {
  --bg: #0a0d14; --bg-2: #0d121b; --surface: #121823; --surface-2: #171f2d; --surface-3: #1e2839;
  --line: #222c3e; --line-2: #2c384d; --text: #eef2f8; --text-2: #b0bacb; --text-3: #8592a8;
  --accent: #f84838; --accent-2: #ff6a57; --accent-weak: rgba(248, 72, 56, .13); --accent-line: rgba(248, 72, 56, .35);
  --win: #2fd07a; --warn: #f4b740; --info: #63aefc;
  --r-1: 8px; --r-2: 12px; --r-3: 16px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-num: 'Barlow Condensed', 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 60px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.muted { color: var(--text-3); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 14px; height: 14px; }
svg.i.fill { fill: currentColor; stroke: none; }

/* ------------------------------------------------------------------ cabecera */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--header-h); display: flex; align-items: center; gap: 18px;
  padding: 0 20px; background: rgba(10, 13, 20, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.6px; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.brand b { color: var(--accent); font-weight: 800; }
.tabs { display: flex; gap: 2px; height: 100%; }
.tab { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 12px; white-space: nowrap; height: 100%; color: var(--text-2); font-weight: 650; font-size: 13.5px; }
.tab:hover { color: var(--text); }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.tab .count { min-width: 20px; height: 18px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 9px; font-size: 11px; font-weight: 800; background: var(--surface-3); color: var(--text-2); }
.tab .count.live { background: var(--accent); color: #fff; }
.search { margin-left: auto; position: relative; width: min(320px, 32vw); }
.search input { width: 100%; height: 38px; padding: 0 36px 0 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13.5px; transition: border-color .2s, background .2s; }
.search input::placeholder { color: var(--text-3); }
.search input:focus { outline: none; border-color: var(--accent-line); background: var(--surface-2); }
.search > svg { position: absolute; left: 12px; top: 10px; color: var(--text-3); }
.search .clear { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--text-3); }
.search .clear:hover { background: var(--surface-3); color: var(--text); }
.status-pill { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 650; white-space: nowrap; }
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.status-pill.live .dot { background: var(--accent); box-shadow: 0 0 0 0 var(--accent-line); animation: pulse 1.8s infinite; }
.status-pill.ok .dot { background: var(--win); }
.status-pill.warn { color: var(--warn); border-color: rgba(244, 183, 64, .3); } .status-pill.warn .dot { background: var(--warn); }
.status-pill.down { color: #ff8b80; border-color: var(--accent-line); background: var(--accent-weak); } .status-pill.down .dot { background: var(--accent); }

/* ------------------------------------------------------------------ distribución */
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr) minmax(380px, 440px); gap: 20px; max-width: 1480px; margin: 0 auto; padding: 18px 20px 40px; align-items: start; }
.rail, .detail { position: sticky; top: calc(var(--header-h) + 18px); max-height: calc(100dvh - var(--header-h) - 36px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); }

/* barra lateral de competiciones */
.rail h2 { margin: 6px 10px 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 750; }
.comp { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text-2); text-align: left; transition: background .15s, color .15s; }
.comp:hover { background: var(--surface); color: var(--text); }
.comp[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.comp .name { flex: 1; min-width: 0; font-size: 13px; font-weight: 650; line-height: 1.25; }
.comp .name small { display: block; font-size: 11px; font-weight: 550; color: var(--text-3); }
.comp .n { font-size: 11.5px; color: var(--text-3); font-weight: 700; }
.comp .n.live { color: var(--accent); }
.comp .n.next { font-weight: 600; font-size: 11px; white-space: nowrap; }
#rail details.more summary { cursor: pointer; margin: 10px 10px 6px; font-size: 12px; font-weight: 700; color: var(--text-2); list-style: none; }
#rail details.more summary::before { content: '+ '; color: var(--accent); }
#rail details.more[open] summary::before { content: '− '; }
.rail-note { margin: -2px 10px 10px; font-size: 11.5px; line-height: 1.4; color: var(--text-3); }
.flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); flex: none; }
.flag-intl { width: 20px; height: 15px; display: grid; place-items: center; color: var(--warn); flex: none; }

/* ------------------------------------------------------------------ cabecera del listado */
.board-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.board-title { margin: 2px 2px 0; font-size: 15px; font-weight: 800; letter-spacing: .01em; color: var(--text); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.board-title small { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.board-title small::first-letter { text-transform: uppercase; }
.board-title.big { margin: 4px 2px; font-size: 20px; }
.seo-intro { margin: 0 2px 14px; max-width: 70ch; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.days { display: grid; grid-template-columns: 34px repeat(7, minmax(0, 1fr)) 34px; gap: 4px; align-items: stretch; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 7px 2px; border-radius: 10px; color: var(--text-2); transition: background .15s, color .15s; }
.day:hover { background: var(--surface); color: var(--text); }
.day .w { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 750; }
.day .d { font-family: var(--font-num); font-size: 19px; font-weight: 700; line-height: 1.05; }
.day .c { font-size: 10px; color: var(--text-3); font-weight: 700; min-height: 13px; }
.day[aria-pressed="true"] { background: var(--accent); color: #fff; }
.day[aria-pressed="true"] .c { color: rgba(255, 255, 255, .85); }
.day .live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 2px; }
.day[aria-pressed="true"] .live-dot { background: #fff; }
.arrow { display: grid; place-items: center; border-radius: 10px; color: var(--text-2); }
.arrow:hover { background: var(--surface); color: var(--text); }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 13px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .k { font-size: 11px; opacity: .7; }
.chip.live[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.date-pick { position: relative; margin-left: auto; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.date-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.date-pick:hover { color: var(--text); border-color: var(--line-2); }
.sort { display: inline-flex; padding: 2px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.sort button { height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 700; color: var(--text-3); }
.sort button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }

/* ------------------------------------------------------------------ grupos y filas */
.group { margin-bottom: 12px; overflow: hidden; }
.animate .group { animation: rise .32s var(--ease) both; }
.group-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.group-head h3 { margin: 0; font-size: 13.5px; font-weight: 750; }
.group-head small { color: var(--text-3); font-size: 12px; font-weight: 600; }
.group-head .right { white-space: nowrap; margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; font-weight: 700; }
.group-head .toggle { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); transition: transform .2s var(--ease); }
.group-head .toggle:hover { background: var(--surface-3); color: var(--text); }
.group[data-collapsed="true"] .toggle { transform: rotate(-90deg); }
.group[data-collapsed="true"] .rows { display: none; }
.row { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) 34px 36px; align-items: center; gap: 10px; padding: 9px 12px 9px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface-2); }
.row[aria-selected="true"] { background: var(--surface-3); }
.row::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.row.is-live::before { background: var(--accent); }
.row[aria-selected="true"]::before { background: var(--text); }
.when { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-family: var(--font-num); font-size: 16px; font-weight: 700; color: var(--text-2); }
.when .tag { font-family: var(--font); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.when.live { color: var(--accent); }
.when.live .min::after { content: "'"; }
.when.live .tag { color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.when.live .tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
.when.paused, .when.paused .tag { color: var(--warn); }
.teams { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.team { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 14px; font-weight: 600; }
.team span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team.lost { color: var(--text-3); font-weight: 550; }
.team.won { font-weight: 750; }
.red-card { width: 8px; height: 11px; border-radius: 2px; background: var(--accent); flex: none; }
.crest { width: 22px; height: 22px; flex: none; border-radius: 50%; object-fit: contain; }
.crest.ph { display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font-size: 9.5px; font-weight: 800; }
.score { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-family: var(--font-num); font-size: 19px; font-weight: 700; line-height: 22px; }
.score .lost { color: var(--text-3); }
.score.live { color: var(--accent-2); }
.score .flash { animation: flash 1.6s var(--ease); border-radius: 4px; }
.fav { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--text-3); transition: color .15s, background .15s, transform .15s; }
.fav:hover { background: var(--surface-3); color: var(--text); }
.fav[aria-pressed="true"] { color: var(--warn); }
.fav:active { transform: scale(.9); }
.lag { display: inline-flex; align-items: center; gap: 4px; color: var(--warn); font-size: 10.5px; font-weight: 750; }

/* ------------------------------------------------------------------ detalle */
.detail .empty-detail { padding: 40px 26px; text-align: center; color: var(--text-3); }
.hero { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); background: radial-gradient(120% 90% at 50% -10%, rgba(248, 72, 56, .10), transparent 60%); }
.hero-top { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12.5px; font-weight: 700; }
.hero-top .actions { margin-left: auto; display: flex; gap: 4px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--text-2); }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn[aria-pressed="true"] { color: var(--warn); }
.board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 14px; }
.side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 750; font-size: 14px; line-height: 1.25; }
.side .crest { width: 52px; height: 52px; }
.side .crest.ph { font-size: 15px; }
.big { text-align: center; }
.big .digits { font-family: var(--font-num); font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.big .digits .sep { color: var(--text-3); margin: 0 6px; }
.big .digits.flash { animation: flash 1.6s var(--ease); border-radius: 8px; }
.big .state { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--surface-3); color: var(--text-2); }
.big .state.live { background: var(--accent-weak); color: var(--accent-2); }
.big .state.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
.big .sub { margin-top: 6px; font-size: 12px; color: var(--text-3); }
.fresh { margin-top: 12px; display: flex; justify-content: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.fresh.warn { color: var(--warn); }
.dtabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.dtabs::-webkit-scrollbar { display: none; }
.dtab { position: relative; flex: none; height: 44px; padding: 0 12px; color: var(--text-3); font-size: 13px; font-weight: 700; }
.dtab:hover { color: var(--text); }
.dtab[aria-selected="true"] { color: var(--text); }
.dtab[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.dbody { padding: 16px 18px 22px; }
.dbody.animate { animation: fade .22s var(--ease); }
.section-title { margin: 18px 0 10px; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); font-weight: 800; }
.section-title:first-child { margin-top: 0; }
.stat { margin-bottom: 13px; }
.stat-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: baseline; font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.stat-top .v { font-family: var(--font-num); font-size: 17px; font-weight: 700; color: var(--text); }
.stat-top .v:last-child { text-align: right; }
.stat-top .label { text-align: center; }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 5px; }
.bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; display: flex; }
.bar.h { justify-content: flex-end; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--text-2); transition: width .5s var(--ease); }
.bar i.lead { background: var(--accent); }
.unknown { color: var(--text-3); font-weight: 650; }
.events { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.ev:last-child { border-bottom: 0; }
.ev .m { text-align: center; font-family: var(--font-num); font-size: 15px; font-weight: 700; color: var(--text-2); }
.ev .t { display: flex; align-items: center; gap: 8px; }
.ev .t.home { justify-content: flex-end; text-align: right; }
.ev .badge { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; font-size: 11px; font-weight: 800; }
.badge.goal { background: rgba(47, 208, 122, .15); color: var(--win); }
.badge.yellow { background: rgba(244, 183, 64, .15); color: var(--warn); }
.badge.red { background: var(--accent-weak); color: var(--accent-2); }
.badge.corner { background: rgba(99, 174, 252, .14); color: var(--info); }
.badge.var, .badge.sub { background: var(--surface-3); color: var(--text-2); }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { text-align: left; font-size: 11px; color: var(--text-3); font-weight: 750; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.table td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.table td.c, .table th.c { text-align: center; font-family: var(--font-num); font-size: 14px; }
.table tr.mine td { background: var(--accent-weak); }
.table .pos { width: 26px; color: var(--text-3); font-family: var(--font-num); font-size: 14px; }
.form { display: inline-flex; gap: 3px; }
.form i { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; font-style: normal; font-size: 9.5px; font-weight: 800; color: #0a0d14; }
.form i.G { background: var(--win); } .form i.E { background: var(--text-3); } .form i.P { background: var(--accent); }
.note { padding: 12px 14px; border-radius: var(--r-2); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.fn { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fn:last-child { border-bottom: 0; }
.fn b { font-size: 13.5px; }
.fn small { grid-column: 1 / -1; color: var(--text-3); font-size: 12px; }
.pillx { padding: 3px 9px; border-radius: 11px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pillx.ok { background: rgba(47, 208, 122, .14); color: var(--win); }
.pillx.wait { background: rgba(99, 174, 252, .13); color: var(--info); }
.pillx.no { background: var(--surface-3); color: var(--text-2); }

/* ------------------------------------------------------------------ estados */
.skeleton .bone { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 40%, var(--surface-2) 80%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.skeleton .row { cursor: default; }
.empty { padding: 44px 24px; text-align: center; }
.empty .art { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.empty h3 { margin: 0 0 6px; font-size: 16px; }
.empty p { margin: 0 auto; max-width: 420px; color: var(--text-3); font-size: 13px; }
.empty .btn { margin-top: 16px; }
.btn { height: 36px; padding: 0 16px; border-radius: 10px; background: var(--surface-3); color: var(--text); font-weight: 750; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, transform .1s; }
.btn:hover { background: var(--line-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; } .btn.primary:hover { background: var(--accent-2); }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px; border-radius: var(--r-2); background: var(--accent-weak); border: 1px solid var(--accent-line); color: #ffb3aa; font-size: 13px; font-weight: 650; animation: rise .3s var(--ease); }
.banner.warn { background: rgba(244, 183, 64, .08); border-color: rgba(244, 183, 64, .3); color: var(--warn); }
.ad-slot { display: none; }
body.ads-on .ad-slot { display: block; min-height: var(--ad-h, 90px); margin: 0 0 14px; border-radius: var(--r-2); }
.foot { max-width: 1480px; margin: 0 auto; padding: 18px 20px 110px; color: var(--text-3); font-size: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.foot details { width: 100%; }
.foot summary { cursor: pointer; color: var(--text-2); font-weight: 700; }
.foot ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }

/* ------------------------------------------------------------------ móvil */
.bottombar { display: none; }
.sheet-backdrop { display: none; }
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); }
  .rail { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 56px; }
  .topbar { gap: 10px; padding: 0 14px; }
  .tabs { display: none; }
  .search { width: auto; flex: 1; }
  .status-pill .txt { display: none; }
  .status-pill { padding: 0 9px; }
  .layout { display: block; padding: 12px 12px 90px; }
  .detail { position: fixed; inset: 0; top: 0; z-index: 60; max-height: none; border-radius: 0; transform: translateX(100%); transition: transform .32s var(--ease); background: var(--surface); }
  .detail.open { transform: none; }
  .sheet-backdrop.open { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .5); animation: fade .2s; }
  .bottombar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 64px; padding-bottom: env(safe-area-inset-bottom); background: rgba(13, 18, 27, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .bottombar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--text-3); position: relative; }
  .bottombar button[aria-current="page"] { color: var(--text); }
  .bottombar button[aria-current="page"] svg { color: var(--accent); }
  .bottombar .count { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 10px; display: grid; place-items: center; }
  .days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .days .arrow { display: none; }
  .row { grid-template-columns: 50px minmax(0, 1fr) 30px 34px; padding: 9px 8px 9px 12px; gap: 8px; }
  .team { font-size: 13.5px; }
  .big .digits { font-size: 40px; }
  .foot { padding-bottom: 96px; }
  .group-head small { display: none; }
  .group-head h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .comp-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 2px; }
  .comp-strip::-webkit-scrollbar { display: none; }
}
@media (min-width: 861px) { .comp-strip { display: none; } .detail .back { display: none; } }

/* ------------------------------------------------------------------ movimiento */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(248, 72, 56, .55); } 70% { box-shadow: 0 0 0 7px rgba(248, 72, 56, 0); } 100% { box-shadow: 0 0 0 0 rgba(248, 72, 56, 0); } }
@keyframes flash { 0% { background: rgba(248, 72, 56, .45); color: #fff; } 100% { background: transparent; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Limpieza 16/10: ayudas breves, zona horaria y desplegable de detalles */
.help { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 10px; font-weight: 800; color: var(--text-3); cursor: help; vertical-align: 1px; letter-spacing: 0; text-transform: none; }
.help:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tz { font-size: 11.5px; color: var(--text-3); white-space: nowrap; margin-left: auto; }
.more-info { margin-top: 14px; font-size: 12.5px; color: var(--text-2); }
.more-info summary { cursor: pointer; font-weight: 700; color: var(--text-2); }
.more-info ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.5; }
.banner.warn { border-color: rgba(245, 180, 60, .35); }
.fav-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 2px 12px; }
.fav-tools small { color: var(--text-3); font-size: 12px; }
.banner.ok { border-color: rgba(60, 200, 120, .35); }
/* Pestañas del detalle: caben más y, si no, se nota que se desplazan. */
.dtab { padding: 0 9px; font-size: 12.5px; }
.dtabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 28px; }
/* Alineaciones */
.lu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lu-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.lu-head .crest { width: 20px; height: 20px; }
.lu { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.lu li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.lu li .num { width: 20px; text-align: right; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lu li small { margin-left: auto; color: var(--text-3); font-size: 10.5px; font-weight: 700; }
@media (max-width: 420px) { .lu-grid { grid-template-columns: 1fr; } }
.loading-note { display: flex; align-items: center; gap: 8px; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.pillx.ok { color: #3fd27f; }

/* =================== Detalle del partido: acabado (16/10) =================== */
.detail { container-type: inline-size; }
.hero-comp { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .side span { overflow-wrap: anywhere; text-align: center; }
.crest.xs { width: 18px; height: 18px; font-size: 8px; }
.wide-btn { display: none; }
@media (min-width: 1100px) { .wide-btn { display: inline-grid; } }
@media (min-width: 1281px) { body.detail-wide .layout { grid-template-columns: 236px minmax(0, 1fr) minmax(560px, 660px); } }
@media (min-width: 1100px) and (max-width: 1280px) { body.detail-wide .layout { grid-template-columns: minmax(0, 1fr) minmax(540px, 600px); } }

/* Barra fija única: marcador compacto + pestañas */
.dstick { position: sticky; top: 0; z-index: 4; background: var(--surface); border-bottom: 1px solid var(--line); }
.dstick .mini { display: flex; align-items: center; gap: 8px; height: 0; overflow: hidden; opacity: 0; padding: 0 14px; font-size: 12.5px; font-weight: 700; transition: height .2s var(--ease), opacity .2s var(--ease); }
.dstick.compact .mini { height: 40px; opacity: 1; border-bottom: 1px solid var(--line); }
.mini .mn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.mini .mn.r { text-align: right; }
.mini .ms { font-family: var(--font-num); font-size: 18px; letter-spacing: .02em; padding: 0 4px; }
.mini .mlive { color: var(--accent); font-size: 11px; font-weight: 800; }
.dtabs { position: static; border-bottom: 0; -webkit-mask-image: none; mask-image: none; padding: 0 8px; display: flex; justify-content: space-between; overflow: visible; }
.dtab { padding: 0 8px; font-size: 12.5px; height: 42px; white-space: nowrap; }
@container (max-width: 560px) {
  .dtabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 5px 6px; gap: 3px; }
  .dtab { height: 34px; border-radius: 8px; padding: 0 4px; }
  .dtab[aria-selected="true"] { background: var(--surface-2); }
  .dtab[aria-selected="true"]::after { display: none; }
}
.dbody .section-title { margin-top: 18px; }
.dbody > .section-title:first-child { margin-top: 4px; }
.small { font-size: 12px; }

/* Estadísticas */
.stats-help { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); margin: 0 0 4px; }
.srow { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; row-gap: 5px; padding: 6px 0; }
.srow .sv { font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 800; color: var(--text-2); }
.srow .sv.r { text-align: right; }
.srow .sv.lead { color: var(--text); }
.srow .sl { text-align: center; font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.srow .sbar { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.srow .sbar span { height: 6px; border-radius: 3px; background: var(--surface-3); position: relative; overflow: hidden; }
.srow .sbar span::before { content: ''; position: absolute; top: 0; bottom: 0; width: var(--w); background: var(--text-3); border-radius: 3px; transition: width .5s var(--ease); }
.srow .sbar .h::before { right: 0; }
.srow .sbar .a::before { left: 0; }
.srow .sbar .lead::before { background: var(--accent); }
.srow .sbar .a.lead::before { background: #e8ecf3; }

/* Cronología */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-ev { display: grid; grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr); align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.tl-ev.is-goal { background: linear-gradient(90deg, transparent, rgba(47, 208, 122, .07), transparent); }
.tl-min { justify-self: center; min-width: 40px; text-align: center; padding: 3px 6px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-2); }
.tl-min sup { font-size: 9px; color: var(--accent); margin-left: 1px; }
.tl-side { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.tl-side.home { flex-direction: row-reverse; text-align: right; }
.tl-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.tl-side.home .tl-txt { align-items: flex-end; }
.tl-txt b { font-weight: 800; color: var(--text); }
.tl-txt small { font-size: 11.5px; color: var(--text-3); }
.tl-txt .tag { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.tl-score { display: inline-block; margin-top: 2px; padding: 1px 7px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; width: max-content; }
.tl-txt.sub { gap: 3px; }
.tl-txt .subl { display: flex; align-items: center; gap: 6px; }
.tl-side.home .tl-txt .subl { flex-direction: row-reverse; }
.tl-txt .subl.out { color: var(--text-3); font-size: 12px; }
.ic { display: inline-grid; flex: none; color: var(--text-2); }
.ico { width: 18px; height: 18px; display: block; }
.subl .ico { width: 14px; height: 14px; }
.tl-sep { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.tl-sep::before, .tl-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Alineaciones */
.lu-top, .lu-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 2px 8px; }
.lu-bottom { margin: 8px 2px 4px; }
.lu-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.lu-team b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-pill { padding: 2px 8px; border-radius: 999px; background: var(--surface-2); font-size: 11.5px; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pitch { position: relative; border-radius: 14px; overflow: hidden; padding: 6px 4px; background: repeating-linear-gradient(180deg, #11291f 0 40px, #0f251c 40px 80px); border: 1px solid rgba(255, 255, 255, .06); }
.pitch .lines { position: absolute; inset: 8px; border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 6px; pointer-events: none; }
.pitch .lines .mid { position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid rgba(255, 255, 255, .14); }
.pitch .lines .circle { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 50%; }
.pitch .lines .box { position: absolute; left: 25%; right: 25%; height: 11%; border: 1.5px solid rgba(255, 255, 255, .14); }
.pitch .lines .box.top { top: -1.5px; border-top: 0; }
.pitch .lines .box.bottom { bottom: -1.5px; border-bottom: 0; }
.pitch .half { position: relative; display: flex; justify-content: space-around; gap: 4px; min-height: 290px; padding: 6px 0; }
.pitch .half.away { flex-direction: column; }
.pitch .half.home { flex-direction: column-reverse; }
@container (min-width: 520px) { .pitch .half { min-height: 330px; } }
.prow { display: flex; justify-content: space-around; align-items: flex-start; }
.pl { width: 62px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pl .ph { position: relative; width: 38px; height: 38px; }
.pphoto { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #e9edf3; display: block; border: 2px solid rgba(255, 255, 255, .7); }
.pphoto.sm { width: 28px; height: 28px; border-width: 1.5px; flex: none; }
.jersey { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: none; }
.jersey svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.jersey.home svg { fill: var(--accent); }
.jersey.away svg { fill: #e8ecf3; }
.jersey b { position: relative; font-size: 12px; font-weight: 800; color: #fff; margin-top: 4px; font-variant-numeric: tabular-nums; }
.jersey.away b { color: #0b0f17; }
.bench-row .jersey { width: 28px; height: 28px; }
.bench-row .jersey b { font-size: 10px; }
.jersey.coachico svg { fill: var(--surface-3); }
.pl .cap { position: absolute; left: -4px; top: -3px; width: 15px; height: 15px; border-radius: 50%; background: #f4c13d; color: #0b0f17; font-size: 9px; font-weight: 900; display: grid; place-items: center; }
.cap.inline { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #f4c13d; color: #0b0f17; font-size: 9px; font-weight: 900; vertical-align: 1px; }
.pl .marks { position: absolute; right: -8px; top: -4px; display: flex; flex-direction: column; gap: 1px; }
.mk { display: inline-flex; align-items: center; gap: 2px; }
.mk .ico { width: 13px; height: 13px; }
.mk i { font-style: normal; font-size: 10px; font-weight: 800; color: var(--text-2); }
.pl .nm { max-width: 62px; display: flex; gap: 3px; align-items: baseline; font-size: 10.5px; font-weight: 700; color: #f3f5f9; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl .nm b { font-size: 9.5px; color: rgba(255, 255, 255, .7); }
@container (min-width: 520px) { .pl { width: 76px; } .pl .nm { max-width: 76px; font-size: 11px; } .pl .ph, .pl .pphoto, .pl .jersey { width: 42px; height: 42px; } }
.lu-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.sublabel { margin: 12px 0 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.lu-cols > div > .sublabel:first-child { margin-top: 0; }
.bench-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; min-width: 0; }
.bench-row .bn { width: 20px; text-align: right; font-weight: 800; color: var(--text-3); font-variant-numeric: tabular-nums; flex: none; }
.bench-row .bname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bench-row .bmarks { display: flex; gap: 4px; flex: none; }
.bench-row.coach .bname { font-weight: 700; }
@container (max-width: 400px) { .lu-cols { grid-template-columns: 1fr; } }

/* Clasificación */
.stand-wrap { overflow-x: auto; margin: 0 -4px; scrollbar-width: thin; }
.stand { width: 100%; min-width: 440px; border-collapse: separate; border-spacing: 0; font-family: var(--font); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.stand th { background: var(--surface); text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: 8px 6px; border-bottom: 1px solid var(--line-2); }
.stand td { text-align: center; padding: 9px 6px; border-bottom: 1px solid var(--line); color: var(--text-2); font-weight: 650; }
.stand .p { width: 30px; color: var(--text-3); font-weight: 800; }
.stand th.t, .stand td.t { text-align: left; }
.stand td.t { color: var(--text); font-weight: 700; }
.stand .team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stand .tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.slogo { width: 18px; height: 18px; object-fit: contain; flex: none; }
.slogo.ph { display: inline-block; border-radius: 50%; background: var(--surface-3); }
.stand td.pts, .stand th.pts { color: var(--text); font-weight: 900; }
.stand td.pts { font-size: 13.5px; }
.stand .p, .stand .t { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.stand .t { left: 30px; }
.stand tr.mine td { background: #1b1a21; }
.stand tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.stand td.p { position: sticky; }
.zone { position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; }
.stand td.p .zone { left: 1px; }
.zone.up { background: #2fd07a; } .zone.mid { background: #f4b740; } .zone.down { background: #ef3e36; }
.zones { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 11.5px; color: var(--text-3); }
.zones span { display: inline-flex; align-items: center; gap: 6px; }
.zones .zone { position: static; display: inline-block; height: 12px; }

@media (prefers-reduced-motion: reduce) { .dstick .mini, .srow .sbar span::before { transition: none; } }

/* Tabla en panel estrecho: posición, equipo, PJ, DG y puntos; el resto bajo demanda (desplazable). */
.stand-more { display: none; }
@container (max-width: 560px) {
  .stand { min-width: 0; }
  .stand-wrap:not(.full) .x { display: none; }
  .stand-wrap.full .stand { min-width: 460px; }
  .stand-more { display: inline-block; }
}
.linkish { margin-top: 8px; background: none; border: 0; padding: 4px 0; color: var(--accent-2, #ff8a7a); font: 700 12px var(--font); cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.bench-row .bname { white-space: nowrap; }
.bench-row .mk i { white-space: nowrap; }

/* Esqueletos del detalle: misma estructura y alturas que el contenido final */
.sk .bone { display: inline-block; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.sk .srow .sbar span { background: var(--surface-2); }
.sk .pitch .pl { gap: 5px; }
.sk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk .bone { animation: none; } }

/* Primeros vs últimos (25/10/2026): contexto de la tabla, no una predicción. */
.ext-intro { margin: 0 0 14px; color: var(--text-2); font-size: 13px; max-width: 640px; }
.ext-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ext-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; text-align: left; width: 100%; transition: border-color .15s, background .15s; }
.ext-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.ext-top { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12px; font-weight: 700; min-width: 0; }
.ext-top > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext-size { margin-left: auto; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.ext-body { display: flex; align-items: center; gap: 12px; }
.ext-teams { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ext-team { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 52px; align-items: center; gap: 9px; }
.ext-name { font-weight: 750; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext-name small { color: var(--text-3); font-weight: 600; font-size: 11px; margin-left: 4px; }
.ext-pos { font-family: var(--font-num); font-size: 17px; font-weight: 700; padding: 1px 8px; border-radius: 7px; min-width: 40px; text-align: center; }
.ext-team.top .ext-pos { background: rgba(47, 208, 122, .14); color: var(--win); }
.ext-team.bottom .ext-pos { background: var(--accent-weak); color: var(--accent-2); }
.ext-pts { color: var(--text-3); font-size: 12px; font-weight: 700; text-align: right; }
.ext-when { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-left: 12px; border-left: 1px solid var(--line); }
.ext-when b { font-family: var(--font-num); font-size: 20px; font-weight: 700; }
.ext-when small { color: var(--text-3); font-size: 10.5px; font-weight: 700; text-align: center; }
.ext-when .mlive { color: var(--accent); font-size: 12px; font-weight: 800; }
.ext-foot, .ext-pending { margin: 14px 0 0; max-width: 720px; }
.ext-why { margin-top: 10px; color: var(--text-2); font-size: 12.5px; }
.ext-why summary { cursor: pointer; color: var(--text-3); font-weight: 700; font-size: 12px; padding: 6px 0; }
.ext-why ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; max-height: 320px; overflow: auto; }
.ext-why li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.ext-why li small { color: var(--text-3); text-align: right; }
.ext-teaser { width: 100%; display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 11px 14px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); text-align: left; }
.ext-teaser:hover { border-color: var(--line-2); background: var(--surface-2); }
.ext-teaser-k { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.ext-teaser-t { flex: 1; min-width: 0; color: var(--text-2); font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .ext-list { grid-template-columns: 1fr; }
  .ext-teaser { flex-wrap: wrap; gap: 4px 10px; }
  .ext-teaser-t { flex-basis: 100%; order: 3; white-space: normal; }
}

/* Asistente de IA dentro del detalle (prueba privada). */
.ia-btn { height: 34px; padding: 0 12px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--accent); }
.ia-btn:hover { background: var(--accent-2); }
.ia-btn[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.ia { display: flex; flex-direction: column; gap: 12px; }
.ia-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ia-hint { margin: 0; color: var(--text-2); font-size: 13px; }
.ia-chat { display: flex; flex-direction: column; gap: 10px; }
.ia-q { align-self: flex-end; max-width: 85%; padding: 9px 12px; border-radius: 12px 12px 4px 12px; background: var(--surface-3); font-size: 13px; font-weight: 600; }
.ia-a { align-self: flex-start; max-width: 100%; padding: 11px 14px; border-radius: 12px 12px 12px 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--text); }
.ia-a p { margin: 0 0 6px; } .ia-a p:last-of-type { margin-bottom: 0; }
.ia-a ul { margin: 4px 0; padding-left: 18px; } .ia-a li { margin: 2px 0; }
.ia-a.err { color: var(--warn); border-color: rgba(244, 183, 64, .35); }
.ia-a.wait { color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.ia-meta { margin-top: 8px; color: var(--text-3); font-size: 11.5px; font-weight: 600; }
.ia-meta:empty { display: none; }
.ia-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ia-chips .chip { height: auto; min-height: 34px; padding: 6px 12px; white-space: normal; text-align: left; line-height: 1.3; }
.ia-chips .chip[disabled] { opacity: .5; cursor: default; }
.ia-form { display: flex; gap: 8px; }
.ia-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); }
.ia-form input:focus { outline: none; border-color: var(--accent-line); }
.ia-form .btn { height: 44px; }
.ia-left { margin: 0; }
.dots { display: inline-flex; gap: 3px; } .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: iadot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes iadot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .6; } }
@media (max-width: 560px) { .ia-btn { padding: 0 10px; font-size: 12px; } }
/* Barra superior con la pestaña «Primeros vs últimos»: entre 861 y 1280 px se acorta para no desbordar. */
@media (min-width: 861px) and (max-width: 1280px) { .tab { padding: 0 9px; } .tab-x { display: none; } .search { width: min(240px, 22vw); } }
@media (min-width: 861px) and (max-width: 1060px) { .status-pill .txt { display: none; } }
/* Primeros vs últimos v2: lo principal a la vista, el resto en «Ver más». */
.ext-card { padding: 0; gap: 0; overflow: hidden; }
.ext-card:hover { background: var(--surface); }
.ext-main { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 14px 14px 10px; text-align: left; transition: background .15s; }
.ext-main:hover { background: var(--surface-2); }
.ext-team { grid-template-columns: 22px minmax(0, 1fr) auto auto 50px; }
.ext-form { display: inline-flex; gap: 2px; }
.ext-form i { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; font: 800 9.5px var(--font); font-style: normal; color: var(--bg); }
.ext-form i.g { background: var(--win); } .ext-form i.e { background: var(--text-3); } .ext-form i.p { background: var(--accent); } .ext-form i.n { background: var(--surface-3); color: var(--text-3); }
.ext-toggle { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 36px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; font-weight: 700; }
.ext-toggle:hover { color: var(--text); background: var(--surface-2); }
.ext-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ext-more { padding: 10px 14px 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 12.5px; }
.ext-more-row { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-2); }
.ext-more-row b { color: var(--text); min-width: 0; flex-basis: 100%; font-weight: 750; }
.ext-more-row small { color: var(--text-3); }
.ext-more p { margin: 2px 0 0; }

/* Asistente v2: resumen, señales y riesgos; la predicción elegible aparte; más preguntas plegadas. */
.ia-a.brief { padding: 14px; }
.ia-sum { margin: 0 0 10px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.ia-list { margin-top: 8px; }
.ia-list ul { margin: 4px 0 0; padding-left: 18px; }
.ia-list li { margin: 3px 0; font-size: 13px; color: var(--text-2); }
.ia-k { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ia-list.good .ia-k { color: var(--win); } .ia-list.risk .ia-k { color: var(--warn); }
.ia-opp { padding: 12px 14px; border-radius: var(--r-2); border: 1px solid var(--accent-line); background: var(--accent-weak); display: flex; flex-direction: column; gap: 8px; }
.ia-opp.none { flex-direction: row; align-items: center; gap: 8px; border-color: var(--line); background: var(--surface-2); color: var(--text-3); font-size: 12.5px; font-weight: 650; }
.ia-opp-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ia-opp-h .ia-k { color: var(--accent-2); }
.ia-opp-s { font-size: 15px; font-weight: 800; }
.ia-opp-m { display: flex; flex-wrap: wrap; gap: 6px; }
.ia-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 9px; border-radius: 8px; background: var(--surface); }
.ia-chip small { color: var(--text-3); font-size: 11px; font-weight: 700; }
.ia-chip b { font-family: var(--font-num); font-size: 17px; }
.ia-opp-f { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; }
.ia-opp-f small { color: var(--text-3); font-weight: 600; }
.ia-more { border-top: 1px solid var(--line); padding-top: 8px; }
.ia-more summary { cursor: pointer; color: var(--text-2); font-size: 12.5px; font-weight: 750; padding: 6px 0; }
.ia-more[open] summary { margin-bottom: 8px; }
.ia-more .ia-chips { margin-bottom: 10px; }
.ext-team { grid-template-columns: 22px auto minmax(0, 1fr) auto; }
.ext-nm { min-width: 0; display: flex; align-items: center; gap: 8px; }
.ext-nm .ext-name { min-width: 0; }
@media (max-width: 560px) {
  .ext-nm { flex-direction: column; align-items: flex-start; gap: 3px; }
  .ext-when { width: 56px; padding-left: 10px; }
  .ext-pos { min-width: 36px; font-size: 16px; padding: 1px 6px; }
}
.ext-nm .ext-name { flex: 0 1 auto; max-width: 100%; display: block; }
.ext-pts { white-space: nowrap; padding-left: 6px; }
/* Análisis IA del partido (25/10 noche): la apuesta es de la IA, aparte y breve; nada de los modelos de Demonscore. */
.ia-title { font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.ia-pick { margin-top: 12px; padding: 11px 12px; border-radius: var(--r-2); border: 1px solid var(--accent-line); background: var(--accent-weak); display: grid; gap: 5px; }
.ia-pick .ia-k { color: var(--accent-2); }
.ia-pick-m { font-size: 15px; font-weight: 800; }
.ia-pick p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.ia-pick p span { color: var(--text-3); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.ia-pick p.risk span { color: var(--warn); }
.ia-pick.none { border-color: var(--line); background: var(--surface); }
.ia-pick.none .ia-k { color: var(--text-3); }
@media (max-width: 560px) { .ia-x { display: none; } }

/* Predicciones públicas (27/10/2026): una tarjeta por partido, equipo, mercado y objetivo. */
.pr-chips { margin: 4px 0 14px; }
.pr-card { padding: 0; overflow: hidden; }
.pr-main { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 14px; text-align: left; }
.pr-main:hover { background: var(--surface-2); }
.pr-top { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12px; font-weight: 700; }
.pr-now { margin-left: auto; display: flex; align-items: baseline; gap: 6px; }
.pr-now b { font-family: var(--font-num); font-size: 17px; color: var(--text); }
.pr-now small { color: var(--text-3); font-size: 11px; }
.pr-now .mlive { color: var(--accent); font-size: 12px; font-weight: 800; }
.pr-match { color: var(--text-3); font-size: 12.5px; font-weight: 650; }
.pr-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pr-pick b { font-size: 16px; font-weight: 800; }
.pr-state { flex: none; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); }
.pr-state.ok { background: rgba(47, 208, 122, .14); color: var(--win); }
.pr-state.ko { background: var(--accent-weak); color: var(--accent-2); }
.pr-state.wait { background: rgba(99, 174, 252, .13); color: var(--info); }
.pr-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pr-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.pr-m { font-size: 13px; font-weight: 700; }
.pr-pol { font-size: 10.5px; font-weight: 800; color: var(--text-3); letter-spacing: .04em; }
.pr-p { font-family: var(--font-num); font-size: 18px; font-weight: 700; }
.pr-lines small { grid-column: 1 / -1; color: var(--text-3); font-size: 11.5px; }

/* Predicciones (28/10/2026): tarjeta con jerarquía partido → predicción → estado. Sin nombres internos de modelo. */
.pz-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 0 0 14px; }
.pz-tile { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.pz-tile b { font-size: 26px; font-weight: 700; line-height: 1; }
.pz-tile span { color: var(--text-2); font-size: 12.5px; font-weight: 700; }
.pz-tile.ok b { color: var(--win); } .pz-tile.ko b { color: var(--accent-2); } .pz-tile.wait b { color: var(--info); } .pz-tile.void b { color: var(--text-3); }
.pz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pz { position: relative; padding: 0; overflow: hidden; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.pz::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line-2); }
.pz.st-ok::before { background: var(--win); } .pz.st-ko::before { background: var(--accent); } .pz.st-live::before { background: var(--accent); } .pz.st-wait::before { background: var(--info); }
.pz:hover { border-color: var(--line-2); transform: translateY(-1px); }
.pz-main { display: grid; gap: 12px; width: 100%; padding: 14px 16px 14px 18px; text-align: left; color: inherit; }
.pz-head { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-3); font-size: 12px; font-weight: 700; }
.pz-comp { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-head > :last-child:not(.pz-comp) { margin-left: auto; flex: none; }
.pz-time { font-family: var(--font-num); font-size: 16px; font-weight: 700; color: var(--text); }
.pz-fin { padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 11px; }
.pz-live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-family: var(--font-num); font-size: 16px; font-weight: 700; }
.pz-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
.pz-teams { display: grid; gap: 6px; }
.pz-team { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text-2); font-size: 14px; font-weight: 650; }
.pz-team .crest { width: 24px; height: 24px; }
.pz-team.pick { color: var(--text); font-weight: 800; }
.pz-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-score { margin-left: auto; font-size: 20px; font-weight: 700; color: var(--text); }
.pz-team:not(.pick) .pz-score { color: var(--text-2); }
.pz-pick { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-2); background: linear-gradient(180deg, var(--accent-weak), rgba(248, 72, 56, .04)); border: 1px solid var(--accent-line); }
.pz-kicker { color: var(--accent-2); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pz-bet { font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--text); }
.pz-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pz-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; }
.pz-mk { font-size: 13px; font-weight: 700; color: var(--text); }
.pz-p { font-size: 15px; font-weight: 700; color: var(--text-2); }
.pz-p::before { content: 'Estimación '; font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--text-3); }
.pz-lines small { grid-column: 1 / -1; color: var(--text-3); font-size: 11.5px; line-height: 1.4; }
.pz-lines li.solo small { grid-column: 1; grid-row: 1; }
.pz-lines li.solo .pz-p { grid-column: 2; grid-row: 1; }
.pz-lines li + li { padding-top: 6px; border-top: 1px dashed var(--line); }
.pz-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pz-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface-3); color: var(--text-2); }
.pz-state svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pz-state.ok { background: rgba(47, 208, 122, .14); color: var(--win); }
.pz-state.ko { background: var(--accent-weak); color: var(--accent-2); }
.pz-state.wait { background: rgba(99, 174, 252, .13); color: var(--info); }
.pz-state.live { background: var(--accent-weak); color: var(--accent-2); }
.pz-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
@media (max-width: 760px) { .pz-list { grid-template-columns: 1fr; } .pz-bet { font-size: 16px; } }

/* Enfrentamientos (28/10/2026): resumen con datos de la fuente y lista legible. */
.hz { display: grid; gap: 12px; }
.hz-sum { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; }
.hz-side { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: var(--r-2); background: var(--surface-2); text-align: center; min-width: 0; }
.hz-side b { font-size: 30px; font-weight: 700; line-height: 1; }
.hz-side span { color: var(--text-2); font-size: 12px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hz-side .crest { width: 26px; height: 26px; }
.hz-side.mid { padding-top: 42px; min-width: 76px; }
.hz-side.mid b { color: var(--text-2); }
.hz-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; background: var(--surface-3); }
.hz-bar i { background: var(--accent); } .hz-bar i.d { background: var(--text-3); } .hz-bar i.b { background: var(--info); }
.hz-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.hz-facts span { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 650; }
.hz-facts b { color: var(--text); font-size: 15px; }
.hz-note { margin: 0; color: var(--text-3); font-size: 11.5px; }
.hz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hz-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); }
.hz-date { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; color: var(--text-3); font-size: 11.5px; font-weight: 700; line-height: 1.25; min-width: 0; }
.hz-date small { font-size: 10.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hz-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 13px; font-weight: 650; }
.hz-h { text-align: right; }
.hz-t.w { color: var(--text); font-weight: 800; }
.hz-sc { justify-self: center; padding: 3px 8px; border-radius: 7px; background: var(--surface-3); font-size: 17px; font-weight: 700; white-space: nowrap; }
.hz-sc i { font-style: normal; color: var(--text-3); margin: 0 2px; }
.hz-sc.na { font-family: var(--font); font-size: 11px; color: var(--text-3); }
@media (max-width: 480px) {
  .hz-side b { font-size: 24px; } .hz-side.mid { min-width: 60px; }
}

/* Planes y Buscador sin partido abierto: a todo el ancho, sin el panel vacío de detalle (28/10/2026). */
@media (min-width: 1181px) { body.view-full .layout { grid-template-columns: 236px minmax(0, 1fr); } }
@media (min-width: 861px) and (max-width: 1180px) { body.view-full .layout { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 861px) { body.view-full .detail { display: none; } body.view-full #list { max-width: 1040px; } }

/* Cabecera con más secciones (28/10/2026): en pantallas medianas las pestañas se compactan y el buscador conserva un ancho usable. */
@media (min-width: 861px) and (max-width: 1240px) {
  .topbar { gap: 12px; }
  .tab { padding: 0 8px; font-size: 13px; }
  .tab[aria-current="page"]::after { left: 8px; right: 8px; }
  .search { width: auto; flex: 1 1 140px; min-width: 120px; }
}
@media (min-width: 861px) and (max-width: 1000px) { .brand span, .brand > :not(img) { display: none; } }
.pz-list.one { grid-template-columns: 1fr; }

/* ------------------------------------------------------------------ predicciones: bloqueadas, pestañas y panel (30/10) */
.pz-scope { margin: -6px 0 12px; color: var(--text-3); font-size: 12px; }
.pr-seg { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pr-seg-b { height: 34px; padding: 0 14px; border-radius: 9px; color: var(--text-2); font-weight: 750; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.pr-seg-b .num { font-size: 15px; color: var(--text-3); }
.pr-seg-b[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.pr-seg-b[aria-pressed="true"] .num { color: var(--accent-2); }
.pr-chips { margin-bottom: 14px; }
.pz-link { color: var(--text-3); font-size: 12px; font-weight: 750; padding: 6px 2px; }
.pz-link:hover { color: var(--text); }
.pz-more-btn { display: flex; margin: 14px auto 0; }
.pz-flash { animation: pzFlash 1.6s var(--ease) 1; }
@keyframes pzFlash { 0% { box-shadow: 0 0 0 2px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.pz-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(5, 7, 11, .72); backdrop-filter: blur(4px); }
.pz-dialog { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px 22px 18px; border-radius: var(--r-3); box-shadow: var(--shadow); }
.pz-dialog h2 { margin: 4px 0 6px; font-size: 21px; line-height: 1.2; }
.pz-dialog p { margin: 0 0 12px; color: var(--text-2); }
.pz-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 10px; color: var(--text-2); font-size: 22px; line-height: 1; }
.pz-x:hover { background: var(--surface-3); color: var(--text); }
.pz-benefits { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.pz-benefits li { position: relative; padding-left: 24px; font-weight: 650; }
.pz-benefits li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 9px; height: 5px; border-left: 2px solid var(--win); border-bottom: 2px solid var(--win); transform: rotate(-45deg); }
.pz-price b { font-family: var(--font-num); font-size: 24px; color: var(--text); }
.pz-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.pz-actions .btn { height: 42px; flex: 1 1 140px; justify-content: center; }
.pz-fine { font-size: 11.5px; color: var(--text-3) !important; margin: 0 !important; }
@media (max-width: 480px) { .pz-list { grid-template-columns: 1fr; } .pr-seg { display: flex; } .pr-seg-b { flex: 1; justify-content: center; } }
/* 30/10: con BetDemon y Planes en la barra, entre 861 y 1180 px la cabecera no debe desbordar (antes empujaba
   «Entrar» y el estado fuera de la pantalla en 1024 px). */
@media (min-width: 861px) and (max-width: 1180px) {
  .topbar { gap: 10px; padding: 0 14px; }
  .tab { padding: 0 8px; font-size: 13px; }
  .search { width: auto; flex: 0 1 150px; min-width: 40px; }
  .search input { padding-right: 8px; }
  .status-pill .txt { display: none; }
  .status-pill { padding: 0 9px; }
}

/* ------------------------------------------------------------------ secciones sin panel de partido (31/10) */
.detail[hidden] { display: none !important; }
@media (min-width: 861px) {
  body.view-full .detail { display: none; }
  body.view-full #list { width: 100%; justify-self: center; max-width: none; }
  body.sec-predictions #list { max-width: 1200px; }
  body.sec-buscador #list { max-width: 980px; }
  body.sec-planes #list { max-width: 1120px; }
  body.sec-extremos #list { max-width: 1120px; }
  body.sec-predictions .pz-list { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
}

/* ------------------------------------------------------------------ predicciones 31/10: bloqueadas, resueltos, estados */
.pz-intro { margin: 0 0 14px; color: var(--text-2); font-size: 13.5px; max-width: 70ch; }
.pz-locked { min-height: 236px; }
.pz-locked:hover { transform: none; }
.pz-ghost { filter: blur(6px) saturate(.7); opacity: .8; pointer-events: none; user-select: none; }
.pz-fakepick { display: grid; gap: 8px; min-height: 58px; }
.pz-fakepick i, .pz-g-foot i { display: block; height: 10px; border-radius: 6px; background: var(--line-2); }
.pz-fakepick i:nth-child(2) { height: 16px; }
.pz-g-foot { display: flex; gap: 10px; } .pz-g-foot i { height: 22px; border-radius: 11px; }
.w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; } .w70 { width: 70%; }
.pz-veil { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 16px; text-align: center;
  background: linear-gradient(180deg, rgba(10, 13, 20, .25), rgba(10, 13, 20, .55)); }
.pz-veil-lock { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); }
.pz-veil-lock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.pz-veil-t { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: .01em; }
.pz-unlock { height: 42px; padding: 0 22px; font-size: 14px; box-shadow: 0 6px 18px rgba(248, 72, 56, .28); }
.pz-unlock:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pz-sec { margin: 6px 0 22px; }
.pz-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 2px; }
.pz-sec-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.pz-sec-sum { color: var(--text-2); font-size: 13px; font-weight: 700; }
.pz-state-box { display: grid; gap: 4px; padding: 22px 18px; border-radius: var(--r-2); background: var(--surface); border: 1px dashed var(--line-2); color: var(--text-2); font-size: 13px; }
.pz-state-box b { color: var(--text); font-size: 14px; }
.pz-state-box.err { border-style: solid; border-color: var(--accent-line); }
.pz-skel { min-height: 220px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.pz.st-ok .pz-pick { background: linear-gradient(180deg, rgba(47, 208, 122, .14), rgba(47, 208, 122, .04)); border-color: rgba(47, 208, 122, .4); }
.pz.st-ok .pz-kicker { color: var(--win); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 31/10: enlaces del pie con área táctil suficiente en móvil (medían 17 px de alto). */
@media (max-width: 860px) { .foot a { display: inline-block; padding: 9px 2px; } }

/* Pie de página (02/11/2026): marca, cuatro columnas y avisos; en celular las columnas se pliegan. */
.site-foot { display: block; padding: 28px 20px 110px; color: var(--text-2); }
.site-foot a { color: var(--text-2); text-decoration: none; }
.site-foot a:hover, .site-foot a:focus-visible { color: var(--text); text-decoration: underline; }
.sf-top { display: grid; grid-template-columns: minmax(220px, 1.2fr) 3fr; gap: 28px; }
.sf-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; letter-spacing: -.01em; }
.sf-logo b { color: var(--text); }
.sf-logo img { border-radius: 7px; }
.sf-brand p { margin: 10px 0 0; max-width: 34ch; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.sf-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.site-foot .sf-col { width: auto; }
.site-foot .sf-col summary { list-style: none; color: var(--text); font-size: 13px; font-weight: 800; letter-spacing: .02em; pointer-events: none; }
.site-foot .sf-col summary::-webkit-details-marker { display: none; }
.site-foot .sf-col ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; line-height: 1.35; }
.sf-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 12px; color: var(--text-3); }
.sf-bottom p { margin: 0; }
.sf-src a { color: var(--text-3); }
@media (max-width: 860px) {
  .sf-top { grid-template-columns: 1fr; gap: 18px; }
  .sf-cols { grid-template-columns: 1fr; gap: 0; }
  .site-foot .sf-col { border-bottom: 1px solid var(--line); padding: 12px 2px; }
  .site-foot .sf-col summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; }
  .site-foot .sf-col summary::after { content: '+'; color: var(--text-3); font-weight: 700; }
  .site-foot .sf-col[open] summary::after { content: '–'; }
}
.ia-out { display: grid; gap: 8px; justify-items: start; margin: 8px 0; } .ia-left { margin: 8px 0 0; }

/* Avisos (02/11/2026): campana en la cabecera, panel de preferencias y avisos dentro de la página. */
.av-wrap { position: relative; display: flex; align-items: center; }
.av-btn.on { color: var(--accent); }
.av-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 24px)); z-index: 60; padding: 14px; display: grid; gap: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.av-panel[hidden] { display: none; }
.av-head { display: flex; justify-content: space-between; align-items: center; }
.av-note { margin: 0; font-size: 12px; color: var(--text-2); line-height: 1.45; }
.av-wide { width: 100%; }
.av-set { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 0; display: grid; gap: 6px; }
.av-set legend { font-size: 12px; font-weight: 800; color: var(--text-2); padding: 0 4px; }
.av-opt { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.av-toasts { position: fixed; right: 16px; bottom: 90px; z-index: 80; display: grid; gap: 8px; width: min(340px, calc(100vw - 32px)); }
.av-toast { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2, #1b2230); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: 0 14px 30px rgba(0,0,0,.4); font-size: 13px; }
.av-toast b { color: var(--accent); }
@media (max-width: 760px) { .av-panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } }

/* ------------------------------------------------------------------ cabecera en celular (02/11, revisión de Codex) */
/* Con la campana de avisos y «Entrar», la suma de la marca, los botones y el estado pasaba del ancho de la pantalla
   (404 px en 390 y 360): el estado quedaba fuera y toda la página se podía desplazar de lado. Se compactan la marca,
   los espacios y el estado (solo el punto), y el buscador es el único que cede ancho; ningún control se oculta. */
@media (max-width: 480px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .topbar > * { flex-shrink: 0; }
  .brand { gap: 7px; font-size: 17px; }
  .brand img { width: 28px; height: 28px; }
  .topbar .search { flex: 1 1 0; min-width: 0; }
  .search input { padding: 0 8px 0 32px; }
  .search > svg { left: 9px; }
  .search .clear { right: 4px; }
  .status-pill { width: 20px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
}
/* Pantallas muy angostas (320 px): queda el logotipo como enlace al inicio. */
@media (max-width: 345px) { .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.ext-when b.ext-off { font-family: inherit; font-size: 12.5px; font-weight: 800; color: var(--warn); text-align: center; }
/* Nombres largos (02/11): en predicciones y Primeros vs últimos se leen completos en hasta dos líneas; en las listas
   densas siguen recortados y el nombre completo aparece al pasar el cursor y en el detalle del partido. */
.pz-name, .ext-name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; line-height: 1.25; }
/* Cabecera de escritorio (02/11): hasta 1440 px el estado se muestra como punto (el texto queda en su descripción y al
   pasar el cursor) y el buscador recupera ancho; no se quita ninguna pestaña ni control. */
@media (min-width: 1181px) and (max-width: 1440px) {
  .status-pill .txt { display: none; }
  .status-pill { padding: 0 9px; }
  .topbar .search { flex: 1 1 200px; width: auto; min-width: 150px; max-width: 320px; }
}
/* Primeros vs últimos en tarjetas angostas (03/11, captura de maria a 1366 px): con 3 tarjetas por fila, la racha
   (5 casillas, ~88 px) quedaba al lado del nombre y le dejaba ~13 px; con el corte en cualquier letra del 02/11 los
   nombres se partían letra por letra y «local» quedaba en vertical. El nombre va arriba con todo el ancho y la racha
   debajo, en cualquier tamaño; las palabras solo se cortan si una sola no cabe. */
.ext-nm { flex-direction: column; align-items: flex-start; gap: 3px; }
.pz-name, .ext-name { overflow-wrap: break-word; word-break: normal; }
.ext-name small { white-space: nowrap; }
/* Mismo arreglo: hasta 2 líneas también aquí (la regla .ext-nm .ext-name ponía display:block y anulaba el límite)
   y, en escritorio, tarjetas de al menos 400 px (2 por fila a 1366 px en lugar de 3). */
.ext-nm .ext-name { display: -webkit-box; }
.ext-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
@media (max-width: 860px) { .ext-list { grid-template-columns: 1fr; } }
/* Tarjetas bloqueadas (03/11, maria): toda la tarjeta con un desenfoque más fuerte y una capa oscura; el candado,
   el título y «Ver predicción» quedan nítidos encima. El relleno es el mismo para todos los mercados. */
.pz-locked .pz-ghost { filter: blur(11px) saturate(.5); opacity: .7; }
.pz-locked .pz-veil { background: linear-gradient(180deg, rgba(6, 8, 13, .55), rgba(6, 8, 13, .72)); border-radius: inherit; }
.pz-locked { overflow: hidden; }
