/* Song stage: the /s/<slug> page. Dark, cover-backed, synced lyrics, transport with volume,
   visualiser and playful pointer effects. Body keeps the site header; the stage is full-bleed. */
body.songpage{background:#0B0F16;color:#EEF2F8;padding-bottom:0}
body.songpage .top{background:transparent;border:0;position:relative;z-index:5}
body.songpage .top a:not(.nav-cta){color:#EEF2F8}
body.songpage .foot{color:#8C97AB;position:relative;z-index:2}
.stage{position:relative;min-height:calc(100vh - 70px);isolation:isolate;--hue:180;--beat:0;--mx:50%;--my:40%}
/* Everything decorative that deliberately bleeds past the stage lives in here, and only this
   layer clips. Plain `hidden` is fine on a layer nobody can reach: inset:0 and pointer-events
   none, no focusable content, so the scroll container it creates is inert -- and `hidden` is
   supported further back than `clip`. */
.stage-fx{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
/* The rings grow past the art column on every beat, so the page must not gain a sideways
   scrollbar. `clip`, NOT `hidden`: hidden on the body makes it a scroll container, and the
   cover column is position:sticky, which then has nothing to stick to. */
body.songpage{overflow-x:clip}
.stage-bg{position:absolute;inset:-12%;z-index:-3;background:var(--cover) center/cover;filter:blur(48px) saturate(1.4) brightness(.55);transform:scale(1.05);transition:filter .6s}
.stage-bg::after{content:"";position:absolute;inset:0;background:radial-gradient(60% 50% at var(--mx) var(--my),hsl(var(--hue) 80% 60% / calc(.18 + var(--beat) * .35)),transparent 70%),linear-gradient(180deg,rgba(11,15,22,.15),rgba(11,15,22,.9) 90%);transition:background .12s}
.stage-viz{position:absolute;left:0;right:0;bottom:0;width:100%;height:42%;z-index:-2;pointer-events:none;opacity:.8}
.stage-glow{position:absolute;width:520px;height:520px;left:var(--mx);top:var(--my);transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,hsl(var(--hue) 90% 70% / .16),transparent 60%);z-index:-1;pointer-events:none;transition:left .25s ease-out,top .25s ease-out}
.stage-inner{position:relative;z-index:1;max-width:1100px;margin:0 auto;padding:28px 20px 40px;display:grid;grid-template-columns:minmax(220px,340px) minmax(0,1fr);gap:36px;align-items:start}
.stage-art{position:sticky;top:20px;perspective:900px}
.stage-main{min-width:0}
.stage-cover-wrap{position:relative;aspect-ratio:1;border-radius:22px;transform:rotateX(var(--ty,0)) rotateY(var(--tx,0));transform-style:preserve-3d;transition:transform .18s ease-out;will-change:transform}
.stage-cover{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;border-radius:22px;display:block;box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.08)}
.stage-ring{position:absolute;z-index:0;inset:-6%;border-radius:50%;border:2px solid hsl(var(--hue) 90% 70% / .45);transform:scale(calc(.92 + var(--beat) * .16));opacity:calc(.25 + var(--beat));pointer-events:none;transition:transform .08s,opacity .08s}
.stage-ring.r2{inset:-14%;border-width:1px;transform:scale(calc(.9 + var(--beat) * .28))}
.stage.is-playing .stage-cover-wrap{animation:stage-bob 6s ease-in-out infinite}
@keyframes stage-bob{0%,100%{translate:0 0}50%{translate:0 -8px}}
.stage-kicker{margin:0 0 6px;font:600 13px/1 var(--display);letter-spacing:.08em;text-transform:uppercase;color:hsl(var(--hue) 70% 75%)}
.stage-title{font-size:clamp(28px,4.4vw,48px);margin:0 0 6px;text-shadow:0 4px 30px rgba(0,0,0,.5)}
.stage-sub{color:#B7C0D0;margin:0 0 18px;font-size:15px}
.stage-lyrics{position:relative;max-height:min(52vh,560px);overflow:auto;scrollbar-width:none;padding:24px 8px;mask-image:linear-gradient(180deg,transparent,#000 12%,#000 86%,transparent);-webkit-mask-image:linear-gradient(180deg,transparent,#000 12%,#000 86%,transparent)}
.stage-lyrics::-webkit-scrollbar{display:none}
.stage-line{margin:0;padding:6px 10px;border-radius:12px;font:600 clamp(19px,2.3vw,27px)/1.3 var(--display);color:rgba(238,242,248,.42);cursor:pointer;transition:color .25s,transform .25s,background .25s;transform-origin:left center}
.stage-line:hover{color:rgba(238,242,248,.75)}
.stage-line.on{color:#fff;transform:scale(1.04);text-shadow:0 0 24px hsl(var(--hue) 90% 70% / .8)}
.stage-line.done{color:rgba(238,242,248,.28)}
.stage-line.is-tag{font:600 12px/1 var(--display);letter-spacing:.1em;text-transform:uppercase;color:hsl(var(--hue) 70% 70% / .7);cursor:default;padding-top:18px}
.stage-lyrics.is-static .stage-line{color:rgba(238,242,248,.85);font-weight:500;cursor:default}
.stage-lyrics.is-static .stage-line:hover{color:#fff}
.stage-controls{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;margin-top:14px;background:rgba(255,255,255,.07);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:12px 14px}
.st-play{width:58px;height:58px;border-radius:50%;border:0;background:hsl(var(--hue) 75% 55%);color:#fff;font-size:22px;cursor:pointer;box-shadow:0 10px 30px hsl(var(--hue) 80% 50% / .45);transition:transform .15s,background .3s;display:grid;place-items:center}
.st-play:hover{transform:scale(1.06)}.st-play:active{transform:scale(.96)}
.st-play svg{width:24px;height:24px;fill:currentColor}
.st-seekwrap{flex:1 1 120px;display:flex;align-items:center;gap:8px;min-width:0}
.st-time{font:13px var(--body);font-variant-numeric:tabular-nums;color:#B7C0D0;white-space:nowrap}
.st-seek,.st-volume{-webkit-appearance:none;appearance:none;height:6px;border-radius:999px;background:linear-gradient(90deg,hsl(var(--hue) 80% 60%) var(--p,0%),rgba(255,255,255,.18) var(--p,0%));outline:0;cursor:pointer}
.st-seek{flex:1;min-width:40px}
.st-seek::-webkit-slider-thumb,.st-volume::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.4)}
.st-seek::-moz-range-thumb,.st-volume::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:#fff}
.st-vol{display:flex;align-items:center;gap:6px;flex:none}
/* Always its own width. Nothing in this row may change size on hover: the seek bar is the one
   element allowed to flex, so it absorbs whatever is left. */
.st-volume{width:92px;flex:none}
.st-btn{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#EEF2F8;border-radius:999px;padding:9px 12px;font:600 14px var(--body);cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:40px;text-decoration:none;transition:background .2s,transform .15s}
.st-btn:hover{background:rgba(255,255,255,.14);transform:translateY(-1px)}
.st-btn.on{background:hsl(var(--hue) 75% 55% / .35);border-color:hsl(var(--hue) 75% 65%)}
.st-btn.icon{width:40px;padding:0;justify-content:center}
.st-btn svg{width:18px;height:18px;fill:currentColor}
.st-btn.liked{color:#FF6B8A}
.stage-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.stage-cta{margin-top:22px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.stage-cta .btn{background:hsl(var(--hue) 75% 55%)}
.stage-cta .btn:hover{background:hsl(var(--hue) 75% 48%)}
.stage-note{position:absolute;z-index:4;pointer-events:none;font-size:26px;color:hsl(var(--hue) 90% 75%);text-shadow:0 0 14px hsl(var(--hue) 90% 60% / .8);animation:stage-float 1.8s ease-out forwards;will-change:transform,opacity}
@keyframes stage-float{0%{transform:translate(-50%,-50%) scale(.6) rotate(-10deg);opacity:0}15%{opacity:1}100%{transform:translate(calc(-50% + var(--dx,0px)),calc(-50% - 160px)) scale(1.3) rotate(var(--rot,12deg));opacity:0}}
.stage:fullscreen{background:#0B0F16;min-height:100vh}
.stage:fullscreen .stage-inner{max-width:1400px;padding-top:50px}
.stage:fullscreen .stage-line{font-size:clamp(24px,3vw,40px)}
.stage-preview-note{font-size:13px;color:#B7C0D0;margin:8px 0 0}
.stage-report{margin-top:26px;font-size:13px;color:#8C97AB}
.stage-report button{background:none;border:0;color:#8C97AB;text-decoration:underline;cursor:pointer;font:inherit}
@media (max-width:820px){
  .stage-inner{grid-template-columns:minmax(0,1fr);gap:18px;padding:16px 14px 30px}
  .stage-art{position:relative;top:0;max-width:240px;margin:0 auto}
  .stage-lyrics{max-height:46vh;padding:16px 4px}
  .stage-line{font-size:20px}
  .st-volume{display:none}
  .stage-glow{width:320px;height:320px}
}
@media (prefers-reduced-motion:reduce){
  .stage.is-playing .stage-cover-wrap{animation:none}
  .stage-note{animation-duration:.01s}
  .stage-cover-wrap,.stage-glow{transition:none}
}

/* The stage owns playback; the site-wide bottom bar would duplicate the transport. */
body.songpage .player-bar{display:none}

/* ---- party page: fits the viewport, never scrolls (a TV app, not a document) ---- */
body.partypage{height:100dvh;min-height:100dvh;overflow:hidden;display:flex;flex-direction:column;padding-bottom:0}
body.partypage .top{flex:none;padding:8px 16px;flex-wrap:nowrap;max-width:none}
body.partypage .nav{flex-wrap:nowrap;gap:2px}
/* A guest arrives here from a QR code with one job to do. The site menu competes with it, so on
   phones only the brand, the one conversion link and the language switch survive. */
@media (max-width:820px){
  body.partypage .nav a:not(.nav-cta):not(.lang){display:none}
  body.partypage .nav-cta{font-size:14px;padding:8px 12px}
  body.partypage .brand{font-size:20px}
}
body.partypage .foot,body.partypage .player-bar{display:none}
/* page_head wraps content in <main class="page">, so the height chain has to pass through it. */
body.partypage main.page{flex:1;min-height:0;display:flex;flex-direction:column;max-width:none;width:100%;padding:0;margin:0}
#party{flex:1;min-height:0;display:flex;flex-direction:column}
.party-stage{flex:1;min-height:0;display:flex}
body.partypage .stage{flex:1;min-height:0;height:100%}
/* overflow:visible, nie hidden. Ukladu (brak przewijania strony) pilnuje body.partypage
   {overflow:hidden} i .stage-main{overflow:hidden}; jedynym skutkiem hidden TUTAJ bylo
   obcinanie pierscieni wokol okladki na krawedzi kolumny. Zmierzone 2026-09-15 przy 1920x1080
   w trybie TV: kolumna 232..592 px, pierscien r2 226..618 px i od -12 px w gorze -- czyli
   obciety z lewej i z gory. Gorny zapas daje padding-top: r2 wystaje 14% okladki (48 px). */
/* width:100%, bo .party-stage jest flex-rzedem, a .stage-inner jego elementem z flex:0 1 auto --
   czyli SZEROKIM NA TYLE, ILE MA TRESCI (do max-width). Zmierzone 2026-09-16 na 24 piosenkach
   przy 2000 px: wersy dlugie -> 1460 px, "Ola and the Night Bus" (krotkie wersy) -> 1202 px,
   "Mama zawsze przy oknie" -> 1359 px. Kazda zmiana utworu przesuwala okladke i kolumne
   tekstu o kilkadziesiat pikseli. Strona piosenki tego nie ma, bo tam .stage nie jest flexem. */
body.partypage .stage-inner{width:100%;height:100%;min-height:0;padding:14px 20px;align-items:stretch;gap:24px;overflow:visible}
body.tv .stage-inner{padding-top:max(14px,min(56px,5vh))}
body.partypage .stage-art{position:static;display:flex;align-items:flex-start;min-height:0}
body.partypage .stage-cover-wrap{width:100%;max-height:100%;aspect-ratio:1;margin:0 auto}
body.partypage .stage-main{display:flex;flex-direction:column;min-height:0;overflow:hidden}
body.partypage .stage-title{font-size:clamp(22px,3.2vw,38px);margin:0 0 4px}
/* Prawy zapas taki sam jak na stronie piosenki (regula `.stage-lyrics{padding-right:max(14px,5%)}`
   nizej): podswietlony wers rosnie o 4% od lewej i bez zapasu ucina sie w polowie slowa, bo
   .stage-main ma overflow:hidden. `padding:10px 8px` nadpisywalo tamten zapas do 8 px --
   zmierzone: najdluzszy wers 1036 px w kolumnie 1052 px, po skali 1077 px. Szerokosc kolumny
   sama w sobie jest stala (minmax(0,1fr) w siatce), wersy sie zawijaja; to ucinanie robilo
   wrazenie, ze panel "zmienia szerokosc" z dlugoscia wersu. */
body.partypage .stage-lyrics{flex:1;min-height:0;max-height:none;padding:10px max(14px,5%) 10px 8px}
body.partypage .stage-controls{flex:none;margin-top:10px}
body.partypage .stage-actions,body.partypage .stage-cta,body.partypage .stage-report{display:none}
.party-name{margin:0 0 2px;font:600 15px var(--display);color:hsl(var(--hue) 70% 78%)}
.party-queue{flex:none;margin-top:12px;max-height:32vh;display:flex;flex-direction:column;min-height:0;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:10px 14px}
.party-qhead{display:flex;align-items:center;justify-content:space-between;gap:8px}
.q-close{display:none;background:none;border:0;color:#B7C0D0;font-size:18px;cursor:pointer;padding:4px 8px}
.queue-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}
.party-h{font-size:16px;margin:0 0 6px;display:flex;align-items:center;gap:8px}
.party-h.small{font-size:12px;color:#B7C0D0;margin:8px 0 2px;text-transform:uppercase;letter-spacing:.06em}
.party-count{font-size:12px;background:hsl(var(--hue) 75% 55% / .35);border-radius:999px;padding:2px 9px}
.queue-list{list-style:none;margin:0;padding:0}
.queue-item{display:grid;grid-template-columns:26px 40px minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px;border-radius:12px;cursor:pointer;transition:background .2s}
.queue-item:hover{background:rgba(255,255,255,.08)}.queue-item.is-current{background:hsl(var(--hue) 75% 55% / .25)}
.queue-n{font:600 13px var(--display);color:#B7C0D0;text-align:center}.queue-item.is-current .queue-n{color:#fff}
.queue-cover{width:40px;height:40px;border-radius:8px;object-fit:cover;background:#1b1f2a}
.queue-text{min-width:0;display:flex;flex-direction:column}.queue-text b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.queue-text small{color:#B7C0D0;font-size:12px}
.queue-x{background:none;border:0;color:#8C97AB;font-size:14px;cursor:pointer;padding:6px}
/* Akcje gospodarza: strzalki w gore/w dol i usuwanie, w jednej komorce siatki. Przyciski
   maja 32 px, bo na telewizorze klika sie w nie z telefonu gospodarza, nie mysza. */
.queue-acts{display:inline-flex;align-items:center;gap:2px;white-space:nowrap}
.queue-mv{background:none;border:0;color:#8C97AB;font-size:12px;cursor:pointer;padding:6px 7px;min-width:28px;min-height:32px;border-radius:8px}
.queue-mv:hover:not(:disabled),.queue-x:hover{background:rgba(255,255,255,.1);color:#fff}
.queue-mv:disabled{opacity:.3;cursor:default}
.pending-list{list-style:none;margin:0;padding:0;font-size:13px;color:#B7C0D0}.pending-list li{padding:3px 0;display:flex;align-items:center;gap:8px}.pending-list small{color:#8C97AB}
.pending-dot{width:8px;height:8px;border-radius:50%;background:hsl(var(--hue) 90% 65%);animation:pulse 1.2s ease-in-out infinite;flex:none}
@keyframes pulse{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
/* Action bar: always on screen, thumb height, the loudest thing on the page. */
.party-bar{flex:none;position:sticky;bottom:0;display:flex;align-items:center;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(11,15,22,.86);backdrop-filter:blur(12px);border-top:1px solid rgba(255,255,255,.1);z-index:6}
.party-bar .party-add-btn{flex:1;min-height:56px;font-size:18px;background:hsl(var(--hue) 75% 55%);animation:glowpulse 2.6s ease-in-out infinite}
@keyframes glowpulse{0%,100%{box-shadow:0 0 0 0 hsl(var(--hue) 80% 60% / .5)}50%{box-shadow:0 0 0 12px hsl(var(--hue) 80% 60% / 0)}}
.bar-queue,.bar-more{flex:none;min-height:56px;padding:0 16px;border-radius:14px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.07);color:#EEF2F8;font:600 15px var(--body);cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.bar-more{padding:0 14px;font-size:20px}
.bar-note{flex:1;margin:0;color:#B7C0D0;font-size:14px;text-align:center}
.party-empty{color:#B7C0D0;margin:0 0 8px}
.party-stage.is-empty{overflow:auto;align-items:center;justify-content:center}
.party-empty-stage{text-align:center;padding:20px;max-width:640px;margin:auto;width:100%}
.party-empty-stage h1{font-size:clamp(26px,5vw,40px)}.party-empty-stage .lede{color:#B7C0D0}
.party-empty-stage .party-queue{max-height:40vh;text-align:left;margin-top:20px}
.party-dlg{max-width:640px;background:#131826;color:#EEF2F8;border:1px solid rgba(255,255,255,.1);max-height:88dvh;overflow:auto}
.party-dlg h2{margin:0;padding-right:44px}.dlg-sub{margin:2px 0 10px}.party-dlg .tpl-card{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);color:#EEF2F8}.party-dlg .tpl-promise{color:#B7C0D0}
.party-dlg input,.party-dlg textarea,.party-dlg select{width:100%;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#fff;border-radius:10px;padding:12px;font:16px var(--body)}
.party-dlg .field>span{color:#B7C0D0;font-size:14px;display:block;margin-bottom:4px}.party-dlg .muted{color:#B7C0D0}.party-dlg .err{color:#FF8A8A}
.party-dlg .btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.2)}
.party-dlg .btn,.party-dlg .btn-ghost{min-height:52px}
.dlg-x{position:absolute;top:10px;right:10px;background:none;border:0;color:#B7C0D0;font-size:20px;cursor:pointer;padding:6px 10px;z-index:2}
.loader-card.in-dlg{background:transparent;box-shadow:none;padding:10px 0;color:#EEF2F8}.loader-card.in-dlg .loader-msg{color:#B7C0D0}
.party-queued{text-align:center;padding:10px 0}.party-big{font-size:56px;line-height:1}
.lib-list{list-style:none;margin:0;padding:0;max-height:52dvh;overflow:auto}
.lib-item{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr) 34px;gap:10px;align-items:center;padding:8px;border:0;border-radius:12px;background:rgba(255,255,255,.05);color:#EEF2F8;cursor:pointer;text-align:left;margin-bottom:6px;font:inherit}
.lib-item:hover{background:rgba(255,255,255,.11)}.lib-item.is-added{opacity:.5}
.lib-add{font-size:20px;color:hsl(var(--hue) 80% 70%);text-align:center}
/* TV: no chrome, bigger everything. */
body.tv .top,body.tv .foot,body.tv .party-bar{display:none}
/* Tryb TV: mniej okladki i tekstu, wiecej playlisty (Darek 2026-09-16: "wszystko za duze,
   playlista za mala, zeby nia operowac"). Bylo: wers 42 px, okladka 340 px, kolejka 26vh (280 px
   przy 1080, czyli 3,5 wiersza z 24). Jest: wers 34 px, okladka 300 px, kolejka 42vh (~7 wierszy),
   wiersz kolejki 46 px zamiast 54. */
body.tv .stage-line{font-size:clamp(22px,2.2vw,34px);padding:5px 10px}
body.tv .stage-title{font-size:clamp(22px,2.6vw,34px)}
body.tv .stage-inner{grid-template-columns:minmax(220px,300px) minmax(0,1fr)}
body.tv .party-queue{max-height:42vh;position:static;transform:none;box-shadow:none;margin-top:12px}
body.tv .queue-item{padding:4px 7px;gap:8px}
body.tv .queue-cover{width:34px;height:34px}
/* Narzedzia w naglowku kolejki: losowanie (dla kazdego, kto stoi przy ekranie) i biblioteka
   (gospodarz). W pasku ich nie ma, bo pasek w TV jest ukryty. */
.q-tools{display:flex;gap:6px;align-items:center;margin-left:auto}
.q-tool{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#EEF2F8;border-radius:999px;padding:6px 12px;font:600 13px var(--display);cursor:pointer;min-height:34px;display:inline-flex;align-items:center;gap:4px}
.q-tool:hover{background:rgba(255,255,255,.16)}
.q-tool.is-on{background:hsl(var(--hue) 75% 55% / .45);border-color:hsl(var(--hue) 80% 70% / .8)}
@media (max-width:560px){.q-tool-label{display:none}.q-tool{padding:6px 9px}}
@media (max-width:820px){
  body.partypage .stage-inner{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:10px;padding:8px 14px}
  body.partypage .stage-art{max-width:min(30vh,200px);margin:0 auto}
  body.partypage .stage-title{font-size:20px}
  body.partypage .stage-kicker,.party-name{font-size:12px;margin-bottom:2px}
  body.partypage .stage-lyrics{padding:6px 4px}
  body.partypage .stage-line{font-size:17px;padding:4px 8px}
  /* The queue becomes a sheet: the bar's ☰ opens it, so nothing competes with the add button. */
  .party-queue{position:fixed;left:8px;right:8px;bottom:84px;z-index:8;max-height:56dvh;background:#151b28;box-shadow:0 20px 60px rgba(0,0,0,.6);transform:translateY(calc(100% + 100px));transition:transform .25s ease-out;margin:0}
  #party.q-open .party-queue{transform:none}
  .q-close{display:block}
  .party-empty-stage .party-queue{position:static;transform:none;box-shadow:none;max-height:34vh}
  .party-bar{padding:8px 12px calc(8px + env(safe-area-inset-bottom))}
  .party-bar .party-add-btn{font-size:17px}
  .bar-queue span:not(.party-count){display:none}
  .bar-queue,.bar-more{padding:0 14px}
}
@media (max-height:520px) and (orientation:landscape){
  body.partypage .stage-art{display:none}
  body.partypage .stage-inner{grid-template-columns:1fr}
}

/* Step 1 of the guest flow: a glance, not a menu (UX review 1.2). */
.vibe-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 12px}
.vibe-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;min-height:96px;padding:10px 8px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.06);color:#EEF2F8;font:inherit;cursor:pointer}
.vibe-card:hover,.vibe-card:focus-visible{background:rgba(255,255,255,.13);border-color:hsl(var(--hue) 75% 60%);outline:0}
.vibe-card b{font-family:var(--display);font-size:15px;line-height:1.15}
.vibe-card small{color:#B7C0D0;font-size:12px}
.vibe-emoji{font-size:26px;line-height:1}
.bar-queue-label{font-size:13px}
/* The join panel: the only thing on a TV screen that tells a guest what to do. Never hidden. */
.tv-join{position:fixed;right:24px;top:24px;z-index:9;display:flex;flex-direction:column;align-items:center;gap:10px;max-width:min(26vw,300px);background:rgba(8,11,18,.82);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.14);border-radius:20px;padding:14px;box-shadow:0 20px 60px rgba(0,0,0,.5);text-align:center}
.tv-qr{background:#fff;padding:10px;border-radius:12px;line-height:0}
/* Premium: zdjecie pary (kolo) i imiona nad kodem QR. Rozmiar liczony z vw jak QR, zeby na
   telewizorze 4K nie byl znaczkiem pocztowym, a na laptopie nie zaslanial tekstu. */
.tv-brand{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:2px}
.tv-brand-photo{width:clamp(72px,7vw,120px);height:clamp(72px,7vw,120px);border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,.85);box-shadow:0 8px 30px rgba(0,0,0,.5)}
.tv-brand-title{margin:0;font:700 clamp(16px,1.5vw,26px)/1.15 var(--display);color:#fff;text-align:center;text-wrap:balance}
.tv-qr img,.tv-qr canvas{display:block;width:clamp(104px,9vw,160px);height:clamp(104px,9vw,160px)}
.tv-join-label{margin:0;font:600 clamp(13px,1.05vw,17px) var(--display);color:#fff}
.tv-join-url{margin:0;font:600 clamp(15px,1.3vw,22px)/1.15 var(--display);letter-spacing:.02em;word-break:break-all}
.tv-join-url span{color:#8C97AB}.tv-join-url b{color:#fff;letter-spacing:.06em}
@media (max-width:820px){.tv-join{right:8px;top:8px;padding:8px;gap:6px;max-width:42vw}.tv-qr img,.tv-qr canvas{width:88px;height:88px}}
/* Song page on a phone: play must be above the fold, lyrics after it (UX review 5). */
@media (max-width:820px){
  body.songpage:not(.partypage):not(.radiopage) .stage-main{display:flex;flex-direction:column}
  body.songpage:not(.partypage):not(.radiopage) .stage-kicker{order:1}
  body.songpage:not(.partypage):not(.radiopage) .stage-title{order:2}
  body.songpage:not(.partypage):not(.radiopage) .stage-preview-note{order:3}
  body.songpage:not(.partypage):not(.radiopage) .stage-controls{order:4;margin-top:12px}
  body.songpage:not(.partypage):not(.radiopage) .stage-actions{order:5}
  body.songpage:not(.partypage):not(.radiopage) .stage-cta{order:6;margin-top:14px}
  body.songpage:not(.partypage):not(.radiopage) .stage-lyrics{order:7;max-height:none;mask-image:none;-webkit-mask-image:none}
  body.songpage:not(.partypage):not(.radiopage) .stage-report{order:8}
  body.songpage:not(.partypage):not(.radiopage) .stage-art{max-width:200px;margin:0 auto}
}

/* Fullscreen has no browser chrome and a TV has no Esc key, so the way out is a real button.
   Top-right, above the visualiser, and only in the DOM while fullscreen is actually on. */
.st-fsexit{white-space:nowrap;position:fixed;top:calc(16px + env(safe-area-inset-top));right:16px;z-index:40;border:1px solid rgba(255,255,255,.28);background:rgba(11,15,22,.72);backdrop-filter:blur(10px);color:#EEF2F8;border-radius:999px;padding:12px 18px;min-height:48px;font:600 15px var(--body);cursor:pointer}
.st-fsexit:hover{background:rgba(11,15,22,.9)}
body.is-fs .top,body.is-fs .foot{display:none}

/* The bar now carries the library shortcut and the help button next to the primary action.
   Labels collapse on narrow screens so the 44px targets survive rather than the words. */
.bar-lib{flex:none;padding:10px 14px;min-height:44px}
.bar-help{flex:none;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#EEF2F8;font:700 17px var(--body);cursor:pointer}
.bar-help:hover{background:rgba(255,255,255,.14)}
.empty-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:14px 0 6px}
.help-steps li b{display:block}
.help-dlg .steps{margin:6px 0 0}
@media (max-width:560px){.bar-lib-label{display:none}.bar-lib{width:44px;padding:0;justify-content:center}}
body.tv .st-fsexit{right:auto;left:16px}

/* In TV mode with a song playing, the join tile sits under the cover in the art column, which
   is already a reserved strip on a 16:9 panel -- so it cannot overlap anything, at any size. */
body.tv .stage-art{flex-direction:column;align-items:center;gap:14px;justify-content:flex-start}
body.tv .stage-art .stage-cover-wrap{max-height:none;flex:0 1 auto}
.tv-join.in-column{position:static;max-width:100%;width:100%;padding:12px;box-shadow:none}
.tv-join.in-column .tv-qr img,.tv-join.in-column .tv-qr canvas{width:clamp(96px,8vw,150px);height:clamp(96px,8vw,150px)}
/* Kolumna okladki w TV ma 300 px (bylo 340), a adres "musify.pl/p/KOD" przy 22 px juz sie nie
   miescil i lamal kod na dwie linie ("WKFBT3V / J"). Zmierzone przy 1920: 18 px miesci sie z zapasem. */
.tv-join.in-column .tv-join-url{font-size:clamp(13px,1.05vw,18px)}

/* Says the song is machine-made, next to its title rather than in a footer nobody reaches.
   Quiet enough not to fight the artwork, present on every surface that plays a song. */
.stage-ai{display:inline-flex;align-items:center;gap:6px;margin:0 0 10px;font:600 11px/1 var(--body);letter-spacing:.06em;text-transform:uppercase;opacity:.72}
.stage-ai-dot{border:1px solid currentColor;border-radius:4px;padding:2px 5px;letter-spacing:.08em}
body.partypage .stage-ai{font-size:10px;margin-bottom:6px}

/* Phone transport: the scrubber gets its own full-width row above the buttons. On a 360px screen
   play + three icons + 0:00 + slider + 2:38 cannot share one line, and forcing them to is what
   made the whole song page wider than the phone. */
@media (max-width:560px){
  .stage-controls{flex-wrap:wrap;gap:8px;padding:10px 12px}
  .st-seekwrap{order:-1;flex:1 0 100%}
  .stage-title{font-size:clamp(22px,6.4vw,30px)}
}

/* ---------------------------------------------------------------------------------------
   THE SONG PAGE ON A PHONE IS AN APP SCREEN, NOT A DOCUMENT.

   Everything lives inside one viewport height and the page itself never scrolls: the artwork
   and title sit at the top, the lyrics run in a three-line window in the middle, the share row
   takes what is left, and the transport is pinned to the bottom where a thumb is. The
   visualiser sits behind the lyrics rather than at the foot of a long page.

   Two details carry the whole thing:
   - 100dvh, not 100vh. On a phone `vh` is the tallest the viewport ever gets, so with the URL
     bar showing, a 100vh column is taller than the screen and the transport hides under it --
     which is exactly the bar we are trying to pin.
   - min-height:0 on every flex ancestor. A flex item defaults to min-height:auto and refuses to
     shrink below its content, so without this the lyrics push the transport off-screen instead
     of scrolling inside their own box.
   --------------------------------------------------------------------------------------- */
/* :not(.radiopage) is not tidiness -- radio.php sets body_class 'songpage radiopage', so every
   rule below reached the radio as well and turned a hero-plus-list page into a locked viewport
   with the transport pinned over the song list. The app screen is the SONG page only. */
@media (max-width:820px){
  body.songpage:not(.partypage):not(.radiopage){height:100dvh;overflow:hidden;display:flex;flex-direction:column}
  body.songpage:not(.partypage):not(.radiopage) main.page{flex:1;min-height:0;display:flex;flex-direction:column;max-width:none;width:100%;padding:0;margin:0}
  /* A footer would demand a scroll on a screen that must not scroll. */
  body.songpage:not(.partypage):not(.radiopage) .foot{display:none}

  body.songpage:not(.partypage):not(.radiopage) .stage{flex:1;min-height:0;display:flex;height:auto}
  body.songpage:not(.partypage):not(.radiopage) .stage-inner{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;padding:12px 14px calc(10px + env(safe-area-inset-bottom))}
  /* The column of words, transport and buttons takes exactly the height it needs and is not
     allowed to be squeezed -- squeezing it is what pushed the transport out of the viewport and
     made the page scroll by the difference. */
  body.songpage:not(.partypage):not(.radiopage) .stage-main{flex:0 0 auto;display:flex;flex-direction:column;gap:0}

  /* The artwork takes whatever the screen has left over. Every other row is fixed, so the slack
     collects here instead of pooling as a dead gap in the middle -- and the cover is the thing
     worth looking at while a song plays. It shrinks on a short screen rather than pushing the
     transport away, which is what min-height:0 on the ancestors buys. */
  /* max-height is load-bearing, not tidiness: a square sized from its own height inside a box
     that is growing feeds back on itself, and the cover ends up wider than the screen -- taking
     the transport off the bottom with it. Capping the block means the square is limited by the
     smaller of the two dimensions, which on a phone is always the width. */
  body.songpage:not(.partypage):not(.radiopage) .stage-art{order:0;flex:1 1 auto;min-height:0;max-width:none;margin:0;overflow:hidden;display:flex;align-items:center;justify-content:center}
  body.songpage:not(.partypage):not(.radiopage) .stage-cover-wrap{height:100%;width:auto;max-width:100%;aspect-ratio:1;margin:0}
  body.songpage:not(.partypage):not(.radiopage) .stage-cover{border-radius:12px}
  /* The rings are the one decoration that costs nothing here -- they sit over the blurred
     backdrop, not over anything readable. */
  body.songpage:not(.partypage):not(.radiopage) .stage-ring{inset:-10%}
  body.songpage:not(.partypage):not(.radiopage) .stage-ring.r2{inset:-20%}

  body.songpage:not(.partypage):not(.radiopage) .stage-kicker{order:1;flex:none;margin:10px 0 2px;font-size:11px}
  body.songpage:not(.partypage):not(.radiopage) .stage-title{order:2;flex:none;font-size:clamp(19px,5.4vw,26px);margin:0 0 4px}
  body.songpage:not(.partypage):not(.radiopage) .stage-ai{order:3;flex:none;margin:0 0 6px;font-size:10px}
  body.songpage:not(.partypage):not(.radiopage) .stage-preview-note{order:4;flex:none;margin:0 0 6px}

  /* What is left of the screen sits ABOVE the lyrics. If it does not fit, THIS scrolls --
     never the page. */
  body.songpage:not(.partypage):not(.radiopage) .stage-actions{order:5;flex:none;margin:8px 0 0}
  body.songpage:not(.partypage):not(.radiopage) .stage-cta{order:6;flex:none;margin:8px 0 0}
  body.songpage:not(.partypage):not(.radiopage) .stage-report{order:7;flex:none;margin:6px 0 0}

  /* Three lines, centred on the one being sung, sitting directly on top of the transport --
     the two things you actually watch while a song plays, next to each other. The mask fades
     both edges so the window reads as a moving band rather than a cropped box. */
  body.songpage:not(.partypage):not(.radiopage) .stage-lyrics{
    order:8;flex:none;height:calc(3 * 1.55em + 10px);max-height:none;overflow:hidden;
    padding:5px 2px;margin:10px 0 0;position:relative;z-index:1;
    mask-image:linear-gradient(180deg,transparent,#000 32%,#000 68%,transparent);
    -webkit-mask-image:linear-gradient(180deg,transparent,#000 32%,#000 68%,transparent);
  }
  body.songpage:not(.partypage):not(.radiopage) .stage-line{font-size:17px;line-height:1.55;margin:0}

  /* Pinned where a thumb is, and last in the column so nothing can push it away. */
  body.songpage:not(.partypage):not(.radiopage) .stage-controls{order:9;flex:none;margin:8px 0 0;position:sticky;bottom:0;z-index:3}

  /* The graph belongs behind the words, not at the foot of the page. */
  body.songpage:not(.partypage):not(.radiopage) .stage-viz{top:auto;bottom:0;height:52%;opacity:.55}
}

/* Bohater nad tytulem. Wieksze niz kicker, mniejsze niz tytul: to jest tozsamosc strony,
   ale utwor nadal ma swoja nazwe i nie chcemy dwoch naglowkow walczacych o pierwszenstwo. */
.stage-hero{margin:0 0 2px;font-family:var(--display);font-weight:700;font-size:15px;letter-spacing:.01em;color:var(--accent)}

/* ========== Ekran piosenki na duzym ekranie: szerzej i ZAWSZE na jednym ekranie ==========
   Bylo: .stage-inner przyciete do 1100 px, wiec przy oknie 1900 px kolumna tekstu miala 644 px
   i dluzsze wersy lamaly sie tuz przy krawedzi, a caly ekran byl o ~200 px za wysoki i strona
   sie przewijala. Jedno i drugie widac bylo dopiero na duzym monitorze -- uklad byl dopracowany
   pod telefon i tam jest poprawny.

   Wysokosc rozdziela sie tak jak na stronie imprezy, ktora ma ten problem rozwiazany od dawna:
   scena dostaje wysokosc okna, tekst piosenki jest jedynym elementem elastycznym i zjada to,
   co zostanie. Reszta (tytul, transport, przyciski) ma stala wysokosc, wiec nic nie wypada. */
@media (min-width:821px){
  /* :not(.radiopage):not(.partypage) jest tu z DOKLADNIE tego samego powodu co w bloku dla
     telefonu nizej, tylko zostalo pominiete: radio.php ustawia body_class 'songpage radiopage',
     wiec `height:100dvh` + `overflow:hidden` lapalo TAKZE RADIO -- strona o tresci 2526 px
     dostawala 800 px wysokosci i przestawala sie przewijac. Zmierzone na produkcji przy
     1280x800; na telefonie w pionie tego nie widac, bo tam obowiazuje blok ponizej 821 px,
     a w poziomie ratowalo to ustepstwo dla niskiego okna (max-height:620px).
     Strona imprezy ma wlasny komplet regul (`body.partypage`, ~linia 92) i tego bloku nie
     potrzebuje -- dlatego jest wylaczona razem z radiem, a nie mimo niego.
     Naglowek i `main.page` tez: przy radiu rozjezdzaly szerokosc naglowka (1460) z szerokoscia
     listy (1100), czyli tresc i nawigacja przestawaly stac w jednej osi. */
  /* Naglowek idzie z ta sama szerokoscia, inaczej nawigacja i tresc przestaja byc w jednej osi. */
  body.songpage:not(.radiopage):not(.partypage) .top{max-width:min(1460px,94vw)}
  /* I POJEMNIK STRONY. Bez tego max-width na .stage-inner nic nie daje: dziecko nie moze byc
     szersze niz rodzic, wiec scena zostawala na 1060 px, choc jej wlasna regula mowila 1460.
     Zmierzone: wszystkie reguly ponizej byly aktywne, a szerokosc sie nie zmieniala. */
  body.songpage:not(.radiopage):not(.partypage) main.page{max-width:min(1460px,94vw);padding-left:0;padding-right:0}
  /* Wysokosc dzieli sie KOLUMNA, a nie odejmowaniem od 100vh. Poprzednia wersja liczyla
     calc(100vh - 70px) na samej scenie i wychodzila o 139 px za wysoko, bo nie wiedziala
     o stopce (87 px) ani o dolnym marginesie strony (40). Zmierzone, nie zgadniete.
     W kolumnie naglowek i stopka biora swoje, a scena dostaje dokladnie reszte -- i nie
     trzeba znac zadnej z tych liczb. */
  /* height, nie min-height. To jest cala roznica: min-height jest MINIMUM, wiec procentowe
     wysokosci potomkow nie maja sie do czego odniesc, `height:100%` na scenie bylo ignorowane
     i tekst piosenki rozlal sie na 1131 px zamiast zjesc reszte ekranu. Zmierzone w obie
     strony: z min-height strona miala 1735 px przy oknie 900. */
  body.songpage:not(.radiopage):not(.partypage){height:100dvh;display:flex;flex-direction:column;overflow:hidden}
  body.songpage:not(.radiopage):not(.partypage) main.page{flex:1 1 auto;min-height:0;padding-bottom:16px}
  body.songpage:not(.radiopage):not(.partypage) .stage{min-height:0;height:100%}
  .stage-inner{max-width:min(1460px,94vw);height:100%;align-items:stretch}
  /* Okladka ZOSTAJE na 340 px, choc przy scenie 1460 wyglada skromnie. Probowalem 420 --
     zmierzone: kolumna tekstu spada z 1006 do 964 px i wersy, ktore mieszcily sie w jednej
     linii, znowu lamia sie na dwie. Miejsce w tym ukladzie jest jedno i nalezy do tekstu,
     bo to on byl powodem tej zmiany. */
  .stage-art{align-self:start}
  .stage-main{display:flex;flex-direction:column;min-height:0}
  /* min-height, nie samo flex: gdy okno jest niskie, tekst ma sie skurczyc do czytelnego
     minimum, a nie do zera -- pusty prostokat wyglada jak brak tekstu, nie jak ciasnota. */
  .stage-lyrics{flex:1 1 auto;min-height:140px;max-height:none}
}

/* Bardzo niskie okno (laptop 13" z otwartymi zakladkami): przy takiej wysokosci sam tytul
   i transport zjadaja caly ekran, wiec zamiast zgniatac tekst do nieczytelnosci pozwalamy
   stronie sie przewinac. Lepsze przewijanie niz uklad, w ktorym nie widac ani jednej linijki. */
@media (min-width:821px) and (max-height:620px){
  body.songpage:not(.radiopage):not(.partypage){height:auto;overflow:visible}
  .stage-inner{height:auto}
  .stage-lyrics{max-height:46vh}
}

/* Podswietlony wers rosnie o 4% (`.stage-line.on{transform:scale(1.04)}`) i rosnie OD LEWEJ
   KRAWEDZI, wiec wers, ktory dokladnie wypelnia kolumne, wychodzi poza nia po prawej --
   a `.stage-lyrics` ma overflow, wiec ten nadmiar jest UCINANY w polowie slowa. Widac to
   wylacznie na najdluzszym wersie i wylacznie wtedy, gdy akurat jest podswietlony, czyli
   dokladnie w chwili, gdy ktos go czyta.

   Zapas musi byc PROCENTOWY, bo 4% to 40 px przy kolumnie 1000 px i 14 px przy 360 px.
   Stala liczba albo nie wystarczy na desktopie, albo zjada pol ekranu na telefonie. */
.stage-lyrics{padding-right:max(14px,5%)}

/* Pasek akcji nie istnieje dla ukladu na duzym ekranie -- trzy grupy zachowuja sie dokladnie
   tak jak przed jego wprowadzeniem. Cala jego rola zaczyna sie na telefonie. */
.stage-bar{display:contents}

/* ================= TELEFON: ekran piosenki v3 -- uklad z Radia (brief Darka) =================
   Poprzednia wersja (v2) dawala zdjecie na pelna szerokosc z bohaterem wpisanym w fotografie.
   Darek zobaczyl obok siebie Radio i strone piosenki i wybral Radio: kwadratowa okladka
   z pulsujacymi pierscieniami, tekst piosenki na wlasnym, ciemnym tle i transport zlozony
   z okraglych ikon. Rozniło je WYLACZNIE CSS -- obie strony renderuje ta sama scena
   (`stage.js`) -- wiec ten blok nie dodaje nowego wygladu, tylko przestaje odbierac stronie
   piosenki to, co Radio mialo od poczatku.

   Trzy reguly v2 zostaly USUNIETE, a nie nadpisane: pelnoekranowa okladka, ukryte pierscienie
   i bohater wlozony w gradient na zdjeciu. Nadpisywanie ich zostawialoby w pliku uklad, ktorego
   nikt juz nie oglada, a ktory przy nastepnej zmianie trzeba by odtwarzac w glowie.

   To, co z v2 ZOSTAJE, bylo o BUDZECIE PIONOWYM i jest nadal prawda: jeden rzad akcji zamiast
   trzech, plakietka AI jako formalnosc, zgloszenie jako choragiewka. Ekran nadal ma sie miescic
   w calosci, bez przewijania. */
@media (max-width:820px){
  /* Okladka jest KWADRATEM O STALEJ SZEROKOSCI, a nie kwadratem wypelniajacym ekran, i to jest
     cala roznica miedzy tym a Radiem. Pierscienie siegaja 20% poza okladke z kazdej strony,
     wiec okladka na pelna szerokosc znaczy pierscienie ucięte przy krawedziach -- czyli brak
     tego efektu, dla ktorego ten uklad zostal wybrany. 244 px x 1,4 = 342 px i miesci sie
     w 362 px, ktore zostaje po paddingu; przy ekranie 360 px liczy to samo `62vw`. Trzeci
     skladnik, `30vh`, jest dla NISKIEGO ekranu: przy 360x640 sama szerokosc dawala okladke
     223 px i strona wychodzila 6 px poza ekran -- czyli lamala jedyna twarda regule tego
     ukladu. Zmierzone, nie oszacowane.
     `overflow:visible` jest konieczne: blok wyzej ustawia `hidden` dla ukladu, ktorego juz nie
     ma, a on obcinal pierscienie rownie skutecznie jak krawedz ekranu. */
  body.songpage:not(.partypage):not(.radiopage) .stage-art{flex:0 0 auto;width:100%;padding:0;overflow:visible}
  /* Role sie ODWRACAJA wzgledem ukladu, ktory tu byl: wczesniej zapas ekranu zbierala okladka
     (`flex:1`), a kolumna tekstu miala byc nieskracalna. Teraz okladka ma stala wysokosc, wiec
     to kolumna musi byc elastyczna -- inaczej `flex:1` na tekscie nie ma sie o co oprzec
     (rodzic bez ograniczenia wysokosci), tekst rosnie do calej swojej dlugosci i strona
     przestaje miescic sie w ekranie. Zmierzone: 1448 px przy oknie 844. */
  body.songpage:not(.partypage):not(.radiopage) .stage-main{flex:1 1 auto;min-height:0}
  body.songpage:not(.partypage):not(.radiopage) .stage-cover-wrap{width:min(62vw,244px,30vh);height:auto;max-width:100%;aspect-ratio:1;margin:0}

  /* Bohater to tozsamosc tej strony -- to jego imie jest powodem, dla ktorego ktokolwiek
     otworzyl link. Dostaje wiec rozmiar, jaki w Radiu ma tytul utworu, a tytul schodzi pod
     niego. Kolejnosc jest wypisana JAWNIE dla wszystkich czterech wierszy: `order` dziedziczy
     sie z bloku wyzej, a tam bohatera jeszcze nie bylo i kolizja numerow jest cicha. */
  body.songpage:not(.partypage):not(.radiopage) .stage-kicker{order:1;font-size:9px;letter-spacing:.08em;opacity:.72;margin:10px 0 2px}
  body.songpage:not(.partypage):not(.radiopage) .stage-hero{order:2;flex:none;margin:0 0 2px;font-size:19px;line-height:1.2;color:#fff}
  body.songpage:not(.partypage):not(.radiopage) .stage-title{order:3;flex:none;font-size:clamp(15px,4vw,18px);margin:0 0 3px;color:#B7C0D0;font-weight:600;text-shadow:none}
  /* Plakietka AI to FORMALNOSC, a nie reklama -- ma byc czytelna i niewidoczna zarazem. */
  body.songpage:not(.partypage):not(.radiopage) .stage-ai{order:4;flex:none;font-size:8px;opacity:.6;margin:0 0 4px;letter-spacing:.04em}
  body.songpage:not(.partypage):not(.radiopage) .stage-ai-dot{font-size:8px;padding:1px 3px}

  /* JEDEN RZAD zamiast trzech. Ikony bez podpisow; licznik polubien zostaje, bo jest trescia,
     a nie etykieta. CTA trzyma tekst -- to jedyny przycisk, ktory zarabia, i ikona z niego
     robi zagadke. Spycha go w prawo `margin-left:auto`. */
  body.songpage:not(.partypage):not(.radiopage) .stage-bar{
    display:flex;order:5;flex:none;align-items:center;gap:6px;margin:8px 0 0;flex-wrap:nowrap;
  }
  body.songpage:not(.partypage):not(.radiopage) .stage-bar .stage-actions{display:flex;gap:6px;margin:0;flex:none;flex-wrap:nowrap}
  body.songpage:not(.partypage):not(.radiopage) .stage-bar .stage-cta{margin:0 0 0 auto;flex:none}
  body.songpage:not(.partypage):not(.radiopage) .stage-bar .stage-cta .btn{padding:8px 14px;font-size:14px;min-height:36px}
  body.songpage:not(.partypage):not(.radiopage) .stage-bar .stage-report{margin:0;flex:none;order:-1}
  body.songpage:not(.partypage):not(.radiopage) .stage-bar .st-btn{min-height:36px;width:36px;padding:0;justify-content:center}
  body.songpage:not(.partypage):not(.radiopage) .stage-bar .st-share span,
  body.songpage:not(.partypage):not(.radiopage) .stage-bar .st-dl span{display:none}
  body.songpage:not(.partypage):not(.radiopage) .stage-bar .st-like{width:auto;padding:0 10px;gap:4px;font-size:13px}
  /* Zgloszenie: chorągiewka zamiast zdania. Tekst zostaje dla czytnika ekranu w aria-label,
     wiec `font-size:0` nie zabiera nikomu dostepu do tej funkcji. */
  body.songpage:not(.partypage):not(.radiopage) .stage-bar .stage-report button{
    font-size:0;width:32px;height:32px;border-radius:999px;border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.05);color:#8C97AB;padding:0;
  }
  body.songpage:not(.partypage):not(.radiopage) .stage-bar .stage-report button::after{content:'91';font-size:14px;line-height:1}

  /* Tekst piosenki dostaje WLASNE, ciemne tlo -- dokladnie to, co w Radiu sprawia, ze wykres
     dzwieku nie czyta sie przez slowa. Slot liczy sie w LINIACH TEKSTU, a nie w wersach:
     dlugi wers zawija sie na dwie linie, wiec slot na piec wersow pokazywalby trzy. */
  body.songpage:not(.partypage):not(.radiopage) .stage-lyrics{
    /* Zapas ekranu zbiera sie TUTAJ, a nie wokol okladki. Okladka ma odtad stala wysokosc,
       wiec bez tego luz lezalby martwym pasem pod transportem; oddany tekstowi daje na
       wysokim telefonie kilka wersow wiecej, a na niskim kurczy sie do trzech linii. */
    order:8;flex:1 1 auto;height:auto;min-height:calc(2 * 1.5em + 16px);max-height:none;overflow:hidden;
    margin:10px 0 0;padding:10px 12px;position:relative;z-index:1;
    background:rgba(9,13,20,.42);border-radius:14px;
    mask-image:linear-gradient(180deg,transparent,#000 20%,#000 80%,transparent);
    -webkit-mask-image:linear-gradient(180deg,transparent,#000 20%,#000 80%,transparent);
  }
  body.songpage:not(.partypage):not(.radiopage) .stage-line{font-size:15px;line-height:1.5;margin:0}

  /* Transport jak w Radiu: same ikony, okragle, w prawdziwym rozmiarze dotyku. Pasek przewijania
     ma wlasny wiersz (`order:-1` z bloku ponizej 760 px), wiec ikony moga stac w jednej linii
     i byc wysrodkowane. Zawezone do `.stage-controls` -- rzad akcji nad nim ma swoje 36 px
     i nie moze urosnac, bo jego zadaniem jest zmiescic sie razem z CTA w jednym wierszu. */
  body.songpage:not(.partypage):not(.radiopage) .stage-controls{order:9;flex:none;margin:8px 0 0;position:sticky;bottom:0;z-index:3;gap:6px;justify-content:center;padding:10px}
  body.songpage:not(.partypage):not(.radiopage) .stage-controls .st-btn span{display:none}
  body.songpage:not(.partypage):not(.radiopage) .stage-controls .st-btn{width:44px;min-width:44px;height:44px;padding:0;border-radius:50%;justify-content:center}
  body.songpage:not(.partypage):not(.radiopage) .stage-controls .st-play{width:52px;height:52px}
  body.songpage:not(.partypage):not(.radiopage) .stage-controls .st-vol{width:44px}
  body.songpage:not(.partypage):not(.radiopage) .stage-controls .st-volume{display:none}
  body.songpage:not(.partypage):not(.radiopage) .stage-controls > *{flex:0 0 auto}
  body.songpage:not(.partypage):not(.radiopage) .stage-controls .st-seekwrap{flex:0 0 100%;width:100%}

  /* Wykres dzwieku schodzi na te sama glebokosc co w Radiu: ma byc tlem, a nie trescia. */
  body.songpage:not(.partypage):not(.radiopage) .stage-viz{opacity:.5}
}

/* Niski ekran przy waskiej szerokosci (okno przegladarki na laptopie zwezone do szerokosci
   telefonu, telefon w poziomie na malym urzadzeniu). Uklad wyzej jest ZAMKNIETY w wysokosci
   ekranu: przy 756x415 same stale elementy potrzebuja 497 px, a `overflow:hidden` na body
   znaczy wtedy, ze dolne 82 px -- czyli transport -- sa NIEOSIAGALNE. Lepsze przewijanie niz
   przycisk, do ktorego nie da sie dojsc. To samo ustepstwo co w bloku dla duzych ekranow. */
@media (max-width:820px) and (max-height:520px){
  body.songpage:not(.partypage):not(.radiopage){height:auto;overflow:visible}
  body.songpage:not(.partypage):not(.radiopage) .stage-lyrics{flex:none;height:auto;min-height:0;max-height:40vh;overflow:auto}
  body.songpage:not(.partypage):not(.radiopage) .stage-controls{position:static}
}
