/* La Pizarra — hoja de estilos.
   Identidad: blanco como base, azul marino y rojo de detalle (colores tomados del logo).
   Diseño claro por decisión de marca. Pensado primero para el teléfono. */
:root {
  --white: #ffffff;
  --paper: #f5f7fb;
  --line: #e2e7f0;
  --line-2: #cfd7e6;
  --navy: #0b1d42;
  --navy-2: #16306a;
  --navy-soft: #eef2fa;
  --red: #c50a2b;
  --red-2: #a30822;
  --red-soft: #fdecef;
  --ink: #0b1d42;
  --muted: #5b6886;
  --grass: #e4f1e6;
  --grass-2: #d3e8d6;
  --dirt: #f1e5d3;
  --ok: #1d7a46;
  --surface: #ffffff;
  --heading: #0b1d42;
  --on: #ffffff;
  --board: #0b1d42;
  --cell: #ffffff;
  --ok-soft: #e6f4ec;
  --ok-line: #bfe2cd;
  --red-line: #f1c3cc;
  --warn-soft: #fff6e0;
  --warn: #a86b00;
  --hover: #fafbfe;
  --pad: #f6faf6;
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 12px;
  --shadow: 0 1px 2px rgba(11, 29, 66, .06), 0 6px 18px -10px rgba(11, 29, 66, .18);
  color-scheme: light;
}

/* Modo oscuro: sigue al teléfono o computadora, o lo que el usuario escoja con el botón del tema */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0a1120; --surface: #121b2e; --line: #233049; --line-2: #34435f;
  --navy: #1d3570; --navy-2: #284a96; --navy-soft: #18233b; --heading: #e8eefc; --ink: #dfe6f3; --muted: #93a1bd;
  --red: #f0435f; --red-2: #d92f4b; --red-soft: #3a1621; --red-line: #6b2333;
  --ok: #4fca86; --ok-soft: #13301f; --ok-line: #24573a; --warn-soft: #3a2e10; --warn: #f2b84b; --hover: #172238; --pad: #142318;
  --grass: #17301f; --grass-2: #1d3a27; --dirt: #3a3122; --board: #0f2149; --cell: #e8edf7;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --paper: #0a1120; --surface: #121b2e; --line: #233049; --line-2: #34435f;
  --navy: #1d3570; --navy-2: #284a96; --navy-soft: #18233b; --heading: #e8eefc; --ink: #dfe6f3; --muted: #93a1bd;
  --red: #f0435f; --red-2: #d92f4b; --red-soft: #3a1621; --red-line: #6b2333;
  --ok: #4fca86; --ok-soft: #13301f; --ok-line: #24573a; --warn-soft: #3a2e10; --warn: #f2b84b; --hover: #172238; --pad: #142318;
  --grass: #17301f; --grass-2: #1d3a27; --dirt: #3a3122; --board: #0f2149; --cell: #e8edf7;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.45; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.05; text-wrap: balance; letter-spacing: .01em; }
.num, table { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Cabecera ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.site-head::after { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50% 100%); }
.head-row { display: flex; align-items: center; gap: 14px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: auto; flex: none; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; color: var(--heading); line-height: 1; white-space: nowrap; }
.wordmark small { display: block; font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .14em; color: var(--red); margin-top: 3px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px; color: var(--heading); white-space: nowrap; }
.main-nav a:hover { background: var(--navy-soft); }
.main-nav a[aria-current="page"] { color: var(--red); }
.main-nav a.cta { background: var(--navy); color: var(--on); }
.main-nav a.cta:hover { background: var(--navy-2); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 2px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
@media (max-width: 760px) {
  .head-row { flex-wrap: wrap; gap: 6px 10px; }
  .main-nav { order: 3; width: 100%; margin: 0 -16px; padding: 0 12px 2px; overflow-x: auto; scrollbar-width: none; width: calc(100% + 32px); }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { font-size: 14.5px; padding: 6px 8px; letter-spacing: .02em; }
  .brand img { width: 38px; }
  .wordmark { font-size: 22px; }
}

/* ---------- Estructura ---------- */
main { padding-block: 20px 56px; display: flex; flex-direction: column; gap: 22px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; font-weight: 800; text-transform: uppercase; font-style: italic; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; text-decoration: none; color: var(--heading); }
.btn:hover { border-color: var(--heading); }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--on); }
.btn.primary:hover { background: var(--red-2); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: var(--on); }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 14px; }
.link { color: var(--red); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 99px; background: var(--navy-soft); color: var(--heading); white-space: nowrap; }
.chip.live { background: var(--red-soft); color: var(--red); }
.chip.final { background: var(--navy); color: var(--on); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.demo-banner { background: var(--board); color: #dfe6f5; font-size: 13px; text-align: center; padding: 7px 16px; }
.demo-banner b { color: var(--on); }

/* ---------- Inicio ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto -40px -40px auto; width: 260px; height: 260px; border-radius: 50%; border: 28px solid var(--navy-soft); }
.hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; font-style: italic; text-transform: uppercase; color: var(--heading); }
.hero h1 em { color: var(--red); font-style: italic; }
.hero p { font-size: 17px; color: var(--muted); max-width: 46ch; margin: 12px 0 18px; }
.hero .logo { width: min(320px, 100%); justify-self: center; position: relative; }
.hero-stats { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.hero-stats div { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--heading); line-height: 1; }
.hero-stats span { display: block; font-family: var(--font-body); font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding: 20px; } .hero .logo { width: 190px; order: -1; } }

.champ-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.champ-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: border-color .15s; }
.champ-card:hover { border-color: var(--heading); }
.champ-card header { display: flex; gap: 12px; align-items: center; }
.crest { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--on); font-family: var(--font-display); font-weight: 800; font-size: 18px; flex: none; letter-spacing: .02em; }
.crest.sm { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.crest.xs { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.champ-card h3 { font-size: 22px; font-weight: 800; }
.cats { display: flex; gap: 6px; flex-wrap: wrap; }

/* tarjetas de juego */
.game-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.gcard { display: flex; flex-direction: column; gap: 8px; text-decoration: none; padding: 12px 14px; }
.gcard:hover { border-color: var(--heading); }
.gcard .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); align-items: center; }
.gteam { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-weight: 600; }
.gteam .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gteam .sc { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; min-width: 26px; text-align: right; }
.gteam.lost { color: var(--muted); }
.gcard.live { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.mini-situ { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.mini-bases { width: 30px; height: 22px; }
.mini-bases rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.mini-bases rect.on { fill: var(--red); stroke: var(--red); }
.outs { display: inline-flex; gap: 3px; vertical-align: middle; }
.outs i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--red); display: inline-block; }
.outs i.on { background: var(--red); }

/* líderes */
.leaders { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.leader-card h4 { font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.leader-card ol { list-style: none; margin: 0; padding: 0; }
.leader-card li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.leader-card li:last-child { border-bottom: 0; }
.leader-card li .pos { font-family: var(--font-display); font-weight: 700; color: var(--muted); }
.leader-card li .v { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.leader-card li:first-child .v { color: var(--red); }
.leader-card li a { text-decoration: none; font-weight: 600; }
.leader-card li a:hover { color: var(--red); }
.leader-card li .tm { font-size: 12px; color: var(--muted); margin-left: 4px; }

/* ---------- Campeonato ---------- */
.champ-head { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.champ-head .title { display: flex; gap: 14px; align-items: center; }
.champ-head h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; font-style: italic; text-transform: uppercase; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; background: none; border: 0; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 10px; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current="true"], .tabs button[aria-pressed="true"] { color: var(--heading); border-bottom-color: var(--red); }
.seg { display: inline-flex; background: var(--navy-soft); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--heading); }
.seg [aria-current="true"], .seg [aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); color: var(--red); }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
select.input, input.input { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; min-height: 40px; background: var(--surface); }

/* tablas */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--paper); text-align: right; padding: 8px 9px; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.data th button { all: unset; cursor: pointer; }
table.data th.sorted { color: var(--red); }
table.data td { padding: 8px 9px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data th.l, table.data td.l { text-align: left; }
table.data td.c, table.data th.c { text-align: center; }
table.data tbody tr:hover td { background: var(--hover); }
table.data .sticky { position: sticky; left: 0; background: var(--surface); z-index: 1; }
table.data th.sticky { background: var(--paper); }
table.data tr.total td { font-weight: 700; background: var(--paper); }
table.data td a { text-decoration: none; font-weight: 600; }
table.data td a:hover { color: var(--red); text-decoration: underline; }
table.data .tm { color: var(--muted); font-size: 12px; margin-left: 6px; font-weight: 500; }
table.data .rk { color: var(--muted); font-family: var(--font-display); font-weight: 700; }
.legend { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.team-cell { display: flex; align-items: center; gap: 8px; }
.date-head { font-family: var(--font-display); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; color: var(--heading); margin: 6px 0 -4px; }

/* resultados en lista */
.results { display: flex; flex-direction: column; }
.res-row { display: grid; grid-template-columns: 54px 1fr 40px 40px 1fr 70px; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.res-row:last-child { border-bottom: 0; }
.res-row:hover { background: var(--hover); }
.res-row .n { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-size: 14px; }
.res-row .t { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.res-row .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-row .t.r { justify-content: flex-end; text-align: right; }
.res-row .s { font-family: var(--font-display); font-weight: 800; font-size: 24px; text-align: center; }
.res-row .s.lost { color: var(--muted); font-weight: 700; }
.res-row .st { text-align: right; }
@media (max-width: 640px) {
  .res-row { grid-template-columns: 1fr 34px; grid-template-areas: "n st" "a sa" "h sh"; row-gap: 4px; }
  .res-row .n { grid-area: n; } .res-row .st { grid-area: st; grid-column: 2; text-align: right; }
  .res-row .t.a { grid-area: a; } .res-row .s.a { grid-area: sa; text-align: right; }
  .res-row .t.h { grid-area: h; justify-content: flex-start; text-align: left; } .res-row .s.h { grid-area: sh; text-align: right; }
  .res-row { grid-template-columns: 1fr auto; }
}

/* ---------- Juego ---------- */
.board { background: var(--board); color: var(--on); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #b9c5e0; }
.board-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.board-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.board-team.h { flex-direction: row-reverse; text-align: right; }
.board-team .nm { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.05; min-width: 0; }
.board-team .rec { font-size: 12px; color: #b9c5e0; font-family: var(--font-body); font-weight: 500; }
.board-score { font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1; display: flex; gap: 14px; align-items: center; }
.board-score .dash { color: #6f82ad; font-size: 30px; }
.board-score .lost { color: #8ea0c6; }
.linescore { overflow-x: auto; }
.linescore table { border-collapse: separate; border-spacing: 3px; font-family: var(--font-display); font-weight: 700; margin-inline: auto; }
.linescore th { font-size: 12px; color: #9fb0d4; font-weight: 600; padding: 0 2px; }
.linescore td { background: var(--cell); color: #0b1d42; min-width: 26px; height: 30px; text-align: center; font-size: 18px; border-radius: 4px; padding: 0 4px; }
.linescore td.tm { background: transparent; color: var(--on); text-align: left; padding-right: 8px; font-size: 16px; letter-spacing: .04em; }
.linescore td.tot { background: transparent; color: var(--on); border: 1.5px solid #6f82ad; font-size: 20px; }
.linescore td.now { box-shadow: inset 0 0 0 2.5px var(--red); }
.linescore td.gap { background: transparent; min-width: 4px; padding: 0; }
@media (max-width: 520px) { .board { padding: 12px; } .board-teams { gap: 8px; } .board-team { flex-direction: column; align-items: flex-start; gap: 6px; } .board-team.h { flex-direction: column; align-items: flex-end; } .board-team .crest { width: 38px; height: 38px; font-size: 14px; } .board-team .rec { display: none; } .board-score { font-size: 38px; gap: 8px; } .board-team .nm { font-size: 15px; } .linescore td { min-width: 20px; height: 26px; font-size: 15px; } .linescore td.tot { font-size: 16px; } }

.gameday { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 860px) { .gameday { grid-template-columns: 1fr; } }
.field-card { padding: 10px; }
.field { width: 100%; height: auto; display: block; }
.field .grass { fill: var(--grass); }
.field .grass2 { fill: var(--grass-2); }
.field .dirt { fill: var(--dirt); }
.field .chalk { stroke: #ffffff; stroke-width: 2; fill: none; }
.field .bag { fill: #ffffff; stroke: #c9b89c; stroke-width: 1; }
.field .bag.on { fill: var(--red); stroke: var(--red); }
.field .fl text { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; fill: #0b1d42; }
.field .fl rect { fill: rgba(255, 255, 255, .92); }
.field .rn text { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; fill: var(--on); }
.field .rn rect { fill: var(--red); }
.field .bt text { fill: var(--on); }
.field .bt rect { fill: var(--navy); }
.last-play { background: var(--navy-soft); border-left: 4px solid var(--red); padding: 10px 12px; border-radius: 0 10px 10px 0; font-weight: 600; }
.duel { display: flex; flex-direction: column; gap: 10px; }
.count-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.count-row .inn { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.count { display: flex; gap: 14px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.count span { display: inline-flex; gap: 4px; align-items: center; }
.count i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--line-2); display: inline-block; }
.count .b i.on { background: var(--ok); border-color: var(--ok); }
.count .s i.on { background: var(--red); border-color: var(--red); }
.count .o i.on { background: var(--heading); border-color: var(--heading); }
.pcard { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.pcard .lab { grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--on); background: var(--navy); border-radius: 8px; padding: 6px 8px; text-align: center; min-width: 64px; }
.pcard .lab.red { background: var(--red); }
.pcard .who { font-weight: 700; font-size: 16px; }
.pcard .who a { text-decoration: none; }
.pcard .who a:hover { color: var(--red); }
.pcard .line { font-size: 13px; color: var(--muted); }
.pitches { display: flex; gap: 5px; flex-wrap: wrap; }
.pitch { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }
.pitch.B { color: var(--ok); } .pitch.S, .pitch.C { color: var(--red); } .pitch.F { color: var(--heading); } .pitch.X, .pitch.H { background: var(--navy); color: var(--on); border-color: var(--navy); }
.next-up { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13px; }
.next-up div { background: var(--paper); border-radius: 8px; padding: 8px 10px; }
.next-up b { display: block; font-size: 14px; }

.pbp-inning { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.pbp-inning summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; font-family: var(--font-display); font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; background: var(--paper); }
.pbp-inning summary::-webkit-details-marker { display: none; }
.pbp-inning summary::after { content: "+"; font-size: 20px; color: var(--muted); }
.pbp-inning[open] summary::after { content: "−"; }
.pbp-inning summary .sumline { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; margin-left: auto; }
.pbp-half { padding: 4px 14px 10px; }
.pbp-half h5 { margin: 10px 0 4px; font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--red); }
.pbp-list { list-style: none; margin: 0; padding: 0; }
.pbp-list li { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.pbp-list li:last-child { border-bottom: 0; }
.pbp-list li.info { color: var(--muted); font-style: italic; }
.pbp-list li.sum { color: var(--muted); font-size: 13px; font-weight: 600; }
.pbp-list .runs { font-family: var(--font-display); font-weight: 800; color: var(--red); white-space: nowrap; }
.pbp-list .seqs { display: flex; gap: 3px; margin-top: 3px; flex-wrap: wrap; }
.pbp-list .seqs span { font-size: 10.5px; font-weight: 700; padding: 0 5px; border-radius: 4px; background: var(--paper); color: var(--muted); }

.box-team { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; }
.box-team h3 { font-size: 22px; font-weight: 800; text-transform: uppercase; font-style: italic; }
.dec { font-family: var(--font-display); font-weight: 800; font-size: 12px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; color: var(--on); background: var(--navy); }
.dec.W { background: var(--ok); } .dec.L { background: var(--red); } .dec.S { background: var(--navy-2); }
.sumario { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; font-size: 14px; }
.sumario div b { font-family: var(--font-display); letter-spacing: .04em; margin-right: 4px; color: var(--heading); }
.tech { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tech div { background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.tech span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tech b { font-weight: 600; }
.proof { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 13.5px; font-weight: 600; }
.proof.bad { background: var(--red-soft); color: var(--red); }
.news { font-size: 17px; line-height: 1.6; max-width: 68ch; }
.news::first-letter { font-family: var(--font-display); font-weight: 800; font-size: 3.1em; float: left; line-height: .85; margin: 4px 8px 0 0; color: var(--red); }

/* ---------- Ficha de pelotero / equipo ---------- */
.profile { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; position: relative; overflow: hidden; }
.profile .jersey { width: 78px; height: 78px; border-radius: 18px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--on); flex: none; }
.profile h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; font-style: italic; text-transform: uppercase; }
.profile .facts { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 6px; }
.profile .facts b { color: var(--heading); }
.statline { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.statline div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.statline span { display: block; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.statline b { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.statline div:first-child b { color: var(--red); }

/* ---------- Acceso ---------- */
.login { max-width: 420px; margin: 10px auto; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.login img { width: 150px; margin: 0 auto; }
.login form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.field-row { display: flex; flex-direction: column; gap: 4px; }
.field-row label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field-row input, .field-row select { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-height: 46px; background: var(--surface); }
.note { background: var(--navy-soft); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; text-align: left; }
.note code { font-weight: 700; color: var(--red); font-family: inherit; }

/* ---------- Pie ---------- */
.site-foot { background: var(--board); color: #c6d0e6; padding-block: 28px; font-size: 14px; }
.site-foot .wrap { display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.site-foot .wordmark { color: var(--on); font-size: 22px; }
.site-foot a { color: var(--on); }
.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.empty h3 { font-size: 22px; color: var(--heading); margin-bottom: 6px; }
.toast { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--navy); color: var(--on); padding: 10px 16px; border-radius: 99px; font-weight: 600; font-size: 14px; z-index: 60; max-width: calc(100% - 32px); box-shadow: var(--shadow); }

/* =========================================================
   Sección del anotador (etapa 2)
   Teléfono: una columna con barra de situación fija arriba.
   Tablet y computadora: situación y panel de anotación lado a lado.
   ========================================================= */
.scoring .site-head { position: static; }
.scoring .demo-banner { display: none; }
.scoring .wrap { max-width: 1360px; }
.scoring main { gap: 14px; padding-top: 14px; }
.sc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.sc-title { font-size: clamp(24px, 4vw, 32px); font-weight: 800; font-style: italic; text-transform: uppercase; }
.sc-top { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: 14px; }
.err { color: var(--red); font-weight: 600; font-size: 14px; margin: 0; }
.linkbtn { background: none; border: 0; padding: 2px 4px; color: var(--red); font-weight: 700; font-size: 13px; text-decoration: underline; }
.btn.big { min-height: 52px; padding: 12px 22px; font-size: 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
textarea.input { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--surface); width: 100%; resize: vertical; font: inherit; line-height: 1.5; }
.field-row input.input, .field-row select.input { width: 100%; }

.situ-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 25; background: var(--board); color: var(--on); border-radius: 12px; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: var(--shadow); }
.sb-score { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .03em; }
.sb-score b { font-size: 28px; font-weight: 800; line-height: 1; }
.sb-score .dash { color: #7d8fb8; }
.sb-meta { display: flex; align-items: center; gap: 10px; }
.sb-inn { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.sb-count { font-family: var(--font-display); font-weight: 800; font-size: 20px; background: rgba(255,255,255,.12); border-radius: 6px; padding: 0 6px; }
.situ-bar .outs i { border-color: var(--on); width: 10px; height: 10px; }
.situ-bar .outs i.on { background: var(--surface); }
.situ-bar .mini-bases rect { fill: transparent; stroke: #8fa2cc; }
.situ-bar .mini-bases rect.on { fill: var(--red); stroke: var(--red); }
.notice-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--red-soft); border: 1px solid var(--red-line); color: var(--heading); border-radius: 12px; padding: 10px 14px; font-size: 14px; }

.console { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.console .sc-input { order: -1; }
@media (min-width: 900px) { .console { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } .console .sc-input { order: 0; } .situ-bar { position: static; } }
@media (min-width: 1280px) { .console { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.sc-field summary { cursor: pointer; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-size: 14px; padding: 2px 0 8px; }
.np { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--paper); font-size: 13px; }
.np b { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--heading); }
.np.near { background: var(--warn-soft); } .np.near b { color: var(--warn); }
.np.over { background: var(--red-soft); } .np.over b { color: var(--red); }
.sc-actions { justify-content: space-between; }

.turn-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.turn-batter { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.count-big { display: flex; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.count-big b { font-size: 30px; font-weight: 800; margin-left: 2px; }
.count-big .b b { color: var(--ok); } .count-big .s b { color: var(--red); } .count-big .o b { color: var(--heading); }
.pitch-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pp { min-height: 60px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--surface); font-weight: 800; font-size: 15px; line-height: 1.15; padding: 6px; touch-action: manipulation; }
.pp.ball { border-color: var(--ok-line); background: var(--ok-soft); color: var(--ok); }
.pp.strike { border-color: var(--red-line); background: var(--red-soft); color: var(--red); }
.pp.foul { color: var(--heading); }
.pp.inplay { background: var(--navy); border-color: var(--navy); color: var(--on); }
.pp.hbp { color: var(--muted); }
.pp:active:not(:disabled) { transform: scale(.98); }
.pp:disabled { opacity: .35; }
@media (min-width: 1100px) { .pitch-pad { grid-template-columns: repeat(6, 1fr); } }

.res-group h5 { margin: 6px 0; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.res-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.res-btns button { min-height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 14px; padding: 6px 8px; touch-action: manipulation; }
.res-btns button:hover { border-color: var(--heading); }
.res-chosen { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--navy-soft); border-radius: 10px; padding: 10px 12px; }
.res-chosen b { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 7px 13px; font-weight: 700; font-size: 14px; min-height: 38px; touch-action: manipulation; }
.chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--on); }
.chips button.out[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.chips button.run[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); }
.chips.big button { min-height: 46px; padding: 9px 16px; font-size: 15px; }
.chips.small button { min-height: 30px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; }
.chips.small button[aria-pressed="true"] { background: var(--navy-2); }
.field-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 420px; }
.fp { min-height: 58px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--pad); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; padding: 4px; touch-action: manipulation; }
.fp b { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--heading); }
.fp span { font-size: 11px; font-weight: 700; color: var(--red); }
.fp small { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp:active { background: var(--grass-2); }
.pad-out { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.pad-out b { font-family: var(--font-display); font-size: 20px; color: var(--heading); }
.mvrow { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.mvrow:last-child { border-bottom: 0; }
.mv-who { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); font-size: 22px; font-weight: 700; }
.stepper output { font-family: var(--font-display); font-weight: 800; font-size: 26px; min-width: 22px; text-align: center; }
.preview { display: flex; flex-direction: column; gap: 3px; background: var(--paper); border-radius: 10px; padding: 10px 12px; font-weight: 600; }

.setup-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.lineup-grid { display: flex; flex-direction: column; gap: 6px; }
.lineup-grid .slot { display: grid; grid-template-columns: 22px minmax(0, 1fr) 76px; gap: 6px; align-items: center; }
.lineup-grid .slot b { font-family: var(--font-display); font-weight: 800; color: var(--muted); text-align: right; }
.lineup-grid select { width: 100%; min-height: 40px; padding: 6px 8px; }
.tech-form { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.changes-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ch-h { font-size: 18px; font-weight: 800; text-transform: uppercase; }
.pl-h { margin: 2px 0 4px; font-family: var(--font-display); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--red); }

/* Botón de tema y logo sobre fondo oscuro */
.theme-btn { border: 1px solid var(--line-2); background: var(--surface); color: var(--heading); border-radius: 99px; min-height: 36px; padding: 4px 12px; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.theme-btn svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .theme-btn { margin-left: auto; } }
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .login img { background: #fff; border-radius: 10px; padding: 3px; }
:root[data-theme="dark"] .hero .logo { background: #fff; border-radius: 24px; padding: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img, :root:not([data-theme="light"]) .login img { background: #fff; border-radius: 10px; padding: 3px; } :root:not([data-theme="light"]) .hero .logo { background: #fff; border-radius: 24px; padding: 14px; } }
.roster-box summary { cursor: pointer; font-weight: 700; color: var(--red); font-size: 14px; }
.np-grid { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px; }
.np-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sb-count { white-space: nowrap; }
@media (max-width: 760px) { .theme-btn span { display: none; } .theme-btn { padding: 6px; min-width: 36px; justify-content: center; } }

/* Administración */
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
input.sm-input { width: 64px; min-height: 38px; padding: 6px 8px; }
.cat-card { border-left: 4px solid var(--red); }
.access-row { display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.access-row > span { font-weight: 700; min-width: 160px; }
table.data tr.inactive td { color: var(--muted); }

/* =========================================================
   Gráficos para transmisión (fuente de navegador 1920 × 1080, fondo transparente)
   Diseño fijo de televisión: no cambia con el tema claro/oscuro.
   ========================================================= */
body.tv { background: transparent !important; overflow: hidden; }
body.tv .site-head, body.tv .site-foot, body.tv .demo-banner, body.tv .toast { display: none !important; }
body.tv .wrap { max-width: none; padding: 0; }
body.tv main { padding: 0; }
.tv-stage { --u: calc(100vw / 1920); position: fixed; inset: 0; font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; color: #fff; pointer-events: none; }
.tv-bug { position: absolute; left: calc(var(--u) * 56); top: calc(var(--u) * 48); display: flex; align-items: stretch; background: #0b1d42; border-radius: calc(var(--u) * 10); box-shadow: 0 calc(var(--u) * 8) calc(var(--u) * 28) rgba(0,0,0,.45); overflow: hidden; border-bottom: calc(var(--u) * 5) solid #c50a2b; }
.tv-teams { display: flex; flex-direction: column; }
.tv-row { display: flex; align-items: center; gap: calc(var(--u) * 12); height: calc(var(--u) * 54); padding-right: calc(var(--u) * 10); border-bottom: 1px solid rgba(255,255,255,.08); }
.tv-row:last-child { border-bottom: 0; }
.tv-chip { display: inline-block; width: calc(var(--u) * 12); height: 100%; }
.tv-row .tv-chip { align-self: stretch; height: auto; }
.tv-abbr { font-weight: 800; font-size: calc(var(--u) * 34); letter-spacing: .04em; min-width: calc(var(--u) * 86); }
.tv-score { font-weight: 800; font-size: calc(var(--u) * 42); min-width: calc(var(--u) * 54); text-align: center; background: rgba(255,255,255,.1); border-radius: calc(var(--u) * 6); line-height: 1.15; }
.tv-bat { color: #f2c94c; font-size: calc(var(--u) * 18); width: calc(var(--u) * 18); }
.tv-right { display: flex; align-items: center; gap: calc(var(--u) * 16); padding: 0 calc(var(--u) * 20); background: #12295c; }
.tv-inn { display: flex; flex-direction: column; align-items: center; line-height: .9; }
.tv-inn span { font-size: calc(var(--u) * 22); color: #f2c94c; }
.tv-inn b { font-size: calc(var(--u) * 44); font-weight: 800; }
.tv-sit { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 6); }
.tv-bases { width: calc(var(--u) * 64); height: calc(var(--u) * 48); }
.tv-bases rect { fill: transparent; stroke: #9fb0d4; stroke-width: 2.5; }
.tv-bases rect.on { fill: #f2c94c; stroke: #f2c94c; }
.tv-outs { display: flex; gap: calc(var(--u) * 6); }
.tv-outs i { width: calc(var(--u) * 13); height: calc(var(--u) * 13); border-radius: 50%; border: calc(var(--u) * 2.5) solid #fff; display: block; }
.tv-outs i.on { background: #c50a2b; border-color: #c50a2b; }
.tv-count { font-weight: 800; font-size: calc(var(--u) * 40); min-width: calc(var(--u) * 64); text-align: center; }
.tv-final { font-weight: 800; font-size: calc(var(--u) * 36); letter-spacing: .06em; padding: 0 calc(var(--u) * 6); }
.tv-brand { position: absolute; right: calc(var(--u) * 8); bottom: calc(var(--u) * 2); font-size: calc(var(--u) * 11); font-style: italic; font-weight: 800; letter-spacing: .1em; color: rgba(255,255,255,.45); }
.tv-pitch { position: absolute; left: calc(var(--u) * 56); top: calc(var(--u) * 176); display: flex; align-items: center; gap: calc(var(--u) * 14); background: rgba(11,29,66,.92); border-radius: calc(var(--u) * 8); padding: calc(var(--u) * 6) calc(var(--u) * 16) calc(var(--u) * 6) calc(var(--u) * 6); font-size: calc(var(--u) * 24); }
.tv-pitch b { font-weight: 800; }
.tv-plab { background: #c50a2b; border-radius: calc(var(--u) * 5); padding: 0 calc(var(--u) * 10); font-weight: 800; }
.tv-batter { position: absolute; left: calc(var(--u) * 120); bottom: calc(var(--u) * 150); display: flex; align-items: stretch; background: #fff; color: #0b1d42; border-radius: calc(var(--u) * 10); overflow: hidden; box-shadow: 0 calc(var(--u) * 10) calc(var(--u) * 30) rgba(0,0,0,.4); max-width: calc(var(--u) * 1100); }
.tv-tab { writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font-weight: 800; font-size: calc(var(--u) * 20); letter-spacing: .14em; padding: calc(var(--u) * 10) calc(var(--u) * 8); text-align: center; }
.tv-bbody { padding: calc(var(--u) * 14) calc(var(--u) * 26); display: flex; flex-direction: column; justify-content: center; }
.tv-bname { font-size: calc(var(--u) * 52); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1; display: flex; align-items: baseline; gap: calc(var(--u) * 14); }
.tv-num { color: #c50a2b; font-style: normal; }
.tv-bline { font-family: "Barlow", Arial, sans-serif; font-size: calc(var(--u) * 24); font-weight: 600; color: #3c4a66; margin-top: calc(var(--u) * 6); }
.tv-play { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--u) * 56); display: flex; align-items: center; gap: calc(var(--u) * 16); background: #0b1d42; border-radius: calc(var(--u) * 10); padding: calc(var(--u) * 12) calc(var(--u) * 26) calc(var(--u) * 12) calc(var(--u) * 12); font-family: "Barlow", Arial, sans-serif; font-weight: 600; font-size: calc(var(--u) * 28); max-width: calc(var(--u) * 1500); box-shadow: 0 calc(var(--u) * 10) calc(var(--u) * 30) rgba(0,0,0,.4); border-left: calc(var(--u) * 6) solid #c50a2b; }
.tv-ptag { font-family: "Barlow Condensed", Arial, sans-serif; font-weight: 800; background: #c50a2b; border-radius: calc(var(--u) * 6); padding: calc(var(--u) * 2) calc(var(--u) * 12); white-space: nowrap; }
.tv-line { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--u) * 140); background: #0b1d42; border-radius: calc(var(--u) * 12); padding: calc(var(--u) * 16) calc(var(--u) * 22); box-shadow: 0 calc(var(--u) * 10) calc(var(--u) * 30) rgba(0,0,0,.45); border-top: calc(var(--u) * 5) solid #c50a2b; }
.tv-line-title { font-weight: 800; font-size: calc(var(--u) * 24); letter-spacing: .1em; text-transform: uppercase; color: #f2c94c; margin-bottom: calc(var(--u) * 8); }
.tv-line table { border-collapse: separate; border-spacing: calc(var(--u) * 4); }
.tv-line th { font-size: calc(var(--u) * 20); color: #9fb0d4; font-weight: 700; }
.tv-line td { background: #fff; color: #0b1d42; font-weight: 800; font-size: calc(var(--u) * 30); min-width: calc(var(--u) * 42); height: calc(var(--u) * 46); text-align: center; border-radius: calc(var(--u) * 5); }
.tv-line td.tm { background: transparent; color: #fff; text-align: left; padding-right: calc(var(--u) * 10); display: flex; align-items: center; gap: calc(var(--u) * 10); font-size: calc(var(--u) * 30); }
.tv-line td.tm .tv-chip { width: calc(var(--u) * 10); height: calc(var(--u) * 34); border-radius: calc(var(--u) * 3); }
.tv-line td.t { background: transparent; color: #fff; border: calc(var(--u) * 2) solid #6f82ad; }
.tv-dec { font-family: "Barlow", Arial, sans-serif; font-size: calc(var(--u) * 22); font-weight: 600; color: #dfe6f5; margin-top: calc(var(--u) * 8); text-align: center; }
.tv-stage .in { animation: tvIn .5s cubic-bezier(.2,.8,.2,1) both; }
.tv-stage .out { animation: tvOut .5s ease both; }
.tv-play.in, .tv-line.in { animation-name: tvInC; } .tv-play.out, .tv-line.out { animation-name: tvOutC; }
@keyframes tvIn { from { opacity: 0; transform: translateX(calc(var(--u) * -40)); } to { opacity: 1; transform: none; } }
@keyframes tvOut { to { opacity: 0; transform: translateX(calc(var(--u) * -40)); } }
@keyframes tvInC { from { opacity: 0; transform: translate(-50%, calc(var(--u) * 30)); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes tvOutC { to { opacity: 0; transform: translate(-50%, calc(var(--u) * 30)); } }
@media (prefers-reduced-motion: reduce) { .tv-stage .in, .tv-stage .out { animation: none; } }
.url-box { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; word-break: break-all; user-select: all; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.sync-chip { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.sync-chip.ok { background: var(--ok-soft); color: var(--ok); }
.sync-chip.wait { background: var(--warn-soft); color: var(--warn); }
.sync-chip.err { background: var(--red-soft); color: var(--red); }
