:root {
  color-scheme: dark;
  --bg-a: #111318;
  --bg-b: #1d2431;
  --inset-width: clamp(220px, 25vw, 420px);
  --inset-ratio: 16 / 9;
  --inset-gap: clamp(10px, 2vw, 20px);
  --inset-radius: 12px;
  --inset-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
  --status-bg: rgba(8, 10, 14, 0.72);
  --status-text: #e8eef9;
  --accent: #9ed6ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 20% 10%, var(--bg-b) 0%, var(--bg-a) 65%);
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
}

.app-shell {
  min-height: 100vh;
  width: 100%;
  display: grid;
}

.player-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.deck-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.deck-video::cue {
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1rem;
  color: #f4f8ff;
  background: rgba(7, 10, 14, 0.82);
}

.speaker-inset {
  position: absolute;
  left: var(--inset-gap);
  bottom: calc(var(--inset-gap) + 46px);
  width: var(--inset-width);
  aspect-ratio: var(--inset-ratio);
  overflow: hidden;
  border-radius: var(--inset-radius);
  box-shadow: var(--inset-shadow);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 2;
  pointer-events: none;
}

.speaker-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
}

.status-chip {
  position: absolute;
  top: var(--inset-gap);
  left: var(--inset-gap);
  z-index: 3;
  color: var(--status-text);
  background: var(--status-bg);
  border: 1px solid rgba(158, 214, 255, 0.35);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.status-chip[data-show="true"] {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .speaker-inset {
    width: min(46vw, 260px);
    bottom: calc(var(--inset-gap) + 58px);
    border-radius: 10px;
  }
}
