/* ========================================================================
   AFW RESPONSIVE
   all media queries in one place
   ======================================================================== */

@media (max-width:900px){
  .afw-matches-grid{ grid-template-columns:1fr; }

  .afw-match-page{ max-width:820px; }

  .afw-match-hero{ gap:14px; }

  .afw-match-hero__name{
    font-size:22px;
    max-width:240px;
  }

  .afw-match-hero__center .afw-page-title{ font-size:40px; }
}

@media (max-width:860px){
  .afw-lu2-grid,
  .afw-match-page .afw-lineups-grid{
    grid-template-columns:1fr;
  }

  .afw-odds-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

@media (max-width:820px){
  .afw-match-page .afw-pitch__bg{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .afw-match-page .afw-pitch__midline,
  .afw-match-page .afw-pitch__centerCircle{
    display:none;
  }

  .afw-match-page .afw-lineups-head{
    grid-template-columns:1fr;
  }

  .afw-match-page .afw-pitch__p{ max-width:100%; }
}

@media (max-width:768px){
  .afw-ts__kpis{
    grid-template-columns:1fr;
    gap:12px;
  }

  .afw-ts__row{
    grid-template-columns:30px 0.8fr 30px;
    gap:10px;
  }

  .afw-ts__mini{ grid-template-columns:0.8fr; }
  .afw-ts__mini > div{ justify-content:flex-start; }
}

@media (max-width:720px){
  .afw-match-hero{
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    gap:10px;
    padding:12px 0 4px;
  }

  .afw-match-hero__team{
    gap:6px;
    max-width:140px;
  }

  .afw-match-hero__logo{
    width:40px;
    height:40px;
    flex:0 0 40px;
  }

  .afw-match-hero__logo img{
    width:40px;
    height:40px;
  }

  .afw-match-hero__name{
    font-size:16px;
    max-width:120px;
    -webkit-line-clamp:2;
  }

  .afw-match-hero__center{ min-width:120px; }
  .afw-match-hero__center .afw-page-title{ font-size:34px; }
  .afw-match-hero__center .afw-page-subtitle{ font-size:12px; }
}

@media (max-width:600px){
  .afw-standings__row{
    grid-template-columns:30px 1fr 35px 35px 35px 35px 40px 40px;
    font-size:13px;
  }
}

@media (max-width:520px){
  .afw-page-title{
    font-size:clamp(18px, 7vw, 26px);
    line-height:1.15;
  }

  .afw-page-subtitle{
    font-size:14px;
    gap:8px;
    margin:0 0 14px 0;
  }

  .afw-meta-row{ margin:10px 0 14px; }
  .afw-pill{ font-size:14px; line-height:1.25; }

  .afw-tabs{ gap:8px; }

  .afw-dates__top{ font-size:13px; gap:8px; }
  .afw-dates__row{ gap:4px; }
  .afw-dates__nav{ min-width:40px; }
  .afw-dates__nav .w-btn.us-btn-style_3{
    width:40px;
    min-width:40px;
    height:40px;
    min-height:40px;
  }
  .afw-date-pill.w-btn.us-btn-style_3{
    height:40px;
    min-height:40px;
    padding:0 10px !important;
  }

  .afw-match{ padding:16px 16px; }
  .afw-team__name{ font-size:16px; line-height:1.15; }
  .afw-match__right{ width:92px; }
  .afw-score,
  .afw-time{ font-size:22px; }

  .afw-sideBlock{ padding:12px 10px; }
  .afw-sideItem{ padding:8px 9px; }
  .afw-pinBtn{ width:32px; height:32px; }
  .afw-sideCount{ font-size:11px; }
  .afw-league__name{ font-size:14px; }
  .afw-league__meta { font-size:12px; }
  .afw-league__logo { width: 60px;
    height: 60px;}

  .afw-h2h-card{ padding:8px 8px; }
  .afw-h2h-card__row{ gap:8px; }
  .afw-h2h-team{ gap:8px; }
  .afw-h2h-team__logo{
    width:34px;
    height:34px;
    flex:0 0 34px;
  }
  .afw-h2h-team__logo img{
    width:34px;
    height:34px;
  }
  .afw-h2h-team__name{ font-size:12px; line-height:1.1; }
  .afw-h2h-score{ min-width:80px; padding:0 8px; }
  .afw-h2h-score__val{ font-size:18px; }
  .afw-h2h-score__bottom{ font-size:11px; }

  .afw-lu2-player{
    padding:12px 14px;
    grid-template-columns:44px minmax(0,1fr) 38px;
    gap:10px;
  }

  .afw-lu2-player__num{
    width:44px;
    height:32px;
    font-size:13px;
  }

  .afw-lu2-player__photo,
  .afw-lu2-player__photo img{
    width:38px;
    height:38px;
  }

  .afw-lu2-player__name{ font-size:14px; }

  .afw-match-page .afw-ev-item{
    min-height:48px;
    padding:9px 10px;
    gap:10px;
  }

  .afw-match-page .afw-ev-item__time{
    width:48px;
    flex-basis:48px;
    font-size:16px;
  }

  .afw-pr-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .afw-pr-pill{
    width:100%;
    justify-content:space-between;
  }

  .afw-pr-grid{ grid-template-columns:1fr; }
}

@media (max-width:480px){
  .afw-squad__row{
    grid-template-columns:44px 1fr 56px;
    gap:10px;
    padding:10px 10px;
  }
}

@media (max-width:1024px){
  .afw-matchesLayout{
    flex-direction:column;
    gap:16px;
  }

  .afw-matchesSidebarToggle{ display:inline-flex; }

  .afw-matchesSidebar{
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    left:0;
    width:100%;
    min-width:100%;
    max-width:100%;
    height:100dvh;
    flex:none;
    z-index:9999;
    background:#111111;
    transform:translateY(100%);
    transition:transform .24s ease;
    display:flex;
    flex-direction:column;
    padding:0;
    overflow:hidden;
  }

  .afw-matchesSidebar.is-open{ transform:translateY(0); }

  .afw-matchesSidebar__mobileHead{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 16px;
    border-bottom:1px solid rgba(255,255,255,.08);
    background:#111111;
    flex:0 0 auto;
  }

  .afw-matchesSidebar__scroll{
    flex:1 1 auto;
    overflow-y:auto;
    overflow-x:hidden;
    padding:12px;
    -webkit-overflow-scrolling:touch;
  }

  body.afw-sidebar-open{ overflow:hidden; }
}
