:root{color-scheme:dark;--bg:#09090c;--panel:#17171e;--surface:#202029;--line:#34303f;--ink:#f6f3ec;--muted:#aba6b7;--accent:#9435f5;--light:#c49afa;--warn:#ead098;--radius:24px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,.button{min-height:46px;border:1px solid var(--line);border-radius:13px;padding:10px 17px;background:var(--surface);color:var(--ink);cursor:pointer;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:9px;font-weight:650;transition:border-color .15s,background .15s}button:hover,.button:hover{border-color:var(--light);background:#2a2235}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--light);outline-offset:3px}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover{background:#a24efa}.ghost{background:transparent}.small{min-height:37px;padding:6px 12px;font-size:13px}.subtle{color:var(--muted)}.accent{color:var(--light)}.eyebrow{text-transform:uppercase;letter-spacing:.15em;font-size:11px;font-weight:800;color:var(--light)}.caps{text-transform:uppercase;letter-spacing:.08em;font-size:11px}.row{display:flex;gap:12px;align-items:center}.wrap{flex-wrap:wrap}.between{justify-content:space-between}.grow{flex:1}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}header{border-bottom:1px solid #25222c;background:#0c0c10}.top{max-width:1260px;margin:auto;padding:15px 28px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}.brand img{width:52px;height:52px;border-radius:12px}.brand strong{font-size:22px;letter-spacing:-.8px;line-height:1.15}.brand span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.19em;color:var(--muted);margin-top:4px}.toplinks{display:flex;align-items:center;gap:20px}.pill{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:30px;padding:7px 11px}.dot{width:6px;height:6px;border-radius:50%;background:var(--light)}main{max-width:1260px;margin:auto;padding:28px}.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:26px}.hero h1{font-size:clamp(34px,4.4vw,58px);line-height:1.08;letter-spacing:-2.5px;margin:8px 0 9px;font-weight:780}.hero p{margin:0;color:var(--muted);font-size:16px}.hero-note{max-width:230px;border-left:2px solid var(--accent);padding-left:16px;font-size:12px;color:var(--muted)}.layout{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);gap:20px;align-items:start}.card{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);overflow:hidden}.cardhead{padding:17px 22px;display:flex;justify-content:space-between;align-items:center;gap:10px}.cardhead h2{font-size:14px;letter-spacing:.03em;margin:0}.video{position:relative;width:100%;aspect-ratio:16/9;min-height:202px;background:#050506}.video iframe{display:block;width:100%;height:100%;border:0;min-height:202px}.placeholder{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;text-align:center;padding:20px;background:radial-gradient(ellipse at 50% 60%,#21122d 0,#0d0b11 55%,#08080a 100%)}.placeholder img{width:90px;height:90px;border-radius:20px}.placeholder p{max-width:410px;font-size:13px;color:var(--muted);margin:0}.ytmark{font-size:12px;font-weight:700;color:#e9e4ed}.playmeta{padding:22px}.playmeta h2{font-size:25px;line-height:1.2;letter-spacing:-.7px;margin:6px 0}.playmeta p{margin:4px 0;color:var(--muted)}.songmeta{min-height:87px}.transport{margin-top:22px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.transport .play{min-width:156px}.volume{display:flex;gap:10px;align-items:center;flex:1;min-width:165px;max-width:240px}.volume input{min-width:65px;width:100%;accent-color:var(--accent)}.timebar{display:flex;gap:12px;align-items:center;margin:14px 0 0;font-variant-numeric:tabular-nums;color:var(--muted);font-size:11px}.timebar progress{appearance:none;border:0;width:100%;height:4px;border-radius:5px;overflow:hidden;background:#35303e}.timebar progress::-webkit-progress-bar{background:#35303e}.timebar progress::-webkit-progress-value{background:var(--accent)}.timebar progress::-moz-progress-bar{background:var(--accent)}.playerfoot{padding:13px 22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:14px;font-size:11px;color:var(--muted)}a{color:var(--light)}.queue{list-style:none;padding:0;margin:0}.queue li{border-top:1px solid #2d2935}.track{display:flex;gap:13px;align-items:center;width:100%;text-align:left;border:0;border-radius:0;background:transparent;padding:16px 21px;min-height:74px;font-weight:400;justify-content:flex-start}.track:hover{background:#231c2e}.track.current{background:#281837;border-left:3px solid var(--accent);padding-left:18px}.track .num{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:20px}.track .name{font-size:13px;font-weight:700;line-height:1.35;display:block}.track .artist{font-size:12px;color:var(--muted);display:block;margin-top:3px}.track .badge{font-size:9px;color:var(--warn);margin-top:5px;display:block}.queuefoot{padding:14px 21px;font-size:11px;color:var(--muted);border-top:1px solid var(--line)}.spot{margin-top:18px;padding:22px;border-color:#573079;background:linear-gradient(135deg,#251735,#17171e)}.spot h2{font-size:23px;letter-spacing:-.6px;margin:8px 0}.spot p{font-size:13px;color:var(--muted);margin:8px 0 16px}.spot .skip{width:100%;background:#eee7f7;color:#29133e;border-color:#eee7f7}.spot .skip:disabled{background:#342540;color:#b69fc8;border-color:#5a3974}.spotprogress{height:4px;width:100%;accent-color:var(--accent);margin:8px 0}.lower{margin-top:22px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.lower article{padding:22px}.lower h3{font-size:18px;margin:7px 0}.lower p{font-size:12px;color:var(--muted);margin:8px 0}.notice{border-left:3px solid var(--accent);background:#201729;padding:12px 15px;color:#dcd0e9;font-size:13px;border-radius:5px;margin:14px 0}.warning{border-color:var(--warn);background:#292219;color:#eddbba}.statusline{font-size:12px;color:var(--muted);margin-top:13px;min-height:18px}.statusline.error{color:#f1b2b2}footer{max-width:1260px;margin:auto;padding:20px 28px 32px;display:flex;justify-content:space-between;gap:18px;border-top:1px solid #25222c;color:var(--muted);font-size:11px}dialog{border:1px solid #58416e;border-radius:24px;background:#131219;color:var(--ink);padding:0;width:min(880px,calc(100vw - 24px));max-height:90vh;box-shadow:0 25px 130px #000;overflow:auto}dialog::backdrop{background:#000b}.dialogtop{position:sticky;top:0;background:#16131c;z-index:2;padding:18px 23px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.dialogtop h2{font-size:20px;margin:0;letter-spacing:-.5px}.dialogbody{padding:23px}.tablist{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:22px}.tablist button{font-size:12px;min-height:38px;padding:7px 12px}.tablist button.active{border-color:var(--accent);color:var(--light);background:#291739}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.formgrid .full{grid-column:1/-1}label{display:block;font-size:12px;color:var(--muted);font-weight:600}input:not([type=checkbox]):not([type=range]),select,textarea{width:100%;margin-top:6px;background:#0d0d13;color:var(--ink);border:1px solid #403749;border-radius:10px;padding:11px 12px;min-height:44px}textarea{min-height:170px;resize:vertical;font-family:ui-monospace,monospace;font-size:12px}input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px;flex-shrink:0}.check{display:flex;align-items:center;gap:10px;margin:14px 0;font-size:13px}.help{font-size:12px;line-height:1.6;color:var(--muted)}.sectionline{margin:24px 0 18px;border:0;border-top:1px solid var(--line)}.editrow{border:1px solid var(--line);border-radius:16px;padding:16px;margin:12px 0;background:#18151f}.editrow h3{margin:0 0 12px;font-size:15px}.filelabel{min-height:38px;padding:8px 12px;border-radius:10px;border:1px solid #4b3a5b;display:inline-flex;align-items:center;cursor:pointer;font-size:12px;color:var(--ink);background:#241b2d}.filelabel input{display:none}.filename{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.editrow .row{margin-top:12px}.editrow .formgrid{gap:10px}.statusbox{padding:14px;border:1px solid var(--line);border-radius:12px;margin:12px 0;font-size:12px}.checktable{width:100%;border-collapse:collapse;font-size:12px}.checktable th,.checktable td{text-align:left;padding:12px 8px;border-bottom:1px solid var(--line);vertical-align:top}.checktable select{min-width:125px;font-size:12px;margin:0;padding:8px}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:min(580px,90vw);background:#34233f;border:1px solid #87649d;padding:13px 19px;border-radius:12px;font-size:13px;box-shadow:0 10px 60px #000;z-index:10}.danger{color:#ecb0bc;border-color:#67404b}.dialogactions{display:flex;justify-content:space-between;gap:12px;margin-top:20px;flex-wrap:wrap}
@media(max-width:1020px){.hero-note{display:none}.layout{grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr)}.toplinks{gap:10px}.toplinks .pill{display:none}.transport{gap:8px}.volume{max-width:none}.hero h1{font-size:44px}.lower{grid-template-columns:1fr 1fr}.lower article:last-child{grid-column:1/-1}}
@media(max-width:780px){.layout{grid-template-columns:1fr}.hero h1{font-size:42px;letter-spacing:-1.8px}.top,main{padding-left:18px;padding-right:18px}.toplinks>a{display:none}.lower{grid-template-columns:1fr}.lower article:last-child{grid-column:auto}.queue{max-height:310px;overflow:auto}.formgrid{grid-template-columns:1fr}.formgrid .full{grid-column:auto}.hero{margin-bottom:20px}.toplinks button{padding:9px 12px;font-size:12px}.brand strong{font-size:19px}.brand img{width:43px;height:43px}.playerfoot,footer{flex-wrap:wrap}.checktable th,.checktable td{padding:10px 3px}.dialogbody{padding:17px}.cardhead,.playmeta{padding:18px}.video{min-height:202px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.inline{padding:0;min-height:0;display:inline;border:0;background:none;color:inherit;text-decoration:underline;font-size:inherit;font-weight:inherit;cursor:pointer}.placeholder p a,.placeholder p button{color:#cdb3ed}

aside>.spot{margin:0 0 18px}.queue{max-height:390px;overflow:auto}
@media(min-width:781px) and (max-height:900px){.top{padding-top:10px;padding-bottom:10px}.brand img{width:44px;height:44px}main{padding-top:18px}.hero{margin-bottom:18px}.hero h1{font-size:42px}.hero .eyebrow{font-size:10px}.hero p{font-size:14px}.video{aspect-ratio:auto;height:260px}.placeholder{gap:6px;padding:12px}.placeholder img{width:40px;height:40px;border-radius:10px}.placeholder p{font-size:12px}.playmeta{padding:17px 22px}.songmeta{min-height:65px}.playmeta h2{font-size:23px}.transport{margin-top:12px}.timebar{margin-top:9px}.cardhead{padding-top:13px;padding-bottom:13px}.queue{max-height:300px}.spot{padding:18px}.spot h2{font-size:20px}}
@media(max-width:780px){.video{min-height:260px}.placeholder{gap:7px;padding:12px}.placeholder img{width:42px;height:42px;border-radius:12px}.placeholder p{font-size:12px}}

/* Tablet release 0.4.4 */
[hidden]{display:none!important}
.contentlist{padding-left:22px;line-height:1.6}.contentlist li{margin-bottom:12px}
#pairingHost section{margin:0!important}#pairingHost p{overflow-wrap:anywhere}
#contentStatus,#activeContent{overflow-wrap:anywhere}#publicationPreview button{margin-top:14px}
#spotCTA{margin-top:12px}.tablist{flex-wrap:wrap}

/* Full-height video with a separate control rail. The queue gives up space
   first, so playback controls stay visible as the window changes size. */
html:has(.player-screen){height:100%;scroll-behavior:auto;overflow:clip}
.player-screen{height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:clip}
.player-screen .top{max-width:none;padding:10px 18px;gap:18px;min-height:64px}
.player-screen .brand{flex-shrink:0;gap:9px}
.player-screen .brand img{width:42px;height:42px}
.player-screen .brand strong{font-size:20px}
.player-screen .brand span{font-size:9px;margin-top:2px}
.header-tagline{flex:1;font-size:20px;font-weight:600;letter-spacing:-.5px;margin:0;color:var(--muted)}
.player-screen .toplinks{gap:12px}
.player-screen #openSetup{min-height:44px;font-size:12px;padding:8px 13px;white-space:nowrap}
.player-screen main{width:100%;max-width:none;min-height:0;min-width:0;margin:0;padding:12px 16px 16px}
.player-screen .layout{height:100%;min-height:0;grid-template-columns:minmax(0,1fr) clamp(280px,25vw,360px);gap:12px;align-items:stretch}
.player-screen .card{border-radius:17px;min-width:0;min-height:0}
.player-screen .music-card{display:grid;grid-template-rows:auto minmax(0,1fr)}
.player-screen .cardhead{padding:9px 14px;min-height:34px}
.player-screen .cardhead h2{font-size:11px;letter-spacing:.08em}
.player-screen .ytmark{font-size:11px}
.player-screen .video{height:100%;min-height:0;aspect-ratio:auto;overflow:hidden}
.player-screen .video iframe,.player-screen #youtubePlayer,.player-screen #youtubeStage{width:100%;height:100%;min-height:0}
.player-screen .placeholder{padding:12px;gap:8px;overflow:auto}
.player-screen .placeholder img{width:62px;height:62px;border-radius:14px}
.player-screen .placeholder p{font-size:12px;max-width:430px}
.player-screen .controls-card{align-self:start}
.player-screen .playmeta{padding:12px 14px 8px;background:var(--panel);min-width:0}
.player-screen .songmeta{min-height:0;min-width:0}
.player-screen .songmeta .eyebrow{font-size:9px;display:block;line-height:14px}
.player-screen .songmeta h2{font-size:21px;line-height:25px;letter-spacing:-.5px;margin:3px 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.player-screen .songmeta p{font-size:12px;line-height:18px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-screen .timebar{margin:5px 0 0;line-height:14px;gap:9px}
.player-screen .transport{display:grid;grid-template-columns:minmax(0,1fr);margin-top:9px;gap:5px}
.player-screen .transport .row{display:grid;grid-template-columns:44px minmax(0,1fr) 92px;gap:8px}
.player-screen .transport button{min-height:46px;padding:8px;font-size:15px}
.player-screen .transport .play{min-width:0;padding-inline:4px}
.player-screen #next{min-width:0;gap:6px;white-space:nowrap;color:#f8c5e9;border-color:rgba(236,104,197,.55);background:rgba(231,75,185,.16)}
.player-screen #next:hover{border-color:#ee8dd5;background:rgba(231,75,185,.26)}
.player-screen #next:active{background:rgba(231,75,185,.34)}
.player-screen .volume{width:100%;min-width:0;max-width:none;gap:8px}
.player-screen .volume input{min-width:0;min-height:36px;margin:0}
.player-screen #volumeLabel{min-width:30px;text-align:right}
.player-screen .statusline{margin-top:5px;font-size:11px;line-height:15px;min-height:30px;max-height:30px;overflow:auto;overscroll-behavior:contain}
.player-screen .playerfoot{padding:5px 16px;font-size:10px;line-height:16px;gap:10px;flex-wrap:nowrap}
.player-screen .layout>aside{display:grid;grid-template-rows:auto minmax(160px,1fr);align-content:stretch;min-width:0;min-height:0;gap:12px;overflow-y:auto}
.player-screen aside>.spot{margin:0;padding:14px}
.player-screen .spot .row{gap:6px;flex-wrap:wrap}
.player-screen .spot .eyebrow{font-size:9px;letter-spacing:.09em}
.player-screen .spot h2{font-size:18px;line-height:23px;letter-spacing:-.3px;margin:6px 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.player-screen .spot p{font-size:12px;line-height:17px;margin:6px 0 12px}
.player-screen .spot .skip{min-height:44px;font-size:12px;padding:8px}
.player-screen .spot .skip:disabled{display:none}
.player-screen .spotprogress{display:block;margin:6px 0 10px}
.player-screen #spotCTA{margin-top:8px;min-height:44px;font-size:12px}
.player-screen .queue-card{display:grid;grid-template-rows:auto minmax(0,1fr);height:100%;max-height:280px;align-self:start}
.player-screen .queue{min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#675077 transparent}
.player-screen .queue{overflow-anchor:none}
.player-screen .track.played{color:var(--muted);cursor:default}
.player-screen .queue-state{flex-shrink:0;font-size:12px;color:var(--muted)}
.player-screen .track{min-height:60px;gap:8px;padding:9px 12px}
.player-screen .track.current{padding-left:9px}
.player-screen .track .num{min-width:16px;font-size:10px}
.player-screen .track .grow{min-width:0}
.player-screen .track .name,.player-screen .track .artist{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-screen .track .name{font-size:12px}
.player-screen .track .artist{font-size:11px;margin-top:2px}
.player-screen .track .badge{display:none}
.player-screen .concert-details{padding:9px 0 5px;margin-top:9px;border-top:1px solid var(--line)}
.player-screen .concert-details p{font-size:14px;line-height:1.45;margin:0;color:var(--light);overflow-wrap:anywhere}
.player-screen .concert-details a{display:inline-block;font-size:14px;margin-top:5px}
.player-screen dialog{max-height:calc(100dvh - 24px)}
.player-screen .toast{bottom:auto;top:76px;pointer-events:none}

@media(max-width:1050px){
  .player-screen .toplinks .pill{display:none}
}
@media(max-width:880px) and (orientation:landscape){
  .player-screen .layout{grid-template-columns:minmax(0,1fr) 280px;gap:10px}
  .player-screen main{padding:10px}
  .player-screen aside>.spot{padding:12px}
}
@media(max-height:700px){
  .player-screen .placeholder img,.player-screen .placeholder>strong{display:none}
  .player-screen .placeholder{gap:8px}
  .player-screen .spot p{display:none}
  .player-screen .spot h2{font-size:16px;line-height:20px;margin:4px 0 6px}
  .player-screen aside>.spot{padding:10px 12px}
  .player-screen .playmeta{padding:8px 12px 6px}
  .player-screen .songmeta h2{font-size:18px;line-height:21px}
  .player-screen .layout>aside{gap:8px}
  .player-screen .spotprogress{margin:4px 0}
}
@media(orientation:portrait),(max-width:720px){
  .player-screen .layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 288px;gap:10px}
  .player-screen .layout>aside{grid-template-columns:minmax(0,1fr) minmax(280px,1fr);grid-template-rows:auto minmax(0,1fr);gap:10px}
  .player-screen .controls-card{grid-column:2;grid-row:1 / 3;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between}
  .player-screen .queue-card{grid-column:1;grid-row:1 / 3}
  .player-screen aside>.spot{padding:10px 12px;overflow:auto;overscroll-behavior:contain}
  .player-screen .spot h2{font-size:16px;line-height:20px;margin:4px 0 7px}
  .player-screen .spot p{display:none}
  .player-screen #spotCTA{display:inline-flex;min-height:44px;margin:0 0 0 8px;font-size:11px}
  .player-screen .spot .skip{width:auto;min-height:44px;padding:6px 10px}
  .player-screen .spotprogress{margin:4px 0}
  .player-screen .concert-details{padding:7px 0 3px}
}
@media(max-width:640px){
  .player-screen .top{padding:8px 10px;gap:10px;flex-wrap:wrap}
  .player-screen .brand strong{font-size:18px}
  .player-screen .brand img{width:36px;height:36px}
  .player-screen .brand span{display:none}
  .header-tagline{order:3;flex-basis:100%;font-size:14px;line-height:16px;margin-top:-5px}
  .player-screen .toplinks{margin-left:auto}
  .player-screen main{padding:8px}
  .player-screen .playmeta{padding:7px 10px}
  .player-screen .playerfoot{padding:4px 10px}
  .player-screen .layout{grid-template-rows:minmax(0,1fr) 346px}
  .player-screen .layout>aside{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:8px}
  .player-screen .controls-card{grid-column:1 / -1;grid-row:2}
  .player-screen .queue-card{grid-column:2;grid-row:1}
  .player-screen aside>.spot{grid-column:1;grid-row:1}
  .player-screen .songmeta h2{font-size:18px;line-height:21px;margin:1px 0}
  .player-screen .transport{grid-template-columns:minmax(190px,1fr) minmax(65px,1fr);gap:10px;align-items:center}
  .player-screen .transport .row{grid-template-columns:44px minmax(0,1fr) 92px;gap:5px}
  .player-screen .transport button{font-size:13px}
  .player-screen .volume>span:first-child{display:none}
  .player-screen #volumeLabel{display:none}
  .player-screen .placeholder img,.player-screen .placeholder>strong{display:none}
}
/* Small windows and high browser zoom retain the complete fixed control card. */
@media(max-height:540px),(max-width:640px) and (max-height:740px){
  html:has(.player-screen){height:auto;overflow:auto}
  .player-screen{display:block;height:auto;min-height:100dvh;overflow:visible}
  .player-screen main{padding-bottom:310px}
  .player-screen .layout{display:block;height:auto}
  .player-screen .music-card{display:block}
  .player-screen .video{height:45vh;min-height:220px}
  .player-screen .controls-card{position:fixed;bottom:0;left:0;right:0;z-index:3;border-radius:0;border-top:1px solid var(--line);box-shadow:0 -8px 24px #0006}
  .player-screen .layout>aside{margin-top:10px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:180px}
  .player-screen .queue-card{grid-column:2;grid-row:1}
  .player-screen aside>.spot{grid-column:1;grid-row:1;overflow:auto}
  .player-screen .placeholder{justify-content:flex-start}
}

.phone-control{padding:18px;border:1px solid #7d429f;border-radius:18px;background:#21152c;color:#fff}
.phone-control>h3{margin-top:0}.phone-control p{overflow-wrap:anywhere}
.phone-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}
.phone-card{min-width:0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.phone-card h3{margin-top:0}.phone-card .help{min-height:44px}.phone-card button{font-size:14px}
.phone-control .help{font-size:14px;line-height:1.5}.phone-control select{width:100%}
@media(max-width:600px){.phone-grid{grid-template-columns:1fr}.phone-control{padding:12px}}

.offer-control{margin-top:18px!important}.offer-control .formgrid{margin:16px 0}.offer-control .phone-card p{font-size:14px}.offer-control #offerWinner{font-size:20px}

/* District controls remain reachable on both tablet and phone. */
.district-button{font-size:14px;white-space:normal;text-align:left;max-width:220px;line-height:1.3}
.district-notice p{font-size:14px}.district-notice button{font-size:14px}
@media(max-width:780px){.toplinks{flex-wrap:wrap;justify-content:flex-end;gap:6px}.toplinks .district-button{display:inline-flex;max-width:155px;font-size:14px}.top{gap:8px}.toplinks form button{padding:6px 8px}.header-tagline{display:none}}
/* Approved Radio identity */
.brand-wordmark{display:inline-block;font-family:Arial,Helvetica,sans-serif;font-weight:800;letter-spacing:-.045em;line-height:1.12;background:linear-gradient(90deg,#5b21b6 0%,#8b5cf6 100%);color:#8b5cf6;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.brand-logo{display:block;object-fit:contain;flex-shrink:0}.brand-lockup{display:flex;align-items:center;gap:12px}.brand-lockup .brand-wordmark{font-size:32px}.brand-lockup .brand-logo{width:64px;height:64px}
.player-screen .brand .brand-wordmark{font-size:26px}.brand img{object-fit:contain}

.district-playlist-bar{padding:0 18px 12px;display:grid;gap:5px}.district-playlist-bar[hidden],#adminLink[hidden]{display:none}.district-playlist-bar label{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#bcb5c8)}.district-playlist-bar select{width:100%;min-width:0;padding:8px 10px;font-size:13px}.district-playlist-bar small{font-size:10px;color:var(--muted,#bcb5c8)}

.player-screen .queue-card:has(#districtPlaylistBar:not([hidden])){grid-template-rows:auto auto minmax(0,1fr)}.player-screen .toplinks{flex-wrap:wrap}

/* Phone: the video has its own fixed row; only the details below it scroll.
   Keep a 200px minimum YouTube viewport, including in landscape. */
@media(max-width:767px),(max-width:950px) and (max-height:500px){
  html:has(.player-screen){height:100%;overflow:hidden}
  .player-screen{display:grid;height:100vh;height:100dvh;min-height:0;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
  .player-screen .top{display:grid;grid-template-columns:auto minmax(0,1fr);min-height:0;padding:6px 10px;gap:6px}
  .player-screen .brand img{width:30px;height:30px}
  .player-screen .brand .brand-wordmark{font-size:22px}
  .player-screen .brand span,.player-screen .header-tagline{display:none}
  .player-screen .toplinks{margin:0;gap:4px;justify-content:flex-end;min-width:0}
  .player-screen .toplinks>a{display:none}
  .player-screen .toplinks .district-button{max-width:126px;font-size:12px;padding:5px 7px;min-height:44px}
  .player-screen #openSetup{font-size:12px;padding:5px 7px;min-height:44px}
  .player-screen main{padding:6px 6px max(6px,env(safe-area-inset-bottom));min-height:0;overflow:hidden}
  .player-screen .layout{display:grid;height:100%;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:6px}
  .player-screen .music-card{display:grid;grid-template-rows:auto auto;min-height:0}
  .player-screen .music-card .cardhead{min-height:26px;padding:4px 10px}
  .player-screen .video{height:clamp(200px,56.25vw,260px);min-height:200px;aspect-ratio:auto}
  .player-screen .video iframe,.player-screen #youtubePlayer,.player-screen #youtubeStage{height:100%;min-height:200px}
  .player-screen .placeholder{justify-content:center;gap:6px}
  .player-screen .placeholder img,.player-screen .placeholder>strong{display:none}
  .player-screen .layout>aside{display:flex;flex-direction:column;gap:10px;margin:0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding-bottom:8px;scrollbar-width:thin}
  .player-screen .layout>aside>.card{flex:none;width:100%;height:auto;max-height:none;min-height:0}
  .player-screen .controls-card{position:static;order:0;display:block;border-radius:17px;box-shadow:none;align-self:auto}
  .player-screen aside>.spot{order:1;padding:12px;overflow:visible}
  .player-screen .queue-card{order:1;display:block;align-self:auto}
  .player-screen .queue{height:clamp(204px,32dvh,340px);overflow:auto;max-height:none}
  .player-screen .playmeta{padding:12px}
  .player-screen .songmeta .eyebrow{font-size:12px;line-height:18px}
  .player-screen .songmeta h2{font-size:21px;line-height:1.2;display:block;overflow:visible;margin:3px 0}
  .player-screen .songmeta p{font-size:14px;line-height:1.45;white-space:normal;overflow:visible}
  .player-screen .transport{grid-template-columns:minmax(0,1fr);gap:5px}
  .player-screen .transport .row{grid-template-columns:48px minmax(0,1fr) 100px;gap:8px}
  .player-screen .transport button{font-size:16px;min-height:48px}
  .player-screen .volume{font-size:14px}
  .player-screen .volume>span:first-child,.player-screen #volumeLabel{display:inline}
  .player-screen .statusline{font-size:13px;line-height:1.45;min-height:0;max-height:none;overflow:visible}
  .player-screen .playerfoot{font-size:12px;padding:8px 12px;flex-wrap:wrap}
  .player-screen .spot p{display:block;font-size:14px;line-height:1.45}
  .player-screen .spot .eyebrow{font-size:12px}
  .player-screen .spot h2{display:block;font-size:19px;line-height:1.3}
  .player-screen .spot .skip,.player-screen #spotCTA{font-size:14px;margin:8px 0 0}
  .player-screen .track{padding:8px 12px;min-height:54px}
  .player-screen .track .name{font-size:14px;line-height:1.3;white-space:normal}
  .player-screen .track .artist{font-size:13px;line-height:1.3;margin-top:2px;white-space:normal}
  .player-screen .concert-details{max-height:none;overflow:visible;padding:9px 0 5px}
  .player-screen .concert-details p,.player-screen .concert-details a{font-size:14px;line-height:1.45}
  .player-screen .district-playlist-bar label,.player-screen .district-playlist-bar select{font-size:14px}
  .player-screen .district-playlist-bar small{font-size:12px}
  .player-screen .toast{top:auto;bottom:16px}
}
@media(max-width:950px) and (max-height:500px){
  .player-screen .top{padding-top:2px;padding-bottom:2px}
  .player-screen .music-card .cardhead{display:none}
  .player-screen .video{height:200px}
}

/* One-row header: branding lives in Settings; the district stays on the right. */
.player-screen .top{min-width:0}
.player-screen .toplinks{min-width:0;margin-left:auto;flex-wrap:nowrap;gap:8px}
.player-screen .toplinks form{margin:0}
.player-screen .toplinks button,.player-screen .toplinks .button{min-height:44px;padding:6px 10px;border-radius:11px;font-size:14px;white-space:nowrap}
.player-screen #openSetup{flex-shrink:0;font-size:14px}
.player-screen .district-trigger{min-width:0;max-width:300px;gap:8px;border-color:#675077;background:#201729;text-align:left;justify-content:space-between;border-radius:12px}
.player-screen .district-trigger:hover{border-color:var(--light);background:#2a2235}
#districtHeader{min-width:0;font-size:14px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.district-trigger-action{flex-shrink:0;font-size:14px;color:var(--light)}
.settings-title{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.settings-title .brand-wordmark{font-size:24px}
.settings-title h2{font-size:18px;color:var(--muted)}
.settings-account-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.settings-account-row>div{min-width:0;overflow-wrap:anywhere}
.settings-account-row form{margin:0;flex-shrink:0}
.settings-account-row button{min-height:44px;padding:8px 12px;font-size:14px}
@media(min-width:768px) and (max-width:1100px){.player-screen .header-tagline{display:none}}
.player-screen .statusline[hidden]{display:none}
.player-screen .spot p{display:block;font-size:14px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
.settings-select-field{min-width:0}
.settings-choice{margin-top:6px;min-width:0}
.settings-choice-trigger{width:100%;min-height:44px;padding:10px 12px;justify-content:space-between;text-align:left;background:#0d0d13;border:1px solid #403749;border-radius:10px;font-size:16px;font-weight:400;line-height:1.4}
.settings-choice-trigger>span:first-child{min-width:0;overflow-wrap:anywhere}
.settings-choice-trigger>span:last-child{flex:none;color:var(--light)}
.settings-choice-panel{margin-top:7px;padding:8px;border:1px solid #675077;border-radius:12px;background:#201729}
.settings-choice-panel fieldset{border:0;padding:0;margin:0;min-width:0;max-height:240px;overflow:auto;overscroll-behavior:contain}
.settings-choice-option{display:flex;gap:10px;align-items:center;min-height:44px;padding:10px 8px;border-radius:7px;font-size:16px;font-weight:400;line-height:1.4;cursor:pointer;color:var(--ink)}
.settings-choice-option:has(:checked){background:#362047;color:#e6d3ff}
.settings-choice-option:has(:disabled){opacity:.5;cursor:not-allowed}
.settings-choice-option input[type=radio]{appearance:auto;width:18px;height:18px;min-height:0;margin:0;padding:0;flex:none;accent-color:var(--accent)}
.settings-choice-panel>button{margin-top:6px;width:100%}
.checktable .settings-choice{min-width:140px}
.location-search input[type=search]{margin-top:0;font-size:16px;min-width:0}
.location-search input:focus{outline:2px solid var(--accent);outline-offset:2px}
.location-search-results{margin-top:7px;padding:6px;border:1px solid #675077;border-radius:12px;background:#201729;max-height:260px;overflow:auto;overscroll-behavior:contain}
.location-search-option{display:block;width:100%;min-height:44px;padding:10px;text-align:left;white-space:normal;overflow-wrap:anywhere;border:0;border-radius:7px;background:transparent;color:var(--ink);font-size:16px;font-weight:400;line-height:1.4}
.location-search-option:hover,.location-search-option.active,.location-search-option[aria-selected=true]{background:#362047;color:#e6d3ff}
.location-search-empty{margin:8px}
.rotation-controls{display:flex;gap:8px;min-width:0}
.rotation-controls button{min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:14px}
.rotation-controls [aria-pressed=true]{background:#382044;border-color:#aa6ce8;color:#fff}
.player-screen .queue-card .cardhead{min-height:28px;padding:5px 12px}
.player-screen .queue-card .cardhead h2{font-size:11px;line-height:1.3;letter-spacing:.06em}
.player-screen .queue-card #queueCount{font-size:11px;line-height:1.3;letter-spacing:.04em}
.player-screen .district-playlist-bar{padding:0 12px 7px;gap:3px}
.player-screen .district-playlist-bar small{font-size:12px;line-height:1.3}
.player-screen .rotation-controls{gap:6px}
.player-screen .rotation-controls button{min-height:32px;padding:4px 8px;border-radius:9px;font-size:13px;line-height:1.3;white-space:nowrap}
.player-screen #allSongs{flex-shrink:0}
.player-screen #choosePlaylist{display:block;overflow:hidden;text-overflow:ellipsis}
.playlist-picker{display:grid;gap:6px;padding-top:8px}
.playlist-picker button{text-align:left;justify-content:flex-start;overflow-wrap:anywhere}
.saved-playlists{display:grid;gap:10px;margin:16px 0}
#removeGenreDialog{width:min(360px,calc(100vw - 24px));border-radius:16px}
.player-screen #removeGenreDialog .dialogbody{padding:12px}
#removeGenreError{color:#ecb0bc;font-size:14px;overflow-wrap:anywhere;margin:0 0 8px}
#removeGenreError:empty{display:none}
#removeGenreDialog .dialogactions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0}
#removeGenreDialog .dialogactions button{width:100%;min-height:44px;padding:8px 12px;font-size:14px;white-space:nowrap}
.saved-playlist-row{display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:10px}
.saved-playlist-row>strong,.saved-playlist-row>button{flex:1;min-width:0;overflow-wrap:anywhere;text-align:left}
#playlistForm{margin-top:22px}#playlistName{width:100%;margin-top:6px}
.playlist-tools{margin:12px 0}
.playlist-songs{max-height:330px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;padding:5px 12px}
.playlist-song{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;cursor:pointer}
.playlist-song:last-child{border-bottom:0}
.playlist-song input[type=checkbox]{appearance:auto;width:20px;height:20px;min-height:20px;flex:none;margin:0;accent-color:var(--accent)}
.playlist-song span{min-width:0;overflow-wrap:anywhere}.playlist-song small{display:block;margin-top:4px;font-size:12px;color:var(--muted)}
@media(max-width:767px),(max-width:950px) and (max-height:500px){
  .player-screen .top{grid-template-columns:auto minmax(0,1fr);padding:4px 10px;gap:8px;flex-wrap:nowrap}
  .player-screen .brand{grid-column:1;grid-row:1;width:auto;min-height:44px;justify-content:flex-start;gap:6px}
  .player-screen .brand img{width:28px;height:28px}
  .player-screen .brand .brand-wordmark{font-size:21px}
  .player-screen .toplinks{grid-column:2;grid-row:1;gap:8px;flex-wrap:nowrap;margin:0}
  .player-screen .district-trigger{max-width:240px}
  .player-screen .toplinks button,.player-screen #openSetup{min-height:44px;padding:6px 10px;font-size:14px}
  .player-screen dialog input:not([type=checkbox]):not([type=range]):not([type=radio]),.player-screen dialog select{font-size:16px}
}
/* Saved concert presets and profile dayparts. */
.schedule-section{margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025)}
.schedule-section .check{display:flex;gap:10px;align-items:center;margin:12px 0 18px}.schedule-section .check input{width:20px;height:20px;margin:0}
.genre-fieldset{border:1px solid var(--line);border-radius:12px;padding:14px;margin:16px 0}.genre-fieldset legend{font-weight:700;padding:0 5px}
.genre-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.genre-option{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;padding:10px;border-radius:8px;background:rgba(255,255,255,.04);font-size:13px!important;cursor:pointer}.genre-option input{width:18px!important;height:18px;margin:0;flex-shrink:0}.genre-option:has(input:checked){background:rgba(75,208,199,.15);outline:1px solid var(--accent)}
.playlist-name-row{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}.playlist-name-row input{min-width:0;flex:1}.playlist-name-row #playlistName{width:0;min-width:0;flex:1;margin:0}.playlist-name-row button{flex-shrink:0;font-size:13px;min-height:44px;padding:8px 11px}
.playlist-save-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:7px;align-items:center;flex-wrap:nowrap}.playlist-save-actions button{min-width:0;min-height:44px;padding:8px 7px;font-size:13px;line-height:1.2;white-space:nowrap}.playlist-save-actions #deletePlaylist{width:44px;padding:10px}.playlist-save-actions #deletePlaylist svg{display:block;flex:none}.playlist-save-actions:has(#deletePlaylist[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}
#playlistFilters .formgrid{margin-top:14px}#playlistFilterSummary{margin:12px 0}.playlist-songs .playlist-song>span{min-width:0}.playlist-songs strong{overflow-wrap:anywhere}
@media(max-width:600px){.schedule-section{padding:13px}.genre-options{grid-template-columns:1fr 1fr;gap:6px}.genre-option{font-size:12px!important;padding:9px 7px}}

.genre-more{grid-column:1/-1}.genre-more summary{cursor:pointer;padding:12px 0;font-size:13px;color:var(--muted)}

.saved-playlist-actions{display:flex;gap:8px;flex-shrink:0}
@media(max-width:600px){.saved-playlist-row{flex-wrap:wrap}.saved-playlist-row>strong,.saved-playlist-row>button{flex-basis:100%}}

/* Tablet queue: add room for two more 60px song rows. */
@media(min-width:768px) and (min-height:501px){
  .player-screen .queue-card{max-height:400px}
}
@media(min-width:768px) and (min-height:541px) and (orientation:portrait){
  .player-screen .layout{grid-template-rows:minmax(0,1fr) 408px}
}

/* The existing player doubles as a remote; the receiver retains its visible video. */
.device-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.device-bar #openDevices{max-width:100%;white-space:normal;text-align:left}
.device-bar .help{flex:1;min-width:140px;margin:0}
#devicesDialog{width:min(620px,calc(100% - 24px));max-height:90dvh}
#devicesDialog .dialogbody{overflow:auto;max-height:calc(90dvh - 84px)}
#devicesDialog input{max-width:100%;min-width:0}
#pairDeviceForm .row{margin-top:8px}#pairDeviceCode{flex:1;width:140px}
#receiverName{width:100%;margin:8px 0 14px}
.pair-code{display:block;font:700 30px ui-monospace,monospace;letter-spacing:.18em;padding:18px 0;color:var(--accent,#eb80b2)}
.pair-code[hidden]{display:none}
.remote-device-row{display:flex;gap:10px;align-items:center;padding:10px 0;flex-wrap:wrap}
.remote-device-row .device-detail{flex:1;min-width:160px}.device-detail small{display:block}
.remote-mode #spotCard{display:none}
.remote-mode #youtubeWelcome{display:none}
.remote-mode #phaseLabel{color:var(--accent,#eb80b2)}
@media(max-width:600px){.device-bar{gap:8px}.device-bar #remoteConnection{flex-basis:100%}.remote-device-row button{min-height:44px}}

/* Closed dialogs must also stay hidden in browsers with no native dialog UI. */
dialog:not([open]){display:none}
.piplo-dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.72)}
dialog.piplo-dialog-fallback[open]{display:block;position:fixed;top:50%;left:50%;right:auto;bottom:auto;margin:0;transform:translate(-50%,-50%);width:calc(100vw - 24px);max-width:880px;max-height:calc(100vh - 24px);overflow:auto;-webkit-overflow-scrolling:touch}
#devicesDialog.piplo-dialog-fallback{max-width:620px}
#devicesDialog .dialogbody{max-height:calc(90vh - 84px);max-height:calc(90dvh - 84px)}
/* Reserve the device bar's height instead of pushing controls below the screen. */
.player-screen main{display:grid;grid-template-rows:auto minmax(0,1fr)}
.player-screen .layout{height:auto}
