
/* LSD RADIO RESPONSIVE V453-R2 */
html{
  width:100%;
  min-width:0;
  min-height:100%;
  overflow-x:clip;
  -webkit-text-size-adjust:100%;
}
body{
  width:100%;
  min-width:0;
  min-height:100dvh;
  margin:0;
  overflow-x:clip;
}
*,*::before,*::after{box-sizing:border-box}
img,video,iframe,canvas,svg{max-width:100%}
img,video{height:auto}
.app-shell,.main-content,.page{min-width:0}
input,select,textarea,button{max-width:100%}

/* MOVIL */
@media(max-width:699px){
  .app-shell{
    width:100%!important;
    max-width:760px!important;
  }
  .main-content{
    padding-left:max(10px,env(safe-area-inset-left))!important;
    padding-right:max(10px,env(safe-area-inset-right))!important;
  }
  .messages-list{
    height:min(310px,46dvh)!important;
  }
  .modal-card{
    max-width:100%!important;
    max-height:92dvh!important;
  }
}

/* TABLET */
@media(min-width:700px) and (max-width:1023px){
  .app-shell{
    width:min(calc(100% - 24px),980px)!important;
    max-width:980px!important;
  }
  .main-content{
    padding-left:24px!important;
    padding-right:24px!important;
  }
  .station-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .game-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .bottom-nav{
    width:min(calc(100% - 24px),940px)!important;
  }
  .mini-player{
    width:min(calc(100% - 32px),920px)!important;
  }
  .modal-card{
    width:min(calc(100% - 32px),860px)!important;
    border-radius:26px!important;
    margin-bottom:14px;
  }
}

/* PC */
@media(min-width:1024px){
  body{
    font-size:clamp(14px,.82vw,18px);
  }
  .app-shell{
    width:min(calc(100% - 40px),1440px)!important;
    max-width:1440px!important;
    min-height:100dvh;
  }
  .main-content{
    padding:
      22px
      clamp(28px,3vw,52px)
      200px!important;
  }
  .station-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:clamp(12px,1.2vw,20px)!important;
  }
  .game-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:clamp(12px,1.2vw,20px)!important;
  }
  .hero-card{
    min-height:clamp(290px,34vh,480px)!important;
  }
  .bottom-nav{
    width:min(calc(100% - 64px),1180px)!important;
    bottom:14px!important;
    padding:10px 16px!important;
    border:1px solid rgba(153,144,255,.20)!important;
    border-radius:20px!important;
    box-shadow:0 15px 50px rgba(0,0,0,.42);
  }
  .bottom-nav button{
    min-height:56px;
    border-radius:14px;
  }
  .bottom-nav span{
    font-size:clamp(21px,1.45vw,28px)!important;
  }
  .bottom-nav small{
    font-size:clamp(9px,.65vw,12px)!important;
  }
  .mini-player{
    width:min(calc(100% - 64px),1180px)!important;
    min-height:72px!important;
    bottom:94px!important;
    grid-template-columns:54px minmax(0,1fr) minmax(70px,auto) 52px!important;
    padding:9px 14px!important;
  }
  .modal-layer{
    align-items:center!important;
    padding:24px!important;
  }
  .modal-card{
    width:min(920px,calc(100vw - 64px))!important;
    max-height:calc(100dvh - 56px)!important;
    border-radius:28px!important;
  }
  .messages-list{
    height:clamp(380px,46dvh,620px)!important;
  }
  .visuals-panel,
  .visuals-panel canvas{
    min-height:clamp(600px,68dvh,850px)!important;
    height:clamp(600px,68dvh,850px)!important;
  }
  .visuals-controls{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    left:20px!important;
    right:20px!important;
  }
  .visuals-actions{
    left:20px!important;
    right:20px!important;
  }
}

/* PC GRANDE / TV 1080p */
@media(min-width:1440px){
  .app-shell{
    width:calc(100% - 64px)!important;
    max-width:1600px!important;
  }
  .main-content{
    padding-left:clamp(40px,4vw,72px)!important;
    padding-right:clamp(40px,4vw,72px)!important;
  }
  .game-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  .bottom-nav,.mini-player{
    width:min(calc(100% - 100px),1320px)!important;
  }
  .modal-card{
    width:min(1040px,calc(100vw - 120px))!important;
  }
}

/* TV / 4K */
@media(min-width:1920px){
  body{
    font-size:clamp(17px,.8vw,22px);
  }
  .app-shell{
    width:92vw!important;
    max-width:1880px!important;
  }
  .main-content{
    padding:
      32px
      clamp(60px,4vw,96px)
      230px!important;
  }
  .hero-card{
    min-height:clamp(380px,38vh,600px)!important;
  }
  .bottom-nav{
    width:min(88vw,1500px)!important;
    border-radius:24px!important;
    padding:13px 22px!important;
  }
  .bottom-nav button{min-height:70px}
  .bottom-nav span{font-size:30px!important}
  .bottom-nav small{font-size:13px!important}
  .mini-player{
    width:min(88vw,1500px)!important;
    min-height:86px!important;
    bottom:112px!important;
    border-radius:22px!important;
  }
  .modal-card{
    width:min(1180px,86vw)!important;
    padding:26px!important;
  }
  .messages-list{
    height:clamp(480px,48dvh,760px)!important;
  }
  .visuals-panel,
  .visuals-panel canvas{
    min-height:clamp(700px,70dvh,1000px)!important;
    height:clamp(700px,70dvh,1000px)!important;
  }
}

/* TV horizontal / pantalla baja */
@media(orientation:landscape) and (max-height:650px){
  .main-content{padding-bottom:150px!important}
  .bottom-nav button{min-height:42px!important}
  .mini-player{
    min-height:54px!important;
    bottom:58px!important;
  }
  .visuals-panel,
  .visuals-panel canvas{
    height:calc(100dvh - 20px)!important;
    min-height:calc(100dvh - 20px)!important;
  }
}

/* TOUCH */
@media(pointer:coarse){
  button,a,input,select,textarea{min-height:44px}
}

/* TV / TECLADO / CONTROL REMOTO */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
body.lsd-tv-nav button:focus,
body.lsd-tv-nav a:focus,
body.lsd-tv-nav [tabindex]:focus{
  outline:3px solid #22e4ff!important;
  outline-offset:4px!important;
  box-shadow:
    0 0 0 2px #050712,
    0 0 26px rgba(34,228,255,.78)!important;
}
body.lsd-tv-nav .bottom-nav button:focus{
  transform:translateY(-3px) scale(1.04);
}
