/* ============================================================
   Factor Partido · Analysis Match Center First v1
   Primero marcador/estado real en móvil y tabs sin scroll feo.
   ============================================================ */

.fp-match-center-first{
  display:none;
}

@media(max-width:760px){
  body{
    overflow-x:hidden;
  }

  .fp-match-center-first{
    display:block;
    margin-top:58px;
    padding:12px;
    background:
      radial-gradient(circle at 16% 0%,rgba(0,194,199,.16),transparent 35%),
      linear-gradient(180deg,#07111d 0%,#070b13 100%);
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  .fp-mc-status{
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:10px;
    min-width:0;
  }

  .fp-mc-live-dot{
    width:9px;
    height:9px;
    border-radius:99px;
    background:#64748b;
    flex:0 0 9px;
  }

  .fp-mc-live-dot.is-live{
    background:#ef4444;
    box-shadow:0 0 0 6px rgba(239,68,68,.10),0 0 18px rgba(239,68,68,.30);
    animation:fpMcPulse 1.2s ease-in-out infinite;
  }

  @keyframes fpMcPulse{
    0%,100%{transform:scale(1);opacity:1}
    50%{transform:scale(.75);opacity:.65}
  }

  .fp-mc-status strong{
    color:var(--cyan,#00c2c7);
    font-size:11px;
    font-weight:950;
    letter-spacing:.07em;
    text-transform:uppercase;
    white-space:nowrap;
  }

  .fp-mc-status small{
    color:#8fa2bc;
    font-size:10px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .fp-mc-card{
    display:grid;
    grid-template-columns:minmax(0,1fr) 92px minmax(0,1fr);
    gap:8px;
    align-items:center;
    border:1px solid rgba(255,255,255,.09);
    background:linear-gradient(145deg,rgba(17,24,39,.96),rgba(11,18,32,.92));
    border-radius:22px;
    padding:12px;
    box-shadow:0 14px 34px rgba(0,0,0,.18);
  }

  .fp-mc-team{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    min-width:0;
    text-align:center;
  }

  .fp-mc-badge{
    width:43px;
    height:43px;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--cyan,#00c2c7);
    background:rgba(0,194,199,.08);
    border:1px solid rgba(0,194,199,.22);
    font-family:var(--font-h,system-ui);
    font-weight:950;
    font-size:13px;
    letter-spacing:.02em;
  }

  .fp-mc-team strong{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    width:100%;
    overflow:hidden;
    color:#f8fafc;
    font-size:13px;
    line-height:1.15;
    font-weight:950;
  }

  .fp-mc-team span{
    color:#7185a3;
    font-size:9px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.08em;
  }

  .fp-mc-scorebox{
    text-align:center;
    min-width:0;
  }

  .fp-mc-score{
    min-height:54px;
    border:1px solid rgba(0,194,199,.18);
    background:rgba(0,194,199,.06);
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--cyan,#00c2c7);
    font-family:var(--font-h,system-ui);
    font-size:25px;
    font-weight:950;
    line-height:1;
    padding:0 6px;
  }

  .fp-mc-clock{
    color:#f8fafc;
    font-size:10px;
    font-weight:950;
    margin-top:6px;
    text-transform:uppercase;
  }

  .fp-mc-note{
    color:#8fa2bc;
    font-size:9px;
    margin-top:3px;
  }

  .fp-mc-meta-grid{
    display:grid;
    grid-template-columns:1.2fr .8fr .8fr;
    gap:7px;
    margin-top:9px;
  }

  .fp-mc-meta-grid div{
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.035);
    border-radius:15px;
    padding:9px 8px;
    min-width:0;
  }

  .fp-mc-meta-grid span{
    display:block;
    color:#7185a3;
    font-size:8px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.08em;
    margin-bottom:4px;
  }

  .fp-mc-meta-grid strong{
    display:block;
    color:#f8fafc;
    font-size:11px;
    line-height:1.15;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .fp-mc-actions{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
    margin-top:10px;
  }

  .fp-mc-actions button,
  .fp-mc-actions a{
    width:100%;
    min-height:42px;
    border:1px solid rgba(255,255,255,.09);
    background:rgba(255,255,255,.035);
    color:#9fb0c8;
    text-decoration:none;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:10px;
    font-weight:950;
    padding:8px 5px;
    cursor:pointer;
  }

  .fp-mc-actions button.active,
  .fp-mc-actions button:hover,
  .fp-mc-actions a:hover{
    color:#001018;
    border-color:var(--cyan,#00c2c7);
    background:var(--cyan,#00c2c7);
  }

  /* El hero viejo queda compacto detrás del match center */
  .mhero.fp-analysis-final-hero{
    margin-top:0!important;
    padding:0 12px 0!important;
    background:#070b13!important;
  }

  .mhero.fp-analysis-final-hero .lang-sw,
  .mhero.fp-analysis-final-hero > div:nth-child(2),
  .mhero.fp-analysis-final-hero > div:nth-child(3),
  .mhero.fp-analysis-final-hero .live-pro-panel{
    display:none!important;
  }

  /* La barra fea horizontal se vuelve grid sin scroll */
  .mhero.fp-analysis-final-hero .fp-analysis-tabbar{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    margin:10px 0 0!important;
    padding:8px 0 10px!important;
    border-bottom:0!important;
    overflow:visible!important;
  }

  .mhero.fp-analysis-final-hero .fp-analysis-tabbar .tab-btn{
    width:100%!important;
    min-width:0!important;
    border:1px solid rgba(255,255,255,.09)!important;
    background:rgba(255,255,255,.035)!important;
    border-radius:15px!important;
    color:#9fb0c8!important;
    padding:10px 8px!important;
    font-size:11px!important;
    white-space:normal!important;
    line-height:1.15!important;
    text-align:center!important;
  }

  .mhero.fp-analysis-final-hero .fp-analysis-tabbar .tab-btn.active{
    color:#001018!important;
    background:var(--cyan,#00c2c7)!important;
    border-color:var(--cyan,#00c2c7)!important;
  }

  .fp-analysis-trust-strip{
    margin:8px 12px 0!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }

  .fp-analysis-trust-strip .fp-analysis-trust-item{
    padding:12px 10px!important;
  }

  .fp-analysis-trust-strip .fp-analysis-trust-link{
    grid-column:1 / -1!important;
    width:100%!important;
    justify-content:center!important;
  }

  .fp-analysis-shell{
    margin-top:8px!important;
  }

  .alayout{
    padding:12px!important;
  }

  .acard{
    border-radius:18px!important;
    padding:16px!important;
    margin-bottom:12px!important;
  }

  .vgrid{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:390px){
  .fp-mc-card{
    grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr);
    padding:10px;
  }

  .fp-mc-score{
    font-size:22px;
  }

  .fp-mc-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .fp-mc-meta-grid{
    grid-template-columns:1fr;
  }
}
