/* ===========================================================================
   Lockstep — "tungsten hi-fi"
   A dim room, one good stereo. Near-black air, the amber glow of a valve amp,
   cream dial markings, graphite equipment faces, a green status LED.

   Depth strategy: BORDERS + SURFACE SHIFTS only (shadows read poorly on dark).
   One accent (amber). Green is reserved for lock status — equipment semantics,
   never decoration.
   =========================================================================== */

:root {
  /* surfaces — one hue, lightness steps only */
  --deck: #0b0b0d; /* the room */
  --panel: #141417; /* equipment face */
  --panel-2: #1c1c21; /* raised face */
  --inset: #0e0e11; /* inputs are INSET — darker than their surroundings */

  /* rules — findable, never loud */
  --rule: rgba(255, 255, 255, 0.09);
  --rule-2: rgba(255, 255, 255, 0.16);
  --rule-focus: rgba(255, 157, 61, 0.45);

  /* signal */
  --amber: #ff9d3d;
  --amber-hi: #ffae5c;
  --amber-soft: rgba(255, 157, 61, 0.13);
  --amber-line: rgba(255, 157, 61, 0.35);

  /* dial markings — warm, never pure white */
  --cream: #ece6da;
  --cream-2: #9d978c;
  --graphite: #6a665f;
  --dim: #4a4741;

  /* status LEDs */
  --lock: #6fe3a4;
  --lock-line: rgba(111, 227, 164, 0.35);
  --warn: #ffc76b;
  --warn-line: rgba(255, 199, 107, 0.35);

  /* type */
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* geometry — concentric: outer = inner + padding */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* motion */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--cream);
  background: var(--deck);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A single tungsten bloom — the amp glow in the corner of the room. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 520px at 82% -8%, rgba(255, 157, 61, 0.07), transparent 62%);
  z-index: 0;
}

.view {
  position: relative;
  z-index: 1;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- type ---- */
/* Mono is used honestly: only for real readouts — time, codes, drift, status. */
.mono,
.chip-code,
.time-row,
.radio-state,
.sync-status,
.source-label,
.card-head .muted,
.now-badge,
.host-tag,
.pb {
  font-family: var(--mono);
}

.label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ------------------------------------------------------------- buttons ---- */
.btn {
  font: inherit;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 10px 18px;
  cursor: pointer;
  color: var(--cream);
  background: transparent;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease),
    transform 0.1s var(--ease);
}
.btn:active:not(:disabled) {
  transform: scale(0.975);
}
.btn:focus-visible {
  outline: none;
  border-color: var(--rule-focus);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

.btn-primary {
  background: var(--amber);
  color: #1a1005;
  border-color: var(--amber);
}
.btn-primary:hover:not(:disabled) {
  background: #ffae5c;
  border-color: #ffae5c;
}

.btn-ghost {
  background: var(--panel-2);
  border-color: var(--rule);
  color: var(--cream);
}
.btn-ghost:hover:not(:disabled) {
  background: #24242a;
  border-color: var(--rule-2);
}

.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 13px 24px;
  font-size: 15px;
}
.btn-sm {
  padding: 8px 13px;
  font-size: 13px;
}
.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

/* ------------------------------------------------------------- landing ---- */
.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.landing-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 32px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

/* The badge is a status lamp, not a logo bubble. */
.brand-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--inset);
  border: 1px solid var(--amber-line);
  font-size: 17px;
  box-shadow: inset 0 0 16px rgba(255, 157, 61, 0.16);
}
.brand-badge.sm {
  width: 27px;
  height: 27px;
  border-radius: 5px;
  font-size: 13px;
  box-shadow: inset 0 0 10px rgba(255, 157, 61, 0.14);
}

.brand-name {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
}
.brand-name.sm {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--cream-2);
  font-size: 14px;
  margin: 0 0 26px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* Landing feature callout — reads like a label plate on the deck. */
.feature-badge {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--inset);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 12px 13px;
  margin: 0 0 24px;
}
.fb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lock);
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 0 0 rgba(111, 227, 164, 0.5);
  animation: radioPulse 2.6s infinite;
}
.fb-body {
  min-width: 0;
}
.fb-title {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lock);
  margin-bottom: 4px;
}
.fb-text {
  display: block;
  font-size: 12.5px;
  color: var(--cream-2);
  line-height: 1.5;
  text-wrap: pretty;
}

/* Playback failure (e.g. embedding blocked by the rights holder). */
.stage-error {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  background: rgba(20, 20, 23, 0.94);
  border: 1px solid var(--warn-line);
  color: var(--warn);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.field {
  display: block;
  margin-bottom: 14px;
}
.field span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 8px;
}

input[type="text"] {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--cream);
  background: var(--inset);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
input[type="text"]:hover:not(:disabled) {
  border-color: var(--rule-2);
}
input[type="text"]:focus {
  border-color: var(--rule-focus);
  box-shadow: 0 0 0 3px var(--amber-soft);
}
input[type="text"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input::placeholder {
  color: var(--dim);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 24px 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.join-row {
  display: flex;
  gap: 8px;
}
.join-row input {
  flex: 1;
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.fineprint {
  color: var(--graphite);
  font-size: 12px;
  margin: 24px 0 0;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- room ---- */
.room {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 20px 64px;
  min-height: 100vh;
  min-height: 100dvh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 18px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Room code reads like a channel number stamped on a panel. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--inset);
  border: 1px solid var(--rule);
  color: var(--cream);
  border-radius: var(--r-sm);
  padding: 7px 12px;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.chip:hover {
  border-color: var(--amber-line);
  background: var(--panel-2);
}
.chip-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}
.chip-code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--amber);
}
.chip-icon {
  font-size: 12px;
  opacity: 0.55;
}

.room-grid {
  display: grid;
  grid-template-columns: 1fr 332px;
  gap: 18px;
  align-items: start;
}
.col-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.col-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 16px;
}

.now-card,
.add-card,
.queue-card,
.side-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 16px;
}
.now-card {
  padding: 16px 16px 18px;
}

/* --------------------------------------------------------------- stage ---- */
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r-md); /* concentric: 16px card - 6px pad ≈ 10px */
  overflow: hidden;
  border: 1px solid var(--rule);
}
.player-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.stage-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: var(--graphite);
  font-size: 13px;
  line-height: 1.6;
  background: var(--deck);
}
.stage-empty-icon {
  font-size: 26px;
  color: var(--dim);
}

.stage-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: none;
}
.stage-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: blur(22px);
}
.stage.stage-audio .stage-art {
  display: block;
}
.stage.stage-audio .player-frame {
  visibility: hidden;
}

.audio-gate,
.broadcast-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 11px;
  text-align: center;
  padding: 22px;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(4px);
  z-index: 3;
}
.audio-gate p {
  color: var(--graphite);
  font-size: 12px;
  margin: 0;
  max-width: 300px;
  line-height: 1.5;
}
.broadcast-panel {
  z-index: 4;
}
.broadcast-panel .bp-icon {
  font-size: 26px;
}
.broadcast-panel .bp-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.broadcast-panel .bp-sub {
  font-size: 12.5px;
  color: var(--cream-2);
  max-width: 360px;
  line-height: 1.55;
  text-wrap: pretty;
}

.reaction-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.float-emoji {
  position: absolute;
  bottom: 8%;
  font-size: 26px;
  animation: floatUp 2.2s var(--ease) forwards;
}
.float-emoji small {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cream-2);
}
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.7);
    opacity: 0;
  }
  16% {
    opacity: 1;
    transform: translateY(-12px) scale(1.06);
  }
  100% {
    transform: translateY(-150px) scale(1);
    opacity: 0;
  }
}

/* ------------------------------------------------------------ now meta ---- */
.now-meta {
  margin: 16px 2px 14px;
}
.now-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}
.now-sub {
  color: var(--cream-2);
  font-size: 13px;
  margin-top: 3px;
}

.platform-badges,
.queue-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.queue-badges {
  margin-top: 4px;
}
.pb {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  color: var(--graphite);
  text-decoration: none;
  line-height: 1.6;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}
a.pb:hover {
  border-color: var(--rule-2);
  color: var(--cream-2);
}
.queue-badges .pb {
  font-size: 9px;
  padding: 1px 5px;
}

/* ============================ THE SIGNATURE: the lock strip ================
   A tick-marked transport ruler + an equipment status readout. This is the
   one element that exists because the product is about a shared instant.
   ========================================================================== */
.progress {
  position: relative;
  height: 22px;
  cursor: pointer;
  margin: 2px 0 2px;
}
/* the ruler ticks, etched into the panel */
.progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    to right,
    var(--rule) 0 1px,
    transparent 1px 10%
  );
}
/* the track */
.progress::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 2px;
  background: var(--panel-2);
  border-radius: 2px;
}
.progress-fill {
  position: absolute;
  left: 0;
  top: 10px;
  height: 2px;
  width: 0%;
  background: var(--amber);
  border-radius: 2px;
  z-index: 1;
  transition: width 0.25s linear;
}
/* the playhead — a lit cue point */
.progress-fill::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 9px rgba(255, 157, 61, 0.7);
}
.progress:hover .progress-fill::after {
  box-shadow: 0 0 13px rgba(255, 157, 61, 0.9);
}

.time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* status readout — reads like a lamp on a deck */
.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px 9px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.sync-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dim);
  flex-shrink: 0;
}
.sync-status.ok {
  color: var(--lock);
  border-color: var(--lock-line);
}
.sync-status.ok::before {
  background: var(--lock);
  box-shadow: 0 0 7px var(--lock);
}
.sync-status.warn {
  color: var(--warn);
  border-color: var(--warn-line);
}
.sync-status.warn::before {
  background: var(--warn);
  box-shadow: 0 0 6px var(--warn);
}

/* ------------------------------------------------------------ transport ---- */
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.ctl {
  font-size: 14px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule);
  background: var(--inset);
  color: var(--cream-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease),
    transform 0.1s var(--ease);
}
.ctl:hover:not(:disabled) {
  background: var(--panel-2);
  border-color: var(--rule-2);
  color: var(--cream);
}
.ctl:active:not(:disabled) {
  transform: scale(0.97);
}
.ctl:focus-visible {
  outline: none;
  border-color: var(--rule-focus);
  box-shadow: 0 0 0 3px var(--amber-soft);
}
.ctl-primary {
  width: 48px;
  height: 48px;
  font-size: 16px;
  background: var(--amber);
  border-color: var(--amber);
  color: #1a1005;
}
.ctl-primary:hover:not(:disabled) {
  background: #ffae5c;
  border-color: #ffae5c;
  color: #1a1005;
}
.ctl:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}
.controls-hint {
  font-family: var(--mono);
  color: var(--graphite);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  margin-left: auto;
  text-align: right;
}

/* ----------------------------------------------------------- reactions ---- */
.reactions {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.reactions button {
  font-size: 15px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule);
  background: var(--inset);
  cursor: pointer;
  transition: transform 0.12s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.reactions button:hover {
  background: var(--panel-2);
  border-color: var(--rule-2);
  transform: translateY(-2px);
}
.reactions button:active {
  transform: translateY(0) scale(0.96);
}

/* ------------------------------------------------------- source picker ---- */
.source-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--rule);
}
.source-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}
.source-options {
  display: inline-flex;
  background: var(--inset);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 2px;
  gap: 2px;
}
.source-opt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--graphite);
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.source-opt:hover {
  color: var(--cream);
}
.source-opt.is-active {
  background: var(--amber-soft);
  color: var(--amber);
  box-shadow: inset 0 0 0 1px var(--amber-line);
}
.source-opt.is-muted {
  opacity: 0.55;
}
.source-note {
  font-size: 11.5px;
  color: var(--graphite);
  flex: 1;
  min-width: 150px;
  line-height: 1.45;
}

/* ------------------------------------------------------------ add/search -- */
.add-row {
  display: flex;
  gap: 8px;
}
.add-row input {
  flex: 1;
  min-width: 0;
}
.search-results {
  margin-top: 10px;
  display: grid;
  gap: 2px;
  max-height: 300px;
  overflow-y: auto;
}
.result {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease);
}
.result:hover {
  background: var(--panel-2);
  border-color: var(--rule);
}
.result img {
  width: 60px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
  background: #000;
  flex-shrink: 0;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}
.result-meta {
  min-width: 0;
}
.result-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-sub {
  font-size: 11.5px;
  color: var(--graphite);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.add-hint {
  font-family: var(--mono);
  color: var(--graphite);
  font-size: 11px;
  margin-top: 10px;
  min-height: 1em;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------- cards ---- */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 13px;
}
.card-head h2 {
  font-size: 10px;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0;
}
.card-head .muted {
  font-size: 11px;
}
.empty-note {
  color: var(--dim);
  font-size: 12.5px;
  text-align: center;
  padding: 14px 0;
  margin: 0;
}

/* --------------------------------------------------------------- queue ---- */
.queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.queue-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background 0.14s var(--ease);
}
.queue-item:hover {
  background: var(--panel-2);
}
.queue-item.is-current {
  background: var(--amber-soft);
  border-color: var(--amber-line);
}
.queue-item img {
  width: 48px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  background: #000;
  flex-shrink: 0;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}
.queue-item-meta {
  min-width: 0;
  flex: 1;
}
.queue-item-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.queue-item-sub {
  font-size: 11px;
  color: var(--graphite);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.now-badge {
  font-size: 8.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  border: 1px solid var(--amber-line);
  border-radius: 3px;
  padding: 1px 5px;
  flex-shrink: 0;
}
.queue-remove {
  border: none;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 4px;
  transition: color 0.14s var(--ease), background 0.14s var(--ease);
}
.queue-remove:hover {
  color: var(--cream);
  background: var(--inset);
}

/* ------------------------------------------------------------- members ---- */
.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.member {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: #0b0b0d;
  flex-shrink: 0;
}
.host-tag {
  margin-left: auto;
  font-size: 8.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  border: 1px solid var(--amber-line);
  border-radius: 3px;
  padding: 1px 5px;
}
.me-tag {
  color: var(--dim);
  font-size: 11.5px;
}

/* ---------------------------------------------------------------- chat ---- */
.chat-card {
  display: flex;
  flex-direction: column;
  max-height: 400px;
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 2px 2px 10px;
  min-height: 110px;
}
.chat-msg {
  font-size: 13px;
  line-height: 1.45;
  text-wrap: pretty;
}
.chat-msg .who {
  font-weight: 600;
  color: var(--amber);
  margin-right: 6px;
}
.chat-msg.system {
  font-family: var(--mono);
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.chat-row {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.chat-row input {
  flex: 1;
  min-width: 0;
}

/* --------------------------------------------------------------- radio ---- */
.radio-card.is-live {
  border-color: var(--lock-line);
}
.radio-state {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 2px 6px;
}
.radio-state.on {
  color: var(--lock);
  border-color: var(--lock-line);
}
.radio-state.warn {
  color: var(--warn);
  border-color: var(--warn-line);
}
.radio-blurb {
  font-size: 12.5px;
  color: var(--cream-2);
  line-height: 1.55;
  margin: 0 0 12px;
  text-wrap: pretty;
}
.radio-row {
  display: flex;
  gap: 8px;
}
.radio-row input {
  flex: 1;
  min-width: 0;
}
.radio-hint {
  font-size: 11.5px;
  color: var(--graphite);
  margin: 10px 0 0;
  line-height: 1.5;
  text-wrap: pretty;
}
.radio-hint a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid var(--amber-line);
}
.radio-live {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.radio-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lock);
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 0 0 rgba(111, 227, 164, 0.55);
  animation: radioPulse 2.4s infinite;
}
@keyframes radioPulse {
  70% {
    box-shadow: 0 0 0 7px rgba(111, 227, 164, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(111, 227, 164, 0);
  }
}
.radio-live-meta {
  min-width: 0;
}
.radio-live-title {
  font-size: 13px;
}
.radio-live-detail {
  font-size: 12px;
  color: var(--cream-2);
  margin-top: 3px;
  word-break: break-word;
  line-height: 1.45;
}
.radio-note {
  font-size: 11.5px;
  color: var(--graphite);
  line-height: 1.5;
  margin: 12px 0;
  text-wrap: pretty;
}

/* --------------------------------------------------------------- toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: var(--panel-2);
  border: 1px solid var(--rule-2);
  color: var(--cream);
  padding: 10px 17px;
  border-radius: var(--r-sm);
  font-size: 13px;
  z-index: 50;
  animation: toastIn 0.2s var(--ease);
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

/* ---------------------------------------------------------- responsive ---- */
@media (max-width: 920px) {
  .room-grid {
    grid-template-columns: 1fr;
  }
  .col-side {
    position: static;
  }
}
@media (max-width: 480px) {
  .landing-card {
    padding: 26px 20px;
  }
  .room {
    padding: 12px 14px 52px;
  }
  .controls-hint {
    display: none;
  }
  .now-title {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
