html,body,#app{width:100%;max-width:100%;overflow-x:hidden}
.app-shell,.topbar,.bottom-nav{transition:width .22s ease,left .22s ease}
.pages{width:100%;min-width:0}
.page{width:100%;min-width:0}
.match-list,.match-card,.match-teams{min-width:0}

@media(min-width:600px){
  .app-shell{width:min(100%,780px)}
  .topbar,.bottom-nav{width:min(100%,780px)}
  .page{padding:20px}
  .hero{min-height:260px;padding:34px 30px}
  .hero h1{font-size:38px}
  .hero p{font-size:11px;max-width:330px}
  .home-page>.match-list,.streams-page>.match-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .fixture-strip article{min-width:285px}
  .match-summary{gap:10px}
  .match-summary article{min-height:112px}
  .player-overlay .video-wrap,.player-overlay .now-playing{width:min(calc(100% - 32px),1000px)}
}

@media(min-width:900px){
  body{padding:16px}
  .app-shell{
    width:min(calc(100% - 32px),1180px);
    min-height:calc(100vh - 32px);
    padding:88px 24px 34px 110px;
    border:1px solid var(--line);
    border-radius:24px;
    overflow:hidden;
  }
  .topbar{
    top:16px;
    width:min(calc(100% - 32px),1180px);
    height:76px;
    padding:12px 22px;
    border-radius:24px 24px 0 0;
  }
  .topbar .avatar,.topbar .header-brand{width:46px;height:46px}
  .brand b{font-size:18px}
  .brand small{font-size:8px}
  .bottom-nav{
    top:108px;
    bottom:auto;
    left:max(26px,calc(50% - 572px));
    transform:none;
    width:76px;
    height:auto;
    min-height:238px;
    padding:12px 8px;
    grid-template-columns:1fr;
    grid-template-rows:repeat(3,1fr);
    gap:8px;
    border:1px solid var(--line);
    border-radius:20px;
    box-shadow:0 18px 45px #0005;
  }
  .bottom-nav button{min-height:64px;border-radius:14px}
  .bottom-nav button>.nav-icon{width:42px;height:34px}
  .page{padding:20px 12px}
  .hero{min-height:300px;padding:46px 42px}
  .hero h1{font-size:48px}
  .hero p{font-size:12px;max-width:390px}
  .hero .pitch{width:330px;height:330px;right:-50px;bottom:-100px}
  .announcement{padding:16px}
  .home-page>.match-list,.streams-page>.match-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .match-card{min-height:94px}
  .match-teams strong{font-size:12px}
  .streams-page .page-head h1{font-size:36px}
  .streams-page .search{max-width:620px}
  .filter{flex-wrap:wrap}
  .profile-page{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);gap:16px;align-items:start}
  .profile-page>.profile-hero{grid-column:1/-1}
  .profile-page>.panel{margin:0}
  .profile-hero{padding:26px}
  .panel{padding:18px}
  .player-overlay header{padding-inline:max(18px,calc((100% - 1180px)/2))}
  .player-overlay .video-wrap,.player-overlay .now-playing{width:min(calc(100% - 48px),1180px)}
}

@media(min-width:1280px){
  .home-page>.match-list,.streams-page>.match-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hero h1{font-size:52px}
}

@media(max-width:420px){
  .page{padding:11px}
  .hero{min-height:205px;padding:23px 17px;border-radius:18px}
  .hero h1{font-size:28px}
  .hero p{max-width:215px}
  .match-summary{gap:6px}
  .match-summary article{padding-inline:9px}
  .summary-icon{left:9px}
  .section-title{margin-top:18px}
  .fixture-strip article{min-width:225px}
  .modal{padding:20px 16px}
  .profile-hero{padding:14px}
  .big-avatar{width:68px;height:68px}
}

@media(max-width:350px){
  .brand b{font-size:12px}
  .brand small{font-size:6px}
  .topbar{padding-inline:9px;gap:8px}
  .avatar{width:36px;height:36px}
  .header-brand{width:38px;height:38px}
  .hero h1{font-size:25px}
  .match-summary article{min-width:0}
  .match-summary article>b{font-size:17px}
  .match-summary article small{font-size:7px}
  .quiet-hours{grid-template-columns:1fr 1fr}
}

@media(max-height:540px) and (orientation:landscape){
  .player-overlay header{flex-basis:54px;height:54px}
  .player-overlay .video-wrap{width:min(78vw,900px);max-height:calc(100vh - 58px)}
  .player-overlay .now-playing{display:none}
}
