/* Full-screen wallpaper with a slim player deck at the bottom */
.bg::after{display:none}
.bg i{inset:0;animation:none;transform:none;image-rendering:auto}
html:not(.no-drift) .bg i.on{animation:drift 90s ease-in-out infinite alternate}
@keyframes drift{from{transform:scale(1)}to{transform:scale(1.03)}}
.app{position:relative;z-index:1;display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;max-width:none;padding:14px max(2vw,12px) max(14px,env(safe-area-inset-bottom));gap:12px;margin:0}

/* top bar floats over the wallpaper */
.top{background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;padding:0;gap:10px}
.top .brand{color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.45)}
.top .brand small{color:rgba(255,255,255,.85)}
.top .clock{color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.5);font-weight:500}
.top .pill:not(.pri){background:rgba(10,24,48,.38);border-color:rgba(255,255,255,.28);color:#fff;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.top .ib{background:rgba(10,24,48,.38);border-color:rgba(255,255,255,.28);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.top .ib svg{stroke:#fff}
.top .pill.devb{color:#e7dcff}

/* the stage sits at the bottom; the wallpaper above it is never covered */
.stage{margin-top:auto;display:flex;flex-direction:column;gap:10px;align-items:center;width:100%}
.deck{width:min(1320px,100%);display:flex;align-items:center;gap:14px;padding:10px 14px;border-radius:24px;background:rgba(255,255,255,.74)}
.d-now{display:flex;align-items:center;gap:12px;flex:0 1 380px;min-width:0}
.deck .tune{width:54px;height:54px;padding:0;border-radius:50%;justify-content:center;flex:none}
.deck .tune .pi{background:none;width:auto;height:auto}
.deck .tune svg{width:22px;height:22px}
.d-meta{min-width:0;flex:1;display:grid;gap:1px}
.d-top{display:flex;align-items:center;gap:8px}
.d-top .live{padding:2px 9px;font-size:11px}
.d-title{font-size:18px;font-weight:600;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-sub{font-size:13px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-prog{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--mute);font-variant-numeric:tabular-nums;margin-top:3px}
.d-prog .prog{flex:1;height:4px}
.d-ctrls{display:flex;align-items:center;gap:6px;flex:1 1 auto;justify-content:flex-end;min-width:0;flex-wrap:wrap;row-gap:6px}
.d-grp{display:flex;align-items:center;gap:4px;padding:0 6px;border-left:1px solid rgba(31,111,229,.14)}
.d-grp:first-child{border-left:0}
.db{height:40px;min-width:40px;border-radius:12px;border:1px solid transparent;background:transparent;display:grid;place-items:center;color:var(--ink);padding:0 8px;font-size:14px;font-weight:500;white-space:nowrap}
.db:hover{background:rgba(255,255,255,.85);border-color:var(--line)}
.db svg{width:19px;height:19px;stroke:var(--blue2);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.db.txt{border-color:rgba(31,111,229,.22);background:rgba(255,255,255,.6)}
.db.on{background:var(--blue);color:#fff;border-color:var(--blue)}.db.on svg{stroke:#fff}
.db.locked{opacity:.6}
.d-lab{font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--mute);text-transform:uppercase}
.vols input[type=range]{width:96px;flex:none;height:36px}
.deck .dock{position:static;left:auto;right:auto;bottom:auto;background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;padding:0 6px;border-left:1px solid rgba(31,111,229,.14);border-radius:0;gap:2px;align-self:auto;overflow:visible}
.deck .dk{height:40px;padding:0 9px;border-radius:12px}
.deck .dk .lb{display:none}
.deck .dk .bd{position:absolute;top:-6px;right:-4px;font-size:10px;padding:0 5px}
.deck .dsep,.deck .dock>.dk:last-child{display:none} /* focus mode lives in the player now */

/* scene picker */
.scenes{width:min(1320px,100%);padding:10px 12px;border-radius:22px;background:rgba(255,255,255,.7);display:grid;gap:8px}
.chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chips button{flex:none;height:34px;padding:0 14px;border-radius:99px;border:1px solid rgba(31,111,229,.2);background:rgba(255,255,255,.75);font-size:14px;font-weight:500;color:var(--ink)}
.chips button.on{background:var(--blue);color:#fff;border-color:var(--blue)}
.strip-wrap{position:relative;display:flex;align-items:center;gap:6px}
.strip{flex:1;display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:3px}
.strip::-webkit-scrollbar{display:none}
.strip button{flex:none;width:168px;aspect-ratio:16/9;border-radius:14px;border:2px solid transparent;padding:0;position:relative;overflow:hidden;scroll-snap-align:start;background:#dbe8fb center/cover;box-shadow:0 6px 16px -10px rgba(10,30,70,.6)}
.strip button.on{border-color:var(--blue);box-shadow:0 0 0 3px rgba(31,111,229,.3)}
.strip button span{position:absolute;left:0;right:0;bottom:0;padding:16px 8px 6px;font-size:12px;font-weight:600;color:#fff;text-align:left;background:linear-gradient(transparent,rgba(0,0,0,.6));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.strip-nav{flex:none;width:36px;height:36px;border-radius:50%}

/* hiding */
.top,.stage{transition:opacity .7s ease,transform .7s ease}
body.idle .top,body.idle .stage,body.scenery .top,body.scenery .stage{opacity:0;pointer-events:none}
body.idle .top,body.scenery .top{transform:translateY(-12px)}
body.idle .stage,body.scenery .stage{transform:translateY(16px)}
.focus-mode .top,.focus-mode .d-ctrls,.focus-mode .scenes{opacity:0;pointer-events:none}
.focus-mode .deck{background:transparent;box-shadow:none;border-color:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
.focus-mode .d-title,.focus-mode .d-sub{color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.6)}

/* tablets and phones: the deck wraps into two tidy rows and never spills off screen */
@media(max-width:1600px){.d-lab{display:none}.vols input[type=range]{width:84px}}
@media(min-width:1181px){.d-ctrls{flex-wrap:nowrap}.d-now{flex:1 1 240px}}
@media(max-width:1180px){.deck{flex-wrap:wrap}.d-now{flex:1 1 100%}.d-ctrls{justify-content:center;flex:1 1 100%}}
@media(max-width:760px){
  .app{padding:10px 10px max(10px,env(safe-area-inset-bottom))}
  .d-lab{display:none}.vols input[type=range]{width:72px}
  .d-ctrls{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;scrollbar-width:none;padding-bottom:2px}
  .d-ctrls::-webkit-scrollbar{display:none}
  .d-grp,.deck .dock{flex:none}
  .strip button{width:132px}
  .top .clock{display:none}
}
@media(max-height:500px) and (orientation:landscape){.deck{padding:6px 10px;flex-wrap:nowrap}.d-now{flex:0 0 min(260px,38%)}.d-ctrls{flex:1 1 auto;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;scrollbar-width:none}.d-ctrls::-webkit-scrollbar{display:none}.d-grp,.deck .dock{flex:none}.d-lab{display:none}.vols input[type=range]{width:70px}.top .pill{height:38px}.top .ib{width:38px;height:38px}.deck .tune{width:44px;height:44px}.d-title{font-size:16px}.strip button{width:120px}}
/* developer sound studio */
.spec{display:block;width:100%;height:180px;border-radius:12px;background:linear-gradient(180deg,#f4f8ff,#e6f0ff);margin-bottom:8px}
.meters{display:grid;gap:6px;margin-bottom:6px}
.eqbank{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;align-items:end;text-align:center}
.eqb{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.eqb input[type=range]{-webkit-appearance:auto;appearance:auto;writing-mode:vertical-lr;direction:rtl;width:28px;height:170px;margin:0;accent-color:var(--blue);background:none}
.eqb input[type=range]::-webkit-slider-runnable-track{background:none;height:auto}
.eqb input[type=range]::-webkit-slider-thumb{-webkit-appearance:auto;margin:0}
.eqb small{font-size:11px;color:var(--mute);font-variant-numeric:tabular-nums}
.eqb span{font-size:12px;font-weight:600}
@media(max-width:560px){.eqb input[type=range]{height:130px;width:26px}.eqb span{font-size:10px}}
.strip button.lk{filter:saturate(.55) brightness(.8)}
.strip button .lkb{position:absolute;top:6px;right:6px;padding:2px 8px;border-radius:99px;background:rgba(10,25,55,.72);color:#fff;font-size:11px;font-weight:600}
.buys{flex:none;display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px;border-radius:99px;border:1px solid #cfe0f7;background:#fff;color:var(--blue2);font-size:12.5px;font-weight:600;margin-left:6px;white-space:nowrap}
.buys svg{flex:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.buys:hover{background:#eef5ff}
.d-now .sk{width:36px;height:36px;min-width:36px;padding:0;flex:none}
.d-now .sk svg{width:18px;height:18px}
.d-prog .prog{cursor:pointer;touch-action:none}
.d-prog .prog:focus-visible{outline:2px solid var(--sky);outline-offset:3px}
.live.mix{cursor:pointer}
@media(max-width:760px){.d-now .sk{width:32px;height:32px;min-width:32px}}
@media(max-width:760px){.buys span{display:none}.buys{padding:0 7px;margin-left:4px}}
