/* =========================
   BASE
========================= */

body{
  font-family:Montserrat, system-ui, Arial;
  background:#fff;
  margin:0;
  padding:5px;
}

.wrap{
  max-width:800px;
  margin:0 auto;
}

/* =========================
   TITULOS
========================= */

.title{
  background:#222;
  color:#fff;
  font-weight:900;
  text-align:center;
  padding:14px 12px;
  border-radius:14px;
  font-size:20px;
  letter-spacing:.5px;
}

.daypill{
  margin:18px auto 8px;
  display:inline-block;
  background:#222;
  color:#fff;
  padding:8px 16px;
  border-radius:12px;
  font-weight:900;
}

.torneopill{
  margin:6px auto 10px;
  display:inline-block;
  background:#222;
  color:#fff;
  padding:6px 12px;
  border-radius:10px;
  font-weight:800;
  font-size:12px;
}

/* =========================
   CARD SEPARATION
========================= */

.card{
  padding-bottom:18px;
  margin:14px 0 22px;
  border-bottom:1px solid rgba(0,0,0,.10);
  position:relative;
}

.card:after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:-12px;
  height:10px;
  background:linear-gradient(to bottom, rgba(0,0,0,.07), rgba(0,0,0,0));
  pointer-events:none;
}

.card:last-of-type{
  border-bottom:none;
  margin-bottom:0;
  padding-bottom:0;
}

.card:last-of-type:after{
  display:none;
}

/* =========================
   MATCH HEADER (broadcast style)
========================= */

.match{
  background:#222;
  color:#fff;
  border-radius:16px;
  padding:14px 14px;

  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:10px;
}

/* EQUIPOS */

.team{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;               /* 👈 clave */
}

.team.left{
  justify-content:flex-start;
}

/* visitante: texto y escudo al final del bloque */
.team.right{
  justify-content:flex-end;
}

/* escudo del visitante pegado al borde derecho */



/* ESCUDO */

.crest{
  width:30px;
  height:30px;
  border-radius:50%;
  background:#ffffff15;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex:0 0 30px;
}

.crest img{
  width:100%;
  height:100%;
  object-fit:contain;
}

/* TEXTO EQUIPO */

.team-text{
  width: 100px;        
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.team{
  justify-content:flex-start;
}

.team.right{
  justify-content:flex-end;
}

.team-text{
  text-align:left;
}

.team.right .team-text{
  text-align:right;
}


/* CÓDIGO */

.code{
  font-family:Stretch, Montserrat, system-ui, Arial;
  font-weight:900;
  font-size:27px;
  letter-spacing:1px;
  color:#fff;
  line-height:1;
}

/* NOMBRE COMPLETO */

.team-name{
  font-family:Montserrat, system-ui, Arial;
  font-size:11px;
  font-weight:700;
  color:#ddd;
  text-transform:uppercase;
  letter-spacing:.4px;

  white-space:normal;
  word-break:keep-all;
  overflow-wrap:normal;
  hyphens:none;

  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* VS */

.vs{
  font-family:Stretch, Montserrat, system-ui, Arial;
  font-weight:800;
  font-size:10px;
  color:#bbb;
  text-align:center;
  white-space:nowrap;
}

/* =========================
   FILAS DE RADIOS
========================= */

.row{
  display:flex;
  gap:10px;
  align-items:stretch;
  margin-top:8px;
}

.left{
  width:96px;
  background:#e9e9e9;
  border-radius:12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:10px 8px;
  text-align:center;
  font-weight:900;
  font-size:12px;
}

.left.live{
  background:#ffe5e5;
  color:#d40000;
}

.mid{
  flex:1;
  background:#666;
  border-radius:12px;
  color:#fff;
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.rname{
  font-weight:900;
}

.rloc{
  font-size:12px;
  opacity:.9;
  margin-top:2px;
}

.right{
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

/* =========================
   BOTONES
========================= */

.btn{
  width:100%;
  border:0;
  border-radius:12px;
  padding:12px 10px;
  font-weight:900;
  cursor:pointer;
}

.btn.gray{
  background:#bdbdbd;
  color:#111;
}

.btn.red{
  background:#ff3b30;
  color:#fff;
}

/* =========================
   EMPTY STATE
========================= */

.empty{
  margin-top:22px;
  background:#222;
  color:#fff;
  text-align:center;
  padding:14px 12px;
  border-radius:14px;
  font-weight:900;
}

/* =========================
   ADS
========================= */

.adbox{
  margin:14px 0 18px;
  background:#f6f6f6;
  border:1px dashed rgba(0,0,0,.15);
  border-radius:14px;
  padding:10px;
}

.adbox .adlabel{
  font-size:11px;
  font-weight:800;
  letter-spacing:.3px;
  opacity:.65;
  margin:0 0 8px 2px;
}

.adbox .adinner{
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:6px;
}

.adbox ins.adsbygoogle{
  display:block;
  width:100%;
  max-width:800px;
}
