/* Mati Gol Stats - ajustes para celular (v1, 2026-10-10)
   Se carga al final del <head> de index.html:
   <link rel="stylesheet" href="movil.css?v=1">
   Solo pisa estilos en pantallas chicas; en PC no cambia nada. */

/* Bienvenida: la lista tenia sangria de 20px por ".nm-body ul" */
.nm-body .onb-list{padding:0}

@media (max-width:640px){

  /* ---- Barra de pestañas: que entren todas sin cortarse ---- */
  .tabs{gap:3px;overflow-x:auto}
  .tab{flex:1 0 auto;padding:0 4px;font-size:11px;letter-spacing:.01em;white-space:nowrap;line-height:1;height:38px}
  .tab-games{flex:0 0 auto;margin-left:2px;padding:0 10px;height:38px;font-size:16px}
  .tab-games [data-i18n]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

  /* ---- Portada: controles del dia alineados ---- */
  #tHero .hero-row{gap:8px}
  #tHero .daynav{flex:1 1 auto;justify-content:space-between}
  #tHero .daynav button{min-width:36px;padding:0 8px}
  #tHero .daynav #dayToday{flex:1;justify-content:center}
  #tHero .notif-btn{flex:1 1 auto;justify-content:center;height:46px}
  #tHero .tz-ctl{flex:1 1 100%;height:40px}
  #tHero .tz-ctl select{flex:1;min-width:0;max-width:none}

  /* ---- Carrera a los 1.000 goles (cerrada): una franja chica ---- */
  #goatBox .goat-min{margin-top:12px}
  #goatBox .goat-pill{flex-wrap:wrap;row-gap:6px;column-gap:10px;padding:10px 12px;border-radius:14px}
  #goatBox .goat-mtitle{font-size:13px;gap:6px;white-space:nowrap;overflow:hidden}
  #goatBox .goat-mtitle span{overflow:hidden;text-overflow:ellipsis}
  #goatBox .goat-mtitle svg{width:14px;height:14px}
  #goatBox .goat-mrow{flex:1 1 auto;flex-basis:auto;justify-content:flex-start;gap:6px}
  #goatBox .goat-mini-one{flex-direction:row;gap:6px}
  #goatBox .goat-mini-ph{width:26px;height:26px}
  #goatBox .goat-pill b{font-size:22px}
  #goatBox .goat-pill .goat-mtxt{display:none}
  #goatBox .goat-vs{font-size:11px;padding:0 2px}
  #goatBox .goat-pill .goat-more{flex-basis:auto;margin-left:auto;height:30px;padding:0 10px;font-size:12px;border-radius:9px}
  #goatBox .goat-pill .goat-more svg{width:14px;height:14px}

  /* ---- Carrera a los 1.000 goles (abierta): las dos tarjetas lado a lado ---- */
  #goatBox .goat2{margin-top:12px;padding:12px 12px 10px;border-radius:16px}
  #goatBox .goat2-head{margin-bottom:10px;gap:8px}
  #goatBox .goat2-head h2{font-size:16px}
  #goatBox .goat2 .goat-toggle{width:32px;height:32px;flex-shrink:0}
  #goatBox .goat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #goatBox .goat-card{grid-template-columns:1fr;justify-items:center;text-align:center;align-items:start;gap:6px;padding:10px 8px;border-radius:14px}
  #goatBox .goat-photo{width:56px;height:70px}
  #goatBox .goat-body{width:100%;min-width:0}
  #goatBox .goat-body h3{font-size:14px;margin:0 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #goatBox .goat-card .goat-num{flex-direction:column;align-items:center;gap:0}
  #goatBox .goat-card .goat-num b{font-size:36px}
  #goatBox .goat-card .goat-num span{font-size:11px;text-align:center}
  #goatBox .goat-card .goat-bar{margin-top:6px;height:8px}
  #goatBox .goat-scale{font-size:9.5px;margin-top:3px}
  #goatBox .goat-card p{font-size:11.5px;line-height:1.3;margin-top:6px}
  #goatBox .goat-card .goat-acts{display:grid;justify-content:stretch;grid-template-columns:1fr;gap:5px;margin:8px 0 6px}
  #goatBox .goat-acts .btn{height:30px;padding:0 6px;font-size:11px;justify-content:center}
  #goatBox .goat-credit{font-size:9px;line-height:1.25}
  #goatBox .goat-src{font-size:10.5px;margin-top:8px}

  /* ---- "Seguí a tus equipos" sin favoritos: mas compacto ---- */
  .fw-empty{margin-top:14px;gap:10px 12px;padding:12px 14px;font-size:13.5px;line-height:1.4}
  .fw-empty p{flex:1 1 200px}
  .fw-empty-ico{width:34px;height:34px;border-radius:10px}
  .fw-empty-ico svg{width:18px;height:18px}
  .fw-empty .btn{width:100%;justify-content:center}

  /* ---- Copas: "1 partido" no se parte en dos lineas ---- */
  .league-head h3{font-size:15px;min-width:0;flex:1;overflow-wrap:anywhere}
  .league-head small{flex-shrink:0;white-space:nowrap}
}

@media (min-width:400px) and (max-width:640px){
  .tab{font-size:12px}
}

/* Celulares muy angostos (320-360px) */
@media (max-width:360px){
  .tabs{padding:4px;gap:2px}
  .tab-ind{top:4px;bottom:4px}
  .tab{padding:0 3px;font-size:10px;letter-spacing:0}
  .tab-games{padding:0 7px;font-size:14px}
  #tHero .counter small{font-size:8.5px;overflow-wrap:normal}
}
