/* Día de Fútbol · tema público — listado compacto tipo programación. */
/* Las fuentes se piden desde el <head> con preconnect: el @import obligaba al navegador a
   descargar este fichero entero antes de enterarse de que hacían falta. */
:root {
  --linea: #e7eaf1; --linea-suave: #eef1f6; --tinta: #121a28; --gris: #6a7482; --gris2: #98a1af;
  --azul: #1b5cff; --azul-osc: #0e3fb0; --azul-suave: #eef3ff;
  --fondo: #f4f6f9; --papel: #fff; --rojo: #e11d48; --ambar: #f5b400;
  --cc: #1b5cff;            /* color de competición, lo pone cada fila */
  --radio: 12px;
  --sombra-sm: 0 1px 2px rgba(18,27,45,.05);
  --sombra: 0 1px 2px rgba(18,27,45,.04), 0 6px 20px rgba(18,27,45,.06);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--fondo); color: var(--tinta); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; font-size: 13px; line-height: 1.4; background: var(--fondo); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; max-width: 100%; }
a { transition: color .15s ease; }
.boton, .canal, .cd-btn, .navf-fl, .navf-dia, .tabs a, .btn-mios, .fav-grande { transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
a { color: inherit; }
img { max-width: 100%; }
.contenedor { max-width: 1240px; margin: 0 auto; padding: 0 22px; }

/* Cabecera compacta */
.cabecera { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--linea); }
.cabecera-int { display: flex; align-items: center; gap: 10px; min-height: 52px; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; padding: 8px 0; }
.marca-ico { font-size: 15px; background: var(--azul); color: #fff; border-radius: 7px; width: 26px; height: 26px; display: grid; place-items: center; }
.marca-txt { display: flex; align-items: baseline; gap: 8px; }
.marca-txt b { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.marca-txt small { color: var(--gris); font-size: 12px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a, .nav button { color: var(--gris); text-decoration: none; padding: 6px 9px; border-radius: 7px; font-weight: 500; font-size: 12.5px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav a:hover, .nav button:hover { background: var(--linea-suave); color: var(--tinta); }
.nav .hc.activo { background: var(--azul); color: #fff; }
.aviso { background: var(--ambar); color: #3a2a00; font-weight: 500; padding: 7px 0; font-size: 12.5px; }

.principal { padding: 18px 16px 52px; }
h1 { font-size: 19px; font-weight: 600; margin: 0 0 10px; letter-spacing: -.02em; }
.intro { color: var(--gris); margin: 2px 0 16px; font-size: 13.5px; }

/* Zona superior: tira de días + herramientas (rediseño A) */
.topbar { margin-bottom: 14px; }
.tools { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tools .cd-btn { height: 40px; border-radius: 11px; }
.tool-ic { width: 40px; height: 40px; flex: none; border: 1px solid var(--linea); background: var(--papel); border-radius: 11px; display: grid; place-items: center; font-size: 16px; color: var(--tinta); cursor: pointer; box-shadow: var(--sombra-sm); }
.tool-ic:hover { border-color: var(--azul); }
.tool-ic[aria-expanded="true"] { border-color: var(--azul); background: var(--azul-suave); }
.tools .btn-mios { height: 40px; border-radius: 11px; margin-left: auto; }
.tools .quitar { font-size: 12px; color: var(--azul); text-decoration: none; font-weight: 500; padding: 0 4px; }
.btn-hoy { height: 40px; flex: none; display: inline-flex; align-items: center; padding: 0 15px; border-radius: 11px; background: var(--azul); color: #fff; text-decoration: none; font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-size: 13px; box-shadow: var(--sombra-sm); }
.btn-hoy:hover { background: var(--azul-osc); }
.tool-buscar { display: flex; gap: 6px; margin-top: 8px; }
.tool-buscar[hidden] { display: none; }
.tool-buscar input[type="search"] { flex: 1; font: inherit; font-size: 13px; padding: 9px 13px; border: 1px solid var(--linea); border-radius: 11px; background: var(--papel); color: var(--tinta); box-shadow: var(--sombra-sm); }
.tool-buscar input[type="search"]:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-suave); }
@media (max-width: 560px) { .tools .cd-btn { max-width: 150px; } .tools .btn-mios { margin-left: 0; } }
/* Escritorio: los días rellenan el ancho (sin huecos) y las herramientas se equilibran */
@media (min-width: 721px) {
  .tira-dias .tira-dia { flex: 1 1 0; min-width: 0; }
  .tools .cd { flex: 1 1 auto; min-width: 0; }
  .tools .cd-btn { max-width: none; width: 100%; }
  .tools .btn-mios { margin-left: 0; }
}

/* Barra de filtros (legado) */
.filtros-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filtros-bar select, .filtros-bar input { font: inherit; font-size: 12.5px; padding: 7px 11px; border: 1px solid var(--linea); border-radius: 9px; background: var(--papel); color: var(--tinta); box-shadow: var(--sombra-sm); }
.filtros-bar input:focus, .filtros-bar select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-suave); }
.filtros-bar .quitar { font-size: 12px; color: var(--azul); text-decoration: none; font-weight: 500; }
.filtros-bar .der { margin-left: auto; display: inline-flex; border: 1px solid var(--linea); border-radius: 7px; overflow: hidden; }
.filtros-bar .der a { padding: 6px 10px; text-decoration: none; font-weight: 500; font-size: 12px; color: var(--gris); }
.filtros-bar .der a.activo { background: var(--azul); color: #fff; }

/* Desplegable de competición con escudo */
.cd { position: relative; }
.cd-btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 12.5px; font-weight: 500; padding: 7px 12px; border: 1px solid var(--linea); border-radius: 9px; background: var(--papel); color: var(--tinta); cursor: pointer; max-width: 260px; box-shadow: var(--sombra-sm); }
.cd-btn:hover { border-color: #ccd4e2; }
.cd-btn img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.cd-btn > span:not(.cd-flecha):not(.cd-dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-flecha { color: var(--gris); margin-left: auto; padding-left: 4px; }
.cd-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cd-panel { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 250px; max-height: 340px; overflow: auto; background: var(--papel); border: 1px solid var(--linea); border-radius: 9px; box-shadow: 0 10px 30px rgba(20,40,80,.14); padding: 4px; }
.cd-opt { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 6px; text-decoration: none; color: var(--tinta); font-size: 13px; font-weight: 500; white-space: nowrap; }
.cd-opt:hover { background: #f0f4fa; }
.cd-opt.sel { background: #e7f0ff; color: var(--azul-osc); }
.cd-opt img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.cd-buscar { display: flex; gap: 6px; }

/* Tira de días (cuadrados navegables) */
.tira { display: flex; align-items: stretch; gap: 6px; margin: 0 0 10px; }
.tira-fl { flex: none; width: 30px; display: grid; place-items: center; background: var(--papel); border: 1px solid var(--linea); border-radius: 9px; color: var(--gris); text-decoration: none; font-size: 18px; }
.tira-fl:hover { color: var(--azul); border-color: var(--azul); }
.tira-dias { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; flex: 1; }
.tira-dias::-webkit-scrollbar { display: none; }
.tira-dia { flex: 0 0 auto; min-width: 52px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 8px; background: var(--papel); border: 1px solid var(--linea); border-radius: 9px; text-decoration: none; color: var(--tinta); scroll-snap-align: center; }
.tira-dia:hover { border-color: var(--azul); }
.td-dow { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); font-weight: 500; }
.td-num { font-size: 17px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.td-mes { font-size: 9.5px; color: var(--gris); text-transform: uppercase; }
.td-n { margin-top: 2px; font-size: 9.5px; font-weight: 500; color: var(--azul); background: #e7f0ff; border-radius: 99px; padding: 0 6px; min-width: 16px; text-align: center; }
.tira-dia.vacio .td-n { color: var(--gris); background: #eef1f6; }
.tira-dia.hoy { border-color: var(--azul); }
.tira-dia.activo { background: var(--azul-osc); border-color: var(--azul-osc); color: #fff; }
.tira-dia.activo .td-dow, .tira-dia.activo .td-mes { color: rgba(255,255,255,.72); }
.tira-dia.activo .td-n { background: #fff; color: var(--azul); }
.tira-hoy { margin: 0 0 12px; }
.tira-hoy a { font-size: 12.5px; color: var(--azul); text-decoration: none; font-weight: 500; }
/* Navegación por día (compacta, dentro de la barra de filtros) */
.navf { display: inline-flex; align-items: center; gap: 5px; }
.navf-wrap { position: relative; }
.navf-fl { width: 30px; height: 32px; flex: none; border: 1px solid var(--linea); background: var(--papel); border-radius: 7px; display: grid; place-items: center; font-size: 16px; color: var(--gris); text-decoration: none; }
.navf-fl:hover { border-color: var(--azul); color: var(--azul); }
.navf-dia { background: var(--papel); color: var(--tinta); border: 1px solid var(--linea); border-radius: 7px; padding: 6px 10px; font: inherit; font-weight: 500; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.navf-dia:hover { border-color: var(--azul); }
.navf-dia .chev { color: var(--gris); font-size: 11px; }
.navf-hoy { flex: none; padding: 0 10px; height: 32px; display: inline-flex; align-items: center; border: 1px solid var(--linea); border-radius: 7px; background: var(--papel); color: var(--azul); text-decoration: none; font-weight: 500; font-size: 12.5px; }
.cal-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: 290px; max-width: calc(100vw - 24px); background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; padding: 10px; box-shadow: 0 12px 30px rgba(20,40,80,.16); }
@media (max-width: 560px) { .cal-pop { left: 0; transform: none; } }
/* En la nueva barra el botón 📅 está a la derecha: anclamos el calendario a su derecha para que no se salga. */
.tools .navf-wrap .cal-pop { left: auto; right: 0; transform: none; }
.cal-cab { display: flex; align-items: center; justify-content: space-between; font-weight: 500; font-size: 14px; margin-bottom: 8px; }
.cal-cab a { color: var(--gris); text-decoration: none; padding: 2px 12px; border-radius: 6px; }
.cal-cab a:hover { background: #eef1f6; color: var(--azul); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-dow { font-size: 10px; color: var(--gris); font-weight: 500; padding: 2px 0; }
.cal-d { padding: 7px 0; border-radius: 7px; font-size: 13px; text-decoration: none; color: var(--tinta); position: relative; }
.cal-d:hover { background: #eef1f6; }
.cal-d.hoy { outline: 1px solid var(--azul); }
.cal-d.sel { background: var(--azul); color: #fff; }
.cal-d.hay::after { content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--azul); }
.cal-d.sel.hay::after { background: #fff; }
/* Resaltado del próximo partido */
.partido.es-proximo td { background: #eaf2ff; }
.partido.es-proximo td:first-child { box-shadow: inset 3px 0 0 var(--azul); }
.comp-cab .boton { margin-left: auto; align-self: center; }
.equipo-cab .escudo-ini { background: #eef2f8; color: var(--azul-osc); border: 1px solid var(--linea); }

/* Tabla / listado */
.scroll { overflow-x: auto; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra-sm); }
table.parrilla { width: 100%; border-collapse: collapse; min-width: 560px; table-layout: fixed; }
.parrilla col.w-dia { width: 130px; }
.parrilla col.w-hora { width: 58px; }
.parrilla col.w-comp { width: 168px; }
.parrilla col.w-canal { width: 230px; }
.parrilla thead th { text-align: left; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); padding: 8px 12px; border-bottom: 1px solid var(--linea); background: #fafbfc; white-space: nowrap; }
.parrilla th.col-hora, .parrilla td.col-hora { text-align: center; }
.parrilla tbody td { padding: 7px 12px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; overflow: hidden; }
.parrilla tbody tr:last-child td { border-bottom: 0; }
.parrilla tbody tr.partido:hover { background: #f8fafc; cursor: pointer; }
.parrilla tr.dia-sep td { background: #eef2f8; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #334; padding: 6px 12px; }
.col-dia { color: var(--gris); white-space: nowrap; font-weight: 500; }
.col-dia b { color: var(--tinta); font-weight: 500; }
.col-hora { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col-hora .dir { display: block; color: var(--rojo); font-weight: 600; font-size: 9px; letter-spacing: .04em; }
.col-hora .fin { display: block; color: var(--gris); font-weight: 500; font-size: 9px; }
.comp { display: flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; overflow: hidden; }
.comp .pt { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--cc); }
.comp .comp-logo { width: 18px; height: 18px; object-fit: contain; flex: none; }
.comp span { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp:hover span { text-decoration: underline; }
/* Partido: local | centro (abre ficha) | visitante. Cada equipo enlaza a su calendario. */
.part { display: grid; grid-template-columns: 1fr 46px 1fr; align-items: center; gap: 12px; max-width: 440px; margin: 0 auto; }
.part .eql, .part .eqv { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; text-decoration: none; color: inherit; }
.part .eql { justify-content: flex-end; text-align: right; justify-self: stretch; }
.part .eqv { justify-self: stretch; }
.part .esc-mini { width: 22px; height: 22px; }
.part .nom { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.part .eql:hover .nom, .part .eqv:hover .nom { text-decoration: underline; color: var(--azul); }
.part .cen { text-align: center; cursor: pointer; padding: 0 2px; }
.part .vs { color: #b7bec9; font-weight: 500; font-size: 13px; }
.part .cen:hover .vs { color: var(--azul); }
.esc-mini { width: 18px; height: 18px; object-fit: contain; flex: none; vertical-align: middle; }
.esc-mini.esc-ini { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #eef2f8; color: var(--azul-osc); font-size: 8px; font-weight: 600; border: 1px solid var(--linea); }
.part.res { grid-template-columns: 1fr 46px 1fr; }
.parrilla th.th-part { text-align: center; }
.marcador { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--tinta); white-space: nowrap; text-align: center; }
.marcador .sep { color: #b7bec9; margin: 0 2px; font-weight: 500; }
.parrilla col.w-jor { width: 96px; }
.col-jor { color: var(--gris); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partido.jugado .col-hora .fin { color: var(--gris); }

/* Listas apiladas en móvil (portada, competición, equipo) */
@media (max-width: 640px) {
  .scroll { overflow: visible; border: 0; background: transparent; border-radius: 0; }
  table.parrilla { min-width: 0; display: block; table-layout: auto; }
  .parrilla thead { display: none; }
  .parrilla tbody { display: block; }
  .parrilla tr.dia-sep { display: block; margin: 12px 0 6px; border-radius: 8px; }
  .parrilla tr.dia-sep td { display: block; }
  .parrilla tr.partido { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 6px; padding: 10px 12px; margin-bottom: 6px; border: 1px solid var(--linea); border-radius: 12px; background: var(--papel); box-shadow: 0 2px 8px rgba(15,30,60,.04); }
  .parrilla tr.partido td { display: block; padding: 0; border: 0; overflow: visible; }
  .parrilla td.col-hora { grid-column: 1; grid-row: 1; font-size: 15px; text-align: left; }
  .parrilla td.col-comp, .parrilla td.col-jor { grid-column: 2; grid-row: 1; justify-self: start; min-width: 0; max-width: 100%; }
  .parrilla td.col-jor:empty { display: none; }
  .parrilla td.col-part { grid-column: 1 / -1; grid-row: 2; }
  .parrilla td.col-canal { grid-column: 1 / -1; grid-row: 3; }
  .parrilla tr.partido.jugado td.col-canal { display: none; }
  .parrilla tr.partido.es-proximo { background: #eaf2ff; border-color: var(--azul); }
  .part, .part.res { grid-template-columns: 1fr auto 1fr; gap: 5px; align-items: center; }
  .part .nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
  .part .eql, .part .eqv { flex-wrap: nowrap; min-width: 0; }
  .parrilla tr.partido { min-height: 62px; }
}

/* Portada móvil "descarada": programación agrupada por horas */
.mprog { display: none; }
@media (max-width: 640px) { .solo-esc { display: none; } .mprog { display: block; } }
.mprog-hora { display: flex; align-items: baseline; gap: 9px; font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-size: 21px; letter-spacing: -.02em; color: var(--tinta); padding: 16px 2px 9px; }
.mprog-hora::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--linea); align-self: center; }
.mprog-hora small { font-size: 10px; font-weight: 500; color: var(--gris); text-transform: uppercase; letter-spacing: .04em; }
.mp { background: var(--papel); border: 1px solid var(--linea); border-left: 5px solid var(--cc); border-radius: 14px; padding: 11px 13px; margin-bottom: 9px; cursor: pointer; box-shadow: var(--sombra); transition: box-shadow .15s ease, transform .15s ease; }
.mp:hover { box-shadow: 0 2px 4px rgba(18,27,45,.05), 0 10px 26px rgba(18,27,45,.10); }
.mp.dir { box-shadow: 0 0 0 2px rgba(225,29,72,.18), 0 3px 12px rgba(225,29,72,.10); }
.mp-comp { display: flex; align-items: center; gap: 6px; font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--cc); margin-bottom: 9px; }
.mp-comp img { border-radius: 3px; object-fit: contain; flex: none; }
.mp-comp > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-dir { margin-left: auto; color: #e11d48; font-weight: 600; letter-spacing: .02em; flex: none; }
.mp-fin { margin-left: auto; color: var(--gris); flex: none; }
.mp-row { display: block; }
.mp-teams { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.mp-t { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; min-width: 0; }
.mp-t .esc-mini { width: 22px; height: 22px; }
.mp-t .nm { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
.mp-t .nm:active { color: var(--azul); }
.mp-t .g { margin-left: auto; font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-size: 18px; padding-left: 8px; font-variant-numeric: tabular-nums; }
.mp-chan { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mp-chan:not(:empty) { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--linea); }
.mp-chan .canal { font-size: 11px; }
.mp-chan .sin-canal { font-size: 11px; }
.mp-comp-txt { display: inline-flex; align-items: center; gap: 6px; color: var(--cc); text-decoration: none; overflow: hidden; white-space: nowrap; min-width: 0; }
.mp-comp-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mp-comp-txt img { flex: none; }
.mp-hora-l { font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-size: 15px; color: var(--tinta); }
.mp-hora { margin-left: auto; font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-size: 14px; color: var(--tinta); flex: none; }

/* Enfrentamiento en línea (tarjeta B): local · marcador/hora · visitante */
.mp-vs { display: flex; align-items: center; gap: 8px; }
.mp-team { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.mp-team.r { justify-content: flex-end; text-align: right; }
.mp-team .esc-mini { width: 24px; height: 24px; flex: none; }
.mp-team .nm { flex: 0 1 auto; min-width: 0; font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-size: 15px; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-team .nm:active { color: var(--azul); }
.mp-mid { flex: none; min-width: 54px; text-align: center; font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-size: 19px; color: var(--tinta); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mp-mid i { color: var(--gris); font-style: normal; margin: 0 2px; }
.mp-mid.h { font-size: 14px; color: var(--azul); background: var(--azul-suave); border-radius: 8px; padding: 5px 9px; }
.mp-mid.vs { color: var(--gris); font-size: 13px; font-weight: 600; }

/* Estrella de favorito por equipo */
.mp-fav { flex: none; background: none; border: 0; cursor: pointer; font-size: 15px; line-height: 1; color: #ccd3e0; padding: 2px 3px; margin-left: auto; }
.mp-fav.on { color: #f5b400; }
.mp-t .nm { flex: 0 1 auto; }
.mp.tiene-fav { background: #fffdf4; border-color: #f0d488; }
.parrilla tr.partido.tiene-fav td { background: #fffdf4; }

/* "Tus equipos" y filtro Míos */
.mprog-hora.tus { color: #a8790a; }
.mprog-hora.tus::after { background: #f2d692; }
.mprog-hora.prox-cab { color: var(--azul); font-size: 18px; max-width: 620px; margin-left: auto; margin-right: auto; }
.mprog-hora.prox-cab::after { background: var(--linea); }
.mprog.mprog-prox { display: block; max-width: 620px; margin: 0 auto; }
.mprog.mprog-prox .mp { margin-bottom: 10px; }
#miosProxLista:empty { display: none; }
#tusEquipos { margin-bottom: 6px; }
/* Tarjetas de favoritos más grandes: escudo arriba, nombre debajo, texto formal (no condensado) */
#tusEquipos .mp, #miosProxLista .mp { padding: 16px; border-radius: 16px; }
#tusEquipos .mp-vs, #miosProxLista .mp-vs { gap: 12px; padding: 6px 0 2px; }
#tusEquipos .mp-team, #miosProxLista .mp-team { flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 10px; }
#tusEquipos .mp-team.r, #miosProxLista .mp-team.r { flex-direction: column-reverse; }
#tusEquipos .mp-team .esc-mini, #miosProxLista .mp-team .esc-mini { width: 48px; height: 48px; }
#tusEquipos .mp-team .nm, #miosProxLista .mp-team .nm { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 500; font-size: 13px; letter-spacing: 0; white-space: normal; overflow: visible; line-height: 1.3; max-width: 130px; color: var(--tinta); }
#tusEquipos .mp-mid.h, #miosProxLista .mp-mid.h { font-size: 15px; padding: 6px 11px; align-self: center; }
#tusEquipos .mp-mid, #miosProxLista .mp-mid { align-self: center; font-size: 22px; }
.btn-mios { font-family: inherit; font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--linea); background: var(--papel); color: var(--gris); cursor: pointer; }
.btn-mios[aria-pressed="true"] { background: #ffca28; color: #4a3600; border-color: #edb600; }
body.solo-mios .btn-mios { box-shadow: 0 0 0 2px rgba(255,202,40,.35); }

/* Botón de favorito en la ficha de equipo */
.eq-acciones { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.eq-acciones .boton { margin-left: 0; }
.fav-grande { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--linea); background: var(--papel); color: var(--gris); cursor: pointer; }
.fav-grande.on { background: #fff7e0; border-color: #f0c24b; color: #8a6a00; }

/* Plantilla del equipo (con estadísticas) */
.pl-fuente { font-weight: 500; color: #b9c1d0; text-transform: none; letter-spacing: 0; font-size: 11px; margin-left: auto; }
.pl-grupo { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); background: #f8fafc; padding: 8px 14px; border-top: 1px solid var(--linea); }
.pl-grupo span { background: #e7ecf3; color: var(--gris); border-radius: 10px; padding: 1px 7px; font-size: 10px; }
.pl-jug { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #f4f6f9; }
.pl-jug:last-child { border-bottom: 0; }
.pl-d { flex: none; width: 22px; text-align: center; font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-size: 13px; color: var(--gris); font-variant-numeric: tabular-nums; }
.pl-foto { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #eef2f8; }
.pl-n { flex: 1; min-width: 0; font-weight: 500; font-size: 14px; display: flex; flex-direction: column; overflow: hidden; }
.pl-n small { font-weight: 500; color: var(--gris); font-size: 11px; }
.pl-stats { flex: none; display: flex; gap: 12px; }
.pl-stats span { display: flex; flex-direction: column; align-items: center; font-size: 9px; color: var(--gris); text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; }
.pl-stats b { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 15px; color: var(--tinta); font-weight: 600; }
.pl-stats i { font-style: normal; }
.pl-rating { flex: none; width: 34px; text-align: center; font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-size: 13px; color: #fff; border-radius: 7px; padding: 5px 0; font-variant-numeric: tabular-nums; }
.pl-rating.alta { background: #12925a; } .pl-rating.media { background: #2b7de0; } .pl-rating.baja { background: #e08a00; }
.pl-band { width: 22px; height: 15px; object-fit: cover; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
@media (max-width: 460px) { .pl-stats { gap: 9px; } .pl-n small { display: none; } .pl-jug { gap: 8px; padding: 8px 10px; } }
@media (min-width: 720px) { .pl-cols { column-count: 2; column-gap: 0; column-rule: 1px solid var(--linea); } .pl-grp { break-inside: avoid; } }

/* Resumen del equipo */
.eq-pos { color: var(--azul); font-weight: 600; }
.rz { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; max-width: 1080px; margin: 0 auto; }
.rz .rz-pad { padding: 10px; }
.rz .rz-pad .mp { margin: 0; }
.rz-forma { display: flex; gap: 8px; padding: 14px; flex-wrap: wrap; }
.fchip { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; color: #fff; }
.fchip b { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 15px; font-weight: 600; }
.fchip small { font-size: 10px; opacity: .92; font-variant-numeric: tabular-nums; }
.fchip.f-g { background: #12925a; } .fchip.f-e { background: #8a94a6; } .fchip.f-p { background: #e5352b; }
.rz-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 14px; }
.rz-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #f8fafc; border-radius: 10px; padding: 9px 4px; }
.rz-stats b { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 20px; font-weight: 600; }
.rz-stats span { font-size: 9px; text-transform: uppercase; letter-spacing: .03em; color: var(--gris); font-weight: 500; }
.rz-stats .g b { color: #12925a; } .rz-stats .e b { color: #8a7300; } .rz-stats .p b { color: #e5352b; }
.rz-verclas { display: block; padding: 11px 14px; font-size: 12.5px; font-weight: 500; color: var(--azul); text-decoration: none; border-top: 1px solid var(--linea); }
@media (max-width: 720px) { .rz { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .rz-stats { grid-template-columns: repeat(3, 1fr); } }

/* Calendario del club: héroe partido (fondo local/visitante) + listado en bloque */
.cal-wrap { max-width: 1080px; margin: 0 auto; }
.cal-cols { display: grid; grid-template-columns: 1fr; gap: 0 26px; align-items: start; }
@media (min-width: 840px) { .cal-cols { grid-template-columns: 1fr 1fr; } }
.ph { display: block; position: relative; overflow: hidden; border-radius: 18px; color: #fff; text-decoration: none; box-shadow: 0 14px 34px rgba(9,13,20,.22); margin-bottom: 4px; }
.ph-bg { position: absolute; inset: 0; display: flex; }
.ph-bg > span { flex: 1; }
.ph-seam { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 44%, rgba(9,13,20,.22) 50%, transparent 56%); }
.ph-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,18,.30) 0%, rgba(6,10,18,.14) 34%, rgba(6,10,18,.18) 62%, rgba(6,10,18,.52) 100%); }
.ph-accent { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.ph-cont { position: relative; z-index: 2; display: block; padding: 18px; max-width: 760px; margin: 0 auto; }
.ph-et { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.ph-duelo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 16px 0 6px; }
.ph-lado { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; }
.ph-lado .nm { font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-size: 15px; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.ph-idr { display: flex; align-items: center; gap: 8px; }
.ph-esc { width: 40px !important; height: 40px !important; border-radius: 50%; background: rgba(255,255,255,.16); box-shadow: 0 3px 10px rgba(0,0,0,.25); padding: 4px; object-fit: contain; }
.ph-kit { width: 36px; height: auto; filter: drop-shadow(0 2px 5px rgba(0,0,0,.35)); }
.ph-cen { text-align: center; }
.ph-cen .dia { display: block; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 500; font-size: 12px; opacity: .92; }
.ph-cen .hr { display: block; font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-size: 34px; line-height: 1.1; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.ph-pie { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.22); font-size: 12px; font-weight: 500; }
.ph-chip { margin-left: auto; background: rgba(255,255,255,.92); color: #0b0b0b; font-weight: 600; font-size: 11px; border-radius: 7px; padding: 4px 10px; }

.sec-eq { font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: var(--gris); padding: 20px 2px 9px; }
.blist { display: flex; flex-direction: column; gap: 8px; }
.brow { display: flex; align-items: stretch; background: var(--papel); border: 1px solid var(--linea); border-radius: 13px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--sombra-sm); transition: box-shadow .15s ease, transform .15s ease; }
.brow:hover { transform: translateY(-1px); box-shadow: var(--sombra); }
.bblk { width: 68px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-family: 'Instrument Sans', system-ui, sans-serif; padding: 10px 4px; text-align: center; }
.bblk .s { font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums; }
.bblk .l { font-size: 8.5px; font-weight: 600; opacity: .95; text-transform: uppercase; letter-spacing: .02em; margin-top: 2px; }
.bblk.prox { background: #eef2f8; color: var(--tinta); }
.bblk.prox .s { font-size: 16px; }
.bblk.prox .l { color: var(--gris); }
.bblk.res-g { background: #12925a; } .bblk.res-e { background: #8a94a6; } .bblk.res-p { background: #e5352b; }
.bmid { display: flex; align-items: center; gap: 11px; padding: 10px 13px; min-width: 0; flex: 1; }
.bmid .esc-mini { width: 30px; height: 30px; }
.binfo { min-width: 0; display: flex; flex-direction: column; }
.binfo .nm { font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.binfo .sm { font-size: 11px; color: var(--gris); }
.bicon { flex: none; align-self: center; margin-left: auto; padding: 0 14px; font-size: 17px; line-height: 1; }

/* Cabecera de la página de competición */
.comp-cab { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; padding-bottom: 14px; border-bottom: 2px solid var(--cc); }
.comp-cab-logo { width: 54px; height: 54px; object-fit: contain; flex: none; }
.comp-cab-bandera { font-size: 42px; }
.comp-cab h1 { margin: 0; font-size: 22px; }
.comp-cab p { margin: 3px 0 0; color: var(--gris); font-size: 13px; }
.canal { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 6px; margin: 1px 3px 1px 0; white-space: nowrap; background: var(--kc); color: var(--kt); vertical-align: middle; }
.canal .dial, .canal-dial { font-weight: 500; font-size: 10px; opacity: .9; padding: 0 4px; border-radius: 4px; background: rgba(0,0,0,.14); }
.canal-gratis { font-weight: 600; font-size: 8px; text-transform: uppercase; letter-spacing: .03em; padding: 1px 4px; border-radius: 4px; background: #12925a; color: #fff; }
.sin-canal { color: var(--gris); font-style: italic; font-size: 11.5px; }
.estrella { color: #8a6d00; font-size: 11px; margin-left: 4px; }

.vacio { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 26px; text-align: center; color: var(--gris); }
.vacio a { color: var(--azul); }

/* Listado de canales y competiciones (páginas secundarias) */
.bloque { margin-bottom: 22px; }
.grupo-simple { font-size: 13px; font-weight: 500; margin: 16px 0 8px; }
.canales-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.canal-fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; padding: 8px 10px; text-decoration: none; box-shadow: var(--sombra-sm); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.canal-fila:hover { transform: translateY(-1px); box-shadow: var(--sombra); }
.canal-fila:hover { border-color: var(--azul); }
.canal-fila .n { font-size: 11px; color: var(--gris); white-space: nowrap; }
.comps-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.comp-tarjeta { display: grid; grid-template-columns: 26px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 9px; background: var(--papel); border: 1px solid var(--linea); border-radius: 12px; padding: 11px 13px; text-decoration: none; border-left: 4px solid var(--cc); box-shadow: var(--sombra-sm); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.comp-tarjeta:hover { transform: translateY(-1px); box-shadow: var(--sombra); }
.comp-tarjeta .bandera { grid-row: span 2; font-size: 20px; }
.comp-tarjeta .ct-ico { grid-row: span 2; width: 26px; height: 26px; object-fit: contain; }
.comp-tarjeta .ct-ico.bandera { display: grid; place-items: center; }
.comp-tarjeta b { font-size: 14px; }
.comp-tarjeta small { grid-column: 2; color: var(--gris); font-size: 12px; }
.comp-tarjeta .n { grid-row: span 2; font-weight: 500; color: var(--cc); font-size: 18px; }

/* Ficha de partido (detalle) */
.migas { font-size: 12px; color: var(--gris); margin-bottom: 12px; }
.migas a { color: var(--azul); text-decoration: none; }
/* ===== Ficha de partido · tarjetas (dashboard) + menú con subrayado ===== */
.ficha { background: var(--papel); border: 1px solid var(--linea); border-radius: 18px; padding: 22px 18px 18px; box-shadow: var(--sombra); }
.ficha-cab { display: flex; justify-content: center; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; }
.ficha-cab .comp { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 500; font-size: 12px; padding: 5px 11px; border-radius: 20px; background: color-mix(in srgb, var(--cc) 12%, transparent); color: var(--cc); }
.ficha-cab .comp img, .ficha-cab .comp .bandera { width: 15px; height: 15px; }
.ficha-cab .jornada { background: #eef1f6; color: var(--gris); font-weight: 500; padding: 5px 10px; border-radius: 20px; }
.ficha-cab .fin { background: #e7f6ee; color: #12925a; font-weight: 500; padding: 5px 10px; border-radius: 20px; }
.ficha-cab .directo { background: #ffe6e6; color: #e5352b; font-weight: 500; padding: 5px 10px; border-radius: 20px; }
.ficha-equipos { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 18px 2px 6px; }
.ficha-eq { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; text-align: center; }
.ficha-hora { text-align: center; }
.ficha-hora time { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.ficha-hora span { display: block; color: var(--gris); font-size: 12px; margin-top: 2px; }
.ficha-hora small { display: block; color: var(--gris); font-size: 10.5px; }
.ficha-marcador { display: flex; align-items: baseline; justify-content: center; gap: 14px; font-weight: 600; font-size: 50px; letter-spacing: -.03em; line-height: .85; font-variant-numeric: tabular-nums; }
.ficha-marcador span { font-size: inherit; color: var(--tinta); }
.ficha-marcador b { color: #c2c9d6; font-weight: 400; font-size: 28px; }
.ficha-final { display: block; color: var(--gris); font-size: 12px; margin-top: 8px; }
.ficha-canales { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--linea); }
.ficha-canales h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); margin: 0 0 8px; }
.ficha-canales ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ficha-canales li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.operador { color: var(--gris); font-size: 12.5px; }
.externo { font-size: 12px; color: var(--azul); }
.ficha-acciones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.escudo { width: 44px; height: 44px; object-fit: contain; }
.escudo-ini { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #eef2f8; color: var(--azul-osc); font-weight: 600; font-size: 14px; }
.escudo.grande { width: 58px; height: 58px; font-size: 18px; }
.boton { display: inline-block; background: var(--azul); color: #fff; text-decoration: none; padding: 9px 15px; border-radius: 10px; font-weight: 500; font-size: 13px; box-shadow: 0 1px 2px rgba(27,92,255,.28), 0 6px 16px rgba(27,92,255,.22); }
.boton:hover { background: var(--azul-osc); }
.boton.secundario { background: var(--papel); color: var(--tinta); border: 1px solid var(--linea); box-shadow: var(--sombra-sm); }
.boton.secundario:hover { border-color: #ccd4e2; background: #fcfdfe; }

/* Menú de pestañas (barra con subrayado) */
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid var(--linea); margin: 18px 0 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 1 0 auto; text-align: center; padding: 11px 14px; font-weight: 500; font-size: 12.5px; color: var(--gris); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; transition: color .15s; }
.tabs a:hover { color: var(--tinta); }
.tabs a.on { color: var(--cc); border-bottom-color: var(--cc); }
.tabs-cont { margin-top: 16px; }

/* Tarjetas de contenido */
.det-card { background: var(--papel); border: 1px solid var(--linea); border-radius: 16px; overflow: hidden; box-shadow: var(--sombra); }
.det-card h2 { margin: 0; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--tinta); background: transparent; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--linea); display: flex; align-items: center; gap: 9px; }
.det-card h2 .k { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; background: color-mix(in srgb, var(--cc) 12%, transparent); }

/* Alineaciones cara a cara */
.once-cab { display: grid; grid-template-columns: 1fr 1fr; font-weight: 600; font-size: 13px; background: #f8fafc; border-bottom: 1px solid var(--linea); }
.once-cab span { padding: 9px 14px; }
.once-cab span:first-child { text-align: right; border-right: 1px solid var(--linea); }
.once-cab small { color: var(--gris); font-weight: 500; }
.once-sub { text-align: center; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--gris); background: #f0f3f8; padding: 5px; font-weight: 500; }
.once-fila { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #f4f6f9; }
.once-fila:last-child { border-bottom: 0; }
.jug { display: flex; align-items: center; gap: 7px; padding: 6px 12px; min-width: 0; }
.jug.jl { justify-content: flex-end; text-align: right; border-right: 1px solid #f0f2f5; }
.jug.vacio { min-height: 32px; }
.jn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 13px; }
.jd { background: #eef1f6; color: var(--tinta); border-radius: 6px; font-size: 10.5px; font-weight: 500; padding: 3px 0; min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; flex: none; }
.jc { background: #f5b400; color: #3a2a00; font-size: 8.5px; font-weight: 600; border-radius: 3px; padding: 0 3px; }
.jo { color: var(--rojo); font-size: 10.5px; font-weight: 500; }
.jr { font-size: 11px; font-weight: 600; color: #fff; border-radius: 20px; padding: 2px 7px; flex: none; font-variant-numeric: tabular-nums; }
.jr.alta { background: #12925a; } .jr.media { background: #2b7de0; } .jr.baja { background: #e08a00; } .jr.vacia { background: transparent; padding: 0; min-width: 4px; }
.once-dt { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linea); background: #f8fafc; }
.once-dt span { padding: 9px 12px; font-size: 12.5px; font-weight: 500; }
.once-dt span:first-child { text-align: right; border-right: 1px solid var(--linea); }

/* Clasificación */
.clasif { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 12.5px; }
.clasif th { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); font-weight: 500; padding: 7px 6px; border-bottom: 1px solid var(--linea); text-align: center; background: #f8fafc; }
.clasif th:nth-child(2) { text-align: left; }
.clasif td { padding: 6px; text-align: center; border-bottom: 1px solid #f4f6f9; font-variant-numeric: tabular-nums; }
.clasif td.pos { color: var(--gris); font-weight: 500; }
.clasif td.esc { width: 22px; }
.clasif td.esc .esc-mini { width: 18px; height: 18px; }
.clasif td.eqn { text-align: left; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.clasif td.eqn a { text-decoration: none; color: inherit; }
.clasif td.pts { font-weight: 600; }
.clasif tr.mio { background: #eaf2ff; }
.clasif-full td.dg { color: var(--gris); }
.clasif-full tbody tr:hover { background: #f6f9ff; }
.clasif-nota { font-size: 11px; color: var(--gris); margin: 8px 2px 0; }

/* Contador dentro de una pestaña */
.tab-n { display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: var(--linea); color: var(--gris); font-size: 10px; font-weight: 600; line-height: 16px; vertical-align: 1px; }
.tabs a.on .tab-n { background: var(--cc); color: #fff; }

/* Pestaña Equipos: rejilla de escudos */
.eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 9px; }
.eq-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--papel); border: 1px solid var(--linea); border-radius: 12px; text-decoration: none; color: var(--tinta); box-shadow: var(--sombra-sm); min-width: 0; }
.eq-chip:hover { border-color: var(--cc, var(--azul)); }
.eq-chip .esc-mini { width: 26px; height: 26px; flex: none; }
.eq-chip span { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Jornada · columnas fijas centradas (resultado clavado en la misma vertical) */
.jorn-lista { padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.jorn-cab, .jorn { display: grid; grid-template-columns: 104px minmax(90px,220px) 52px minmax(90px,220px) minmax(130px,1fr) 46px 46px; align-items: center; column-gap: 14px; min-width: 620px; }
.jorn-cab { padding: 4px 14px 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); font-weight: 500; }
.jorn-cab span { text-align: center; }
.jorn-cab .jc-l { text-align: left; }
.jorn-cab .jc-part { grid-column: span 3; text-align: center; }
.jorn { padding: 9px 14px; margin-bottom: 6px; border: 1px solid var(--linea); border-radius: 10px; text-decoration: none; color: inherit; }
.jorn:last-child { margin-bottom: 0; }
.jorn:hover { border-color: var(--cc); }
.jorn.actual { background: #eaf2ff; border-color: var(--cc); }
.jorn-fecha { font-size: 11px; color: var(--gris); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.jr-l { display: flex; align-items: center; justify-content: flex-end; gap: 7px; text-align: right; min-width: 0; }
.jr-v { display: flex; align-items: center; gap: 7px; min-width: 0; }
.jr-l, .jr-v { font-weight: 500; font-size: 13px; }
.jr-l .nom, .jr-v .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-r { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; }
.jm-est { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--gris); font-weight: 500; }
.jm-c { text-align: center; font-size: 12.5px; font-weight: 500; color: var(--tinta); font-variant-numeric: tabular-nums; }

/* Ficha técnica · rejilla de celdas */
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.tgrid .c { background: #f8fafc; border: 1px solid var(--linea); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.tgrid .c.ancho { grid-column: 1 / -1; }
.tgrid .c span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); font-weight: 500; margin-bottom: 3px; }
.tgrid .c b { font-size: 13.5px; font-weight: 500; }
@media (max-width: 460px) { .tgrid { grid-template-columns: 1fr; } }

/* Pie */
.pie { border-top: 1px solid var(--linea); margin-top: 8px; padding: 16px 0 26px; color: var(--gris); font-size: 12px; }
.pie a { color: var(--gris); }
.pie p { margin: 3px 0; }

@media (max-width: 560px) {
  .nav a:not(.hc) { display: none; }
  .marca-txt small { display: none; }
  .filtros-bar .der { margin-left: 0; }
}

/* Diálogo de sincronización de dispositivos */
.sync-ov { position: fixed; inset: 0; z-index: 200; background: rgba(15,22,40,.55); display: flex; align-items: center; justify-content: center; padding: 18px; }
.sync-ov[hidden] { display: none; }
.sync-box { position: relative; width: 100%; max-width: 430px; background: var(--papel); border-radius: 18px; padding: 22px 22px 24px; box-shadow: 0 24px 60px rgba(10,20,50,.35); max-height: 90vh; overflow-y: auto; }
.sync-box h3 { margin: 0 0 14px; font-size: 19px; }
.sync-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; background: var(--fondo); border-radius: 9px; font-size: 14px; color: var(--gris); cursor: pointer; }
.sync-x:hover { background: #e8ecf3; color: var(--tinta); }
.sync-int { color: var(--gris); font-size: 13px; margin: 0 0 16px; line-height: 1.5; }
.sync-sec { border: 1px solid var(--linea); border-radius: 12px; padding: 14px; }
.sync-sec > b { font-size: 14px; }
.sync-sub { color: var(--gris); font-size: 12px; margin: 4px 0 10px; }
.sync-o { text-align: center; margin: 12px 0; position: relative; }
.sync-o::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--linea); }
.sync-o span { position: relative; background: var(--papel); padding: 0 12px; color: var(--gris2); font-size: 12px; font-weight: 500; text-transform: uppercase; }
.sync-form { display: flex; gap: 8px; }
.sync-form input { flex: 1; min-width: 0; font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 18px; font-weight: 600; letter-spacing: .12em; text-align: center; text-transform: uppercase; padding: 10px; border: 1px solid var(--linea); border-radius: 10px; background: var(--fondo); color: var(--tinta); }
.sync-form input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-suave); }
.sync-msg { font-size: 12px; margin-top: 8px; min-height: 14px; color: var(--gris); }
.sync-msg.err { color: var(--rojo); }
.sync-box .boton { width: 100%; justify-content: center; margin-top: 2px; }
.sync-code { font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-size: 34px; letter-spacing: .16em; text-align: center; color: var(--azul); background: var(--azul-suave); border-radius: 12px; padding: 14px; margin: 12px 0 6px; }
.sync-hint { font-size: 11.5px; color: var(--gris); text-align: center; margin: 0; line-height: 1.5; }
.sync-err { color: var(--rojo); font-size: 12px; text-align: center; margin: 8px 0 0; }
.sync-ok { font-size: 13.5px; color: #0f7a48; background: #e7f7ef; border-radius: 10px; padding: 12px; margin: 0 0 14px; line-height: 1.5; }
.sync-link { display: block; width: 100%; margin-top: 14px; background: none; border: 0; color: var(--gris); font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.sync-link:hover { color: var(--rojo); }
#btnSync { cursor: pointer; }
.sync-form .boton { width: auto; flex: none; }


/* ===== Tema césped: cabecera y calendario en color (añadir al final de tema.css) ===== */
:root { --cesped: #103a2b; --cesped-osc: #0b2a1f; --cesped-linea: #1f4d3b; --cesped-txt: #a9c9bb; --cal-activo: #ffd84d; --cal-activo-txt: #3a2e00; }

.cabecera { background: var(--cesped); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.marca-ico { background: var(--cal-activo); }
.marca-txt small { color: var(--cesped-txt); }
.nav a, .nav button { color: var(--cesped-txt); }
.nav a:hover, .nav button:hover { background: var(--cesped-linea); color: #fff; }
.nav .hc.activo { background: var(--cal-activo); color: var(--cal-activo-txt); }

/* La tira de días pasa a ser una franja de lado a lado, pegada a la cabecera */
.tira { margin-top: -18px; padding: 12px 0; background: var(--cesped-osc); box-shadow: 0 0 0 100vmax var(--cesped-osc); clip-path: inset(0 -100vmax); }
.tira-fl { background: transparent; border-color: var(--cesped-linea); color: var(--cesped-txt); }
.tira-fl:hover { color: #fff; border-color: var(--cesped-txt); }
.tira-dia { background: transparent; border-color: var(--cesped-linea); color: #fff; }
.tira-dia:hover { border-color: var(--cesped-txt); }
.tira-dia .td-dow, .tira-dia .td-mes { color: var(--cesped-txt); }
.tira-dia .td-n { background: var(--cesped-linea); color: #fff; }
.tira-dia.vacio .td-n { background: transparent; color: var(--cesped-txt); }
.tira-dia.hoy { border-color: var(--cal-activo); }
.tira-dia.activo { background: var(--cal-activo); border-color: var(--cal-activo); color: var(--cal-activo-txt); }
.tira-dia.activo .td-dow, .tira-dia.activo .td-mes { color: var(--cal-activo-txt); }
.tira-dia.activo .td-n { background: var(--cal-activo-txt); color: var(--cal-activo); }


/* ===== Canales: máximo 2 visibles por partido, el resto tras "+N" (lo activa app.js) ===== */
.canal-extra { display: none; }
.abierto > .canal-extra { display: inline-flex; }
.canal-nombre { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.col-canal:not(.abierto) { white-space: nowrap; }
.col-canal:not(.abierto) .canal-nombre { max-width: 105px; }
.abierto .canal-nombre { max-width: none; }
.canal-mas { display: inline-flex; align-items: center; font: inherit; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 6px; margin: 1px 0; border: 1px solid var(--linea); background: var(--papel); color: var(--gris); cursor: pointer; vertical-align: middle; }
.canal-mas:hover { border-color: var(--azul); color: var(--azul); }


/* ===== Modo compacto: filas y tarjetas de partido lo más bajas posible ===== */
body { letter-spacing: .005em; }
b, strong { font-weight: 600; }
.parrilla col.w-hora { width: 76px; }
.parrilla thead th { padding: 5px 10px; font-weight: 500; }
.parrilla tbody td { padding: 3px 10px; line-height: 1.25; }
.col-hora { font-weight: 500; }
.col-hora .dir, .col-hora .fin { display: inline; margin-left: 4px; font-weight: 500; }
.comp .comp-logo { width: 15px; height: 15px; }
.comp span { font-weight: 400; color: var(--gris); }
.part { gap: 8px; }
.part .esc-mini { width: 17px; height: 17px; }
.part .nom { font-weight: 500; }
.marcador { font-weight: 600; font-size: 13px; }
.canal { font-weight: 500; font-size: 10.5px; padding: 1px 6px; margin: 0 3px 0 0; border-radius: 5px; }
.canal-mas { padding: 0 6px; margin: 0; font-weight: 500; }

.mprog-hora { font-size: 15px; font-weight: 600; padding: 10px 2px 4px; }
.mp { padding: 6px 10px; margin-bottom: 5px; border-radius: 10px; border-left-width: 3px; box-shadow: var(--sombra-sm); }
.mp-comp { margin-bottom: 3px; font-size: 10px; font-weight: 500; }
.mp-team { gap: 6px; }
.mp-team .esc-mini { width: 19px; height: 19px; }
.mp-team .nm { font-size: 14px; font-weight: 500; }
.mp-mid { font-size: 16px; font-weight: 600; min-width: 46px; }
.mp-mid.h { font-size: 13px; padding: 2px 7px; border-radius: 6px; font-weight: 500; }
.mp-chan { gap: 4px; }
.mp-chan:not(:empty) { margin-top: 4px; padding-top: 4px; }

/* Tarjeta móvil: los canales suben a la línea de la competición (una línea menos por partido) */
.mp { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; }
.mp-comp { grid-column: 1; grid-row: 1; min-width: 0; }
.mp-chan { grid-column: 2; grid-row: 1; flex-wrap: nowrap; justify-content: flex-end; max-width: 58vw; overflow: hidden; margin-bottom: 3px; }
.mp-chan:not(:empty) { margin-top: 0; padding-top: 0; border-top: 0; }
.mp-chan .canal { margin: 0; }
.mp-chan .canal-nombre { max-width: 92px; }
.mp-vs, .mp-row { grid-column: 1 / -1; grid-row: 2; }
.mp-chan.abierto { grid-column: 1 / -1; grid-row: 3; flex-wrap: wrap; justify-content: flex-start; max-width: none; margin: 4px 0 0; }


/* ===== Portada por ligas: una caja por competición, caja de favoritos y filtros rápidos ===== */
.filtros-rapidos { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.filtros-rapidos::-webkit-scrollbar { display: none; }
.filtro { flex: none; font: inherit; font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--linea); background: var(--papel); color: var(--gris); cursor: pointer; }
.filtro:hover { border-color: var(--cesped); color: var(--tinta); }
.filtro[aria-pressed="true"] { background: var(--cesped); border-color: var(--cesped); color: #fff; }
body.con-filtros .tools .btn-mios { display: none; }

.ligas { display: grid; gap: 10px; }
.liga-box { background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; overflow: hidden; box-shadow: var(--sombra-sm); }
.liga-cab { display: flex; align-items: center; gap: 8px; padding: 5px 10px; background: #f6f8fa; border-bottom: 1px solid var(--linea); }
.liga-cab .liga-tit, .liga-cab .liga-tit span { font-weight: 600; font-size: 12.5px; color: var(--tinta); }
.liga-cab .comp-logo, .liga-cab img { width: 16px; height: 16px; }
.liga-n { margin-left: auto; font-size: 11px; color: var(--gris); white-space: nowrap; }
.liga-box.es-fav { border-color: #f0d488; }
.liga-box.es-fav .liga-cab { background: #fff6d6; border-bottom-color: #f0d488; }
.liga-box.es-fav .liga-cab .liga-tit { color: #7a5a00; }
.liga-box table.parrilla { min-width: 0; }
.liga-box td.col-comp { display: none; }

/* Móvil: dentro de la caja los partidos son filas separadas por una línea, no tarjetas sueltas */
.mprog .liga-box { margin-bottom: 10px; }
.mprog .liga-box .mp { border: 0; border-radius: 0; box-shadow: none; margin: 0; border-bottom: 1px solid var(--linea-suave); }
.mprog .liga-box .mp:last-child { border-bottom: 0; }
.mprog .liga-box .mp.dir { box-shadow: inset 3px 0 0 var(--rojo); }
.mprog .liga-box .mp .mp-comp-txt { display: none; }
.mprog .liga-cab .mp-comp-txt { display: inline-flex; color: var(--tinta); text-transform: none; letter-spacing: 0; }


/* ===== Gol en directo: la fila se ilumina unos segundos cuando cambia el marcador ===== */
@keyframes gol-flash { 0%, 60% { background-color: #fff1a8; } 100% { background-color: transparent; } }
tr.partido.gol td, .mp.gol { animation: gol-flash 8s ease-out; }
tr.partido.gol .marcador, .mp.gol .mp-mid { color: var(--rojo); }
.col-hora .dir { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { tr.partido.gol td, .mp.gol { animation: none; } }


/* ===== Ficha de partido fina (opción C: dos columnas) + base común de cajas, pestañas y tablas ===== */
.migas { font-size: 11.5px; margin-bottom: 8px; }
.migas a { color: var(--cesped); }
.tabs { border-bottom: 0; gap: 6px; margin: 10px 0 0; }
.tabs a { flex: none; padding: 5px 12px; font-size: 12.5px; font-weight: 500; border: 1px solid var(--linea); border-radius: 99px; background: var(--papel); color: var(--gris); margin: 0; }
.tabs a:hover { border-color: var(--cesped); color: var(--tinta); }
.tabs a.on { background: var(--cesped); border-color: var(--cesped); color: #fff; }
.tabs-cont { margin-top: 10px; }
.det-card { border-radius: 10px; box-shadow: var(--sombra-sm); }
.det-card h2 { padding: 5px 10px; font-size: 12.5px; font-weight: 600; background: #f6f8fa; gap: 6px; }
.det-card h2 .k { width: auto; height: auto; background: none; font-size: 12px; }
.once-cab { font-size: 12.5px; }
.once-cab span, .once-dt span { padding: 5px 10px; }
.once-sub { padding: 2px; font-size: 9.5px; }
.jug { padding: 2px 10px; gap: 6px; }
.jug.vacio { min-height: 22px; }
.jn { font-size: 12.5px; font-weight: 400; }
.jd { font-size: 10px; padding: 1px 0; min-width: 20px; border-radius: 4px; }
.jr { font-size: 10px; font-weight: 500; padding: 1px 6px; }
.once-dt span { font-size: 12px; }
.clasif { font-size: 12px; }
.clasif th { padding: 4px 6px; }
.clasif td { padding: 3px 6px; }
.clasif td.esc .esc-mini { width: 15px; height: 15px; }
.clasif tr.mio, .jorn.actual { background: #eef6f1; }
.jorn-lista { padding: 0; }
.jorn-cab { padding: 4px 10px; background: #fafbfc; border-bottom: 1px solid var(--linea); }
.jorn { padding: 4px 10px; margin: 0; border: 0; border-bottom: 1px solid var(--linea-suave); border-radius: 0; }
.jorn:hover { background: #f8fafc; }
.jr-l, .jr-v { font-size: 12.5px; }
.jr-l .esc-mini, .jr-v .esc-mini { width: 16px; height: 16px; }
.jr-r { font-size: 13px; }
.jm-est { font-size: 11px; font-weight: 400; }
.jm-c { font-size: 12px; }
.tgrid { gap: 0; padding: 0; }
.tgrid .c { background: none; border: 0; border-bottom: 1px solid var(--linea-suave); border-radius: 0; padding: 5px 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tgrid .c span { margin: 0; font-size: 10.5px; flex: none; }
.tgrid .c b { font-size: 12.5px; font-weight: 500; text-align: right; }
.boton { padding: 5px 11px; font-size: 12px; border-radius: 99px; background: var(--cesped); box-shadow: none; }
.boton:hover { background: var(--cesped-osc); }
.boton.secundario { background: var(--papel); color: var(--gris); border: 1px solid var(--linea); box-shadow: none; }
.ficha { padding: 0; border-radius: 10px; box-shadow: var(--sombra-sm); overflow: hidden; }
.ficha-cab { justify-content: flex-start; gap: 10px; padding: 5px 10px; background: #f6f8fa; border-bottom: 1px solid var(--linea); }
.ficha-cab .comp { background: none; padding: 0; color: var(--tinta); font-weight: 600; font-size: 12.5px; }
.ficha-cab .jornada { background: none; padding: 0; font-size: 11px; }
.ficha-cab .fin, .ficha-cab .directo { margin-left: auto; padding: 1px 8px; font-size: 11px; }
@media (min-width: 860px) {
  main.principal:has(> .ficha-col) { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 14px; align-items: start; }
  main.principal:has(> .ficha-col) > .migas { grid-column: 1 / -1; }
  main.principal:has(> .ficha-col) > .ficha-col { grid-column: 1; grid-row: 2 / span 3; display: grid; gap: 10px; }
  main.principal:has(> .ficha-col) > .tabs { grid-column: 2; grid-row: 2; margin-top: 0; }
  main.principal:has(> .ficha-col) > .tabs-cont { grid-column: 2; grid-row: 3; }
  main.principal:has(> .ficha-col) > script, main.principal:has(> .ficha-col) > footer { grid-column: 1 / -1; }
}
.ficha-equipos { padding: 14px 10px 10px; gap: 6px; border-bottom: 1px solid var(--linea-suave); align-items: start; }
.ficha-eq { font-size: 13px; font-weight: 500; gap: 6px; }
.escudo.grande { width: 40px; height: 40px; }
.ficha-hora { padding-top: 8px; }
.ficha-marcador { font-size: 28px; gap: 6px; line-height: 1; }
.ficha-marcador b { font-size: 16px; }
.ficha-hora time { font-size: 24px; color: var(--cesped); }
.ficha-hora > span, .ficha-final { font-size: 10.5px; margin-top: 4px; }
.ficha-canales { margin: 0; padding: 8px 10px; border-top: 0; }
.ficha-canales h2 { font-size: 10.5px; font-weight: 500; margin-bottom: 5px; }
.ficha-canales ul { gap: 3px; }
.operador { font-size: 11px; }
.ficha-acciones { margin: 0; padding: 8px 10px; border-top: 1px solid var(--linea-suave); }
.migas .comp { display: inline-flex; vertical-align: middle; }
.ficha-final.vivo { color: var(--rojo); font-weight: 500; }
.ficha-hora.gol { animation: gol-flash 8s ease-out; border-radius: 8px; }
.ficha-hora.gol .ficha-marcador span { color: var(--rojo); }

/* Columna izquierda de la ficha: partido + ficha técnica + clasificación corta (solo escritorio).
   En móvil esas dos siguen siendo pestañas, como siempre. */
.col-extra { display: none; }
.col-mas { display: block; padding: 5px 10px; font-size: 11.5px; color: var(--cesped); text-decoration: none; border-top: 1px solid var(--linea-suave); }
.col-mas:hover { text-decoration: underline; }
.clasif-mini { min-width: 0; table-layout: fixed; }
.clasif-mini th:first-child, .clasif-mini td.pos { width: 24px; }
.clasif-mini td.esc { width: 20px; padding-left: 0; padding-right: 0; }
.clasif-mini th:nth-last-child(-n+3), .clasif-mini td:nth-last-child(-n+3) { width: 32px; }
.clasif-mini td.eqn { max-width: none; }
@media (min-width: 860px) {
  .col-extra { display: block; }
  .ficha-col.fija { position: sticky; top: 64px; }
  .tabs a[data-tab="clasificacion"], .tabs a[data-tab="ficha"],
  .tab-panel[data-tab="clasificacion"], .tab-panel[data-tab="ficha"] { display: none; }
}

.col-extra .tgrid { grid-template-columns: minmax(0, 1fr); }
.col-extra .tgrid .c.ancho { grid-column: auto; }
.clasif-mini { table-layout: auto; }
.clasif-mini td.eqn { width: 100%; max-width: 0; }
.clasif-mini td.esc { width: 18px; padding: 3px 2px 3px 6px; }
.clasif-mini td.esc .esc-mini { max-width: none; min-width: 15px; }

/* ===== Alineaciones: una columna limpia por equipo ===== */
.once2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.once2-eq + .once2-eq { border-left: 1px solid var(--linea); }
.once2-cab { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-bottom: 1px solid var(--linea); font-size: 12.5px; }
.once2-cab b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.once2-cab small { margin-left: auto; color: var(--gris); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.once2-lista { list-style: none; margin: 0; padding: 2px 0; }
.o-j { display: flex; align-items: center; gap: 8px; padding: 2px 10px; min-height: 22px; }
.o-j:hover { background: #f8fafc; }
.o-d { flex: none; width: 18px; text-align: right; font-size: 11px; color: var(--gris); font-variant-numeric: tabular-nums; }
.o-n { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-c { font-style: normal; font-size: 9px; font-weight: 600; color: #7a5a00; background: #ffe9a6; border-radius: 3px; padding: 0 3px; vertical-align: 1px; }
.o-s { flex: none; font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.o-s.sale { color: var(--rojo); }
.o-s.entra { color: #12925a; }
.o-r { flex: none; width: 26px; text-align: right; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.o-r.alta { color: #12925a; } .o-r.media { color: #2b6fd0; } .o-r.baja { color: #c77700; }
.once2-sub { padding: 3px 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); background: #f6f8fa; border-block: 1px solid var(--linea-suave); }
.once2-lista.sup .o-n { color: var(--gris); }
.once2-dt { display: flex; justify-content: space-between; gap: 10px; padding: 5px 10px; border-top: 1px solid var(--linea); font-size: 12px; }
.once2-dt span { color: var(--gris); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.once2-dt b { font-weight: 500; }
@media (max-width: 520px) {
  .once2 { grid-template-columns: minmax(0, 1fr); }
  .once2-eq + .once2-eq { border-left: 0; border-top: 1px solid var(--linea); }
}

/* Portada: en los partidos en juego el minuto ocupa el sitio de la hora */
.col-hora .dir.min { display: inline-block; margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.col-hora .dir.min::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--rojo); margin-right: 4px; vertical-align: 2px; }

/* ===== Fotos de jugadores (CDN de BeSoccer) con silueta de respaldo ===== */
.o-f, .pl-foto-v, .pl-foto { background: #e6eaf0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='15.5' r='7.5' fill='%23aeb8c6'/%3E%3Cpath d='M4.5 41c.8-10.5 7-16 15.5-16s14.700 5.500 15.500 16z' fill='%23aeb8c6'/%3E%3C/svg%3E") center / cover no-repeat; }
.o-f { flex: none; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; display: block; }
.o-f img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pl-foto { object-position: center top; }
.pl-foto-v { display: inline-block; }
.o-j { min-height: 26px; }

/* ===== Parrilla: la columna de hora, alineada. Hora (o minuto) siempre en el mismo borde; el estado detrás ===== */
.parrilla th.col-hora, .parrilla td.col-hora { text-align: left; padding-left: 18px; font-variant-numeric: tabular-nums; }
.col-hora .fin { display: inline-block; margin-left: 5px; min-width: 16px; }
.col-hora .dir.min { position: relative; min-width: 36px; }
.col-hora .dir.min::before { position: absolute; left: -10px; top: 50%; margin: -2.5px 0 0; vertical-align: 0; }
.col-hora .dir:not(.min) { display: inline-block; margin-left: 5px; }

/* ===== Ficha emergente del jugador ===== */
[data-jug] { cursor: pointer; }
[data-jug]:hover .o-n, [data-jug]:hover .pl-n { color: var(--cesped); }
[data-jug]:focus-visible { outline: 2px solid var(--cesped); outline-offset: -2px; }
.jug-ov { position: fixed; inset: 0; z-index: 210; background: rgba(11, 42, 31, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.jug-ov[hidden] { display: none; }
.jug-caja { position: relative; width: 100%; max-width: 380px; max-height: 90vh; overflow-y: auto; background: var(--papel); border-radius: 12px; box-shadow: 0 20px 50px rgba(8, 25, 18, .35); }
.jf-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 12px; cursor: pointer; }
.jf-x:hover { background: rgba(255, 255, 255, .26); }
.jf-cab { display: flex; align-items: center; gap: 12px; padding: 16px 44px 14px 16px; background: var(--cesped); color: #fff; border-radius: 12px 12px 0 0; }
.jf-foto { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 2px solid var(--cal-activo); background-color: #e6eaf0; }
.jf-foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.jf-tit { min-width: 0; flex: 1; }
.jf-tit h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.jf-tit p { margin: 3px 0 0; font-size: 12px; color: var(--cesped-txt); }
.jf-dorsal { flex: none; font-size: 30px; font-weight: 600; line-height: 1; color: var(--cal-activo); font-variant-numeric: tabular-nums; }
.jf-msg { margin: 0; padding: 22px 16px; text-align: center; color: var(--gris); font-size: 13px; }
.jf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jf-d { padding: 7px 16px; border-bottom: 1px solid var(--linea-suave); min-width: 0; }
.jf-d:nth-child(odd) { border-right: 1px solid var(--linea-suave); }
.jf-d span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
.jf-d b { display: block; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.jf-temp { padding: 10px 16px 14px; }
.jf-temp-t { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); margin-bottom: 6px; }
.jf-nums { display: flex; gap: 6px; }
.jf-nums div { flex: 1; text-align: center; background: #f6f8fa; border-radius: 8px; padding: 6px 2px; min-width: 0; }
.jf-nums b { display: block; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.jf-nums span { display: block; font-size: 9.5px; color: var(--gris); text-transform: uppercase; letter-spacing: .04em; }

/* ===== Logo "La tele": icono amarillo + rótulo en minúsculas ===== */
.marca-logo { flex: none; display: block; width: 28px; height: 28px; }
.marca-txt b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; text-transform: lowercase; }
.marca-txt b i { font-style: normal; font-weight: 400; opacity: .7; }

/* ===== Botones de herramientas con icono dibujado (exportar calendario, sincronizar) ===== */
.tool-ic svg { display: block; color: var(--cesped); }
.tool-ic:hover svg { color: var(--cesped-osc); }

/* ===== Diálogo "Exportar a tu calendario" ===== */
.exp-caja { max-width: 400px; }
.exp-cab { padding: 16px 44px 14px 16px; background: var(--cesped); color: #fff; border-radius: 12px 12px 0 0; }
.exp-cab h3 { margin: 0; font-size: 16px; font-weight: 600; }
.exp-cab p { margin: 3px 0 0; font-size: 12px; color: var(--cesped-txt); }
.exp-grupo { border: 0; margin: 0; padding: 12px 16px 0; min-width: 0; }
.exp-grupo legend { padding: 0; margin-bottom: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
.exp-op { display: flex; align-items: flex-start; gap: 9px; padding: 7px 10px; border: 1px solid var(--linea); border-radius: 8px; margin-bottom: 5px; cursor: pointer; }
.exp-op:has(input:checked) { border-color: var(--cesped); background: #eef6f1; }
.exp-op:has(input:disabled) { opacity: .6; cursor: default; }
.exp-op input { margin: 2px 0 0; accent-color: var(--cesped); flex: none; }
.exp-op span { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.exp-op b { font-size: 13px; font-weight: 500; }
.exp-op small { font-size: 11px; color: var(--gris); }
.exp-op select { font: inherit; font-size: 12.5px; padding: 4px 6px; border: 1px solid var(--linea); border-radius: 6px; background: var(--papel); color: var(--tinta); max-width: 100%; margin-top: 2px; }
.exp-seg { display: flex; border: 1px solid var(--linea); border-radius: 8px; overflow: hidden; }
.exp-seg label { flex: 1; text-align: center; cursor: pointer; }
.exp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.exp-seg span { display: block; padding: 6px 4px; font-size: 12.5px; font-weight: 500; color: var(--gris); }
.exp-seg label + label span { border-left: 1px solid var(--linea); }
.exp-seg input:checked + span { background: var(--cesped); color: #fff; }
.exp-seg input:focus-visible + span { outline: 2px solid var(--cesped); outline-offset: -2px; }
.exp-check { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; font-size: 12.5px; cursor: pointer; }
.exp-check input { accent-color: var(--cesped); margin: 0; }
.exp-acc { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 16px 0; }
.exp-acc .boton { border: 0; cursor: pointer; font-family: inherit; }
.exp-acc .boton.secundario { border: 1px solid var(--linea); }
.exp-nota { margin: 0; padding: 10px 16px 16px; font-size: 11px; color: var(--gris); overflow-wrap: anywhere; }

/* ===== Etiquetas de canal con logo de la marca ===== */
.canal.con-logo { background: #fff; color: var(--tinta); border: 1px solid var(--linea); padding: 1px 6px; gap: 4px; text-decoration: none; }
a.canal.con-logo:hover { border-color: var(--cesped); }
.canal-logo { display: block; height: 14px; width: auto; max-width: 78px; object-fit: contain; }
.canal-suf { font-size: 10.5px; font-weight: 600; color: var(--gris); }
.solo-lectores { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ficha-canales .canal-logo, .canal-fila .canal-logo { height: 17px; max-width: 96px; }
.canal.con-logo .canal-dial { background: #eef1f6; color: var(--gris); }
.canal-logo { height: 18px; max-width: 92px; }
.canal.con-logo { padding: 1px 5px; }
.ficha-canales .canal-logo, .canal-fila .canal-logo { height: 22px; max-width: 120px; }
/* El logo de DAZN es cuadrado: un poco más alto para que se lea, y su sufijo en tinta normal */
.canal-logo[src*="canales/dazn.png"] { height: 20px; }

/* Página de Canales: ahí sí hace falta el nombre junto al logo, porque varios canales comparten marca */
.canal-fila .canal.con-logo { border: 0; padding: 0; background: none; gap: 8px; min-width: 0; }
.canal-fila .canal-nombre.solo-lectores { position: static !important; width: auto; height: auto; overflow: hidden; clip: auto; clip-path: none; text-overflow: ellipsis; font-size: 12px; font-weight: 500; color: var(--tinta); }

/* Separador entre lo televisado y el resto del calendario del día */
.sep-sintv { display: flex; align-items: center; gap: 10px; margin: 6px 2px 0; font-size: 11px; color: var(--gris); }
.sep-sintv::before, .sep-sintv::after { content: ""; flex: 1; height: 1px; background: var(--linea); }
.liga-box.sin-tv .liga-cab .liga-tit, .liga-box.sin-tv .liga-cab .liga-tit span { color: var(--gris); font-weight: 500; }

/* ===== "Tus equipos": filas de parrilla en vez de tarjetas grandes ===== */
.fav-caja { background: var(--papel); border: 1px solid #f0d488; border-radius: 10px; overflow: hidden; max-width: 620px; margin: 0 auto; }
.fav-caja:empty { display: none; }
.fav-f { display: grid; grid-template-columns: 86px minmax(0, 1fr) 46px minmax(0, 1fr) minmax(0, 150px); align-items: center; gap: 8px; padding: 3px 10px; border-bottom: 1px solid var(--linea-suave); cursor: pointer; }
.fav-f:last-child { border-bottom: 0; }
.fav-f:hover { background: #fffdf4; }
.fav-d { font-size: 11px; color: var(--gris); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fav-e { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fav-e.l { justify-content: flex-end; text-align: right; }
.fav-e > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 500; }
.fav-e .esc-mini { width: 20px; height: 20px; }
.fav-h { text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fav-c { display: flex; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.fav-c .sin-canal { font-size: 11px; color: var(--gris); font-style: italic; white-space: nowrap; }
.prox-cab { max-width: 620px; margin-left: auto; margin-right: auto; }
@media (max-width: 560px) {
  .fav-f { grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); row-gap: 2px; padding: 5px 10px; }
  .fav-d { grid-column: 1 / -1; order: -1; }
  .fav-c { grid-column: 1 / -1; justify-content: flex-start; }
}

/* "Tus equipos": a todo el ancho y con más aire (antes quedaba encajonado en una caja estrecha) */
.fav-caja, .prox-cab { max-width: none; }
#miosVacio { padding: 12px; }
#miosProxCab.prox-cab { font-size: 16px; padding: 2px 2px 8px; }
.fav-f { padding: 7px 14px; gap: 12px; grid-template-columns: 104px minmax(0, 1fr) 62px minmax(0, 1fr) minmax(0, 200px); }
.fav-d { font-size: 12px; }
.fav-e > span { font-size: 14px; }
.fav-e .esc-mini { width: 22px; height: 22px; }
.fav-h { font-size: 15px; }
.fav-c .sin-canal { font-size: 12px; }
@media (max-width: 560px) {
  #miosVacio { padding: 8px; }
  .fav-f { padding: 8px 12px; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); }
}

/* ===== Tarjeta de móvil: marcador de app (un equipo debajo del otro; el nombre ya no se corta) ===== */
.mp-vs { display: flex; flex-direction: column; gap: 3px; align-items: stretch; }
.mp-team, .mp-team.r { display: flex; align-items: center; gap: 9px; justify-content: flex-start; text-align: left; flex: none; min-width: 0; }
.mp-team .nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.2; }
.mp-team .esc-mini { width: 22px; height: 22px; }
.mp-g { flex: none; margin-left: 8px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 18px; text-align: right; }
.mp-g.h { font-size: 15px; color: var(--cesped); }
.mp-team.gana .nm { font-weight: 600; }
.mp-team.pierde .nm, .mp-team.pierde .mp-g { color: var(--gris); }
.mp.dir { border-left-color: var(--rojo); box-shadow: var(--sombra-sm); }
.mp-chan:not(:empty) { margin-top: 6px; padding-top: 5px; }

/* El hueco de la barra de desplazamiento se reserva siempre: así el contenido no salta al aparecer.
   Respaldo para navegadores sin scrollbar-gutter: se fuerza la barra vertical. */
html { overflow-y: scroll; scrollbar-gutter: stable; }
@supports (scrollbar-gutter: stable) { html { overflow-y: auto; } }

/* ===== Móvil: la cabecera de cada competición en verde césped, para que se distinga de los partidos.
   El borde de la caja va del mismo color, así cada competición queda enmarcada. ===== */
@media (max-width: 640px) {
  .liga-box { border-color: var(--cesped); }
  .liga-cab { background: var(--cesped); border-bottom-color: var(--cesped); padding: 6px 10px; }
  .liga-cab .liga-tit, .liga-cab .liga-tit span { color: #fff; font-weight: 600; }
  .liga-n { color: var(--cesped-txt); }
  .liga-box.sin-tv .liga-cab .liga-tit, .liga-box.sin-tv .liga-cab .liga-tit span { color: #fff; }
  .liga-box.sin-tv { border-color: var(--cesped-linea); }
  .liga-box.sin-tv .liga-cab { background: var(--cesped-linea); border-bottom-color: var(--cesped-linea); }
  /* Favoritos: mismo trato, en el ámbar que ya los identifica */
  .liga-box.es-fav { border-color: #c9a227; }
  .liga-box.es-fav .liga-cab { background: #c9a227; border-bottom-color: #c9a227; }
  .liga-box.es-fav .liga-cab .liga-tit { color: #2b2100; }
  .liga-box.es-fav .liga-n { color: #453500; }
}

/* El nombre del equipo enlaza solo su texto, no toda la fila: al tocar el hueco de al lado
   se abre la ficha del partido (el clic sube a la tarjeta) en vez de la del equipo. */
.mp-team .nm { flex: 0 1 auto; }
.mp-g { margin-left: auto; }
.mp-team { cursor: pointer; }

/* ===== Ficha de partido en MÓVIL: cabecera tipo retransmisión + eventos en una sola columna ===== */
@media (max-width: 859px) {
  /* Cabecera verde a sangre, con los escudos grandes y el marcador en el centro */
  .ficha-col > .ficha { background: var(--cesped-osc); color: #fff; border: 0; border-radius: 0; padding: 10px 0 14px;
    box-shadow: 0 0 0 100vmax var(--cesped-osc); clip-path: inset(0 -100vmax); }
  .ficha-col .ficha-cab { justify-content: center; padding: 0 10px; background: none; border-bottom: 0; font-size: 11px; }
  .ficha-col .ficha-cab .comp { background: none; padding: 0; color: var(--cesped-txt); font-weight: 500; font-size: 11.5px; }
  .ficha-col .ficha-cab .jornada { background: none; color: var(--cesped-txt); padding: 0; }
  .ficha-col .ficha-cab .fin { margin: 0; background: var(--cesped-linea); color: #fff; padding: 1px 8px; }
  .ficha-col .ficha-cab .directo { margin: 0; background: var(--rojo); color: #fff; padding: 1px 8px; }
  .ficha-col .ficha-equipos { grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 10px 10px 2px; border-bottom: 0; align-items: start; }
  .ficha-col .ficha-eq { flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 500; color: #fff; text-align: center; line-height: 1.2; }
  .ficha-col .escudo.grande { width: 44px; height: 44px; }
  .ficha-col .ficha-hora { padding-top: 4px; }
  .ficha-col .ficha-marcador { font-size: 34px; gap: 10px; line-height: 1; }
  .ficha-col .ficha-marcador span { color: #fff; }
  .ficha-col .ficha-marcador b { font-size: 20px; color: var(--cesped-txt); }
  .ficha-col .ficha-hora time { font-size: 30px; color: var(--cal-activo); }
  .ficha-col .ficha-hora > span, .ficha-col .ficha-final, .ficha-col .ficha-hora small { color: var(--cesped-txt); font-size: 11px; margin-top: 4px; }
  .ficha-col .ficha-canales { margin: 8px 10px 0; padding: 8px 0 0; border-top: 1px solid var(--cesped-linea); display: flex;
    align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
  .ficha-col .ficha-canales h2 { margin: 0; font-size: 10.5px; font-weight: 500; color: var(--cesped-txt); }
  .ficha-col .ficha-canales ul { flex-direction: row; flex-wrap: wrap; gap: 5px; justify-content: center; }
  .ficha-col .ficha-canales li { gap: 5px; }
  .ficha-col .operador, .ficha-col .externo, .ficha-col .sin-canal, .ficha-col .notas { color: var(--cesped-txt); font-size: 11px; }
  .ficha-col .ficha-acciones { justify-content: center; margin: 10px 10px 0; padding: 0; border-top: 0; }
  .ficha-col .ficha-acciones .boton, .ficha-col .ficha-acciones .boton.secundario { background: transparent; border: 1px solid var(--cesped-linea); color: #fff; }
  .ficha-col .tabs { margin-top: 12px; }
}

/* ===== Jornada: agrupada por día, sin arrastrar de lado y con el detalle a un toque =====
   Antes era una tabla de 620 px de ancho mínimo con columnas de estadio y tarjetas casi siempre vacías. */
.jorn-lista { padding: 0; overflow: visible; }
.jorn-dia { padding: 7px 10px 3px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); background: #f8fafc; border-bottom: 1px solid var(--linea-suave); }
.jorn-f { position: relative; border-bottom: 1px solid var(--linea-suave); }
.jorn-f:last-child { border-bottom: 0; }
.jorn-f.actual { background: #eef6f1; }
.jorn-lista .jorn { display: grid; grid-template-columns: 38px minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center;
  column-gap: 8px; min-width: 0; margin: 0; padding: 5px 26px 5px 10px; border: 0; border-radius: 0; text-decoration: none; color: inherit; }
.jorn-lista .jorn:hover { background: rgba(16, 58, 43, .04); }
.jorn-h { font-size: 11.5px; color: var(--gris); font-variant-numeric: tabular-nums; }
/* El nombre baja a una segunda línea en vez de cortarse */
.jorn-lista .jr-l, .jorn-lista .jr-v { font-size: 12.5px; line-height: 1.2; }
.jorn-lista .jr-l .nom, .jorn-lista .jr-v .nom { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.jorn-lista .jr-r { font-size: 13px; }
.jorn-mas { position: absolute; top: 3px; right: 2px; width: 22px; height: 22px; border: 0; background: none;
  color: var(--gris); font-size: 11px; line-height: 1; cursor: pointer; border-radius: 5px; }
.jorn-mas:hover { background: var(--linea-suave); color: var(--tinta); }
.jorn-mas[aria-expanded="true"] { transform: rotate(180deg); }
.jorn-det { display: none; gap: 12px; flex-wrap: wrap; padding: 0 10px 7px; font-size: 11.5px; color: var(--gris); }
.jorn-det b { color: var(--tinta); font-weight: 500; }
.jorn-f.ab .jorn-det { display: flex; }

/* Desplegable de competiciones: buscador y número de partidos por competición */
.cd-buscar { width: 100%; font: inherit; font-size: 12.5px; padding: 6px 9px; margin-bottom: 5px; border: 1px solid var(--linea);
  border-radius: 7px; background: var(--fondo); color: var(--tinta); }
.cd-buscar:focus { outline: none; border-color: var(--cesped); background: var(--papel); }
.cd-n { margin-left: auto; font-size: 10.5px; color: var(--gris); font-variant-numeric: tabular-nums; padding-left: 8px; }
.cd-opt.sel .cd-n { color: var(--cesped); }
.cd-vacio { margin: 0; padding: 10px 9px; font-size: 12px; color: var(--gris); }

/* Una sola maqueta por visita -----------------------------------------------
   Antes cada partido se escribía dos veces (fila de tabla y tarjeta) y el CSS
   escondía la que no tocaba. Ahora el servidor manda solo una, así que la que
   llega tiene que verse siempre, sea cual sea el ancho de la ventana. */
.lista.es-movil .mprog { display: block; }
.lista.es-esc .solo-esc { display: block; }
/* Un móvil en horizontal pasa de 640px: las tarjetas no se estiran sin fin. */
.lista.es-movil { max-width: 680px; margin-left: auto; margin-right: auto; }

/* Selector de grupo (Primera/Segunda/Tercera Federación) y clasificación por grupos
   — se hizo sobre el servidor el 24-25 de septiembre; se conserva tal cual. */
.grupos-sel { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 16px 0 2px; }
.grupos-lbl { font-size: 12px; font-weight: 700; color: var(--gris); margin-right: 2px; }
.grupos-sel button { min-width: 36px; height: 34px; padding: 0 13px; border: 1px solid var(--linea); background: var(--papel); border-radius: 9px; font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; font-size: 13px; color: var(--tinta); cursor: pointer; box-shadow: var(--sombra-sm); }
.grupos-sel button:hover { border-color: var(--cc, var(--azul)); }
.grupos-sel button.on { background: var(--cc, var(--azul)); border-color: var(--cc, var(--azul)); color: #fff; }
.clasif-gtit { font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; font-size: 14px; color: var(--tinta); margin: 4px 2px 8px; }
.clasif-grupo + .clasif-grupo { margin-top: 18px; }


/* En móvil, dos canales con logo y la etiqueta "gratis" no caben en una línea y se
   cortaban por la mitad (el strip está pegado a la derecha y recortaba el primero).
   Ahora bajan a una segunda línea: solo crece la tarjeta que de verdad lo necesita. */
@media (max-width: 640px) {
  .mp-chan { flex-wrap: wrap; row-gap: 3px; overflow: visible; }
}

/* Favoritos cuadrados con el resto --------------------------------------------
   La caja de favoritos llevaba una columna más (la competición) y sus filas no
   coincidían con las de las demás cajas. Ahora usa las mismas tres columnas y la
   competición pasa a una línea propia que separa los partidos de cada una. */
.fav-sub > td, .mprog .fav-sub {
  padding: 6px 10px 5px;
  background: #fffcf0;
  border-bottom: 1px solid #f3e6bd;
  box-shadow: inset 3px 0 0 var(--cc, #e8d7a4);
}
.parrilla tbody tr.fav-sub + tr.partido td { border-top: 0; }
.fav-sub .comp { font-size: 11.5px; color: #7a5a00; gap: 5px; }
.fav-sub .comp span { font-weight: 600; }
.fav-sub .comp .comp-logo { width: 15px; height: 15px; }
.fav-sub .comp .pt { width: 7px; height: 7px; }
/* La primera línea va pegada a la cabecera "★ Favoritos": sobra el borde de arriba. */
.liga-box.es-fav .liga-cab + .fav-sub > td, .mprog .liga-box.es-fav .liga-cab + .fav-sub { border-top: 0; }

/* Grupo de la competición en la cabecera de la caja (Primera/Segunda/Tercera Federación). */
.liga-g {
  flex: none; font-size: 10.5px; font-weight: 700; line-height: 1;
  padding: 3px 7px; border-radius: 20px;
  color: var(--cc, var(--tinta)); background: color-mix(in srgb, var(--cc, #8a94a3) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--cc, #8a94a3) 30%, #fff);
}
@supports not (color: color-mix(in srgb, red 10%, #fff)) {
  .liga-g { color: var(--gris); background: #f0f3f7; border-color: var(--linea); }
}
.liga-g-no { color: var(--gris); background: #f2f4f7; border-color: var(--linea); font-weight: 600; font-style: italic; }

/* Ventana de "Ordenar competiciones" -----------------------------------------
   Reaprovecha la caja de sincronizar; solo cambia la lista. */
.ord-box { max-width: 460px; }
.ord-lista { list-style: none; margin: 10px 0 0; padding: 0; max-height: 52vh; overflow: auto; border: 1px solid var(--linea); border-radius: 10px; }
.ord-lista li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--linea-suave); }
.ord-lista li:last-child { border-bottom: 0; }
.ord-lista li.ord-no-hoy { opacity: .62; }
.ord-n { flex: none; width: 22px; text-align: right; font-size: 11.5px; color: var(--gris); font-variant-numeric: tabular-nums; }
.ord-nom { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--tinta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-nom small { font-weight: 500; color: var(--gris2); }
.ord-bt { flex: none; display: flex; gap: 4px; }
.ord-bt button { width: 30px; height: 30px; border: 1px solid var(--linea); border-radius: 8px; background: var(--papel); color: var(--tinta); font-size: 11px; line-height: 1; cursor: pointer; }
.ord-bt button:hover:not(:disabled) { border-color: var(--cesped); color: var(--cesped); }
.ord-bt button:disabled { opacity: .3; cursor: default; }
.ord-pie { margin-top: 10px; text-align: center; }

/* Arrastrar para ordenar ------------------------------------------------------
   Solo se agarra por el asa: con touch-action:none ahí, el dedo arrastra la fila
   y en el resto de la lista sigue desplazando normalmente. */
.ord-ag { flex: none; width: 24px; text-align: center; font-size: 15px; line-height: 1; color: var(--gris2);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.ord-ag:active { cursor: grabbing; }
.ord-lista li.ord-arrastrando { position: relative; z-index: 3; background: var(--papel);
  box-shadow: 0 6px 18px rgba(15,30,60,.18); border-radius: 8px; }
.ord-lista li.ord-arrastrando .ord-ag { color: var(--cesped); cursor: grabbing; }
.ord-lista.ord-moviendo { user-select: none; -webkit-user-select: none; }
.ord-lista.ord-moviendo li:not(.ord-arrastrando) { transition: transform .12s ease; }
/* En el móvil el nombre se queda en 133 px entre el asa y las flechas, y se cortaba
   ("Champions Leagu…"). Que use dos líneas antes que perder la mitad del nombre. */
@media (max-width: 560px) {
  .ord-nom { white-space: normal; overflow: visible; line-height: 1.25; }
  .ord-lista li { padding-top: 9px; padding-bottom: 9px; }
}

/* ===== Eventos de la ficha ==================================================
   Como los pinta BeSoccer: agrupados por tipo (goles, VAR, tarjetas, cambios) y
   cada jugada en la columna de su equipo, con el minuto en medio. Antes iban
   todos seguidos en una sola lista y en un partido con nueve goles y diez
   cambios no se distinguía nada. Una sola maqueta para móvil y escritorio. */
.eventos { padding: 2px 0 4px; }

/* Cada bloque se pliega con <details>: sin JavaScript y funciona sin conexión */
.ev-gr { border-top: 1px solid var(--linea); }
.ev-gr:first-child { border-top: 0; }
.ev-gr > summary { display: flex; align-items: center; gap: 8px; padding: 9px 14px; cursor: pointer;
  font: 800 11.5px/1 'Archivo', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .06em;
  color: var(--tinta); list-style: none; -webkit-tap-highlight-color: transparent; }
.ev-gr > summary::-webkit-details-marker { display: none; }
.ev-gr > summary::marker { content: ""; }
.ev-gr > summary:hover { background: var(--linea-suave); }
.ev-gr > summary:focus-visible { outline: 2px solid var(--cesped); outline-offset: -2px; }
.ev-gr-n { font-weight: 600; font-size: 10.5px; letter-spacing: 0; color: var(--gris); background: var(--linea-suave);
  border-radius: 99px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.ev-gr-f { margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--gris2);
  border-bottom: 2px solid var(--gris2); transform: rotate(45deg); transition: transform .15s ease; }
.ev-gr[open] > summary .ev-gr-f { transform: rotate(-135deg); }
.ev-gr-c { padding: 0 8px 8px; }

/* Una jugada: equipo local · minuto · equipo visitante */
.ev { display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); align-items: center; gap: 2px; padding: 6px 0; }
.ev + .ev { border-top: 1px solid var(--linea-suave); }
.ev-c { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ev-loc { justify-content: flex-end; text-align: right; }
.ev-vis { justify-content: flex-start; text-align: left; }
.ev-m { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ev-min { font-size: 11.5px; font-weight: 600; color: var(--gris); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-res { font-size: 10.5px; font-weight: 700; color: var(--tinta); background: var(--linea-suave);
  border-radius: 5px; padding: 0 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-txt { flex: 1; min-width: 0; line-height: 1.25; }
.ev-txt b { display: block; font-weight: 600; font-size: 12.5px; color: var(--tinta); overflow-wrap: break-word; }
.ev-txt b[data-jug] { cursor: pointer; }
.ev-txt b[data-jug]:hover { color: var(--cesped); }
.ev-txt em { display: flex; align-items: center; gap: 4px; font-style: normal; font-size: 11px; color: var(--gris); overflow-wrap: break-word; }
.ev-loc .ev-txt em { justify-content: flex-end; }
.ev-sec-i { flex: none; color: var(--gris2); }
.ev-foto { flex: none; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--linea-suave); }
.ev-foto.esc { border-radius: 0; object-fit: contain; background: none; }
.ev-ico { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: #f1f3f7; }
.ev-ico svg { display: block; }
.ev-gol .ev-ico, .ev-penalti .ev-ico { background: #dff5e8; }
.ev-propia .ev-ico, .ev-penalti-fallo .ev-ico, .ev-roja .ev-ico, .ev-doble .ev-ico, .ev-lesion .ev-ico { background: #ffe3e8; }
.ev-amarilla .ev-ico, .ev-poste .ev-ico, .ev-penalti-pitado .ev-ico { background: #fff4cc; }
.ev-cambio .ev-ico, .ev-var .ev-ico, .ev-parada .ev-ico { background: #e6eeff; }
.ev-anulado .ev-txt b { text-decoration: line-through; color: var(--gris); }
.ev.nuevo { animation: gol-flash 8s ease-out; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .ev.nuevo { animation: none; } }

@media (min-width: 560px) {
  .ev { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 8px; padding: 7px 4px; }
  .ev-c { gap: 8px; }
  .ev-txt b { font-size: 13px; }
  .ev-txt em { font-size: 11.5px; }
  .ev-foto, .ev-ico { width: 24px; height: 24px; }
}
@media (min-width: 861px) {
  .ev { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 12px; }
  .ev-gr-c { padding: 0 16px 10px; }
  .ev-txt b { font-size: 13.5px; }
  .ev-foto, .ev-ico { width: 26px; height: 26px; }
}

/* Sello «Web creada por Postvale Digital» en el pie, el mismo que lleva marone.es. Allí el pie
   es oscuro; aquí el tema es claro, así que el nombre va en tinta y la raya en el gris de las
   líneas. La imagen ya trae su recuadro redondeado, no hace falta ponerle borde. */
.pie-fila { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sello { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.sello img { display: block; width: 40px; height: 40px; border-radius: 10px; }
.sello small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris2); }
.sello b { display: block; font-size: 14px; font-weight: 600; color: var(--tinta); }
.sello:hover b { color: var(--azul); }
.pie-vr { width: 1px; align-self: stretch; min-height: 38px; background: var(--linea); flex: none; }
.pie-dat { min-width: 0; }
.pie-dat p:first-child { margin-top: 0; }
@media (max-width: 560px) {
  .pie-vr { display: none; }
  .sello { width: 100%; padding-bottom: 12px; border-bottom: 1px solid var(--linea); }
}

/* ===== Portada: una sola tabla ordenable (maqueta M05) ==========================
   Sustituye a las cajas por competición que montaba app.js. El servidor manda la tabla
   y el navegador solo reordena y esconde filas: por hora, por televisión, por
   competición (respetando el orden del botón ⇅) o por canal. */
.parrilla col.w-tv { width: 42px; }
.parrilla th.col-tv, .parrilla td.col-tv { text-align: center; }
.tvpt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--azul); }
.tvpt.no { background: var(--linea); }
.col-hora .sin-hora { font-size: 10.5px; font-weight: 600; color: var(--gris2); letter-spacing: .02em; }

/* Cabeceras que ordenan al pincharlas */
.parrilla th.th-orden { cursor: pointer; user-select: none; }
.parrilla th.th-orden:hover { color: var(--tinta); background: #f2f5f9; }
.parrilla th.th-orden .fl { font-style: normal; opacity: 0; margin-left: 4px; font-size: 9px; }
.parrilla th.th-orden .fl::after { content: "\25B2"; }
.parrilla th.th-orden.on { color: var(--azul); }
.parrilla th.th-orden.on .fl { opacity: 1; }
.parrilla th.th-orden.on.desc .fl::after { content: "\25BC"; }
.parrilla th.th-orden:focus-visible { outline: 2px solid var(--azul); outline-offset: -2px; }

/* Barra de orden, encima de la tabla */
.orden-barra { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 8px; padding: 0 2px; }
.ob-tit { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--gris2); }
.ob-seg { display: inline-grid; grid-template-columns: repeat(3, 96px); gap: 2px; padding: 3px; background: var(--linea-suave); border-radius: 999px; }
.ob-seg button { height: 28px; border: 0; border-radius: 999px; background: none; font: 600 12.5px "Instrument Sans", system-ui, sans-serif; color: var(--gris); cursor: pointer; }
.ob-seg button:hover { color: var(--tinta); }
.ob-seg button[aria-pressed="true"] { background: var(--papel); color: var(--tinta); box-shadow: var(--sombra-sm); }
.ob-sw { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--gris); cursor: pointer; }
.ob-sw input { appearance: none; -webkit-appearance: none; width: 34px; height: 19px; border-radius: 999px; background: var(--linea); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.ob-sw input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.ob-sw input:checked { background: var(--azul); }
.ob-sw input:checked::after { transform: translateX(15px); }
.ob-n { margin-left: auto; font-size: 12px; color: var(--gris2); font-variant-numeric: tabular-nums; }

/* Separadores dentro de la tabla (favoritos / resto) */
.parrilla tr.sep-fila td { background: #eef2f8; padding: 5px 12px; border-bottom: 1px solid var(--linea); }
.parrilla tr.sep-fila span { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #475569; }

@media (max-width: 640px) {
  .parrilla tr.partido td.col-tv, .parrilla th.col-tv { display: none; }
  .parrilla tr.sep-fila { display: block; margin: 12px 0 6px; border-radius: 8px; overflow: hidden; }
  .parrilla tr.sep-fila td { display: block; border-bottom: 0; }
  .orden-barra { gap: 10px 12px; }
  .ob-seg { display: grid; grid-template-columns: repeat(3, 1fr); flex: 1 1 100%; }
  .ob-n { margin-left: 0; }
}

/* ===== Ficha de partido · maqueta F2: cabecera ancha + dos columnas =====
   La lateral es de ancho fijo (320 px) y las columnas de las listas también: así el texto
   nunca empuja nada de sitio, solo cambia el contenido. */
.f2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; margin-top: 12px; }
.f2-ancha, .f2-lat { display: grid; gap: 12px; align-content: start; min-width: 0; }
.f2-lat { position: sticky; top: 64px; }

.fc-caja { background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; box-shadow: var(--sombra-sm); overflow: hidden; }
.fc-caja h2 { margin: 0; padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--tinta); background: #f6f8fa; border-bottom: 1px solid var(--linea); display: flex; align-items: center; gap: 6px; }
.fc-caja h2 .k { font-size: 12px; }
.fc-cuerpo { padding: 10px; min-width: 0; }
.fc-vacio { margin: 0; color: var(--gris2); font-size: 12px; }
.fc-espera { margin: 0; color: var(--gris); font-size: 12.5px; line-height: 1.5; }

/* ---- cabecera del partido ---- */
.ficha.fc-hero { padding: 0; margin: 0; }
.fc-hero .fc-cab .fc-jor { color: var(--gris); font-size: 11px; }
.fc-eq { display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr); align-items: start; gap: 8px; padding: 14px 10px 12px; max-width: 760px; margin-inline: auto; }
.fc-l, .fc-v { display: grid; justify-items: center; gap: 5px; text-align: center; min-width: 0; text-decoration: none; color: inherit; }
.fc-l img, .fc-v img, .fc-ini { width: 48px; height: 48px; object-fit: contain; }
.fc-ini { display: grid; place-items: center; border-radius: 50%; background: var(--linea-suave); font-weight: 700; color: var(--gris); font-size: 15px; }
.fc-eq b { font-size: 14px; font-weight: 600; line-height: 1.2; }
.fc-l:hover b, .fc-v:hover b { color: var(--cesped); }
.fc-pos { font-size: 11px; color: var(--gris); font-variant-numeric: tabular-nums; }
.fc-forma { display: inline-flex; gap: 3px; }
.fc-forma i { width: 17px; height: 17px; border-radius: 4px; display: grid; place-items: center; font-style: normal; font-size: 9.5px; font-weight: 700; color: #fff; }
.fc-g { background: #12925a; } .fc-e { background: #98a1af; } .fc-p { background: var(--rojo); }
.fc-nf { font-size: 10.5px; color: var(--gris2); }
.fc-c { display: grid; justify-items: center; align-content: start; gap: 2px; }
.fc-hero .fc-hora { padding: 0; }
.fc-hero .fc-hora time { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--cesped); }
.fc-hero .ficha-marcador { font-size: 38px; gap: 8px; }
.fc-hero .ficha-marcador b { font-size: 20px; }
.fc-hero .fc-sub, .fc-hero .ficha-final { display: block; font-size: 11px; color: var(--gris); margin-top: 4px; }
.fc-hc { display: block; font-size: 10px; color: var(--gris2); }

/* ---- dónde verlo ---- */
.fc-canales { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.fc-canales li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gris); }
.fc-canales .op { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-canales .ext { margin-left: auto; flex: none; color: var(--cesped); text-decoration: none; font-size: 13px; }
.fc-notas { margin: 8px 0 0; font-size: 11.5px; color: var(--gris); }
.fc-acciones { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--linea-suave); }

/* ---- estadísticas ---- */
.fc-stats { display: grid; gap: 8px; }
.fc-st { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 8px; font-size: 12.5px; }
.fc-st .a { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-st .b { font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-st .n { text-align: center; color: var(--gris); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-bar { grid-column: 1 / -1; height: 5px; border-radius: 999px; background: var(--linea); overflow: hidden; display: flex; }
.fc-bar i { display: block; height: 100%; background: var(--cesped); }

/* ---- alineaciones sobre el campo ---- */
.fc-once .fc-cuerpo { padding: 0; }
.fc-campo { padding: 10px 10px 4px; }
.fc-campo-cab { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--gris); margin-bottom: 7px; }
.fc-pasto { border-radius: 10px; padding: 10px 4px; background: repeating-linear-gradient(180deg, #17613f 0 32px, #14573a 32px 64px); display: grid; gap: 8px; }
.fc-medio { height: 1px; background: rgba(255, 255, 255, .3); }
.fc-mitad { display: grid; gap: 6px; }
.fc-linea { display: flex; justify-content: space-around; gap: 2px; }
.fc-jug { display: grid; justify-items: center; gap: 2px; width: 76px; text-align: center; }
.fc-jug i { width: 21px; height: 21px; border-radius: 50%; background: #fff; color: #14532d; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fc-jug b { font-size: 9.5px; font-weight: 500; color: #fff; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 76px; }
.fc-once .once2 { border-top: 1px solid var(--linea); }

/* ---- cara a cara ---- */
.fc-h2h-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; font-size: 11px; color: var(--gris); padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--linea-suave); }
.fc-h2h-res b { display: block; font-size: 17px; font-weight: 700; color: var(--tinta); font-variant-numeric: tabular-nums; }
.fc-h2h { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.fc-h2h a { display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--linea-suave); text-decoration: none; color: inherit; }
.fc-h2h li:last-child a { border-bottom: 0; }
.fc-h2h a:hover { background: #f8fafc; }
.fc-h2h .f { color: var(--gris2); font-size: 11px; font-variant-numeric: tabular-nums; }
.fc-h2h .e { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-h2h .e:nth-of-type(1) { text-align: right; }
.fc-h2h .m { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- clasificación corta y jornada, en la lateral ---- */
.fc-clasif { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.fc-clasif th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); font-weight: 500; padding: 4px 6px; border-bottom: 1px solid var(--linea); }
.fc-clasif td { padding: 3px 6px; border-bottom: 1px solid var(--linea-suave); font-variant-numeric: tabular-nums; }
.fc-clasif th:first-child, .fc-clasif td:first-child { width: 26px; color: var(--gris); }
.fc-clasif th:nth-child(3), .fc-clasif td:nth-child(3), .fc-clasif th:last-child, .fc-clasif td:last-child { width: 34px; text-align: right; }
.fc-clasif td.eqn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-clasif td.eqn a { color: inherit; text-decoration: none; }
.fc-clasif tr.mio { background: #eef6f1; }
.fc-mas { display: block; padding: 6px 0 0; font-size: 11.5px; color: var(--cesped); text-decoration: none; }
.fc-mas:hover { text-decoration: underline; }

.fc-jorn { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.fc-jorn li.d { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); padding: 6px 0 3px; }
.fc-jorn li:first-child.d { padding-top: 0; }
.fc-jorn a { display: grid; grid-template-columns: 42px minmax(0, 1fr) 38px minmax(0, 1fr); align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px solid var(--linea-suave); text-decoration: none; color: inherit; }
.fc-jorn a:hover { background: #f8fafc; }
.fc-jorn .h { color: var(--gris); font-size: 11px; font-variant-numeric: tabular-nums; }
.fc-jorn .e { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-jorn .e:nth-of-type(1) { text-align: right; }
.fc-jorn .m { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.fc-tecnica { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 10px; margin: 0; font-size: 12px; }
.fc-tecnica dt { color: var(--gris); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; align-self: center; }
.fc-tecnica dd { margin: 0; }

/* 860 px es el corte de móvil de todo el sitio (competición, migas, barras). La ficha
   usaba 900 y entre 861 y 900 se veían dos criterios distintos a la vez. */
@media (max-width: 860px) {
  .f2 { grid-template-columns: minmax(0, 1fr); }
  .f2-lat { position: static; }
  .fc-eq { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); gap: 4px; }
  .fc-hero .ficha-marcador { font-size: 30px; }
  .fc-hero .fc-hora time { font-size: 25px; }
  .fc-l img, .fc-v img, .fc-ini { width: 40px; height: 40px; }
  .fc-eq b { font-size: 13px; }
  .fc-jug { width: 54px; }
  .fc-jug b { max-width: 54px; font-size: 9px; }
  .fc-once .once2 { grid-template-columns: minmax(0, 1fr); }
  .fc-once .once2-eq + .once2-eq { border-left: 0; border-top: 1px solid var(--linea); }
}
.fc-clasif tr.hueco td { text-align: center; color: var(--gris2); letter-spacing: .3em; padding: 2px 6px; font-size: 10px; }


/* ===== Página de competición · C02 en escritorio, V01 en móvil, filas Q2 =====
   Columnas de ancho fijo en todo lo que no sea el nombre del equipo: así la lista cuadra en
   vertical y nada se mueve de sitio según lo que ponga. Cuando un nombre no entra, app.js le
   baja la letra a esa fila; nunca se corta y la fila nunca cambia de alto. */
.cp { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; margin-top: 12px; }
.cp-col, .cp-lat { display: grid; gap: 12px; align-content: start; min-width: 0; }
.cp-lat { position: sticky; top: 64px; }

.cp-caja { background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; box-shadow: var(--sombra-sm); overflow: hidden; }
.cp-caja > h2 { margin: 0; padding: 6px 11px; font-size: 12.5px; font-weight: 600; color: var(--tinta); background: #f6f8fa; border-bottom: 1px solid var(--linea); display: flex; align-items: center; gap: 7px; }
.cp-caja > h2 .k { font-size: 12px; }
.cp-caja > h2 small { margin-left: auto; color: var(--gris); font-weight: 500; font-size: 11px; }
.cp-vacio { margin: 0; padding: 11px; color: var(--gris2); font-size: 12.5px; }
.cp-nota { margin: 0; padding: 7px 11px; border-top: 1px solid var(--linea-suave); color: var(--gris); font-size: 11px; line-height: 1.45; }
.cp-nf { color: var(--gris2); font-size: 11px; }

/* ---- navegador de jornada ---- */
.cp-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 11px; background: #f6f8fa; border-bottom: 1px solid var(--linea); }
.cp-nav a, .cp-nav .off { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid var(--linea); border-radius: 8px; background: var(--papel); color: var(--cesped); text-decoration: none; font-size: 15px; }
.cp-nav a:hover { border-color: var(--cesped); }
.cp-nav .off { color: var(--gris2); opacity: .4; }
.cp-nav-t { text-align: center; line-height: 1.25; min-width: 0; }
.cp-nav-t b { display: block; font-size: 13.5px; }
.cp-nav-t b small { color: var(--gris); font-weight: 400; font-size: 11px; }
.cp-nav-t > small { color: var(--gris); font-size: 11px; }
.cp-hoy { display: block; padding: 5px 11px; font-size: 11.5px; color: var(--cesped); text-decoration: none; background: #f6f8fa; border-bottom: 1px solid var(--linea); }
.cp-hoy:hover { text-decoration: underline; }

/* ---- lista de partidos (Q2) ---- */
.cp-lista { background: var(--papel); }
.cp-dia { padding: 4px 11px; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); background: #f4f6f9; border-block: 1px solid var(--linea-suave); }
.cp-fila { display: grid; grid-template-columns: minmax(0, 1fr) 18px clamp(6px, 1.5625vw, 10px) 18px minmax(0, 1fr) clamp(44px, 7.1875vw, 46px) clamp(26px, 4.375vw, 28px); align-items: center; gap: clamp(3px, 0.9375vw, 6px); height: 38px; padding: 0 clamp(6px, 1.5625vw, 10px); border-bottom: 1px solid var(--linea-suave); text-decoration: none; color: inherit; }
.cp-fila:last-child { border-bottom: 0; }
.cp-fila:hover { background: #f8fafc; }
.cp-fila.actual { background: #eef6f1; }
.cp-fila .esc-mini { width: 18px; height: 18px; }
.cp-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.cp-nom.l { text-align: right; }
.cp-sep { color: var(--gris2); font-size: 11px; text-align: center; }
.cp-mk { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-mk b { font-weight: 700; font-size: 13px; }
.cp-mk i { font-style: normal; color: var(--gris2); font-weight: 400; margin: 0 1px; }
.cp-mk .hh { font-weight: 600; font-size: 12.5px; color: var(--cesped); }
/* Partido en juego: app.js le pone .dir a la fila y repinta el marcador. Solo cambia el color
   y aparece una raya roja por dentro del borde: ningún ancho se mueve. */
.cp-fila.dir { box-shadow: inset 3px 0 0 var(--rojo); }
.cp-fila.dir .cp-mk b { color: var(--rojo); }
.cp-fila.gol .cp-mk { animation: gol-flash 8s ease-out; }
@media (prefers-reduced-motion: reduce) { .cp-fila.gol .cp-mk { animation: none; } }
.cp-tv { display: flex; align-items: center; justify-content: center; height: 18px; overflow: hidden; }
.cp-logo { display: block; width: auto; max-height: 14px; max-width: 28px; object-fit: contain; }
.cp-sig { display: grid; place-items: center; width: 26px; height: 16px; border-radius: 4px; background: var(--kc, #eef1f6); color: var(--kt, #6a7482); font-size: 8.5px; font-weight: 700; }
.cp-mas { font-style: normal; font-size: 8.5px; color: var(--gris); margin-left: 1px; }

/* ---- racha ---- */
.cp-racha { display: inline-flex; gap: 2px; flex-wrap: nowrap; white-space: nowrap; }
.cp-racha i { width: 15px; height: 15px; border-radius: 3px; display: grid; place-items: center; font-style: normal; font-size: 9px; font-weight: 700; color: #fff; }
.cp-g { background: #12925a; } .cp-e { background: #98a1af; } .cp-p { background: var(--rojo); }

/* ---- clasificación ---- */
.cp-clasif { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cp-clasif th { font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); font-weight: 500; padding: 5px 5px; border-bottom: 1px solid var(--linea); text-align: center; background: #fafbfc; }
.cp-clasif th[colspan] { text-align: left; }
.cp-clasif td { padding: 3px 5px; text-align: center; border-bottom: 1px solid var(--linea-suave); font-variant-numeric: tabular-nums; }
.cp-clasif tr:last-child td { border-bottom: 0; }
.cp-clasif tr:hover { background: #f8fafc; }
.cp-clasif td.pos { width: 24px; color: var(--gris); }
.cp-clasif td.esc { width: 24px; }
.cp-clasif td.esc .esc-mini { width: 17px; height: 17px; }
.cp-clasif td.eqn { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.cp-clasif td.eqn a { color: inherit; text-decoration: none; }
.cp-clasif td.dg { color: var(--gris); width: 34px; }
.cp-clasif td.pts { font-weight: 700; width: 30px; }
.cp-clasif .ra { width: 92px; }
.cp-clasif .pr { width: 60px; }
.cp-clasif td.pr a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.cp-clasif td.pr i { font-style: normal; font-size: 9px; font-weight: 700; color: var(--gris); border: 1px solid var(--linea); border-radius: 3px; padding: 0 3px; }
.cp-clasif td.pr .esc-mini { width: 16px; height: 16px; }

/* ---- próximos por televisión ---- */
.cp-tvf { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 11px; border-bottom: 1px solid var(--linea-suave); text-decoration: none; color: inherit; min-height: 32px; }
.cp-tvf:last-child { border-bottom: 0; }
.cp-tvf:hover { background: #f8fafc; }
.cp-tvf .hh { color: var(--cesped); font-weight: 600; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cp-tvf .pp { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-tvf .cc { display: flex; gap: 3px; align-items: center; }

/* ---- equipos ---- */
.cp-eqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 5px; padding: 10px; }
.cp-eqs a { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--linea); border-radius: 8px; text-decoration: none; color: inherit; font-size: 12.5px; min-width: 0; }
.cp-eqs a:hover { border-color: var(--cesped); }
.cp-eqs a .esc-mini { width: 18px; height: 18px; flex: none; }
.cp-eqs a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- selector de grupo, ahora con enlaces ---- */
.grupos-sel a { min-width: 36px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid var(--linea); background: var(--papel); border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--tinta); text-decoration: none; box-shadow: var(--sombra-sm); }
.grupos-sel a:hover { border-color: var(--cc, var(--cesped)); }
.grupos-sel a.on { background: var(--cc, var(--cesped)); border-color: var(--cc, var(--cesped)); color: #fff; }

/* ---- barra de pestañas de abajo: solo en móvil ---- */
.cp-bar { display: none; }

/* En escritorio se ve todo a la vez: la barra sobra y los paneles no se esconden. */
@media (min-width: 861px) {
  .cp-panel[hidden] { display: block; }
  .cp-solo-mov { display: none !important; }
}

@media (max-width: 860px) {
  .cp { grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
  .cp-lat { position: static; }
  .cp-solo-esc { display: none; }
  /* Hueco para que la barra no tape el último partido */
  body.con-cpbar { padding-bottom: 60px; }
  .cp-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--papel); border-top: 1px solid var(--linea); box-shadow: 0 -2px 10px rgba(18, 27, 45, .07); padding-bottom: env(safe-area-inset-bottom); }
  .cp-bar button { border: 0; background: none; padding: 7px 0 9px; display: grid; justify-items: center; gap: 2px; font: inherit; font-size: 9.5px; color: var(--gris); cursor: pointer; }
  .cp-bar button i { font-style: normal; font-size: 17px; line-height: 1; }
  .cp-bar button[aria-selected="true"] { color: var(--cesped); font-weight: 600; }
  .cp-clasif .ra, .cp-clasif td.ra, .cp-clasif .pr, .cp-clasif td.pr { display: none; }
  .cp-clasif td.eqn { max-width: none; }
  .cp-eqs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---- Ficha: párrafo de resumen escrito con nuestros datos (fase 2 del SEO) ---- */
.fc-intro .fc-cuerpo { padding: 11px 13px; }
.fc-resumen { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--tinta); }
.fc-resumen b { font-weight: 600; }

/* ---- Móvil: zonas de toque mínimas ----
   Las migas y los enlaces de «ver más» quedaban en 14–15 px de alto, por debajo de los 24 px
   que pide Google y, sobre todo, incómodos de acertar con el pulgar. Se les da aire por arriba
   y por abajo sin mover nada de sitio: el texto sigue donde estaba. */
@media (max-width: 860px) {
  .migas a { display: inline-block; padding: 5px 0; }
  .fc-mas, .cp-mas, .v-mas-a { padding-top: 9px; padding-bottom: 9px; }
  .pie-dat a { display: inline-block; padding: 4px 0; }
}
