/* Mobile home improvements + bottom nav. Phones only; desktop is untouched. */
.mnav{display:none}
@media (max-width:640px){
  /* 1) Live match cards: 2 per row, compact, max 4 per tab */
  [data-live-tabs] .match-center{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  [data-live-tabs] .match-center > .match-card:nth-child(n+6){display:none}
  [data-live-tabs] .match-center__label{font-size:12px}
  [data-live-tabs] .match-card{padding:12px;display:flex;flex-direction:column;min-width:0}
  [data-live-tabs] .match-card__meta{font-size:12px;margin-bottom:8px;gap:6px}
  [data-live-tabs] .match-card__meta > span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  [data-live-tabs] .match-card__teams{flex-direction:column;align-items:stretch;gap:0;flex:1}
  [data-live-tabs] .match-card__vs{display:none}
  [data-live-tabs] .match-card__team{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;font-size:14px;padding:6px 0;min-width:0}
  [data-live-tabs] .match-card__team > span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  [data-live-tabs] .match-card__team strong{font-size:16px;flex:none}
  [data-live-tabs] .match-card__team + .match-card__vs + .match-card__team{border-top:1px dashed var(--light-gray,#e5dfee)}
  [data-live-tabs] .match-card__foot{flex-direction:column;gap:2px;font-size:11.5px;margin-top:8px;padding-top:8px}
  [data-live-tabs] .match-card__foot span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  /* 2) News banner: smaller title on a solid gradient strip, photo stays visible */
  .news-slideshow,.news-slideshow__track{min-height:0 !important;height:clamp(250px,70vw,330px)}
  .news-slideshow .news-slideshow__overlay{padding:46px 14px 30px 14px;background:linear-gradient(0deg,rgba(20,10,32,.93) 0%,rgba(20,10,32,.7) 55%,rgba(20,10,32,0) 100%)}
  .news-slideshow .news-slideshow__overlay h2{font-size:1.02rem !important;line-height:1.3 !important;margin:6px 0 4px !important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .news-slideshow__arrow{width:30px;height:30px;top:34%;font-size:1.1rem}
  .news-slideshow__arrow--prev{left:8px}.news-slideshow__arrow--next{right:8px}
  .news-slideshow__dots{bottom:9px}

  /* 3) Quick links: 2 columns x 3 rows */
  .hero-quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;height:auto}
  .quick-link-btn{flex-direction:column;justify-content:center;text-align:center;gap:8px;padding:16px 10px;min-height:104px}
  .quick-link-btn__icon{width:44px;height:44px;font-size:1.3rem}
  .quick-link-btn__label{flex:none;font-size:14px;line-height:1.25}
  .quick-link-btn__arrow{display:none}
}

/* 4) Bottom navigation */
@media (max-width:820px){
  body.has-mnav{padding-bottom:calc(62px + env(safe-area-inset-bottom))}
  body.has-mnav .mnav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:8000;background:var(--white,#fff);border-top:1px solid var(--light-gray,#e5dfee);box-shadow:0 -4px 18px rgba(53,28,79,.10);padding:0 4px env(safe-area-inset-bottom);transition:transform .25s ease}
  body.has-mnav .mnav.is-hidden{transform:translateY(110%)}
  .mnav__i{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:58px;background:none;border:0;padding:0;font:inherit;font-size:11px;font-weight:600;color:var(--text-muted,#6b5c80);text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative}
  .mnav__i svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .mnav__i.is-active{color:var(--primary-purple,#563477)}
  .mnav__i.is-active::before{content:'';position:absolute;top:0;left:30%;right:30%;height:3px;border-radius:0 0 3px 3px;background:var(--primary-purple,#563477)}
  .mnav__i.is-active svg{stroke-width:2.2}
  [data-theme="dark"] .mnav__i.is-active{color:var(--light-purple,#A56AD6)}
  [data-theme="dark"] .mnav__i.is-active::before{background:var(--light-purple,#A56AD6)}
  body.has-mnav .cookie-banner{bottom:calc(70px + env(safe-area-inset-bottom))}
  body.has-mnav .pwa-banner{bottom:calc(70px + env(safe-area-inset-bottom))}
}

/* ---- Search icon in the header (phones/tablets, next to the menu button) ---- */
.top-search-ico{display:none;align-items:center;justify-content:center;width:40px;height:40px;margin-left:auto;color:var(--text-dark,#2b2036)}
.top-search-ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
@media (max-width:900px){.top-search-ico{display:flex}.top-search-ico + .nav-toggle{margin-left:0}}

@media (max-width:640px){
  /* ---- Compact header ---- */
  .utility-bar .container{padding-top:3px;padding-bottom:3px;gap:8px}
  .utility-bar__right{gap:8px}
  .utility-bar__left a,.utility-bar__right a{min-height:30px}
  .translate-widget .goog-te-combo{max-width:112px;padding:3px 4px !important;font-size:13px !important}
  .sports-pill-bar__inner{padding-top:4px;padding-bottom:4px;gap:6px}
  .sports-pill{min-height:32px !important;padding:4px 11px;font-size:13px;display:inline-flex;align-items:center}
  .main-header .container{padding-top:2px;padding-bottom:2px;gap:4px}
  .brand img{height:32px}
  .nav-toggle{padding:10px}
  .ticker-badge{font-size:11px;padding:4px 8px}
  .ticker-track,.ticker-items{height:32px}
  .ticker-items a{font-size:13px}
  .ticker-controls button{width:26px;height:26px}
  .ticker .container{gap:8px}

  /* ---- Home: news section starts straight with the banner ---- */
  body.is-home .home-news-head{display:none}

  /* ---- Home: tighter sections, one-line headings ---- */
  body.is-home .section{padding-top:22px;padding-bottom:22px}
  body.is-home .section-head{flex-wrap:nowrap;align-items:center;margin-bottom:12px;gap:10px}
  body.is-home .section-head h2{font-size:1.2rem;line-height:1.25}
  body.is-home .section-head p{display:none}
  body.is-home .section-head .link-more{font-size:13.5px;flex:none}

  /* ---- Home: card sections become swipe rows ---- */
  body.is-home .card-grid{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 -16px;padding:2px 16px 12px;scroll-padding-left:16px}
  body.is-home .card-grid::-webkit-scrollbar{display:none}
  body.is-home .card-grid > *{flex:0 0 78%;max-width:300px;scroll-snap-align:start;min-width:0}
  body.is-home .card-grid > :only-child{flex-basis:100%;max-width:none}

  /* Event cards (also local events / tournaments): short and tidy */
  body.is-home .local-event-card .ltc__banner{height:118px;min-height:0;aspect-ratio:auto}
  body.is-home .local-event-card .tournament-card__body{padding:11px 12px 12px}
  body.is-home .local-event-card h3{font-size:15px;line-height:1.3;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  body.is-home .local-event-card .ltc__host{font-size:12px;margin:0 0 6px;white-space:nowrap;overflow:hidden}
  body.is-home .local-event-card .ltc__host > span{overflow:hidden;text-overflow:ellipsis}
  body.is-home .local-event-card .ltc__host-logo{width:20px;height:20px}
  body.is-home .local-event-card .ltc__chips{display:block;font-size:12px;line-height:1.5;color:var(--text-muted);max-height:3em;overflow:hidden}
  body.is-home .local-event-card .ltc__chip{display:inline;background:none;padding:0;border:0;font-size:12px}
  body.is-home .local-event-card .ltc__chip + .ltc__chip::before{content:' · '}

  /* Directory cards: academies, coaches, facilities */
  body.is-home .profile-card__img{height:120px;min-height:0;aspect-ratio:auto}
  body.is-home .profile-card__body{padding:11px 12px 13px}
  body.is-home .profile-card .sport-tag{display:block;font-size:11px;line-height:1.3;margin:0 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.is-home .profile-card h3{font-size:15px;line-height:1.3;margin:0 0 3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  body.is-home .profile-card .loc{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.is-home .athlete-card__photo{aspect-ratio:1/1}
}
