/* 666SOUNDsDESIGn Player Stage V12: real-spectrum geometry + single-bus reactivity. */
:root{
  --s666-cyan:#16fff3;--s666-blue:#168bff;--s666-violet:#b45cff;--s666-pink:#ff3dbb;--s666-deep:#050814;
  --s666-stage-level:0;--s666-stage-peak:0;--s666-stage-pulse:0;--s666-stage-low:0;--s666-stage-mid:0;--s666-stage-high:0;--s666-stage-stereo:0;--s666-ticker-pulse:0;
  --s666-header-ratio:1536/509;
}
body[data-veluna-page="main"] :is(button,a[href],[role="button"],.icon-btn,.status-chip,.s666-cockpit-action){
  touch-action:manipulation!important;-webkit-tap-highlight-color:rgba(180,92,255,.32)!important;transform-origin:center!important;
  border:1px solid rgba(22,255,243,.56)!important;border-radius:12px!important;color:#eaffff!important;
  background:linear-gradient(180deg,rgba(18,27,50,.98),rgba(4,8,21,.98))!important;
  box-shadow:inset 0 0 12px rgba(22,255,243,.06),0 0 5px rgba(22,255,243,.34),0 0 13px rgba(180,92,255,.15)!important;
  text-shadow:0 0 7px rgba(22,255,243,.48)!important;
  transition:transform .08s ease,filter .08s ease,color .08s ease,background .08s ease,border-color .08s ease,box-shadow .08s ease!important;
  user-select:none!important;-webkit-user-select:none!important;
}
body[data-veluna-page="main"] :is(button,a[href],[role="button"],.icon-btn,.status-chip,.s666-cockpit-action):hover{border-color:rgba(126,220,255,.92)!important;box-shadow:inset 0 0 14px rgba(22,255,243,.10),0 0 8px rgba(22,255,243,.62),0 0 17px rgba(180,92,255,.28)!important}
body[data-veluna-page="main"] :is(button,a[href],[role="button"],.icon-btn,.status-chip,.s666-cockpit-action):is(:active,.is-pressed,[data-s666-press="1"]){transform:translateY(2px) scale(.955)!important;color:#fff!important;border-color:#e0b6ff!important;background:linear-gradient(135deg,rgba(180,92,255,.68),rgba(22,139,255,.44)),var(--s666-deep)!important;box-shadow:0 0 7px rgba(255,255,255,.92),0 0 23px rgba(180,92,255,.92),0 0 25px rgba(22,139,255,.66),inset 0 0 18px rgba(255,255,255,.14)!important;filter:brightness(1.28) saturate(1.24)!important}
body[data-veluna-page="main"] :is(button,a[href],[role="button"],.icon-btn,.status-chip,.s666-cockpit-action):is(.is-active,.transport-active,[aria-pressed="true"],[data-state="active"]):not(.is-pressed){color:#fff!important;border-color:rgba(218,165,255,.98)!important;background:linear-gradient(135deg,rgba(180,92,255,.52),rgba(87,39,163,.34)),var(--s666-deep)!important;box-shadow:0 0 7px rgba(218,165,255,.82),0 0 20px rgba(180,92,255,.74),inset 0 0 16px rgba(180,92,255,.19)!important}
body[data-veluna-page="main"] :is(button,a[href],[role="button"]):disabled{transform:none!important;filter:none!important;opacity:.48!important;pointer-events:none!important}
.s666-stage-toast{position:fixed;left:50%;bottom:max(22px,env(safe-area-inset-bottom));z-index:2147483500;max-width:min(86vw,520px);padding:10px 16px;border:1px solid rgba(22,255,243,.72);border-radius:14px;background:rgba(4,8,22,.96);color:#dff;font:800 13px/1.25 system-ui,sans-serif;box-shadow:0 0 22px rgba(22,255,243,.34);opacity:0;transform:translate(-50%,18px);transition:.2s}.s666-stage-toast.is-visible{opacity:1;transform:translate(-50%,0)}.s666-stage-toast.is-error{border-color:rgba(255,61,187,.82);box-shadow:0 0 22px rgba(255,61,187,.40)}

/* Existing background/graphics receive different signal profiles; no whole-player brightness flash. */
body[data-veluna-page="main"] .frame-stage{background-position:calc(50% + (var(--s666-stage-mid)*10px - 5px)) calc(50% + (var(--s666-stage-high)*8px - 4px))!important;transition:background-position .18s linear!important}
body[data-veluna-page="main"] .frame-overlay{transform:scale(calc(1 + var(--s666-stage-low)*.012));opacity:calc(.72 + var(--s666-stage-mid)*.16);filter:saturate(calc(1 + var(--s666-stage-high)*.22));transform-origin:center;will-change:transform,opacity,filter}
.s666-canonical-header-image{aspect-ratio:var(--s666-header-ratio);object-fit:contain!important;object-position:center!important;transform:scale(calc(1 + var(--s666-stage-mid)*.018)) translateY(calc((var(--s666-stage-high) - .5)*1.5px));filter:brightness(calc(1 + var(--s666-stage-high)*.16)) saturate(calc(1.02 + var(--s666-stage-mid)*.22)) drop-shadow(0 0 calc(4px + var(--s666-stage-peak)*12px) rgba(180,92,255,.30));transform-origin:center;will-change:transform,filter}
body[data-veluna-page="main"] :is(#nowCover,.mff-symbol img){transform:scale(calc(1.01 + var(--s666-stage-low)*.035));filter:brightness(calc(.88 + var(--s666-stage-high)*.20)) saturate(calc(1.05 + var(--s666-stage-mid)*.35)) drop-shadow(0 0 calc(4px + var(--s666-stage-pulse)*18px) rgba(180,92,255,.38));transform-origin:center;will-change:transform,filter}

.s666-main-header{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;padding:0!important;background:rgba(3,5,16,.90)!important;border:1px solid rgba(22,255,243,.34)!important;border-radius:18px!important;box-shadow:inset 0 0 18px rgba(22,255,243,.05),0 0 18px rgba(180,92,255,.14)!important}
.s666-main-header :is(#pcHeaderBrandSplit,.pc-header-brand-split){width:100%!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.s666-main-header-image{display:block!important;width:100%!important;height:auto!important;max-width:100%!important;max-height:100%!important;min-height:0!important;object-fit:contain!important;object-position:center!important}
.s666-main-header-line{position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:18px!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;padding:0 10px!important;color:#66f7ff!important;font:800 clamp(7px,.54vw,10px)/18px ui-monospace,SFMono-Regular,Menlo,monospace!important;letter-spacing:.045em!important;text-shadow:0 0 7px rgba(22,255,243,.55)!important}
.s666-title-marquee{will-change:transform,filter,text-shadow}
@keyframes s666TitleMarquee{0%,8%{transform:translateX(0)}92%,100%{transform:translateX(calc(-100% - 24px))}}

/* Fixed-time pulse animations are forbidden on core visuals. */
body[data-veluna-page="main"] :is(.eq-bar-fill,.side-meter-fill,.status-dot){animation:none!important}

@media(min-width:761px){
  :root{--s666-main-player-width:min(56vw,1080px);--s666-main-player-half:min(28vw,540px);--s666-side-panel-width:clamp(220px,calc(19vw - 16px),300px);--s666-side-panel-gap:clamp(7px,.65vw,12px)}
  body[data-veluna-page="main"] .frame-stage{position:relative!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;overflow:hidden!important;padding:0!important}
  body[data-veluna-page="main"] .frame-stage .player-shell{position:relative!important;inset:auto!important;transform:none!important;width:var(--s666-main-player-width)!important;max-width:var(--s666-main-player-width)!important;min-width:min(760px,var(--s666-main-player-width))!important;height:calc(100dvh - 12px)!important;min-height:0!important;max-height:calc(100dvh - 12px)!important;margin:6px auto!important;padding:4px 0 2px!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:clamp(3px,.42vh,6px)!important;box-sizing:border-box!important}
  body[data-veluna-page="main"] .player-shell>.hero{order:1!important;position:relative!important;flex:0 0 clamp(142px,18vh,224px)!important;height:clamp(142px,18vh,224px)!important;min-height:142px!important;max-height:224px!important;margin:0 22px!important;overflow:hidden!important}
  body[data-veluna-page="main"] .player-shell>.top-hud{order:2!important;flex:0 0 42px!important;height:42px!important;margin:0 22px!important;padding:3px 8px!important;display:block!important;overflow:hidden!important}
  body[data-veluna-page="main"] .top-hud .status-cluster{width:100%!important;height:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;overflow:hidden!important}
  body[data-veluna-page="main"] .top-hud .systempanel-group{position:relative!important;inset:auto!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:4px!important;min-width:0!important;height:34px!important;overflow:hidden!important}
  body[data-veluna-page="main"] .top-hud .systempanel-left{justify-content:flex-start!important}body[data-veluna-page="main"] .top-hud .systempanel-right{justify-content:flex-end!important}
  body[data-veluna-page="main"] .top-hud .status-chip{position:relative!important;inset:auto!important;flex:0 0 auto!important;width:auto!important;min-width:38px!important;max-width:48px!important;height:28px!important;min-height:28px!important;padding:0 7px!important;margin:0!important}
  body[data-veluna-page="main"] .top-hud .s666-top-veluna-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:92px!important;max-width:112px!important;height:28px!important;padding:0 8px!important;margin:0!important;font:900 9px/1 ui-monospace,monospace!important;white-space:nowrap!important;text-decoration:none!important}
  body[data-veluna-page="main"] .player-shell>.info-grid{order:3!important;flex:0 0 clamp(54px,6vh,66px)!important;height:clamp(54px,6vh,66px)!important;margin:0 22px!important;grid-template-columns:1fr 1fr 1.55fr .72fr!important;gap:8px!important}
  body[data-veluna-page="main"] .player-shell>.visualizer{order:4!important;flex:0 1 clamp(154px,19vh,206px)!important;min-height:154px!important;height:clamp(154px,19vh,206px)!important;margin:0 22px!important;padding:8px 15px 10px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
  body[data-veluna-page="main"] .visualizer .eq-bars{flex:1 1 auto!important;width:100%!important;height:100%!important;min-height:128px!important;margin-top:5px!important;overflow:hidden!important;contain:layout paint!important;gap:clamp(4px,.45vw,8px)!important}
  body[data-veluna-page="main"] .visualizer .eq-bar-slot{position:relative!important;height:100%!important;display:block!important;overflow:hidden!important;contain:layout paint!important}
  body[data-veluna-page="main"] .visualizer .eq-bar-fill{position:absolute!important;inset:auto 0 0!important;width:100%!important;height:100%!important;transform:scaleY(var(--eq-scale,.08))!important;transform-origin:center bottom!important;transition:none!important;will-change:transform,opacity!important;background:linear-gradient(180deg,#ff48df 0 35%,#9c4bff 58%,#18f5ff 100%)!important}
  body[data-veluna-page="main"] .visualizer .eq-bar-slot:nth-child(13) .eq-bar-fill,body[data-veluna-page="main"] .visualizer .eq-bar-slot:nth-child(14) .eq-bar-fill,body[data-veluna-page="main"] .visualizer .eq-bar-slot:nth-child(15) .eq-bar-fill,body[data-veluna-page="main"] .visualizer .eq-bar-slot:nth-child(16) .eq-bar-fill{background:linear-gradient(180deg,#fff 0 8%,#ff46e6 26%,#a35aff 54%,#16fff3 100%)!important;box-shadow:0 0 calc(8px + var(--s666-stage-high)*10px) rgba(255,255,255,.28),0 0 calc(14px + var(--s666-stage-mid)*14px) rgba(180,92,255,.54)!important}
  body[data-veluna-page="main"] .player-shell>.s666-primary-action-dock{order:5!important;flex:0 0 38px!important;height:38px!important;margin:0 22px!important}
  body[data-veluna-page="main"] .player-shell>.bottom-console{order:6!important;flex:0 0 clamp(60px,6.5vh,70px)!important;height:clamp(60px,6.5vh,70px)!important;margin:0 22px!important;padding:7px 10px!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(142px,174px)!important;align-items:center!important;gap:8px!important;overflow:hidden!important}
  body[data-veluna-page="main"] .bottom-console .control-toolbar{display:flex!important;flex-wrap:nowrap!important;gap:5px!important;min-width:0!important}body[data-veluna-page="main"] .bottom-console .icon-btn{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important}
  body[data-veluna-page="main"] .bottom-console .timeline-wrap[hidden]{display:none!important}body[data-veluna-page="main"] .bottom-console .volume-wrap{min-width:0!important;width:100%!important;display:flex!important;gap:6px!important}body[data-veluna-page="main"] .bottom-console input[type="range"]{width:100%!important;min-width:0!important;pointer-events:auto!important}
  #s666StageDiscord,#s666StageSkip{min-width:92px!important;max-width:104px!important;height:38px!important;padding:0 8px!important;font:900 9px/1 ui-monospace,monospace!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body[data-veluna-page="main"] #pcBottomSyncMeter{order:7!important;position:relative!important;inset:auto!important;transform:none!important;flex:0 0 27px!important;width:calc(100% - 44px)!important;height:27px!important;margin:0 auto!important;padding:3px 14px!important}body[data-veluna-page="main"] #pcBottomSyncMeter .pc-bottom-sync-seg{transition:none!important;will-change:transform,opacity!important}
  body[data-veluna-page="main"] .player-shell>.now-playing{order:8!important;position:relative!important;inset:auto!important;flex:0 0 clamp(204px,23vh,252px)!important;height:clamp(204px,23vh,252px)!important;min-height:204px!important;max-height:252px!important;margin:0 22px!important;padding:10px 12px!important;display:grid!important;grid-template-columns:clamp(164px,12vw,198px) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) 44px!important;gap:8px 14px!important;overflow:hidden!important;box-sizing:border-box!important}
  body[data-veluna-page="main"] .now-playing :is(#phase10NowVersion,.phase10-now-version,#pcTickerRebuildLane,.pc-ticker-rebuild-lane,.system-version-badge,#playerAlertPcBox){display:none!important}
  body[data-veluna-page="main"] .now-playing .now-cover-wrap{position:relative!important;inset:auto!important;grid-column:1!important;grid-row:1/3!important;width:clamp(164px,12vw,198px)!important;height:clamp(164px,12vw,198px)!important;align-self:center!important;justify-self:start!important;overflow:hidden!important;border-radius:17px!important;box-shadow:0 0 calc(14px + var(--s666-stage-low)*12px) rgba(22,255,243,.24),0 0 calc(18px + var(--s666-stage-pulse)*18px) rgba(180,92,255,.30)!important}
  body[data-veluna-page="main"] .now-playing #nowCover{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:15px!important}
  body[data-veluna-page="main"] .now-playing .section-topline{position:relative!important;inset:auto!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;margin:0!important;padding:3px 0 0!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:start!important;overflow:hidden!important}
  body[data-veluna-page="main"] .now-playing .section-kicker{color:#16fff3!important;font:900 11px/1.15 ui-monospace,monospace!important;letter-spacing:.18em!important;text-shadow:0 0 8px rgba(22,255,243,.48)!important}
  body[data-veluna-page="main"] .now-playing .s666-now-static-title{margin-top:5px!important;color:#f0dcff!important;font:950 clamp(17px,1.35vw,22px)/1.15 system-ui,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-shadow:0 0 9px rgba(180,92,255,.48)!important}
  body[data-veluna-page="main"] .now-playing .s666-now-meta-detail{margin-top:8px!important;color:#8dfcff!important;font:800 clamp(9px,.72vw,12px)/1.25 ui-monospace,monospace!important;letter-spacing:.045em!important;white-space:normal!important;overflow:hidden!important;max-height:2.6em!important;text-shadow:0 0 7px rgba(22,255,243,.30)!important}
  body[data-veluna-page="main"] .now-playing #historyToggle{position:relative!important;inset:auto!important;width:88px!important;height:30px!important;margin:0!important}
  body[data-veluna-page="main"] .now-playing .ticker-window{position:relative!important;inset:auto!important;grid-column:2!important;grid-row:2!important;width:100%!important;height:44px!important;padding:0 10px!important;margin:0!important;overflow:hidden!important;z-index:2!important;border:1px solid rgba(22,255,243,.42)!important;border-radius:12px!important;background:linear-gradient(180deg,rgba(15,23,43,.96),rgba(5,9,24,.96))!important;box-shadow:inset 0 0 calc(10px + var(--s666-ticker-pulse)*18px) rgba(180,92,255,.12),0 0 calc(7px + var(--s666-ticker-pulse)*12px) rgba(22,255,243,.13)!important}
  body[data-veluna-page="main"] .now-playing :is(#nowPlayingTicker,.ticker-text){position:relative!important;inset:auto!important;display:inline-block!important;width:max-content!important;min-width:100%!important;height:100%!important;line-height:42px!important;margin:0!important;padding-left:0!important;padding-right:24px!important;white-space:nowrap!important;animation:s666TitleMarquee 14s linear infinite!important;font-size:clamp(15px,1.08vw,18px)!important;color:#c56cff!important;text-shadow:0 0 calc(7px + var(--s666-ticker-pulse)*13px) rgba(197,108,255,calc(.48 + var(--s666-ticker-pulse)*.42)),0 0 calc(4px + var(--s666-stage-low)*9px) rgba(255,255,255,.22)!important;filter:brightness(calc(1 + var(--s666-ticker-pulse)*.34)) saturate(calc(1.05 + var(--s666-stage-low)*.30))!important}
  body[data-veluna-page="main"] .now-playing .history-panel{position:absolute!important;inset:8px!important;z-index:90!important;margin:0!important;overflow:auto!important}
  body[data-veluna-page="main"] .player-shell>.pc-copyright-footer{order:9!important;flex:0 0 17px!important;width:calc(100% - 44px)!important;height:17px!important;margin:0 auto!important}
  body[data-veluna-page="main"] .frame-stage .pc-side-addon{position:absolute!important;width:var(--s666-side-panel-width)!important;top:6px!important;bottom:6px!important;height:auto!important;overflow:hidden!important;z-index:7!important;display:block!important}body[data-veluna-page="main"] .pc-side-addon-left{left:calc(50% - var(--s666-main-player-half) - var(--s666-side-panel-gap) - var(--s666-side-panel-width))!important;right:auto!important}body[data-veluna-page="main"] .pc-side-addon-right{right:calc(50% - var(--s666-main-player-half) - var(--s666-side-panel-gap) - var(--s666-side-panel-width))!important;left:auto!important}
  body[data-veluna-page="main"] .pc-side-addon .pc-addon-tower{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;display:grid!important;grid-template-rows:36px repeat(3,minmax(0,1fr)) 64px!important;gap:8px!important;padding:8px!important;overflow:hidden!important;box-sizing:border-box!important;will-change:filter}
  body[data-veluna-page="main"] .pc-side-addon .pc-addon-tower-head{position:relative!important;inset:auto!important;min-height:36px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 5px!important}
  body[data-veluna-page="main"] .pc-side-addon .pc-addon-module{position:relative!important;inset:auto!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;aspect-ratio:auto!important;overflow:hidden!important;display:block!important;will-change:border-color,box-shadow}
  body[data-veluna-page="main"] .pc-side-addon .pc-addon-reactor-core{left:18px!important;right:18px!important;top:32px!important;bottom:28px!important;will-change:transform,filter}body[data-veluna-page="main"] .pc-side-addon .pc-addon-waveform{left:12px!important;right:12px!important;top:31px!important;bottom:15px!important}body[data-veluna-page="main"] .pc-side-addon .pc-addon-radar{left:22px!important;right:22px!important;top:32px!important;bottom:24px!important}body[data-veluna-page="main"] .pc-side-addon .pc-addon-vu-grid{left:12px!important;right:12px!important;top:32px!important;bottom:18px!important}body[data-veluna-page="main"] .pc-side-addon .pc-addon-phase{left:12px!important;right:12px!important;top:32px!important;bottom:16px!important}body[data-veluna-page="main"] .pc-side-addon .pc-addon-beat{left:12px!important;right:12px!important;top:32px!important;bottom:20px!important}body[data-veluna-page="main"] .pc-side-addon .s666-side-status-panel{position:relative!important;inset:auto!important;width:auto!important;height:auto!important;margin:0!important;overflow:hidden!important}
  body[data-veluna-page="main"] .pc-addon-radar .radar-sweep{animation-duration:var(--pc-radar-speed,4.8s)!important}
  body[data-veluna-page="main"] .side-meter{top:clamp(210px,24vh,275px)!important;bottom:clamp(48px,6vh,72px)!important;height:auto!important;width:clamp(54px,3.7vw,72px)!important}body[data-veluna-page="main"] .side-meter-stack{display:grid!important;grid-template-columns:repeat(3,minmax(10px,1fr))!important;gap:6px!important;height:100%!important;align-items:stretch!important}body[data-veluna-page="main"] .side-meter-track{position:relative!important;height:100%!important;min-height:0!important;border-radius:999px!important;overflow:hidden!important;background:linear-gradient(180deg,rgba(180,92,255,.13),rgba(22,255,243,.08))!important;border:1px solid rgba(22,255,243,.24)!important}body[data-veluna-page="main"] .side-meter-fill{position:absolute!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;min-height:6%!important;border-radius:999px!important;background:linear-gradient(180deg,#ff43de 0 32%,#a04eff 57%,#16fff3 100%)!important;box-shadow:0 0 12px rgba(255,61,187,.34),0 0 14px rgba(22,255,243,.36)!important;transition:none!important;animation:none!important;will-change:height,opacity,filter!important}
  html[data-s666-left-fx="off"] body[data-veluna-page="main"] #pcLeftFxAddon,html[data-s666-right-fx="off"] body[data-veluna-page="main"] #pcRightFxAddon{display:none!important}
}
@media(min-width:1221px){
  :root{--s666-side-release:calc(var(--s666-side-panel-width) + var(--s666-side-panel-gap))}
  html[data-s666-left-fx="off"][data-s666-right-fx="on"] body[data-veluna-page="main"] .frame-stage .player-shell{width:min(calc(var(--s666-main-player-width) + var(--s666-side-release)),calc(100vw - 24px))!important;max-width:min(calc(var(--s666-main-player-width) + var(--s666-side-release)),calc(100vw - 24px))!important;transform:translateX(calc(var(--s666-side-release) * -.5))!important}
  html[data-s666-left-fx="on"][data-s666-right-fx="off"] body[data-veluna-page="main"] .frame-stage .player-shell{width:min(calc(var(--s666-main-player-width) + var(--s666-side-release)),calc(100vw - 24px))!important;max-width:min(calc(var(--s666-main-player-width) + var(--s666-side-release)),calc(100vw - 24px))!important;transform:translateX(calc(var(--s666-side-release) * .5))!important}
  html[data-s666-left-fx="off"][data-s666-right-fx="off"] body[data-veluna-page="main"] .frame-stage .player-shell{width:min(calc(var(--s666-main-player-width) + var(--s666-side-release) * 2),calc(100vw - 24px))!important;max-width:min(calc(var(--s666-main-player-width) + var(--s666-side-release) * 2),calc(100vw - 24px))!important;transform:none!important}
}
@media(min-width:761px) and (max-width:1220px){:root{--s666-main-player-width:calc(100vw - 24px)}body[data-veluna-page="main"] .pc-side-addon{display:none!important}}

/* Short desktop safety: keep the full cockpit inside 768/800px-tall viewports. */
@media(min-width:761px) and (max-height:820px){
  body[data-veluna-page="main"] .frame-stage .player-shell{gap:2px!important;padding-top:2px!important;padding-bottom:1px!important}
  body[data-veluna-page="main"] .player-shell>.hero{flex-basis:112px!important;height:112px!important;min-height:112px!important;max-height:112px!important}
  body[data-veluna-page="main"] .player-shell>.top-hud{flex-basis:38px!important;height:38px!important}
  body[data-veluna-page="main"] .top-hud .systempanel-group{height:30px!important}
  body[data-veluna-page="main"] .player-shell>.info-grid{flex-basis:48px!important;height:48px!important}
  body[data-veluna-page="main"] .player-shell>.visualizer{flex-basis:120px!important;height:120px!important;min-height:120px!important;padding-top:5px!important;padding-bottom:6px!important}
  body[data-veluna-page="main"] .visualizer .eq-bars{min-height:92px!important;margin-top:3px!important}
  body[data-veluna-page="main"] .player-shell>.s666-primary-action-dock{flex-basis:34px!important;height:34px!important}
  body[data-veluna-page="main"] .player-shell>.bottom-console{flex-basis:54px!important;height:54px!important;padding-top:4px!important;padding-bottom:4px!important}
  body[data-veluna-page="main"] .bottom-console .icon-btn{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important}
  body[data-veluna-page="main"] #pcBottomSyncMeter{flex-basis:23px!important;height:23px!important;padding-top:2px!important;padding-bottom:2px!important}
  body[data-veluna-page="main"] .player-shell>.now-playing{flex-basis:170px!important;height:170px!important;min-height:170px!important;max-height:170px!important;grid-template-columns:138px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) 38px!important;padding:7px 9px!important}
  body[data-veluna-page="main"] .now-playing .now-cover-wrap{width:138px!important;height:138px!important}
  body[data-veluna-page="main"] .now-playing .ticker-window{height:38px!important}
  body[data-veluna-page="main"] .now-playing :is(#nowPlayingTicker,.ticker-text){line-height:36px!important}
  body[data-veluna-page="main"] .player-shell>.pc-copyright-footer{flex-basis:15px!important;height:15px!important}
  body[data-veluna-page="main"] .side-meter{top:150px!important;bottom:34px!important}
}

@media(max-width:760px){
  html body[data-veluna-page="main"] #mffApp{position:fixed!important;inset:0!important;width:100dvw!important;height:100dvh!important;max-width:none!important;max-height:none!important;padding-top:max(54px,calc(env(safe-area-inset-top) + 12px))!important;padding-right:max(5px,env(safe-area-inset-right))!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important;padding-left:max(5px,env(safe-area-inset-left))!important;box-sizing:border-box!important;overflow:hidden!important}
  html body[data-veluna-page="main"] #mffApp .mff-shell{position:relative!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:4px!important;display:flex!important;flex-direction:column!important;gap:4px!important;overflow:hidden!important;box-sizing:border-box!important}
  html body[data-veluna-page="main"] #mffApp .mff-cyber-header{position:relative!important;flex:0 0 clamp(86px,14dvh,132px)!important;width:100%!important;height:clamp(86px,14dvh,132px)!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;border-radius:14px!important}
  html body[data-veluna-page="main"] #mffApp .mff-cyber-header img.s666-mobile-header-image{display:block!important;width:auto!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:0!important;aspect-ratio:var(--s666-header-ratio)}
  html body[data-veluna-page="main"] #mffApp .mff-now{position:relative!important;flex:0 0 clamp(126px,22dvh,186px)!important;min-height:126px!important;max-height:186px!important;margin:0!important;overflow:hidden!important;display:grid!important;grid-template-columns:clamp(86px,25vw,118px) minmax(0,1fr) auto!important;grid-template-rows:auto minmax(0,1fr)!important;gap:5px 8px!important;padding:7px!important}
  html body[data-veluna-page="main"] #mffApp .mff-symbol{grid-column:1!important;grid-row:1/3!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}html body[data-veluna-page="main"] #mffApp .mff-symbol img{width:100%!important;height:100%!important;object-fit:cover!important}
  html body[data-veluna-page="main"] #mffApp .mff-title{grid-column:2!important;grid-row:1/3!important;min-width:0!important;overflow:hidden!important}html body[data-veluna-page="main"] #mffApp .mff-title small{display:block!important;color:#16fff3!important;font-weight:900!important;letter-spacing:.16em!important}html body[data-veluna-page="main"] #mffApp .mff-title h1{width:100%!important;overflow:hidden!important;white-space:nowrap!important}html body[data-veluna-page="main"] #mffApp .mff-title h1 .s666-title-marquee{display:inline-block!important;width:max-content!important;min-width:100%!important;padding-left:0!important;padding-right:20px!important;animation:s666TitleMarquee 15s linear infinite!important;color:#c56cff!important;filter:brightness(calc(1 + var(--s666-ticker-pulse)*.34))!important;text-shadow:0 0 calc(7px + var(--s666-ticker-pulse)*12px) rgba(197,108,255,.82)!important}html body[data-veluna-page="main"] #mffApp .mff-title h2{color:#8dfcff!important;font-size:clamp(8px,2.35vw,11px)!important;line-height:1.25!important;white-space:normal!important}
  html body[data-veluna-page="main"] #mffApp .mff-history{grid-column:3!important;grid-row:1!important;position:relative!important;align-self:start!important}
  html body[data-veluna-page="main"] #mffApp .mff-panel-led-panel{position:relative!important;flex:0 0 38px!important;width:100%!important;height:38px!important;margin:0!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;overflow:hidden!important}html body[data-veluna-page="main"] #mffApp .mff-panel-led{position:relative!important;width:100%!important;min-width:0!important;height:34px!important;margin:0!important;padding:0!important}
  html body[data-veluna-page="main"] #mffApp .mff-discord-slot{position:relative!important;flex:0 0 auto!important;min-height:36px!important;overflow:hidden!important}html body[data-veluna-page="main"] #s666StageMobileActions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important;width:100%!important}
  html body[data-veluna-page="main"] #mffApp .mff-cards{flex:0 0 auto!important;margin:0!important}html body[data-veluna-page="main"] #mffApp .mff-eq{flex:1 1 auto!important;min-height:110px!important;margin:0!important;overflow:hidden!important}html body[data-veluna-page="main"] #mffApp .mff-eq-bars{height:100%!important;min-height:90px!important}html body[data-veluna-page="main"] #mffApp .mff-controls{position:relative!important;flex:0 0 auto!important;margin:0!important;display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:4px!important}html body[data-veluna-page="main"] #mffApp .mff-controls button{position:relative!important;width:100%!important;min-width:0!important;margin:0!important}html body[data-veluna-page="main"] #mffApp .mff-boost-row-panel,html body[data-veluna-page="main"] #mffApp .mff-bottom{position:relative!important;flex:0 0 auto!important;margin:0!important}
}
