/* Mobile-only presentation; desktop geometry and playback state are unchanged. */
@media(max-width:700px){
 html[data-palette] body{background:var(--a-background)}
 header{padding:14px 18px;border-bottom:0;gap:10px}header strong{font-size:12px;letter-spacing:1.6px}header>div>span{font-size:8px;letter-spacing:2px}header .mark{font-size:26px}header .badge{border:0;font-size:8px;opacity:.65;padding:0}
 main{padding:4px max(14px,env(safe-area-inset-right)) calc(104px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
 #dashboard>nav{flex-wrap:nowrap;overflow-x:auto;gap:4px;padding:4px;border:1px solid var(--a-border);border-radius:16px;margin-bottom:18px;scrollbar-width:none}
 #dashboard>nav>button{flex:0 0 auto;min-height:42px;padding:10px 13px;border-radius:12px;white-space:nowrap;font-size:12px}
 #dashboard>nav #logout{flex-basis:auto;font-size:11px;text-align:center}
 #live .icon-rail{position:fixed;bottom:0;left:0;right:0;z-index:15;width:100%;border:0;border-top:1px solid var(--a-border);border-radius:0;padding:8px max(10px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:var(--a-surface);box-shadow:0 -8px 30px #0002;gap:4px}
 #live .icon-rail button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;flex:1;min-width:0;width:auto;height:49px;font-size:22px;background:transparent;border-radius:12px}
 #live .icon-rail button::after{content:attr(title);font-size:9px;font-weight:500;white-space:nowrap;letter-spacing:.2px}
 #live .icon-rail button[aria-expanded=true]{background:var(--a-programme)}
 #live:has(#wall.expanded) .icon-rail{display:none}
 #wall:not(.expanded):not(:fullscreen){border-radius:16px;box-shadow:0 10px 28px #0003;overflow:hidden}
 #player-placeholder{font-size:13px;background:radial-gradient(ellipse at center,var(--a-surface),#080808);color:#c6c6c6}
 .preview-stack>.toolbar{flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:3px 0;margin:9px 0;scrollbar-width:none}
 .preview-stack>.toolbar>button{flex:0 0 auto;border-radius:10px;min-height:44px;padding:10px 13px;white-space:nowrap}
 .preview-stack>.toolbar>#fullscreen{width:auto;min-width:100px;margin-left:auto}
 #player-controls{border:1px solid var(--a-border);border-radius:12px;padding:0 10px}
 #player-controls>summary{font-size:12px;padding:12px 4px;min-height:44px}
 #player-controls[open]{padding-bottom:10px}
 .watch{gap:16px}.watch-info{padding:2px 2px 12px;border-bottom:1px solid var(--a-border)}
 html[data-palette] .watch h1{font-size:24px;line-height:1.15;letter-spacing:-.7px}
 .watch-info #playing-programme{font-size:13px;line-height:1.5;margin-top:8px}
 .watch-info #playback-status,.watch-info #stream-health{font-size:11px;line-height:1.4;color:var(--a-muted)}
 .metadata-feature{gap:12px;margin-top:12px}.metadata-feature img{width:66px;flex-basis:66px;max-height:100px;border-radius:8px}.metadata-feature h3{margin:0 0 5px;font-size:17px}.metadata-feature p{-webkit-line-clamp:3;font-size:12px;line-height:1.5}.metadata-feature small{font-size:11px}
 .guide-section{padding-top:18px}.guide-section>.toolbar:first-child{gap:6px}.guide-section>.toolbar h2{flex-basis:100%;font-size:21px;letter-spacing:-.5px;margin-bottom:6px}
 .guide-section>.toolbar:first-child button{font-size:11px;padding:9px 12px;border-radius:20px;min-height:44px}
 #search{order:2;border-radius:14px;padding:13px 15px;min-height:48px;margin-top:4px;font-size:16px}
 .guide-section>.toolbar:nth-child(2){gap:5px;margin-top:14px}.guide-section>.toolbar:nth-child(2) button{padding:9px 12px;font-size:12px;border-radius:10px}#guide-date{width:auto;flex:1;text-align:right;font-size:10px;color:var(--a-muted)}
 .guide-heading,.guide-row{grid-template-columns:116px minmax(0,1fr);gap:4px}.guide-heading{font-size:9px;letter-spacing:.3px;margin-top:16px}
 html[data-palette] .guide-row .channel-name{font-size:12px;line-height:1.25;padding:4px;overflow-wrap:normal}
 .channel-cell .favorite{width:32px;min-width:32px;font-size:21px}.channel-logo{width:23px;height:20px;margin-right:4px}
 html[data-palette] .guide-row .programme{font-size:12px;line-height:1.25;border-radius:5px;padding:6px}.programme small{font-size:9px}.programme-art{width:23px;height:34px}
 #guide-viewport{height:58dvh;min-height:300px}.pager{font-size:10px;line-height:1.5;gap:6px}
 html[data-palette] .panel,html[data-palette] .stats>div{border-radius:18px}.panel{padding:20px;margin-bottom:16px}.panel h2{letter-spacing:-.5px}html[data-palette] input,html[data-palette] select{font-size:16px;border-radius:12px}
 dialog{max-height:calc(100dvh - 40px);border-radius:20px!important;padding:20px}dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}
 #live>aside{inset:12px auto calc(84px + env(safe-area-inset-bottom)) 12px;border-radius:20px;padding:18px;box-shadow:0 16px 60px #0006}
 .home-card{flex-basis:180px;border-radius:16px!important;padding:12px}.home-card .programme-art{height:155px}.home-cards{gap:10px}
 #message{bottom:calc(88px + env(safe-area-inset-bottom));border-radius:14px;z-index:40}
}
@media(max-width:360px){.guide-heading,.guide-row{grid-template-columns:102px minmax(0,1fr)}#guide-date{flex-basis:100%;text-align:left}.channel-logo{display:none}}
@media(max-width:700px){
 .preview-stack>.toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:6px}
 .preview-stack>.toolbar>button{min-width:0;width:100%;padding:10px 6px;font-size:12px}
 .preview-stack>.toolbar>#fullscreen{min-width:0;width:100%;margin-left:0}
 .preview-stack>.toolbar>#live-offset:empty{display:none}
 #live .icon-rail button::after{font-size:10px}
}
@media(max-width:700px){#show-groups::after{content:'Groups'!important}#rail-wall::after{content:'Wall'!important}}
