/* The studio screen.
   Doubles as the 24/7 YouTube visual — add ?clean=1 to strip the site chrome. */

.studio-main{position:relative;z-index:1}

.studio{
  position:relative;width:100%;max-width:1280px;margin:26px auto 0;
  aspect-ratio:16/9;border-radius:var(--radius-lg);overflow:hidden;
  border:1px solid var(--line);background:#05060a;
  box-shadow:0 30px 80px rgba(0,0,0,.6);
}
.studio-bg{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:saturate(1.05);
}
.studio-vignette{
  position:absolute;inset:0;
  background:radial-gradient(75% 75% at 50% 45%,transparent 35%,rgba(4,5,10,.55) 80%,rgba(4,5,10,.9) 100%);
}
.studio-haze{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,202,255,.06),transparent 40%,rgba(139,92,246,.07));
  animation:hazeDrift 18s ease-in-out infinite;
}
@keyframes hazeDrift{0%,100%{opacity:.5}50%{opacity:.9}}

/* ---------- ON AIR ----------
   The artwork already has an ON AIR sign. Rather than drawing a second one on
   top of it, this is an invisible box sat over the painted sign that makes it
   glow and breathe. The text is there for screen readers only. */
.onair{
  position:absolute;left:50%;top:5.4%;transform:translateX(-50%);
  width:17%;height:6.5%;border-radius:6px;
  background:radial-gradient(ellipse at center,rgba(255,77,94,.34),transparent 72%);
  box-shadow:0 0 30px 10px rgba(255,77,94,.22);
  opacity:.4;transition:opacity .4s ease;pointer-events:none;
}
.onair span{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
}
.studio.live .onair{opacity:1;animation:onairPulse 3.4s ease-in-out infinite}
@keyframes onairPulse{
  0%,100%{opacity:.75;box-shadow:0 0 30px 10px rgba(255,77,94,.2)}
  50%{opacity:1;box-shadow:0 0 46px 16px rgba(255,77,94,.38)}
}

/* ---------- host slots, sat at the two mic positions ---------- */
.host-slot{
  position:absolute;bottom:20%;width:20%;text-align:center;
  transition:opacity .5s ease,transform .5s ease;
}
/* Positioned to sit at the two microphones in the artwork, so a host looks like
   they're standing at a mic rather than floating in the middle of the room. */
.host-a{left:22%}
.host-b{left:58%}
/* A solo host takes the left mic — not the centre, which lands on the monitor */
.host-slot.solo{left:22%}
.host-slot.hidden{opacity:0;pointer-events:none}

.host-portrait{
  width:100%;aspect-ratio:1;border-radius:50%;overflow:hidden;
  border:2px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg,rgba(0,202,255,.16),rgba(139,92,246,.16));
  box-shadow:0 10px 34px rgba(0,0,0,.6),0 0 30px rgba(139,92,246,.2);
  display:grid;place-items:center;
}
.host-portrait img{width:100%;height:100%;object-fit:cover}
/* Placeholder until a portrait exists */
.host-silhouette{
  width:58%;height:58%;border-radius:50% 50% 44% 44%;
  background:rgba(8,9,12,.75);
  box-shadow:inset 0 -10px 22px rgba(0,202,255,.18);
  position:relative;
}
.host-silhouette::before{
  content:'';position:absolute;top:-34%;left:50%;transform:translateX(-50%);
  width:52%;aspect-ratio:1;border-radius:50%;background:rgba(8,9,12,.75);
  box-shadow:inset 0 -6px 14px rgba(139,92,246,.22);
}
.host-name{
  margin-top:9px;font-weight:700;letter-spacing:-.01em;
  font-size:clamp(.7rem,1.5vw,1rem);
  text-shadow:0 2px 14px rgba(0,0,0,.95);
}
.host-from{
  font-size:clamp(.58rem,1.1vw,.76rem);color:var(--muted);
  text-shadow:0 2px 10px rgba(0,0,0,.95);
}

/* ---------- now playing ---------- */
.studio-np{
  position:absolute;left:4%;bottom:5%;max-width:46%;
  background:linear-gradient(180deg,rgba(10,12,18,.86),rgba(10,12,18,.7));
  border:1px solid var(--line);border-radius:var(--radius);
  padding:14px 18px;backdrop-filter:blur(10px);
}
.studio-np-label{
  display:flex;align-items:center;gap:8px;
  font-size:clamp(.55rem,1.1vw,.68rem);letter-spacing:.16em;text-transform:uppercase;
  color:var(--dim);font-weight:650;
}
.studio.live .studio-np-label .live-dot{background:#ff4d5e;animation:pulse 1.8s ease-in-out infinite}
.studio-np-title{
  font-size:clamp(.9rem,2.1vw,1.35rem);font-weight:750;letter-spacing:-.02em;margin:4px 0 1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.studio-np-artist{
  color:var(--muted);font-size:clamp(.72rem,1.5vw,.95rem);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

.vu{display:flex;align-items:flex-end;gap:3px;height:22px;margin-top:10px}
.vu i{width:3px;border-radius:2px;background:var(--cyan);height:4px;opacity:.55}
.studio.live .vu i{animation:vuBar .8s ease-in-out infinite}

@keyframes vuBar{0%,100%{height:4px;opacity:.55}50%{height:20px;opacity:1}}

.studio-clock{
  position:absolute;right:4%;bottom:5%;
  font-variant-numeric:tabular-nums;font-weight:750;
  font-size:clamp(1.1rem,3vw,2rem);letter-spacing:-.02em;
  text-shadow:0 2px 20px rgba(0,0,0,.95);
}

.studio-preview{
  position:absolute;left:50%;bottom:1.5%;transform:translateX(-50%);
  font-size:clamp(.55rem,1.1vw,.72rem);color:var(--amber);
  background:rgba(245,165,36,.1);border:1px solid rgba(245,165,36,.28);
  border-radius:100px;padding:4px 12px;white-space:nowrap;
}

/* ---------- clean mode for the 24/7 stream ---------- */
body.clean{background:#000}
body.clean .studio-chrome{display:none}
body.clean .studio-main{display:grid;place-items:center;min-height:100vh}
body.clean .studio{
  margin:0;max-width:none;width:100vw;height:100vh;aspect-ratio:auto;
  border:0;border-radius:0;box-shadow:none;
}

@media (max-width:620px){
  .studio{border-radius:var(--radius)}
  .studio-np{max-width:60%;left:3%;padding:10px 12px}
  .host-slot{width:26%}
  .host-a{left:16%}.host-b{left:58%}
}
@media (prefers-reduced-motion:reduce){
  .studio-haze,.studio.live .onair,.studio.live .vu i{animation:none}
}

/* ---------- Discord chat embed ---------- */
.chat-embed{
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  background:var(--panel);min-height:420px;
}
.chat-embed iframe{display:block;width:100%;height:480px;border:0}
.chat-placeholder{padding:34px;text-align:center;color:var(--dim)}
.chat-placeholder strong{color:var(--text);display:block;margin-bottom:6px}
