/* Scoped exclusively to PATCH 27 RADIO and its admin media panel. */
#p27-radio-stage{position:relative;min-width:0}
#p27-radio-stage .p27-stage-actions{display:flex;justify-content:flex-end;gap:12px;margin:8px 0}
#p27-radio-stage #spotlight{position:relative;overflow:hidden;min-height:340px}
#p27-radio-stage .p27-background{position:absolute;inset:0;overflow:hidden;background:#12151c}
#p27-radio-stage .p27-background>img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
#p27-radio-stage .p27-fallback{height:100%;min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:radial-gradient(ellipse at 35% 25%,#263b54,#11131a 65%,#050608);color:#fff;text-align:center;padding:20px}
#p27-radio-stage .p27-fallback span{font-size:clamp(20px,3vw,40px);font-weight:900;letter-spacing:.08em}
#p27-radio-stage .p27-fallback strong{letter-spacing:.2em;font-size:13px}
#p27-radio-stage:fullscreen{box-sizing:border-box;width:100vw;height:100dvh;overflow:auto;background:#090b10;color:#fff;padding:clamp(12px,2vw,28px)}
#p27-radio-stage:fullscreen .two-column{min-height:min(72vh,800px);grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:18px}
#p27-radio-stage:fullscreen .panel{margin:0;min-width:0;background:#161a23;color:#fff}
#p27-radio-stage:fullscreen #spotlight{min-height:55vh}
#p27-radio-stage:fullscreen #now-playing .art{width:min(100%,45vh)}
#p27-radio-stage:fullscreen #p27-fullscreen-transport .player{position:relative!important;bottom:auto!important;left:auto!important;right:auto!important;width:100%!important;transform:none!important;z-index:1}
.p27-admin-row{display:grid;grid-template-columns:minmax(160px,220px) minmax(0,1fr);gap:20px;align-items:start}
.p27-admin-preview{width:100%;aspect-ratio:3/4;background:#151922;overflow:hidden}
.p27-admin-preview img{display:block;width:100%;height:100%;object-fit:cover}
.p27-admin-row button{margin:4px}
@media(max-width:700px){#p27-radio-stage:fullscreen .two-column{grid-template-columns:1fr;min-height:0}#p27-radio-stage:fullscreen #spotlight{min-height:50vh}#p27-radio-stage:fullscreen #now-playing .art{width:min(100%,40vh)}.p27-admin-row{grid-template-columns:1fr}.p27-admin-preview{max-width:260px}}

/* PATCH 27 fullscreen refinement: keep the artist panel inside the viewport.
   Scope deliberately limited to RADIO fullscreen; normal RADIO and locked pages unchanged. */
#p27-radio-stage:fullscreen{height:100dvh;max-height:100dvh;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;min-height:0}
#p27-radio-stage:fullscreen .p27-stage-actions{flex:0 0 auto}
#p27-radio-stage:fullscreen .two-column{flex:1 1 auto;min-height:0;height:auto;max-height:100%;align-items:stretch}
#p27-radio-stage:fullscreen .two-column > .panel{min-height:0;max-height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
#p27-radio-stage:fullscreen #spotlight{min-height:0;max-height:100%;scrollbar-gutter:stable}
#p27-radio-stage:fullscreen #p27-fullscreen-transport{flex:0 0 auto;min-height:0}
@media(max-width:700px){
 #p27-radio-stage:fullscreen .two-column{flex:0 0 auto;height:auto;max-height:none;min-height:0}
 #p27-radio-stage:fullscreen .two-column > .panel{max-height:none;overflow:visible}
 #p27-radio-stage:fullscreen #spotlight{max-height:none;min-height:0}
}

/* PATCH 27 fullscreen final: one entry button outside, one exit button inside. */
#p27-radio-stage #p27-exit{display:none!important}
#p27-radio-stage:fullscreen #p27-fullscreen{display:none!important}
#p27-radio-stage:fullscreen #p27-exit:not([hidden]){
 display:block!important;position:fixed;top:12px;right:18px;z-index:2147483000;
 padding:10px 16px;background:#0b0d11;color:#fff;border:1px solid #00aeef;
 cursor:pointer;box-shadow:0 3px 12px #0009;
}
#p27-radio-stage:fullscreen .p27-stage-actions{display:none!important}
/* Do not crop the artist banner in fullscreen: preserve the complete image. */
#p27-radio-stage:fullscreen #spotlight .social-spotlight-banner{
 height:auto;min-height:0;max-height:none;overflow:visible;
 display:flex;justify-content:center;align-items:center;background:#11151d;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-banner img{
 width:100%;height:auto;max-height:clamp(120px,24dvh,240px);
 object-fit:contain;object-position:center;display:block;
}
#p27-radio-stage:fullscreen .two-column > #spotlight{
 overflow-y:auto;overflow-x:hidden;min-height:0;
}
@media(max-width:700px){
 #p27-radio-stage:fullscreen #p27-exit:not([hidden]){top:8px;right:8px}
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-banner img{max-height:220px}
}

/* V3: fullscreen RADIO covers the existing persistent player; never move or duplicate it. */
#p27-radio-stage:fullscreen{
 position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;
 max-height:100dvh!important;margin:0!important;z-index:2147483000!important;
 box-sizing:border-box!important;overflow:hidden!important;
 padding:clamp(10px,1.5vh,18px) clamp(10px,1.5vw,24px)!important;
 background:#090b10!important;
}
#p27-radio-stage:fullscreen .two-column{
 flex:1 1 auto!important;height:100%!important;min-height:0!important;max-height:100%!important;
 overflow:hidden!important;
}
#p27-radio-stage:fullscreen .two-column > .panel{
 min-height:0!important;max-height:100%!important;overflow-y:auto!important;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-banner img{
 max-height:none!important;object-fit:contain!important;
}
#p27-radio-stage:fullscreen #p27-fullscreen-transport{display:none!important}
@media(max-width:700px){
 #p27-radio-stage:fullscreen{overflow-y:auto!important}
 #p27-radio-stage:fullscreen .two-column{height:auto!important;max-height:none!important;overflow:visible!important;flex:0 0 auto!important}
 #p27-radio-stage:fullscreen .two-column > .panel{max-height:none!important;overflow:visible!important}
}

/* V4 — viewport-fit RADIO fullscreen; no document or panel scrollbars.
   These rules affect only the fullscreen RADIO stage. */
#p27-radio-stage:fullscreen{
  overflow:hidden!important;display:flex!important;flex-direction:column!important;
  height:100dvh!important;max-height:100dvh!important;
  padding:clamp(6px,1vh,12px) clamp(8px,1.2vw,20px)!important;
}
#p27-radio-stage:fullscreen .two-column{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  flex:1 1 auto!important;min-height:0!important;height:100%!important;
  max-height:100%!important;gap:clamp(8px,1vw,16px)!important;
  overflow:hidden!important;align-items:stretch!important;
}
#p27-radio-stage:fullscreen .two-column>.panel,
#p27-radio-stage:fullscreen .two-column>#spotlight{
  box-sizing:border-box!important;height:100%!important;min-height:0!important;
  max-height:100%!important;overflow:hidden!important;
  padding:clamp(10px,1.5vh,20px)!important;margin:0!important;
  scrollbar-width:none!important;
}
#p27-radio-stage:fullscreen #now-playing .art{
  width:min(100%,44dvh,34vw)!important;max-height:none!important;
  margin-bottom:clamp(5px,1vh,12px)!important;
}
#p27-radio-stage:fullscreen #now-playing h1,
#p27-radio-stage:fullscreen #now-playing h2{margin-block:clamp(3px,.7vh,9px)!important}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-card{
  display:flex!important;flex-direction:column!important;min-height:0!important;
  height:100%!important;overflow:hidden!important;gap:clamp(4px,.8vh,10px)!important;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-banner{
  flex:0 1 auto!important;min-height:0!important;max-height:22dvh!important;
  overflow:hidden!important;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-banner img{
  width:100%!important;height:100%!important;max-height:22dvh!important;
  object-fit:contain!important;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-identity{
  flex:0 0 auto!important;min-height:0!important;margin:0!important;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-identity p{
  margin-block:clamp(2px,.5vh,6px)!important;line-height:1.2!important;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-section{
  flex:0 1 auto!important;min-height:0!important;overflow:hidden!important;
  padding-block:clamp(3px,.7vh,9px)!important;margin:0!important;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-section h3{
  margin:0 0 clamp(3px,.6vh,8px)!important;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-posts{
  display:flex!important;gap:6px!important;max-height:18dvh!important;overflow:hidden!important;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-posts img{
  max-height:18dvh!important;width:auto!important;object-fit:contain!important;
}
#p27-radio-stage:fullscreen #p27-exit:not([hidden]){top:6px!important;right:8px!important}
/* Narrow portrait screens: prioritize audio controls and current artist identity.
   Secondary artist feeds are omitted rather than forcing scrolling. */
@media(max-width:700px) and (orientation:portrait){
 #p27-radio-stage:fullscreen .two-column{
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1.25fr) minmax(0,1fr)!important;
  gap:6px!important;overflow:hidden!important;
 }
 #p27-radio-stage:fullscreen .two-column>.panel{padding:6px 10px!important}
 #p27-radio-stage:fullscreen #now-playing .art{
  width:min(100%,24dvh,48vw)!important;margin-bottom:3px!important;
 }
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-card{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)!important;
  align-content:start!important;gap:8px!important;
 }
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-banner{
  max-height:23dvh!important;align-self:start!important;
 }
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-banner img{max-height:23dvh!important}
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-identity{min-width:0!important;display:block!important}
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-avatar{width:36px!important;height:36px!important}
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-section{display:none!important}
}
/* Short screens, including mobile landscape: reduce artwork and secondary feeds. */
@media(max-height:650px){
 #p27-radio-stage:fullscreen #now-playing .art{width:min(100%,30dvh,28vw)!important}
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-banner,
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-banner img{max-height:16dvh!important}
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-section:last-child{display:none!important}
}
@media(max-height:420px){
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-section{display:none!important}
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-banner,
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-banner img{max-height:12dvh!important}
}

/* V5 — center the RADIO and public artist profile vertically within each
   fullscreen column. The original artist banner URL comes from the public
   profile; display that image uncropped, never replace it with the avatar. */
#p27-radio-stage:fullscreen .two-column > #now-playing,
#p27-radio-stage:fullscreen .two-column > #spotlight{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:stretch!important;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-card{
  flex:0 1 auto!important;
  height:auto!important;
  max-height:100%!important;
  min-height:0!important;
  justify-content:center!important;
  overflow:hidden!important;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-banner{
  flex:0 1 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:auto!important;
  max-height:min(32dvh,310px)!important;
  min-height:0!important;
  overflow:hidden!important;
  background:#11151d!important;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-banner img{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  height:auto!important;
  max-height:min(32dvh,310px)!important;
  object-fit:contain!important;
  object-position:center!important;
  flex:0 1 auto!important;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-section{
  flex:0 1 auto!important;
}
@media(max-width:700px) and (orientation:portrait){
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-card{
  display:grid!important;
  align-content:center!important;
  justify-content:stretch!important;
 }
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-banner,
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-banner img{
  max-height:23dvh!important;
 }
}
@media(max-height:650px){
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-banner,
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-banner img{
  max-height:18dvh!important;
 }
}

/* V6: fullscreen-only artist post modal. The RADIO remains fixed underneath. */
#p27-radio-stage:fullscreen #p27-post-overlay{position:absolute!important;inset:0!important;z-index:2147483646!important;background:rgba(0,0,0,.82)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:clamp(8px,2.5vmin,28px)!important;overflow:hidden!important;box-sizing:border-box!important}
#p27-radio-stage:fullscreen .p27-post-dialog{position:relative!important;width:min(680px,100%)!important;max-height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;background:#171b24!important;border:1px solid #3d4652!important;color:#fff!important;box-shadow:0 16px 70px #000!important;padding:20px!important;box-sizing:border-box!important}
#p27-radio-stage:fullscreen .p27-post-close{position:absolute!important;right:10px!important;top:8px!important;z-index:2!important;border:1px solid #00aeef!important;background:#10151c!important;color:white!important;padding:8px 12px!important;cursor:pointer!important}
#p27-radio-stage:fullscreen .p27-post-body{overflow-y:auto!important;overscroll-behavior:contain!important;min-height:0!important;padding-top:22px!important;display:flex!important;flex-direction:column!important;gap:10px!important}
#p27-radio-stage:fullscreen .p27-post-heading{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:baseline!important}
#p27-radio-stage:fullscreen .p27-post-heading small{opacity:.65!important}
#p27-radio-stage:fullscreen .p27-post-image{display:block!important;width:100%!important;height:auto!important;max-height:48dvh!important;object-fit:contain!important;background:#0c1017!important}
#p27-radio-stage:fullscreen .p27-post-caption{white-space:pre-wrap!important;overflow-wrap:anywhere!important;margin:0!important}
#p27-radio-stage:fullscreen .p27-post-comments{border-top:1px solid #424954!important;padding-top:10px!important}
#p27-radio-stage:fullscreen .p27-post-comment{margin:8px 0!important;overflow-wrap:anywhere!important}
@media(max-width:700px){#p27-radio-stage:fullscreen .p27-post-dialog{padding:12px!important}#p27-radio-stage:fullscreen .p27-post-image{max-height:38dvh!important}}

/* PATCH 27 — fullscreen artist banner: use the existing public-profile image URL,
   fill the entire banner width without distortion. Cropping is vertical as needed. */
#p27-radio-stage:fullscreen #spotlight .social-spotlight-banner{
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:clamp(110px,24dvh,310px)!important;
  max-height:min(32dvh,310px)!important;
  display:block!important;overflow:hidden!important;
}
#p27-radio-stage:fullscreen #spotlight .social-spotlight-banner img{
  display:block!important;width:100%!important;max-width:none!important;
  height:100%!important;max-height:none!important;
  object-fit:cover!important;object-position:center center!important;
}
@media(max-width:700px) and (orientation:portrait){
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-banner{height:min(23dvh,190px)!important;max-height:23dvh!important}
}
@media(max-height:650px){
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-banner{height:18dvh!important;max-height:18dvh!important}
}
@media(max-height:420px){
 #p27-radio-stage:fullscreen #spotlight .social-spotlight-banner{height:12dvh!important;max-height:12dvh!important}
}
/* Fixed-size play/pause icon, regardless of which state is shown. */
#p27-radio-stage .p27-play{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}
#p27-radio-stage .p27-play .p27-play-icon{width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;display:block!important;fill:currentColor!important;flex:none!important}
