/* ===== SECCIONES ===== */  
.sec{
  font-family:Merriweather,serif;
  font-size:13px;
  color:white;
  max-width:520px;
  margin:8px auto 18px auto;
}

.sec-tit{
  display:flex;
  align-items:baseline;
  gap:6px;
  margin:24px 0 10px;
}
  
.sec-tit .ico{ font-size:15px; }
.sec-tit .txt{
  font-size:15px;
  text-decoration:underline;
  font-weight:600;
  font-family:Merriweather,serif;
}

.sec-item{
  margin:6px 0;
}

.sec-p{
  text-align:justify;
  text-indent:20px;
  margin:2px 0;
}

/* ===== TABLA DE EQUIPOS PARTICIPANTES ===== */
  
.rotulo{
  background:rgb(58,58,58);
  border:1px solid #000;
  color:#b4b4b4;
  font-family:Merriweather,serif;
  font-size:12px;
  line-height:1.1;
  margin:10px auto 6px;
  max-width:450px;
  padding:6px 8px;
  text-align:center;
}
  
.equipos-tabla{
  border-collapse:collapse;
  table-layout:fixed;
  width:100%;
  text-align:center;
  border:1px solid #000;
}

.equipos-tabla td{
  border:1px solid #000;
  padding:6px 4px;
  vertical-align:top;
  width:25%;
  background:transparent;
  border-top:1px solid #000;
  border-left:1px solid #000;
}

.equipos-tabla td.eq-colon{
  background:rgb(80,80,80);
}

.equipos-tabla tr:last-child td{border-bottom:1px solid #000;}
.equipos-tabla td:last-child{border-right:1px solid #000;}  
  
.eq-card{
  display:flex;
  position:relative;
  flex-direction:column;
  align-items:center;
}
  
.eq-badge{
  position:absolute;
  top:2px;
  right:2px;
  width:18px;
  height:18px;
  border-radius:3px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.9) inset,
    0 1px 2px rgba(0,0,0,.35);
}

.eq-badge::after{
  display:block;
  font-size:8px;
  line-height:1;
}

.eq-badge.asc{
  background:#5afa5a;
  color:#fff;
}

.eq-badge.asc::after{
  content:"\25B2";
}

.eq-badge.desc{
  background:#d9534f;
  color:#fff;
}

.eq-badge.desc::after{
  content:"\25BC";
}

.eq-badge.extra{
  background:#888;
  color:#fff;
}

.eq-esc svg{
  width:50px;
  height:50px;
  display:block;
  margin:0 auto;
  filter:grayscale(60%);
}

.eq-nom{
  font-family:Merriweather, serif;
  color:#fff;
  font-size:11px;
  line-height:1.3;
  margin:6px 0 4px;
  white-space:nowrap;
  overflow:hidden;
}

.eq-ciu,
.eq-pro{
  font-family:Merriweather, serif;
  color:#b4b4b4;
  font-size:10px;
  line-height:12px;
  margin:2px 0;
}
  
.ref{
  background:rgba(0,0,0,0.55);
  border:1px solid #000;
  color:#fff;
  font-family:Merriweather, serif;
  font-size:11px;
  line-height:1.3;
  max-width:520px;
  margin:6px auto 10px;
  padding:6px 8px;
}

.ref-list{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ref-item{
  display:flex;
  align-items:center;
}

.ref-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.1em;
  height:1.1em;
  margin-right:6px;
  font-size:1.1em;
  line-height:1;
}

.ref-ico.asc{
  width:18px;
  height:18px;
  min-width:18px;
  background:#5afa5a;
  color:#fff;
  border-radius:3px;
  flex-shrink:0;
  font-size:0;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.9) inset,
    0 1px 2px rgba(0,0,0,.35);
}

.ref-ico.asc::before{
  content:"\25B2";
  display:block;
  font-size:8px;
  line-height:1;
}

.ref-ico.desc{
  width:18px;
  height:18px;
  min-width:18px;
  background:#d9534f;
  color:#fff;
  border-radius:3px;
  flex-shrink:0;
  font-size:0;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.9) inset,
    0 1px 2px rgba(0,0,0,.35);
}

.ref-ico.desc::before{
  content:"\25BC";
  display:block;
  font-size:8px;
  line-height:1;
}
  
/* =========================
   PLACA MARCADOR
========================= */

.ct-box{
  background: transparent;
  border:1px solid #000;
  color:#fff;
  font-family:Merriweather, serif;
  line-height:1.2;
  margin:6px auto;
  max-width:100%;
  overflow:hidden;
  padding:4px 8px;
  position:relative;
}
  
.match-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) 1.4em;
  align-items:center;
  gap:6px;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  width:100%;
  box-sizing:border-box;
  min-height:22px;
}

.match-row .escudo{ 
  flex:0 0 auto;
}  
  
.m-name{
  min-width:0;
  display:block;
  font-size:13px;
  line-height:1.3;
  font-family:inherit;
  font-weight:inherit;
  overflow:hidden;
}

.m-main{
  display:block;
  font-size:inherit;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.m-sub{
  display:block;
  font-size:inherit;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}  
  
.match-local,.match-visita{
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
}
  
.match-local{
  justify-content:flex-end;
}
  
.match-visita{
  justify-content:flex-start;
}  
  
.match-local .m-name{
  text-align:right;
}

.match-local .m-main,
.match-local .m-sub{
  text-align:right;
}

.match-local .m-sub{
  width:fit-content;
  margin-left:auto;
  margin-right:0;
}

.match-visita .m-name{
  text-align:left;
}

.match-visita .m-main,
.match-visita .m-sub{
  text-align:left;
} 
  
.match-dato{
  background:rgba(255,255,255,0.10);
  display:flex;
  align-items:stretch;
  margin:0 0 4px;
  border:1px solid #000;
  overflow:hidden;
  color:#fff;
  font-family:Merriweather, serif;
  min-width:0;
}

.match-dato-fecha{
  display:flex;
  border-right:1px solid rgba(0,0,0,.2);
  align-items:center;
  min-width:0;
  flex:0 0 auto;
  padding:3px 8px;
  font-size:11px;
  line-height:1.2;
  white-space:nowrap;
  box-sizing:border-box;
}

.match-dato-estadio{
  flex:1 1 auto;
  display:flex;
  align-items:center;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding:3px 6px;
  font-size:10px;
  line-height:1.2;
  color:#d0d0d0;
  justify-content:flex-end;
  text-align:right;
  text-transform:none;
  gap:6px;
}

.estadio-ico{
  width:1.4em;
  height:1.4em;
  flex:0 0 auto;
  position:relative;
}

.estadio-ico::before{
  content:"";
  position:absolute;
  inset:2px;
  border:1px solid #fff;
  border-radius:2px;
  opacity:.8;
}

.estadio-ico::after{
  content:"";
  position:absolute;
  top:2px;
  bottom:2px;
  left:50%;
  width:1px;
  background:#fff;
  transform:translateX(-50%);
  opacity:.6;
}  
  
.match-dato-estadio .estadio-ico{
  flex:0 0 auto;
  font-size:12px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
}

.match-dato-estadio .estadio-nom{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}  
  
.match-item{
  margin:4px 0;
  max-width:100%;
}

.match-item summary{
  list-style:none;
  display:block;
}

.match-item summary::-webkit-details-marker{
  display:none;
}
  
.match-libre{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  color:#8a8a8a;
  font-family:Merriweather, serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
}  
  
.match-score-box{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  line-height:1;
  gap:2px;
}

.match-score{
  color:#fff;
  border:1px solid #000;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:1.2em;
  width:2.6em;
  font-variant-numeric:tabular-nums lining-nums;
  text-align:center;
  white-space:nowrap;
  font-size:clamp(10px,1.6vw,13px);
}

.match-score-pen{
  background:rgba(255,255,255,0.10);
  border:1px solid #000;
  color:#fff;
  font-size:clamp(8px,1.2vw,10px);
  padding:1px 4px;
  margin-top:2px;
  line-height:1;
  white-space:nowrap;
} 

.match-plus{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.2em;
  height:1.2em;
  border:1px solid #000;
  background:rgb(58,58,58);
  color:#fff;
  font-weight:700;
  font-size:12px;
  line-height:1;
  justify-self:end;
  cursor:pointer;
}
  
.match-plus::before{
  content:"+";
  display:block;
  line-height:1;
}

.match-item[open] .match-plus::before{
  content:"-";
}

.match-extra{
  margin-top:4px;
  padding-top:4px;
  font-size:11px;
  line-height:1.35;
}
  
/* =========================
   match-subtitulo (FORMACIONES y GOLES),  suplentes-titulo (SUPLENTES)
========================= */ 
  
.match-subtitulo{
  margin:6px 0 4px;
  padding-top:2px;
  border-top:1px solid #000;
  color:#8a8a8a;
  font-family:Merriweather, serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:.2px;
  text-align:justify;
}

.suplentes-titulo{
  margin:6px 0 4px;
  padding-top:2px;
  border-top:1px solid #000;
  color:#8a8a8a;
  font-family:Merriweather, serif;
  font-size:10px;
  font-weight:600;
  letter-spacing:.2px;
  text-align:justify;
}  

/* =========================
   PLACA GOLES
========================= */
  
.goles-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  width:100%;
  font-size:11px;
}

.gol-row,
.gol-colon,
.gol-rival{
  display:grid;
  grid-template-columns:3em minmax(6ch,max-content) minmax(0,1fr);
  align-items:stretch;
}

.gol-icon,
.gol-min{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  height:18px;
  box-sizing:border-box;
  line-height:1;
  white-space:nowrap;
}

.gol-icon{
  background:#000;
  color:#fff;
  border:1px solid #000;
  gap:1px;
  padding:0 2px;
}

.gol-icon .mult{
  font-size:11px;
  font-weight:700;
  line-height:1;
  flex-shrink:0;
}

.gol-min{
  background:rgba(0,0,0,.35);
  border:1px solid rgba(0,0,0,.35);
  font-size:10px;
  font-weight:400;
  padding:0 4px;
  text-align:center;
  white-space:nowrap;
  min-width:0;
  width:100%;
  box-sizing:border-box;
  overflow:hidden;
  text-overflow:ellipsis;
}

.gol-colon .gol-min{
  color:#d4af37;
}

.gol-rival .gol-min{
  color:#c2b06a;
}

.gol-name{
  border:1px solid #000;
  padding:0 6px;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
}

.gol-name.penal::after{
  content:"(P)";
  font-size:10px;
  color:#e05a3f !important;
  font-weight:700;
  margin-left:2px;
  flex-shrink:0;
}

.gol-tipo{
  font-size:10px;
  color:#e05a3f !important;
  font-weight:700;
  margin-left:2px;
  flex-shrink:0;
}

.gol-colon .gol-name,
.gol-rival .gol-name{
  background:transparent !important;
  color:#fff !important;
}
  
.gol-colon + .gol-colon .gol-name{
  border-top:0;
}  

.gol-colon:not(:has(.gol-min)) .gol-name,
.gol-rival:not(:has(.gol-min)) .gol-name{
  grid-column:2 / span 2;
} 
  
.gol-colon + .gol-colon .gol-icon,
.gol-colon + .gol-colon .gol-min,
.gol-colon + .gol-colon .gol-name,
.gol-rival + .gol-rival .gol-icon,
.gol-rival + .gol-rival .gol-min,
.gol-rival + .gol-rival .gol-name{
  border-top:0 !important;
}  

/* =========================
   PLACA FORMACIONES
========================= */
   
.formaciones-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  width:100%;
}

.formacion{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.fila{
  display:grid;
  border:1px solid #000;
  grid-template-columns:24px 18px minmax(0,1fr) 14px 14px 22px;
  align-items:stretch;
  min-width:0;
  font-size:11px;
  overflow:hidden;
  box-sizing:border-box;
}

/* fondo continuo de la zona nombre + tarjeta + cambio */
.fila:has(.nom){
  background:
    linear-gradient(to right,
      transparent 0 42px,
      #fff 42px 100%);
}

.fila:has(.nom-rival){
  background:
    linear-gradient(to right,
      transparent 0 42px,
      #cfcfcf 42px 100%);
}

.num{ grid-column:1; }
.band{ grid-column:2; }
.nom,
.nom-rival{ grid-column:3; }
.tarj{ grid-column:4; }
.flecha-entra,
.flecha-sale{ grid-column:5; }
.cambio-min{ grid-column:6; }

.num,
.band,
.nom,
.nom-rival,
.tarj,
.flecha-entra,
.flecha-sale,
.cambio-min{
  display:flex;
  align-items:center;
  min-width:0;
  margin:0;
  box-sizing:border-box;
  line-height:1;
}

.band,
.tarj,
.flecha-entra,
.flecha-sale,
.cambio-min{
  justify-content:center;
  align-self:stretch;
}

.num{
  background:#000;
  color:#fff;
  justify-content:center;
  padding:0 2px;
  white-space:nowrap;
}

.band{
  padding:0;
}

.band svg{
  display:block;
  width:1.4em;
  height:1.4em;
  flex:0 0 auto;
}

.nom,
.nom-rival{
  justify-content:flex-start;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding:0 6px;
  background:transparent;
  border:none;
}

.nom{
  color:#000;
}

.nom-rival{
  color:#000;
}

.tarj,
.flecha-entra,
.flecha-sale,
.cambio-min{
  padding:0;
  font-size:10px;
  background:transparent;
  border:none;
  white-space:nowrap;
}

.tarj{
  gap:1px;
}

.card{
  width:7px;
  height:10px;
  border-radius:1px;
  display:block;
  flex:0 0 auto;
  border:.5px solid rgba(0,0,0,.35);
  box-sizing:border-box;
  box-shadow:none;
}

.card.a{ background:#ffd600; }
.card.r{ background:#d10000; }

.card + .card{
  margin-left:-1px;
}

.flecha-entra::before{ 
  margin-right:-1px;
  content:"\25B2"; }
  
.flecha-sale::before{ 
  margin-left:-1px;
  content:"\25BC"; }

.flecha-entra{ color:#0a7a2f; }
.flecha-sale{ color:#b30000; }
  
.flecha-entra,
.flecha-sale{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0px;
}  

.cambio-min{
  font-size:8px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  letter-spacing:0;
  color:#000;
}

/* placeholders para que la celda mantenga altura/centrado */
.tarj:empty::before,
.cambio-min:empty::before,{
  content:"";
  display:block;
  width:100%;
  height:1em;
}
  
.fila.dt{
  margin-top:4px;
}  
  
/* ===== PENALES ===== */

.pen-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  width:100%;
  font-size:11px;
}

.pen-colon,
.pen-rival{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.pen-ok,
.pen-miss{
  display:grid;
  grid-template-columns:3.2em 1fr;
  align-items:stretch;
}

.pen-mark,
.pen-name{
  min-width:0;
  height:18px;
  box-sizing:border-box;
}

.pen-mark{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  height:18px;
  border:1px solid #000;
  box-sizing:border-box;
  line-height:1;
  position:relative;
}

.pen-ok .pen-mark{
  background:rgba(46,125,50,0.5);
}
  
.pen-miss .pen-mark{
  background:rgba(198,40,40,0.5);
}  

/* ✔ */
.pen-ok .pen-mark::before{
  content:"";
  border-color:#fff;
  width:5px;
  height:9px;
  border-right:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(40deg);
}

/* ✖ */
.pen-miss .pen-mark::before,
.pen-miss .pen-mark::after{
  content:"";
  background:#fff;
  position:absolute;
  width:2px;
  height:10px;
  background:#fff;
}

.pen-miss .pen-mark::before{
  transform:rotate(45deg);
}

.pen-miss .pen-mark::after{
  transform:rotate(-45deg);
}

.pen-name{
  border:1px solid #000;
  padding:0 6px;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.pen-colon .pen-name{
  background:#fff;
  color:#000;
  font-weight:700;
}

.pen-rival .pen-name{
  background:#cfcfcf;
  color:#000;
} 
  
/* ===== PLACA RESUMEN PXP ===== */
  
.pxp{
  background:rgb(244,241,233);
  border-collapse:collapse;
  border:1px solid #000;
  color:#000;
  font-family:Merriweather,serif;
  font-size:12px;
  margin:8px auto;
  text-align:center;
}

.pxp th,
.pxp td{
  border:1px solid #000;
  width:25px;
  height:25px;
  padding:0;
}

.pxp th{
  background:rgb(10,10,10);
  font-weight:700;
  color: white;
}

.pxp .lv td{
  background:rgb(244,241,233);
  height:22px;
}

.pxp .res td{
  font-weight:800;
}
  
.pxp .ok{ background:rgb(120,195,120); color:#000; }
.pxp .emp{ background:rgb(170,165,155); color:#000; }
.pxp .per{ background:rgb(195,70,70); color:#fff; }

.pxp .sep td{
  background:#000;
  height:6px;
  border-left:0;
  border-right:0;
}
  
.pxp td.libre{
  background:#000;
  color:#e05a3f;
  font-size:7px;
  font-weight:700;
  text-align:center;
  vertical-align:middle;
  padding:0;
  white-space:nowrap;
} 
  
/* ===== PLACA TABLA DE POSICIONES ===== */

.tp{ 
  border-collapse:collapse;
  width:100%;
  max-width:520px;
  margin:8px 0;
  font-family:"Roboto Slab",serif;
  font-size:12.5px;
  color:#000;
  table-layout:fixed;
}

/* COLUMNAS */

.tp col.pos { width:34px; }
.tp col.eq  { width:208px; }
.tp col.pt  { width:38px; }
.tp col.pj,
.tp col.g,
.tp col.e,
.tp col.p,
.tp col.gf,
.tp col.gc { width:31px; }
.tp col.dif { width:36px; }

/* CELDAS */

.tp thead th,
.tp tbody td{
  border:1px solid #000;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-sizing:border-box;
  vertical-align:middle;
}

/* ENCABEZADO */
.tp th{
  font-weight:700;
  text-align:center;
  padding:2px 0;
}

/* CUERPO */
.tp td{
  text-align:center;
  font-variant-numeric:tabular-nums lining-nums;
  padding:2px 0;
}

/* COLUMNA EQUIPO */
.tp .tp-equipo{
  text-align:left;
  padding:2px 4px;
}

/* ENCABEZADO */

.tp thead th{
  background:#000;
  color:#fff;
  font-weight:800;
}

/* POSICIÓN */

.tp .tp-pos{
  background:transparent;
  color:#d9d9d9;
  font-size:13px;
  text-align:center;
  padding:0;
}

/* POSICIONES ESPECIALES */

.tp .tp-pos.clasificado{
  background:rgb(143,188,230);
  color:#000;
}

.tp .tp-pos.desempate{
  background:rgb(235,150,60);
  color:#000;
}

.tp .tp-pos.descenso{
  background:rgb(195,70,70);
  color:#fff;
}
  
.tp tr.tp-campeon td:not(.tp-pos){
  background:rgba(220,220,220,.25);
}

/* FILA COLÓN */

.tp tbody tr.colon td:not(.tp-pos){
  background:rgba(0,0,0,0.55);
}
  
.tp tbody tr.colon .tp-pos:not(.clasificado):not(.desempate):not(.descenso){
  background:rgba(0,0,0,0.55);
  color:#d9d9d9;
}  

/* FILAS RIVALES */

.tp tbody tr td{
  background:transparent;
  color:#d9d9d9;
}

/* EQUIPO */

.tp .tp-equipo{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ESCUDO */

.tp .tp-esc{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.3em;
  height:1.3em;
  margin-right:6px;
  overflow:hidden;
  vertical-align:middle;
  flex:0 0 auto;
}

.tp .tp-esc svg{
  width:100%;
  height:100%;
  display:block;
  filter:grayscale(60%);
}

/* PUNTOS */

.tp .tp-ptos{
  font-weight:900;
}

/* TFOOT */

.tp tfoot td{
  background:rgba(255,255,255,0.10);
  color:#d9d9d9;
  text-align: left;
  font-size:10px;
  padding:4px 6px;
}
  
/* =========================
   CUADRO DE DESARROLLO
========================= */

.cd{
  max-width:520px;
  margin:10px auto;
  font-family:Roboto Slab, serif;
  color:#fff;
}

.cd-tit .ico{
  font-size:15px;
}

.cd-tit .txt{
  text-decoration:underline;
}

.cd-wrap{
  overflow-x:auto;
  padding-bottom:4px;
  scrollbar-width:thin;                    /* Firefox */
  scrollbar-color:rgba(255,255,255,.28) rgba(255,255,255,.08);
}

/* Chrome, Edge, Safari */
.cd-wrap::-webkit-scrollbar{
  height:12px;
}

.cd-wrap::-webkit-scrollbar-track{
  background:rgba(255,255,255,.08);
  border:1px solid #000;
}

.cd-wrap::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.28);
  border:1px solid #000;
}

.cd-wrap::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,.40);
}

.cd-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 26px;
  min-width:0;
}

.cd-row + .cd-row{
  border-top:1px solid #000;
}
  
.cd-bracket{
  display:grid;
  grid-template-columns:repeat(3, max-content);
  gap:12px;
  min-width:max-content;
  align-items:start;
}

.cd-col{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
  position:relative;
}

.cd-head{
  border:1px solid #000;
  background:rgba(255,255,255,0.10);
  color:#fff;
  overflow:hidden;
}

.cd-head-etapa{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:3px 6px;
  font-size:11px;
  text-transform:uppercase;
  border-bottom:1px solid rgba(0,0,0,.35);
}

.cd-head-fecha{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:3px 6px;
  font-size:10px;
  color:#d8d8d8;
}

.cd-match{
  position:relative;
  min-width:0;
}

.cd-match + .cd-match{
  margin-top:14px;
}

.cd-box{
  border:1px solid #000;
  overflow:hidden;
  background:transparent;
}

.cd-team{
  display:grid;
  grid-template-columns:18px minmax(0,1fr);
  align-items:center;
  gap:4px;
  min-width:0;
  padding:3px 6px;
  background:rgba(255,255,255,0.10);
  color:#fff;
}
  
.cd-team.colon{
  background:linear-gradient(180deg,#d4af37,#b8962e);
  color:#000;
  font-weight:700;
  border-color:#000;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.25);
}
  
.cd-team.colon .cd-name{
  white-space:nowrap;
}

.cd-team.colon .cd-name::after{
  content:"\00a0\2605"; /* espacio + estrella */
  font-family:Georgia, "Times New Roman", serif;
  font-size:10px;
  line-height:1;
  color:currentColor;   /* usa negro o blanco según el fondo */
  display:inline;
}

.cd-esc{
  display:flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  min-width:18px;
}

.cd-esc svg{
  display:block;
  width:1.1em;
  height:1.1em;
  flex:0 0 auto;
  filter:grayscale(70%);
}

.cd-name{
  min-width:0;
  white-space:nowrap;
  font-size:12px;
  line-height:1.15;
}

.cd-score{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:3px 4px;
  font-size:12px;
  line-height:1.15;
  font-variant-numeric:tabular-nums;
  background:#fff;
  color:#000;
  border-left:1px solid #000;
  white-space:nowrap;
}

.cd-pen{
  font-size:9px;
  line-height:1;
}

/* =========================
   LLAVES / UNIONES (SIN LÍNEAS)
========================= */

/* solo mantenemos la alineación vertical */

.cd-col.semifinales .cd-match{
  padding-top:58px;
}

.cd-col.final .cd-match{
  padding-top:122px;
}  

.cd-nota{
  background:rgba(0,0,0,0.55);
  color:#fff;
  margin-top:10px;
  padding:6px 8px;
  font-size:11px;
  line-height:1.3;
  border:1px solid #000;
  text-align:justify;
}
  
/* =========================
   FE-ETAPA - FASE ELIMINATORIA A UN PARTIDO (PARTIDOS COLÓN)
========================= */  
  
.fe *{
  box-sizing:border-box;
  min-width:0;
}
  
.fe{
  background: transparent;
  border:1px solid #000;
  color:#fff;
  font-family:Merriweather,serif;
  line-height:1.2;
  margin:6px auto;
  max-width:500px;
  padding:4px 8px;
  box-sizing:border-box;
  overflow:hidden;
}

.fe-etapa{
  background:rgba(255,255,255,0.10);
  border-bottom:1px solid #000;
  display:flex;
  align-items:stretch;
  overflow:visible;
  color:#222;
  font-size:12px;
  font-weight:700;
  letter-spacing:.5px;
  text-align:center;
  text-transform:uppercase;
  margin:-6px -8px 6px;
  padding:0;
}

.fe-etapa-nom,
.fe-etapa-fecha,
.fe-etapa-estadio{
  padding:3px 6px;
  font-size:11px;
  font-weight:500;
  line-height:1.2;
  display:flex;
  align-items:center;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
  
*, *::before, *::after{
  box-sizing:border-box;
}  

.fe-etapa-nom{
  background:rgba(255,255,255,0.8);
  color:#000;
  justify-content:flex-start;
  text-align:left;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.fe-etapa-fecha{
  color:#fff;
  justify-content:center;
  text-align:center;
  white-space:nowrap;
  border-left:1px solid rgba(0,0,0,.2);
  border-right:1px solid rgba(0,0,0,.2);
}

.fe-etapa-estadio{
  font-size:10px;
  color:#d0d0d0;
  justify-content:flex-end;
  text-align:right;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-transform: none;
}  
  
.fe-etapa-nom{ flex:1.2; }

.fe-etapa-fecha{ flex:0 0 80px; }

.fe-etapa-estadio{ flex:1.8; }  

.fe .match-row{
  margin-bottom:10px;
}
  
.fe-sep{
  border-top:1px solid rgb(100,100,100);
  opacity:.5;
  margin:6px -8px;
}

.fe-foot{
  background:rgb(120,117,110);
  border:none;                 
  border-top:1px solid #000;
  color:#000;
  font-size:11px;
  line-height:1.3;
  text-align:center;
  padding:6px 8px;
  margin:0 -8px -8px;
  overflow-wrap:break-word;
}
  
/* ===== FE FASE - FASE ELIMINATORIA SERIE IDA/VUELTA ===== */

.fe-fase{
  margin:10px auto;
  max-width:100%;
}

.fe-fase-tit{
  background:rgba(255,255,255,0.8);
  border:1px solid #000;
  color:#222;
  font-family:Merriweather, serif;
  font-size:12px;
  letter-spacing:.5px;
  text-align:center;
  text-transform:uppercase;
  padding:2px 6px;
  margin:0 0 6px;
}

.fe-fase .ct-box + .ct-box{
  margin-top:6px;
  position:relative;
}   

/* ===== NOTAS POST TABLA DE POS. ===== */

.nota{
  position:relative;
  background:rgba(0,0,0,0.55);
  border:1px solid #000;
  color:#fff;
  font-family:Merriweather, serif;
  font-size:11px;
  line-height:1.3;
  max-width:520px;
  margin:6px auto;
  padding:6px 8px 6px 14px;
  box-sizing:border-box;
}

/* BARRA LATERAL */

.nota::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  width:7px;
  border-right:1px solid #000;
  box-sizing:border-box;
}

/* VARIANTES */

.nota.descenso::before{
  background:rgb(225,65,65);
}
  
.nota.libertadores::before{
  background:#5f4b7a;
}
  
.nota.sudamericana::before{
  background:#6f9b6b;
}  

.nota.reclasificacion::before{
  background:#eb963c;
}

.nota.clasificados::before{
  background:#8fbce6;
}

/* TÍTULO DE NOTA */

.nota-tit{
  display:block;
  background:rgba(0,0,0,.20);
  border-bottom:1px solid rgba(0,0,0,.2);
  font-size:12px;
  font-weight:700;
  margin:
    -6px -8px 6px -14px;
  padding:4px 8px 4px 14px;
}

/* LISTA */

.nota-list{
  margin:0;
  padding-left:14px;
  list-style-type:"-";
}

.nota-list li{
  margin:2px 0;
}
  
.nota-eq{
  display:flex;
  align-items:center;
  gap:10px;
}

.nota-eq-main{
  display:flex;
  align-items:center;
  gap:6px;
}

.nota-eq-motivo{
  font-size:10px;
  color:#555;
  font-style:italic;
  text-align:left;
}

.nota-esc{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.1em;
  height:1.1em;
  flex:0 0 auto;
  overflow:hidden;
}

.nota-esc svg{
  width:100%;
  height:100%;
  display:block;
  filter:grayscale(70%);
}  
  
  .notas-eliminar{
  display:none;
}
  
/* ===== CAMPEÓN -PLACA- ===== */
.campeon{
  background:rgb(244,241,233);
  border:3px solid #000;
  border-radius:8px;
  box-shadow:rgba(0,0,0,.3) 2px 2px 4px;
  font-family:Merriweather,serif;
  margin:24px auto;
  max-width:300px;
  padding:10px 12px;
  text-align:center;
  color:#000;
}

.campeon .tit{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
  font-size:clamp(12px, 2.6vw, 14px);
  font-weight:800;
  line-height:1.1;
}

.campeon .club{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  font-weight:800;
}

.campeon .esc{
  display:inline-flex;
  width:1.2em;
  height:1.2em;
  overflow:hidden;
  flex:0 0 auto;
}
.campeon .esc svg{
  width:100%;
  height:100%;
  display:block;
  filter:grayscale(70%);
}

.campeon .detalle{
  font-size:11px;
  font-weight:400;
}
.campeon .torneo{
  margin-top:6px;
  font-size:12px;
  color:#333;
}
