/* =========================================================================
   Soundstage section on the main factory page (theme 1.8.2): the TV studio as part of the factory floor.
   Grape / tangerine / tomato stage: red curtains at the sides, a lighting truss with sweeping spots,
   a warm plank floor. Reuses the wing card + sign-off styles with the Soundstage colours.
   iOS-safe: transform / opacity only; no blend modes or large filters. Pauses off-screen (.scene.is-paused).
   ========================================================================= */
.soundstage{--w1:#f3b26a;--w2:#7b4aa8;--w3:#e85a4f;--wink:#3a1848;--wbg:#faf4ef;--wbg2:#f3e4d4;
  position:relative;z-index:2;color:var(--cream);
  background:radial-gradient(70% 60% at 50% 0,rgba(255,226,170,.16),transparent 70%),radial-gradient(90% 80% at 50% 30%,#4a2160 0,#2f1340 60%,#1e0b2b 100%);
  padding-block:clamp(4rem,8vw,7rem) clamp(3rem,6vw,5.5rem);border-block:4px solid #1d0a26}
.soundstage .ssx-inner{position:relative;z-index:2}

/* ---------- the rig (decoration only) ---------- */
.ssx-rig{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.ssx-rig>*{position:absolute}
.ssx-valance{left:0;right:0;top:0;height:clamp(26px,3.4vw,44px);z-index:3;background:radial-gradient(circle at 50% 0,#e85a4f 0 58%,transparent 60%) 0 0/clamp(48px,6vw,84px) 200% repeat-x,#c8423a;border-bottom:4px solid #1d0a26;box-shadow:0 8px 0 rgba(29,10,38,.35)}
.ssx-curtain{top:0;bottom:0;width:clamp(26px,5.5vw,96px);z-index:2;background:repeating-linear-gradient(90deg,#b8362f 0 14px,#e85a4f 14px 26px,#c8423a 26px 36px);transform-origin:50% 0;animation:ssxSway 7s ease-in-out infinite}
.ssx-curtain.l{left:0;border-right:4px solid #1d0a26;border-radius:0 0 40px 0}
.ssx-curtain.r{right:0;border-left:4px solid #1d0a26;border-radius:0 0 0 40px;animation-delay:-3.5s}
@keyframes ssxSway{0%,100%{transform:skewX(0) scaleX(1)}50%{transform:skewX(1.2deg) scaleX(1.04)}}
.ssx-truss{left:8%;right:8%;top:clamp(34px,4.4vw,56px);height:14px;z-index:3;background:repeating-linear-gradient(60deg,#cfc3d8 0 3px,transparent 3px 16px),#6b4a80;border:3px solid #1d0a26;border-radius:5px}
.ssx-lamp{top:calc(clamp(34px,4.4vw,56px) + 12px);width:30px;height:26px;margin-left:-15px;z-index:3;background:#2a1036;border:3px solid #1d0a26;border-radius:6px 6px 14px 14px;transform-origin:50% 0;animation:ssxSweep 8s ease-in-out infinite}
.ssx-lamp.k1{left:20%}.ssx-lamp.k2{left:50%;animation-delay:-2.6s;animation-duration:9s}.ssx-lamp.k3{left:80%;animation-delay:-5.2s}
.ssx-lamp i{position:absolute;left:50%;top:90%;width:min(46vw,620px);height:min(120vh,1100px);margin-left:calc(min(46vw,620px) / -2);clip-path:polygon(46% 0,54% 0,100% 100%,0 100%);background:linear-gradient(180deg,rgba(255,236,170,.26),rgba(255,236,170,0) 70%)}
.ssx-lamp.k2 i{background:linear-gradient(180deg,rgba(255,190,220,.2),rgba(255,190,220,0) 70%)}
@keyframes ssxSweep{0%,100%{transform:rotate(-14deg)}50%{transform:rotate(14deg)}}
.ssx-floor{left:0;right:0;bottom:0;height:90px;z-index:1;background:linear-gradient(180deg,rgba(30,11,43,0),rgba(30,11,43,.4)),repeating-linear-gradient(90deg,#5a3a2a 0 80px,#4d3123 80px 160px);border-top:4px solid #1d0a26;opacity:.85}

/* ---------- heading ---------- */
.ssx-head{text-align:center;max-width:860px;margin-inline:auto;margin-bottom:1.8rem}
.soundstage .eyebrow{color:var(--w1)}
.soundstage .eyebrow span{background:var(--w1)}
.ssx-onair{display:inline-block;margin-left:.4em;padding:.25em .6em;border:2px solid #1d0a26;border-radius:6px;background:var(--w3);color:#fff;letter-spacing:.14em;font-size:.72rem;line-height:1;box-shadow:0 0 14px 3px rgba(255,90,70,.55);animation:ssxAir 1.6s steps(1,end) infinite}
@keyframes ssxAir{0%,100%{opacity:1}50%{opacity:.45}}
.soundstage .section-title{background:linear-gradient(95deg,#fff4e8,var(--w1) 45%,#ff8f7f 85%);-webkit-background-clip:text;background-clip:text}
.ssx-intro{max-width:62ch;margin-inline:auto;color:#f6e9f9}
.ssx-intro p{margin:0 0 .6em}
.ssx-hosts{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.45rem;margin:1rem 0 0}
.ssx-hosts-t{font-weight:800;letter-spacing:.14em;text-transform:uppercase;font-size:.74rem;color:var(--w1);margin-right:.2rem}
.ssx-host{padding:.28em .8em;border-radius:999px;border:2px solid #1d0a26;background:#fde7c8;color:var(--wink);font-weight:700;font-size:.88rem;box-shadow:0 3px 0 #1d0a26}
.ssx-host:nth-child(3n){background:#ead8f7}.ssx-host:nth-child(3n+1){background:#ffd5d0}

/* ---------- the set: series tabs + cards ---------- */
.ssx-set{background:var(--wbg);color:var(--wink);border:4px solid #1d0a26;border-radius:28px;padding:clamp(1rem,2.4vw,1.8rem);box-shadow:10px 10px 0 var(--w3),0 30px 60px -24px rgba(0,0,0,.6)}
.ssx-pick{margin:0 0 .7rem;text-align:center;font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:.78rem;color:var(--wink);opacity:.88}
.ssx-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin:0 0 1.2rem;overflow:visible}
.ssx-tab{display:inline-flex;align-items:center;gap:.45em;padding:.48em 1em;border-radius:999px;border:3px solid var(--wink);background:#fff;color:var(--wink)!important;font-weight:800;text-decoration:none;box-shadow:0 4px 0 var(--wink);transition:transform .2s}
.ssx-tab small{display:inline-grid;place-items:center;min-width:1.6em;height:1.6em;border-radius:999px;background:var(--wbg2);font-size:.75em}
.ssx-tab:hover{transform:translateY(-2px);background:#fde7c8}
.ssx-tab.is-on{background:var(--w1)}
.ssx-tab.is-on small{background:#fff}
.ssx-tab:focus-visible{outline:3px solid var(--w2);outline-offset:3px}
.ssx-shelf{scroll-margin-top:calc(var(--header-h) + 16px)}
.ssx-shelf+.ssx-shelf{margin-top:1.8rem}
.soundstage.is-tabbed .ssx-shelf+.ssx-shelf{margin-top:0}
.ssx-shelf-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem 1rem;margin-bottom:1rem;padding-bottom:.6rem;border-bottom:4px dotted var(--w2)}
.ssx-shelf-title{margin:0;font-family:var(--font-display);font-weight:900;font-size:clamp(1.35rem,1rem + 1.2vw,2rem);color:var(--wink)}
.ssx-shelf-intro{margin:0;color:var(--wink);opacity:.8;max-width:64ch;font-size:.95rem}
.ssx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:clamp(.9rem,1.6vw,1.4rem)}
.ssx-card{--c:#f3b26a}.ssx-card:nth-child(3n+2){--c:#e85a4f}.ssx-card:nth-child(3n){--c:#b892d8}
.ssx-card .card-link{box-shadow:6px 6px 0 var(--c),0 14px 30px -16px rgba(0,0,0,.4)}
.ssx-card .card-title{font-size:1.05rem}
.ssx-card .card-excerpt{display:block;margin-top:.3em;font-size:.84rem;line-height:1.4;color:var(--wink);opacity:.82;font-weight:600}

/* ---------- sign-off on the set (same scene as the old wing page, compact) ---------- */
.soundstage .ssx-signoff{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(1rem,3vw,2.4rem);align-items:center;margin-top:clamp(2rem,4vw,3rem);padding:0;background:none;border:0}
.ssx-signoff .so-title{font-size:clamp(1.6rem,1rem + 1.8vw,2.5rem)}
.ssx-signoff .so-stage{aspect-ratio:16/10}
.ssx-signoff .so-art{max-width:520px;justify-self:end;width:100%}

@media (max-width:760px){
  .ssx-curtain{width:11px}
  .soundstage .section-title{font-size:clamp(2.1rem,10.5vw,3.2rem)}
  .ssx-head{margin-bottom:1.3rem}
  .ssx-lamp.k1,.ssx-lamp.k3{display:none}
  .ssx-truss{left:20%;right:20%}
  .ssx-set{border-radius:22px;box-shadow:6px 6px 0 var(--w3),0 20px 40px -20px rgba(0,0,0,.6)}
  .ssx-tabs{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;margin:0 0 1rem;padding:0;overflow:visible;flex-wrap:unset;scroll-snap-type:none}
  .ssx-tab{display:flex;justify-content:center;white-space:normal;text-align:center;padding:.35em .55em;font-size:.78rem;line-height:1.2;box-shadow:0 3px 0 var(--wink);border-width:2px}
  .ssx-tab small{min-width:1.35em;height:1.35em;font-size:.7em}
  .ssx-hosts{gap:.35rem;margin:.85rem 0 0}
  .ssx-hosts-t{flex:1 0 100%;margin:0 0 .15rem;text-align:center}
  .ssx-host{font-size:.78rem;padding:.22em .65em;box-shadow:0 2px 0 #1d0a26}
  .ssx-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
  .ssx-card .card-link{box-shadow:4px 4px 0 var(--c);border-width:3px;border-radius:16px}
  .ssx-card .card-body{padding:.6rem .7rem .75rem}
  .ssx-card .card-title{font-size:.95rem}
  .ssx-card .card-excerpt{display:none}
  .soundstage .ssx-signoff{grid-template-columns:1fr}
  .ssx-signoff .so-art{justify-self:center;max-width:420px}
}
@media (max-width:380px){.ssx-grid{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.soundstage *,.soundstage *::before,.soundstage *::after{animation:none!important}.ssx-lamp{transform:none}}
