/* A listening window stays interactive while the hero enters/leaves the viewport.
   No transform on the dock/media ancestors: mobile uses a fixed embed slot. */
body.hero-in #player .player-media.is-mini{opacity:1;pointer-events:auto;transform:none;transition:none}
#player.player-section{animation:none}
#player .player-toolbar{grid-template-columns:minmax(120px,1fr) minmax(120px,1.3fr) minmax(180px,240px) auto auto 44px}
.player-volume{display:flex;align-items:center;gap:8px;min-width:0}
.player-volume button{height:44px;min-width:64px;padding:0 8px;border:1px solid var(--line-hi);font-size:12px;white-space:nowrap;color:var(--purple)}
.player-volume label{font-size:11px;color:var(--muted);white-space:nowrap}
.player-volume input{min-width:44px;width:100%;height:44px;accent-color:var(--purple);cursor:pointer;touch-action:none}
.player-volume output{font-size:11px;min-width:3ch;font-variant-numeric:tabular-nums;color:var(--ink)}
.player-volume :disabled{opacity:.4;cursor:default}
#player .player-media.is-mini .embed-slot[data-platform=youtube]{width:426px;height:240px;min-height:240px}
@media(max-width:900px){
 #player .player-toolbar{grid-template-columns:minmax(0,1fr) auto auto 44px;grid-template-areas:'id act media close' 'prog prog prog prog' 'volume volume volume volume';gap:0 6px;padding-top:6px}
 #player .player-identity{grid-area:id}#player .player-progress{grid-area:prog}#player #toggle-play{grid-area:act}#player #toggle-media{grid-area:media}#player .close-player{grid-area:close}
 #player .player-volume{grid-area:volume;justify-self:end;width:min(100%,300px)}
}
@media(max-width:760px){
 #player .player-media.is-mini{overflow:visible}
 #player .player-media.is-mini .embed-slot[data-platform=youtube]{width:min(426px,calc(100vw - 24px))!important;height:240px!important;aspect-ratio:auto!important;right:12px;bottom:calc(var(--dock-h,146px) + 12px)}
 #player .player-media:not(.is-mini) .embed-slot[data-platform=youtube]{min-height:200px}
}
@media(min-width:1050px){
 html[data-terminal] body.hero-in #player[data-hero-transport=true] .player-toolbar{height:auto;min-height:92px;grid-template-areas:'prog act media close' 'volume volume volume volume'}
 html[data-terminal] body.hero-in #player[data-hero-transport=true] .player-volume{grid-area:volume;min-width:0;width:100%}
 html[data-terminal] body.hero-in #player[data-hero-transport=true] .player-progress{grid-area:prog}
}

/* Make room for both audio rows in a short viewport, without covering the slots. */
html[data-terminal] .h24[data-terminal-compact=true] .loadout-project[data-index="04"] h3{min-height:68px;padding-block:8px}

/* The station fader shares the slots' contact material; the native iframe is unobstructed. */
#player-volume{appearance:none;-webkit-appearance:none;background:transparent;border:0;border-radius:0;--volume-fill:70%}
#player-volume::-webkit-slider-runnable-track{height:5px;background:linear-gradient(90deg,#c5a6ed var(--volume-fill),#343b49 var(--volume-fill));border-bottom:1px solid #0a0d14}
#player-volume::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:10px;height:20px;margin-top:-7.5px;background:linear-gradient(100deg,#f3eafb,#b39acb);border:1px solid #d9c8ed;border-radius:0;box-shadow:0 1px 5px #0008;clip-path:polygon(0 3px,3px 0,100% 0,100% calc(100% - 3px),calc(100% - 3px) 100%,0 100%)}
#player-volume::-moz-range-track{height:5px;background:#343b49;border:0}
#player-volume::-moz-range-progress{height:5px;background:#c5a6ed}
#player-volume::-moz-range-thumb{width:8px;height:18px;border-radius:0;background:#d8c4ef;border:1px solid #f3eafb}
#player .player-volume button,#player .player-action,#player .close-player{background:linear-gradient(125deg,#202634,#0e121c);border-color:#727184;box-shadow:inset 0 1px #c7cedc18;transition:background 140ms,border-color 140ms}
#player .player-volume button:hover,#player .player-action:hover,#player .close-player:hover{border-color:#d5bfed;background:#342d43}
#player .player-volume button[aria-pressed=true]{background:#d8c5ef;color:#191222}
#player .player-media.is-mini{box-shadow:none}
#player .embed-slot::before{inset:-8px;border:1px solid #7e8797;box-shadow:inset 0 1px #dae1ed66;background:linear-gradient(90deg,#d4dce8 0 34px,transparent 34px) left top/100% 2px no-repeat;clip-path:polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,8px 100%,0 calc(100% - 8px));pointer-events:none}
@media(prefers-reduced-motion:reduce){#player .player-volume button,#player .player-action,#player .close-player{transition:none}}

/* Transport cassette: one tactile key, a time rail and a recessed level strip. */
#player .player-toolbar{column-gap:12px}
#player #toggle-play{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:52px;padding:7px 10px;font-size:10px;line-height:1;color:#171b25;border-color:#aeb6c5;background:linear-gradient(115deg,#d4d9e3,#9ba3b3 48%,#c7cedb 49%,#aeb8c9);box-shadow:inset 1px 1px #f5f7fc88,inset -2px -2px #778396;clip-path:polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,8px 100%,0 calc(100% - 8px))}
#player #toggle-play::before{content:'';width:18px;height:18px;background:currentColor;clip-path:polygon(20% 4%,94% 50%,20% 96%)}
#player.is-playing #toggle-play::before{clip-path:polygon(12% 6%,38% 6%,38% 94%,12% 94%,12% 6%,62% 6%,88% 6%,88% 94%,62% 94%,62% 6%)}
#player #toggle-play:hover{background:linear-gradient(115deg,#ece5f4,#b6a9c9 48%,#e1d7ee 49%,#c7bbd6);box-shadow:inset 1px 1px #f5f0fa,inset -2px -2px #8e809e}
#player #toggle-play:active{filter:brightness(.94);box-shadow:inset 2px 2px #6d647f,inset -1px -1px #e2d7ed}
#player #toggle-play:disabled{opacity:.55}
#player[data-playback=error] #toggle-play::before{clip-path:none;background:none;border:2px solid currentColor;border-right-color:transparent;border-radius:50%}
#player .player-progress{position:relative;display:block;height:48px;min-width:0;align-self:center}
#player .player-progress::before{content:'POSITION';position:absolute;left:0;top:3px;font:8px/1.2 var(--font);letter-spacing:.16em;color:#a3adbd;pointer-events:none}
#player .player-time{position:absolute;right:0;top:0;font:13px/1.2 ZenDots,var(--font);letter-spacing:0;color:#e1e5ef;font-variant-numeric:tabular-nums;pointer-events:none}
#player .player-progress .rec-wrap{position:absolute;inset:0;display:flex;align-items:center}
#player .player-progress input{box-sizing:border-box;height:48px;width:100%;margin:0;padding:16px 0 0;min-width:0}
#player .player-progress input::-webkit-slider-runnable-track{height:4px;background:linear-gradient(90deg,#c9b4e8 calc(var(--p,0)*100%),#363e4e 0);box-shadow:0 1px #090c13}
#player .player-progress input::-webkit-slider-thumb{width:4px;height:12px;margin-top:-4px;background:#ede4f8;box-shadow:0 0 0 1px #10131c}
#player .player-progress input::-moz-range-track{height:4px;background:#363e4e}
#player .player-progress input::-moz-range-progress{height:4px;background:#c9b4e8}
#player .player-progress .rec-mark{top:calc(50% + 8px)}
#player .player-progress .rec-label{opacity:0;transition:opacity 140ms}
#player .player-progress .rec-mark:is(:hover,:focus-visible) .rec-label{opacity:1;background:#10131c;padding:3px;z-index:2}
#player .player-volume{gap:6px;border-top:1px solid #454d5b;background:linear-gradient(90deg,#242b3833,transparent);padding-right:3px}
#player .player-volume label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#player #player-mute{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;border:0;box-shadow:none;background:transparent;font-size:0;color:#b8a1d4}
#player #player-mute::before{content:'';width:18px;height:18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath fill='none' stroke='white' stroke-width='1.5' d='M15 8q4 4 0 8m3-11q7 7 0 14'/%3E%3C/svg%3E") center/contain no-repeat}
#player #player-mute[aria-pressed=true]{color:#e7dbf6;background:#58456b}
#player #player-mute[aria-pressed=true]::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath fill='none' stroke='white' stroke-width='1.5' d='m16 9 6 6m0-6-6 6'/%3E%3C/svg%3E")}
#player #player-volume{background:repeating-linear-gradient(90deg,#626c7f 0 1px,transparent 1px 10%) left calc(50% + 9px)/100% 3px no-repeat}
#player #player-volume::-webkit-slider-runnable-track{height:3px;background:linear-gradient(90deg,#b8a1d4 var(--volume-fill),#394150 var(--volume-fill));border:0}
#player #player-volume::-webkit-slider-thumb{height:15px;width:7px;margin-top:-6px;clip-path:none;border:1px solid #cbd0dd;background:linear-gradient(90deg,#e2e4eb,#98a3b5);box-shadow:0 1px 3px #000}
#player .player-volume output{font:11px/1.2 ZenDots,var(--font);min-width:3ch;color:#d5dbe6}
#player #toggle-media,#player #close-player{height:44px;width:44px;min-width:44px;padding:0;border:0;border-left:1px solid #454d5b;box-shadow:none;background:transparent;color:#c0c6d2;font-size:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
#player #toggle-media::before{content:'';width:13px;height:10px;border:1px solid currentColor;box-shadow:inset 3px 3px #9ca7ba44}
#player #toggle-media[aria-expanded=true]::before{box-shadow:inset 0 -3px #9ca7ba}
#player #close-player svg{width:15px;height:15px}
#player :is(#player-mute,#toggle-media,#close-player):hover{background:#303041;color:#eee6f7}
#player :is(button,input):focus-visible{outline:2px solid #dbc4f8;outline-offset:-2px}
@media(min-width:1050px){
 html[data-terminal] body.hero-in #player[data-hero-transport=true]{padding:0 8px;background:linear-gradient(110deg,#212836,#10141f 48%,#151a25);border:1px solid #697487;border-top-color:#b7bfce;box-shadow:inset 0 2px #0b1019,inset 0 -2px #0b1019,0 3px 8px #0005}
 html[data-terminal] body.hero-in #player[data-hero-transport=true] .player-toolbar{grid-template-columns:52px minmax(0,1fr) 44px 44px;grid-template-areas:'act prog prog prog' 'act volume media close';grid-template-rows:44px 44px;gap:4px 6px;height:92px;min-height:92px}
 html[data-terminal] body.hero-in #player[data-hero-transport=true] #toggle-play{grid-area:act;width:52px;height:84px;min-height:84px;font-size:10px;gap:12px}
 html[data-terminal] body.hero-in #player[data-hero-transport=true] #toggle-play::before{width:22px;height:22px}
 html[data-terminal] body.hero-in #player[data-hero-transport=true] .player-progress{display:block;height:44px;grid-area:prog}
 html[data-terminal] body.hero-in #player[data-hero-transport=true] .player-progress input{height:44px;min-width:0}
 html[data-terminal] body.hero-in #player[data-hero-transport=true] .player-time{font-size:13px;top:2px}
 html[data-terminal] body.hero-in #player[data-hero-transport=true] .player-progress::before{top:5px}
 html[data-terminal] body.hero-in #player[data-hero-transport=true] .player-volume{grid-area:volume;min-width:0;width:100%}
 html[data-terminal] body.hero-in #player[data-hero-transport=true] #toggle-media{grid-area:media}
 html[data-terminal] body.hero-in #player[data-hero-transport=true] #close-player{grid-area:close}
}
@media(max-width:900px){
 #player .player-toolbar{grid-template-columns:52px minmax(0,1fr) 44px 44px;grid-template-areas:'id id media close' 'act prog prog prog' 'act volume volume volume';grid-template-rows:auto 44px 44px;gap:4px 8px;padding:5px 0}
 #player #toggle-play{grid-area:act;height:84px;padding:0}
 #player .player-progress{height:44px}
 #player .player-progress input{height:44px}
 #player .player-volume{width:100%;max-width:none}
 #player .player-toolbar h2{font-size:12px}
 #player .player-status{font-size:10px}
}
@media(min-width:1050px) and (max-width:1450px){
 html[data-terminal] body.hero-in #player[data-hero-transport=true] .player-toolbar{grid-template-areas:'act prog media close' 'act volume volume volume'}
 html[data-terminal] body.hero-in #player[data-hero-transport=true] .player-progress::before{display:none}
 html[data-terminal] body.hero-in #player[data-hero-transport=true] .player-time{font-family:var(--font);font-size:11px;top:5px}
}
