
/* MEGAWEB RADIO V3 — mobile resilience layer */
*,*::before,*::after{box-sizing:border-box}
html{max-width:100%;overflow-x:clip;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{max-width:100%;overflow-x:clip}
img,video,iframe,svg{max-width:100%}
img{height:auto}
button,input,textarea,select{max-width:100%}
a,button{touch-action:manipulation}
:where(.wrap,.container,main,section,article,aside,header,footer,nav){min-width:0}
:where(h1,h2,h3,p,a,span,strong,small){overflow-wrap:break-word}
@media(max-width:767px){
  body{font-size:clamp(14px,3.8vw,16px)}
  .wrap,.container{width:calc(100% - 28px)!important;max-width:100%!important;margin-inline:auto}
  .hero{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
  .hero>*{min-width:0;max-width:100%}
  .hero h1{font-size:clamp(30px,9vw,48px)!important;line-height:1.08;white-space:normal!important}
  .hero-art{width:100%;min-width:0}
  .hero-art img{max-height:290px;object-fit:cover}
  .v3-highlights,.portal-grid,.solutions,.show-grid,.shows-grid,.footer-grid{grid-template-columns:minmax(0,1fr)!important}
  .v3-highlights>*{grid-column:auto!important}
  .panel,.show-card,.episode-row{min-width:0;max-width:100%}
  .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .topic-grid>*{min-width:0}
  input,select,textarea{font-size:16px!important}
  button,.btn,[role=button]{min-height:42px}
  .live-panel{max-width:100%;overflow:hidden}
  .live-panel>*{min-width:0}
  #podcasts,#programmes,.contact-section,.mission{overflow:hidden}
  .footer-top{gap:20px}
}
@media(max-width:380px){
  .wrap,.container{width:calc(100% - 20px)!important}
  .topic-grid{gap:8px!important}
  .hero{padding:12px!important}
  .v3-highlights article{padding:15px}
}
@media(min-width:768px) and (max-width:1024px){
  .v3-highlights{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v3-highlights>*:last-child{grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* Additional Android / small-screen safeguards */
:where(a,button,input,select,textarea):focus-visible{outline:3px solid #59e6ef;outline-offset:3px}
button:disabled{cursor:not-allowed;opacity:.6}
@media(max-width:767px){.mobile-dock{padding-bottom:max(8px,env(safe-area-inset-bottom,0px))}.mobile-dock a,.mobile-dock button{min-width:0;overflow-wrap:anywhere}.episode-row{overflow:hidden}.episode-info{min-width:0}.episode-button{flex-shrink:0}#audioDock{max-width:100vw;box-sizing:border-box}input[type=search]{min-width:0}}
