:root {
  color-scheme: dark;
  --chrome: rgba(7, 13, 18, 0.62);
  --text: #f8fafc;
  --muted: #cbd5e1;
}

* {
  box-sizing: border-box;
}

html,
body,
.player-root {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #020617;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.player-root {
  position: relative;
}

.stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #020617;
}

.stage img,
.stage video,
.stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #020617;
}

.slide {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 96px);
  text-align: center;
}

.slide-inner {
  width: min(1180px, 92vw);
}

.slide h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.slide p {
  margin: clamp(18px, 3vw, 34px) auto 0;
  max-width: 980px;
  font-size: clamp(1.4rem, 3.3vw, 3.3rem);
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.88);
}

.slide.emerald {
  background: linear-gradient(135deg, #083b36 0%, #116c5f 52%, #d6a73e 100%);
}

.slide.ink {
  background: linear-gradient(135deg, #07111f 0%, #1f2937 48%, #3b516a 100%);
}

.slide.amber {
  background: linear-gradient(135deg, #3f2507 0%, #a15c10 50%, #f1b84b 100%);
}

.slide.sky {
  background: linear-gradient(135deg, #0b3558 0%, #0ea5e9 50%, #9edbe7 100%);
}

.standby {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 6vw;
  text-align: center;
  background: #07111f;
}

.standby h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 7rem);
  letter-spacing: 0;
}

.standby p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.4vw, 2rem);
}

.player-chrome {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  pointer-events: none;
  opacity: 0.86;
}

.player-chrome > div {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--chrome);
}

.player-chrome strong {
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
}

.player-chrome span,
.player-chrome time {
  color: var(--muted);
  font-size: clamp(0.75rem, 1vw, 0.95rem);
}

.connection-state {
  position: absolute;
  top: 18px;
  right: 24px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(7, 13, 18, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.connection-state.visible {
  opacity: 1;
}
