/* Shared player layout. Physical offsets and explicit rows also work on older iPads. */
html.player-root{height:100%;width:100%;overflow:hidden;scroll-behavior:auto;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.player-screen{
  --muted:#cdc9c2;
  height:100vh;height:var(--player-viewport,100dvh);min-height:0;min-width:0;width:100%;max-width:100%;
  display:flex;flex-direction:column;overflow:hidden;
}
.player-screen>header{flex:none;background:#000;--ink:#f3f0e8;--light:#c4a7d6;--muted:#cdc9c2}
.player-screen .top{display:flex;align-items:flex-end;min-width:0;width:100%;min-height:68px;padding:4px 18px;gap:16px;flex-wrap:nowrap}
.player-screen .brand{flex:none;min-height:0;gap:0}
.player-screen .brand .pip-mascot{width:56px;height:56px}
.player-screen .brand .piplo-wordmark{width:72px;height:32px}
.player-screen .header-tagline{align-self:flex-end;font-size:14px;line-height:1.25;letter-spacing:-.2px;margin:0 0 6px}
.player-screen .toplinks{min-width:0;display:flex;align-items:center;margin-left:auto;gap:8px;flex-wrap:nowrap;justify-content:flex-end}
.player-screen .toplinks button{min-height:44px}
.player-screen .toplinks .header-account{flex:none;white-space:nowrap;padding:8px 12px;border:1px solid var(--light);border-radius:10px;background:transparent;color:var(--ink);font-size:13px;font-weight:600}
.player-screen .toplinks .header-account:focus-visible{outline:2px solid var(--light);outline-offset:2px}
@media(max-width:480px){
  .player-screen .toplinks .header-district #changeDistrict{flex-direction:column;align-items:flex-end;justify-content:center;gap:0}
  .player-screen .toplinks .header-district .district-explore-caption{font-size:10px;line-height:1.3}
}
.player-screen .toplinks .header-settings{flex:none;align-self:center;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--ink)}
.player-screen .toplinks .header-settings:hover{background:var(--surface)}
.player-screen .toplinks .header-settings:focus-visible{outline:2px solid var(--light);outline-offset:2px}
.player-screen .toplinks .header-settings svg{display:block;flex:none}
.player-screen .header-district{display:flex;flex:0 1 auto;align-items:center;justify-content:flex-end;gap:4px;min-width:0;max-width:100%;overflow:hidden}
.player-screen .header-district #districtHeader{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:var(--ink)}
.player-screen .toplinks #changeDistrict{flex:0 1 auto;min-width:0;max-width:none;padding:0 2px;border:0;border-radius:0;background:transparent;color:var(--light);font-size:14px;font-weight:400;line-height:1.35;white-space:nowrap;text-decoration:none;box-shadow:none;gap:4px;align-items:center}
.player-screen .district-explore-caption{flex:none;text-decoration:underline;text-underline-offset:3px}
.player-screen .toplinks #changeDistrict:hover{background:transparent;color:var(--ink)}
.player-screen .toplinks #changeDistrict:focus-visible{outline:2px solid var(--light);outline-offset:2px;border-radius:3px}
.player-screen main{flex:1;display:flex;flex-direction:column;width:100%;min-width:0;min-height:0;margin:0 auto;padding:8px 16px 16px;overflow:hidden}
.player-screen .device-bar{flex:none;display:flex;align-items:center;flex-wrap:wrap;gap:0 12px;margin:0 0 8px;min-height:44px}
.player-screen .device-bar #openDevices{min-height:44px;padding:8px 12px;border-color:var(--line);background:var(--surface);font-size:14px;font-weight:600;color:var(--muted);max-width:100%}
.player-screen .device-bar #openDevices:hover{color:var(--ink);background:var(--surface)}
.player-screen #openDevices::before{content:'';display:block;width:10px;height:15px;border:1.5px solid currentColor;border-radius:3px;flex:none}
.player-screen #openDevices::after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 2px 3px 5px;flex:none}
.player-screen #remoteConnection{flex:1;min-width:140px;margin:0;font-size:14px;line-height:1.4}
.player-screen #remoteConnection:empty{display:none}
.player-screen .device-bar #playHere{min-height:44px;font-size:14px}
.player-screen .layout{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:minmax(0,1fr);gap:16px;min-width:0;min-height:0;height:auto;align-items:start}
.player-screen .layout>.card,.player-screen .layout>aside>.card{min-width:0;max-width:100%}
.player-screen .card{border-color:var(--line);border-radius:18px;background:var(--panel)}
.player-screen .cardhead{padding:12px 16px;min-height:40px;gap:12px}
.player-screen .cardhead h2,.player-screen .ytmark{min-width:0;font-size:12px;line-height:1.4;letter-spacing:.04em}
.player-screen .music-card .cardhead h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.player-screen .ytmark{color:var(--muted);letter-spacing:0}
.player-screen .music-card{display:flex;flex-direction:column;align-self:start;min-height:0;max-height:100%;overflow:auto}
.player-screen .video{position:relative;flex:none;width:100%;height:0;min-height:0;padding-bottom:56.25%;aspect-ratio:auto;overflow:hidden;background:#000}
.player-screen #youtubeStage,.player-screen #youtubePlayer,.player-screen .video iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;min-height:0;border:0}
.player-screen .player-terms{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;flex:none;gap:6px;margin:0;padding:3px 10px;white-space:nowrap;line-height:1.4;font-size:11px;color:var(--muted)}
.player-screen .player-terms #openSetup{min-height:24px;min-width:24px;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:2px}
.player-screen .layout>aside{display:flex;flex-direction:column;grid-column:auto;grid-row:auto;align-self:stretch;min-height:0;min-width:0;gap:0;overflow:auto;overflow-x:hidden;padding:0 0 12px;scroll-padding-block:8px 16px;-webkit-overflow-scrolling:touch}
.player-screen .controls-card{position:static;flex:none;display:block;grid-column:auto;grid-row:auto;width:100%;align-self:auto;border-radius:18px;box-shadow:none}
.player-screen .playmeta{padding:16px 16px 6px}
.player-screen .songmeta .eyebrow{font-size:12px;line-height:1.4;color:var(--muted);letter-spacing:.07em}
.player-screen .songmeta{min-width:0}
.player-screen .songmeta h2{display:block;-webkit-line-clamp:unset;font-size:22px;line-height:1.25;letter-spacing:-.4px;margin:5px 0 4px;padding:5px 0 7px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-screen .songmeta #phaseLabel{display:block;width:100%;min-width:0;max-width:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--muted);font:inherit;font-size:12px;font-weight:800;line-height:1.4;letter-spacing:.07em;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase}
.player-screen .songmeta #phaseLabel:disabled{opacity:1;cursor:default;color:var(--muted);background:transparent;border-color:transparent}
.player-screen .songmeta #phaseLabel:enabled{cursor:pointer}
.player-screen .songmeta #phaseLabel:hover,.player-screen .songmeta #phaseLabel:active{background:transparent;color:var(--muted);border-color:transparent}
.player-screen #phaseLabel:focus-visible,.player-screen #concertVenue:focus-visible{outline:2px solid var(--light);outline-offset:3px}
.player-screen .songmeta p{color:var(--muted);font-size:14px;line-height:1.5}
.player-screen .timebar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;min-width:0;margin:12px 0 0;font-size:12px;line-height:1.4;color:var(--muted)}
.player-screen .timebar progress{display:block;width:100%;min-width:0;max-width:100%}
.player-screen .timebar>span{white-space:nowrap}
.player-screen .transport{display:block;margin-top:14px}
.player-screen .transport .row{display:grid;grid-template-columns:44px minmax(0,1fr) 88px;gap:8px}
.player-screen .transport button{min-height:48px;padding:8px;font-size:16px;line-height:1.2;white-space:nowrap}
.player-screen .transport .play{min-width:0}
.player-screen .transport .volume{display:grid;grid-template-columns:auto minmax(0,1fr) 42px;align-items:center;gap:10px;width:100%;max-width:none;min-width:0;margin:10px 0 0;color:var(--muted);font-size:14px;font-weight:400}
.player-screen .transport .volume>span:first-child,.player-screen .transport #volumeLabel{display:block;font-size:14px}
.player-screen .transport #volumeLabel{min-width:0;text-align:right;font-variant-numeric:tabular-nums}
.player-screen .transport #volume{width:100%;min-width:0;min-height:44px;margin:0;padding:0;cursor:pointer;accent-color:var(--pip-green);appearance:none;-webkit-appearance:none;background:transparent;border:0}
.player-screen #volume::-webkit-slider-runnable-track{height:6px;border-radius:4px;background:#514659}
.player-screen #volume::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:22px;height:22px;margin-top:-8px;border:0;border-radius:50%;background:var(--pip-green)}
.player-screen #volume::-moz-range-track{height:6px;border-radius:4px;background:#514659}
.player-screen #volume::-moz-range-thumb{width:22px;height:22px;border:0;border-radius:50%;background:var(--pip-green)}
.player-screen .transport #volume:disabled{opacity:.4;cursor:default}
.player-screen .statusline{min-height:0;max-height:none;margin-top:12px;font-size:14px;line-height:1.45;color:var(--muted);overflow:visible}
.player-screen .statusline.error{color:#f1b2b2}
.player-screen #playerStatus{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.player-screen .concert-details{padding:10px 0 0;margin-top:10px}
.player-screen .concert-details p,.player-screen .concert-details a{font-size:14px;line-height:1.45}
.player-screen .concert-summary{display:flex;align-items:center;gap:10px}
.player-screen .concert-summary #concertMeta{display:block;flex:1;min-width:0}
.player-screen #concertVenue,.player-screen #concertDate{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-screen #concertVenue{width:100%;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit;font:inherit;font-size:14px;font-weight:700;line-height:1.45;text-align:left;cursor:pointer}
.player-screen #concertVenue:hover,.player-screen #concertVenue:active{background:transparent;color:inherit;border-color:transparent}
.player-screen #concertVenue[hidden],.player-screen #concertDate[hidden]{display:none}
.player-screen .save-show{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:7px 10px;border-radius:10px;font-size:13px;line-height:1.3;white-space:nowrap}
.player-screen #saveShow{background:transparent;color:var(--ink);border-color:var(--line)}
.player-screen #saveShow:hover{background:color-mix(in srgb,var(--ink) 6%,transparent);border-color:var(--light)}
.player-screen .save-show svg{flex:none}
.player-screen #saveShow[aria-pressed=true]{background:#e7d9f1;color:#4d2d65;border-color:#b897d0}
.player-screen .save-show[aria-pressed=true] svg{fill:currentColor}
.player-screen .layout>aside>.queue-card{display:flex;flex-direction:column;flex:1 0 260px;grid-column:auto;grid-row:auto;align-self:auto;height:auto;min-height:260px;max-height:none;overflow:hidden}
.player-screen .queue-card .cardhead{flex:none;min-height:40px;padding:10px 16px}
.player-screen .queue-card .cardhead h2,.player-screen .queue-card #queueCount{font-size:12px;line-height:1.4;letter-spacing:.04em}
.player-screen .queue-card #queueCount{color:var(--muted)}
.player-screen .district-playlist-bar{flex:none;display:block;padding:0 12px 10px;border-bottom:1px solid var(--line)}
.player-screen .rotation-controls{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px;align-items:start}
.player-screen .rotation-controls:has(#choosePlaylist[aria-pressed=false]){grid-template-columns:repeat(2,minmax(0,1fr))}
.player-screen .rotation-controls button{min-height:44px;padding:8px 10px;border-radius:10px;font-size:14px;line-height:1.3;white-space:normal;overflow-wrap:normal}
.player-screen #allSongs{white-space:nowrap;font-size:13px}
.player-screen #allSongs[aria-pressed=true]{background:#4d2d65;color:#fff;border-color:#79558f}
.player-screen .playlist-action{display:grid;gap:5px;min-width:0}
.player-screen #choosePlaylist{width:100%;white-space:normal;overflow-wrap:normal;background:#4d2d65;color:#fff;border-color:#79558f}
.player-screen #choosePlaylist[aria-pressed=false]{background:#e7d9f1;color:#4d2d65;border-color:#b897d0}
.player-screen .selected-playlist-name{display:block;text-align:center;font-size:12px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.player-screen .selected-playlist-name[hidden]{display:none}
.player-screen #districtPlaylistStatus{display:block;min-height:0;margin-top:8px;font-size:12px;line-height:1.4;color:var(--muted)}
.player-screen #districtPlaylistStatus:empty{display:none}
.player-screen .playlist-picker{max-height:180px;overflow:auto}
.player-screen .queue{flex:1;min-height:140px;max-height:none;height:auto;margin:0;padding:0 0 12px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:auto;scroll-padding-block:8px 12px;-webkit-overflow-scrolling:touch}
.player-screen .queue li:first-child{border-top:0}
.player-screen .track{min-height:66px;padding:12px 16px;gap:12px}
.player-screen .track .num{min-width:20px;font-size:12px;color:var(--muted)}
.player-screen .track .grow{flex:1 1 0;min-width:0;max-width:100%;overflow:hidden}
.player-screen .track .num,.player-screen .track>.accent,.player-screen .track>.queue-state{flex:none}
.player-screen .track .name{font-size:15px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-screen .track .artist{font-size:14px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
/* The editor shares the queue's one-line song treatment. Its flex item must
   shrink before text-overflow can ellipsize long titles on narrow phones. */
.player-screen .playlist-song>span{flex:1 1 0;min-width:0;overflow:hidden}
.player-screen .playlist-songs strong,.player-screen .playlist-song small{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.player-screen aside>.spot{flex:none;grid-column:auto;grid-row:auto;margin:0;padding:16px;overflow:visible}
.player-screen .layout>aside>.card+.card{margin-top:12px}
.player-screen .spot p{font-size:14px;line-height:1.5}
.player-screen .help,.player-screen label{color:var(--muted)}
/* Keep short descriptions from ending with a lone word; metadata keeps its single-line ellipsis. */
.player-screen .help,.player-screen .statusline,.player-screen #remoteConnection,.player-screen #districtPlaylistStatus,.player-screen .spot p{ text-wrap:pretty }
.player-screen #spotTitle{ text-wrap:balance }
.player-screen .dialogtop{padding:16px 18px}
.player-screen .dialogtop h2{color:var(--ink)}
.player-screen .dialogbody{padding:18px}
.player-screen .settings-section h3{font-size:18px;line-height:1.35}

/* Short controls and their descriptions share a row on phones and tablets. */
.player-screen #setupDialog .settings-compact{padding-bottom:12px;margin-bottom:12px}
.player-screen #setupDialog .settings-action-row{display:grid;grid-template-columns:144px minmax(0,1fr);align-items:center;gap:8px 12px;margin:0;min-width:0}
.player-screen #setupDialog .settings-action-row>h3,
.player-screen #setupDialog .settings-action-row>label{margin:0;font-size:14px;font-weight:600;line-height:1.4;color:var(--ink)}
.player-screen #setupDialog .settings-action-row>select,
.player-screen #setupDialog .settings-action-row>.settings-choice,
.player-screen #setupDialog .settings-action-row>.button,
.player-screen #setupDialog .settings-action-row>#openDevices{width:100%;min-width:0;max-width:100%;margin:0}
.player-screen #setupDialog .settings-action-row>select,
.player-screen #setupDialog .settings-action-row>.button,
.player-screen #setupDialog .settings-action-row .settings-choice-trigger,
.player-screen #setupDialog .settings-action-row>#openDevices{min-height:44px;padding:8px 10px;font-size:14px;line-height:1.3}
.player-screen #setupDialog .settings-action-row>#openDevices{gap:7px;white-space:normal;overflow-wrap:anywhere}
.player-screen #setupDialog .settings-action-row>#openDevices::after{margin-left:auto}
.player-screen #setupDialog .settings-action-row>.button{justify-content:center;text-align:center}
.player-screen #setupDialog .settings-action-row>#remoteConnection{grid-column:1/-1;min-width:0}
.player-screen #setupDialog .settings-action-row .settings-choice-panel{width:max-content;min-width:100%;max-width:calc(100vw - 64px)}
.player-screen #setupDialog #youtubeChoiceStatus:not([hidden]){margin:8px 0 0}
@media(max-width:360px){.player-screen #setupDialog .settings-action-row{grid-template-columns:132px minmax(0,1fr);column-gap:10px}}

/* Settings has one touch-scrolling surface, including playlist choices. */
.player-screen #setupDialog{
  max-height:calc(var(--player-viewport,100vh) - 24px);max-height:calc(100dvh - 24px);
  overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  scroll-behavior:auto;scroll-padding-top:88px;scroll-padding-bottom:24px;
}
.player-screen #setupDialog>.dialogtop{position:sticky;top:0;z-index:2}
/* The iPhone App tab supplies its own Settings title and back navigation. */
html[data-native-settings="true"] #openSetup{display:none!important}
/* Native App Settings uses the shared bottom sheet and keeps Radio visible. */
.player-screen #setupDialog>.dialogbody{min-width:0;max-height:none;overflow:visible;padding-bottom:24px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.player-screen #setupDialog .playlist-songs,
.player-screen #setupDialog .settings-choice-panel fieldset{max-height:none;overflow:visible;overscroll-behavior:auto}

/* Keep consent readable on the same older iPads supported by the player. */
.player-screen #privacyConsentDialog{width:calc(100vw - 24px);max-width:480px;width:min(480px,calc(100vw - 24px));max-height:calc(var(--player-viewport,100vh) - 24px);max-height:calc(100dvh - 24px);overflow:auto;-webkit-overflow-scrolling:touch}
.player-screen #privacyConsentDialog h2{margin:0;font-size:22px;line-height:1.3}
.player-screen #privacyConsentDialog .dialogbody{overflow:visible}
.player-screen .privacy-checkbox{display:flex;align-items:flex-start;gap:12px;margin:16px 0;font-size:16px;line-height:1.45;color:var(--ink)}
.player-screen .privacy-checkbox input{flex:none;width:22px;height:22px;min-height:0;padding:0;margin:1px 0 0;accent-color:var(--pip-green)}
.player-screen .privacy-local-note{font-size:13px}
.player-screen .privacy-actions button{min-height:44px;font-size:14px}

/* Wide windows must fit the whole iframe above the native/browser chrome.
   Width-based 16:9 padding can otherwise overflow the bounded card and make
   the shared visibility guard reject the introduction-to-song handoff. The
   embedded player supplies its own letterboxing inside this visible surface. */
@media(min-width:768px) and (orientation:landscape) and (min-height:541px){
  html:not([data-player-panel-open="true"]) .player-screen .music-card{height:100%;overflow:hidden}
  html:not([data-player-panel-open="true"]) .player-screen .music-card>.cardhead{flex:none}
  html:not([data-player-panel-open="true"]) .player-screen .video{flex:1 1 0;height:auto;min-height:200px;padding-bottom:0}
}

/* Portrait uses the same player, transport, queue order as the iPhone. */
@media(orientation:portrait),(max-width:767px){
  .player-screen .layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:12px}
  .player-screen .music-card{max-height:none;overflow:hidden}
  .player-screen .video{height:32vh;height:32dvh;min-height:220px;max-height:360px;padding-bottom:0}
  .player-screen .layout>aside{display:flex;flex-direction:column;overflow:auto}
  .player-screen .controls-card{flex:none}
  .player-screen .layout>aside>.queue-card{flex:1 0 300px;min-height:300px}
  .player-screen .transport .row{grid-template-columns:48px minmax(0,1fr) 100px}
}
@media(max-width:767px){
  .player-screen .top{min-height:62px;padding:3px 10px;gap:8px}
  .player-screen .brand .pip-mascot{width:48px;height:48px}
  .player-screen .brand .piplo-wordmark{width:60px;height:27px}
  .player-screen .header-tagline{display:none}
  .player-screen .toplinks{gap:6px}
  .player-screen .toplinks button,.player-screen #openSetup{padding:6px 8px;font-size:14px}
  .player-screen .district-trigger{max-width:126px}
  .player-screen main{padding:10px 8px 8px}
  .player-screen .device-bar{margin-bottom:4px}
  .player-screen .video{height:27vh;height:27dvh;min-height:200px;max-height:260px}
  .player-screen .music-card .cardhead{min-height:32px;padding:7px 12px}
  .player-screen .player-terms{padding:3px 10px}
  .player-screen .playmeta{padding:14px 14px 8px}
  .player-screen .songmeta h2{font-size:21px}
  .player-screen .layout>aside>.card+.card{margin-top:10px}
}
@media(max-width:380px){
  .player-screen .header-district{align-items:center;gap:0}
  .player-screen .toplinks #changeDistrict{min-height:44px;flex-direction:row;align-items:center;justify-content:flex-end;gap:4px}
  .player-screen .brand .pip-mascot{width:42px;height:42px}
  .player-screen .brand .piplo-wordmark{width:50px;height:24px}
  .player-screen .district-trigger{max-width:90px}
  .player-screen .toplinks button,.player-screen #openSetup{font-size:13px;padding:6px}
}
/* Short landscape windows and enlarged text can scroll rather than clip controls. */
@media(max-height:540px){
  html.player-root{height:auto;overflow:auto}
  body.player-screen{height:auto;min-height:100vh;overflow:visible}
  .player-screen main{overflow:visible}
  .player-screen .layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;flex:none}
  .player-screen .music-card{max-height:none;overflow:visible}
  .player-screen .video{height:220px;min-height:220px;padding-bottom:0}
  .player-screen .layout>aside{overflow:visible}
  .player-screen .layout>aside>.queue-card{flex:none;height:340px}
}
.player-screen.remote-mode #spotCard{display:none}

/* Original October 14 header artwork, rendered once without live SVG filters. */
.player-screen .brand .piplo-header-original{display:block;width:126px;height:62.4px;max-width:none;object-fit:contain;border-radius:0;background:#000;filter:none;mix-blend-mode:normal}
@media(max-width:767px){.player-screen .brand .piplo-header-original{width:105px;height:52px}}
@media(max-width:380px){.player-screen .brand .piplo-header-original{width:89px;height:44px}}

.player-screen .brand .piplo-header-light{display:none}

/* Artist and song share one keyboard-accessible card action. */
.player-screen .songmeta #phaseLabel{text-transform:none;letter-spacing:normal}
.player-screen .songmeta #phaseLabel .eyebrow{display:block;font-size:12px;line-height:1.4;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-screen .songmeta #phaseLabel .song-title{display:block;color:var(--ink);font-size:22px;font-weight:700;line-height:1.25;letter-spacing:-.4px;margin:5px 0 4px;padding:5px 0 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Reserve only chrome that overlays the WebView. The native host normally
   measures the player above its tab bar and therefore leaves this at zero. */
.player-screen main{padding-bottom:calc(12px + var(--piplo-native-bottom-inset,0px))}
.player-screen #deleteCurrentPlaylist{width:44px;min-width:44px;padding:10px}
.player-screen #deleteCurrentPlaylist svg{display:block;flex:none}
.player-screen .rotation-controls:has(#deleteCurrentPlaylist:not([hidden])){grid-template-columns:max-content minmax(0,1fr) 44px}
@media(max-width:767px){
  .player-screen .top{min-height:54px;padding:2px 8px;gap:6px}
  .player-screen .toplinks{flex:1;max-width:100%;gap:4px}
  .player-screen .header-district{flex:1}
  .player-screen .toplinks #changeDistrict{max-width:100%;padding-inline:0;gap:3px;font-size:13px}
  .player-screen .header-district #districtHeader{font-size:13px}
  .player-screen main{padding:6px 8px calc(10px + var(--piplo-native-bottom-inset,0px))}
  .player-screen .layout{gap:8px}
  .player-screen .video{height:25vh;height:25dvh;min-height:200px;max-height:240px}
  .player-screen .music-card .cardhead{min-height:28px;padding:4px 10px;gap:8px}
  .player-screen .music-card .cardhead h2,.player-screen .ytmark{font-size:11px;line-height:1.3}
  .player-screen .ytmark{flex:none}
  .player-screen .playmeta{padding:10px 12px}
  .player-screen .songmeta #phaseLabel .eyebrow{font-size:11px;line-height:16px}
  .player-screen .songmeta #phaseLabel .song-title{font-size:20px;line-height:1.2;margin:3px 0;padding:2px 0 4px}
  .player-screen .concert-details{margin-top:6px;padding:7px 0 0}
  .player-screen .concert-summary{gap:6px}
  .player-screen .concert-details p,.player-screen .concert-details a,.player-screen #concertVenue{font-size:13px;line-height:1.4}
  .player-screen .save-show{gap:5px;padding:6px 8px;font-size:12px}
  .player-screen .timebar{margin-top:7px;font-size:11px;line-height:16px;gap:7px}
  .player-screen .transport{margin-top:8px}
  .player-screen .transport .row{grid-template-columns:44px minmax(0,1fr) 88px;gap:7px}
  .player-screen .transport button{min-width:0;min-height:46px;padding:7px 6px;font-size:15px}
  .player-screen .transport .volume{margin-top:4px;gap:8px}
  .player-screen .queue-card .cardhead{padding:7px 12px;min-height:32px}
  .player-screen .district-playlist-bar{padding-bottom:8px}
  .player-screen .layout>aside>.card+.card{margin-top:8px}
  .player-screen .layout>aside{padding-bottom:16px;scroll-padding-bottom:20px}
}
@media(max-width:350px){
  .player-screen .music-card .cardhead h2,.player-screen .ytmark{font-size:10px;letter-spacing:0}
  .player-screen .transport .row{grid-template-columns:44px minmax(0,1fr) 78px;gap:6px}
  .player-screen .transport button{font-size:14px}
  .player-screen .save-show{font-size:11px;padding-inline:6px}
}

/* Loading sits below the header, outside the scrolling player and queue. */
.player-screen .player-loading{flex:none;display:flex;align-items:center;justify-content:center;gap:9px;min-height:36px;padding:8px 16px;background:#4d2d65;color:#fff;font-size:14px;font-weight:650;line-height:1.4}
.player-screen .player-loading[hidden]{display:none}
.player-screen .player-loading #playerLoadingText{min-width:0;overflow-wrap:anywhere}
.player-screen .player-loading button{flex:none;min-height:36px;padding:5px 12px;border-color:#ffffff66;color:#fff}
.player-screen .player-loading button[hidden],.player-screen .loading-spinner[hidden]{display:none}
.player-screen .loading-spinner{flex:none;width:16px;height:16px;box-sizing:border-box;border:2px solid #ffffff66;border-top-color:#c5ed63;border-radius:50%;animation:piplo-loading-spin .8s linear infinite}
@keyframes piplo-loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.player-screen .loading-spinner{animation:none}}
.player-screen #playerStatus.error{position:static;width:auto;height:auto;margin:8px 0 0;padding:8px 0;overflow:visible;clip:auto;clip-path:none;white-space:normal;line-height:1.4;color:var(--ink)}
