:root {
  --bg: #0a0a0a;
  --fg: #f4f4f5;
  --muted: #9ca3af;
  --accent: #3b82f6;
  --live: #10b981;
  --offline: #6b7280;
  --error: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
}

.bar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
  font-size: 11px;
  color: var(--muted);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.brand-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--offline);
  transition: background 200ms ease;
}
.status[data-state="connecting"] .status-dot { background: #f59e0b; }
.status[data-state="live"]       .status-dot { background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
.status[data-state="ended"]      .status-dot { background: var(--muted); }
.status[data-state="error"]      .status-dot { background: var(--error); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);   }
}

.stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.overlay.hidden { opacity: 0; }

.overlay h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.overlay p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
