:root {
  --bg: #0b0b0d;
  --panel: #131317;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #9a9aa3;
  --live: #ff3b30;
  --accent: #f6821f;
  color-scheme: dark;
  font-family: InterVariable, Inter, system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv11", "ss01";
}

* { box-sizing: border-box; }

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

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(246, 130, 31, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.125rem;
}
.brand-slash { color: var(--muted); font-weight: 400; }
.brand-sub { color: var(--accent); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.pill[data-state="connecting"] .dot { animation: blink 1.2s ease-in-out infinite; }
.pill[data-state="live"] {
  color: #fff;
  background: var(--live);
  border-color: transparent;
}
.pill[data-state="live"] .dot {
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse 1.6s ease-out infinite;
}

.stage {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 3rem;
}

.frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line);
}

.skin {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  --media-accent-color: var(--accent);
  --media-border-radius: 14px;
  --media-border-color: transparent;
  --media-font-family: InterVariable, Inter, system-ui, sans-serif;
}

.unmute {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.unmute:hover { background: rgba(0, 0, 0, 0.85); }
.unmute[hidden] { display: none; }

.slate {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 64px),
    radial-gradient(ellipse at center, #17171c 0%, #0a0a0c 75%);
}
.slate[hidden] { display: none; }

.slate-inner { max-width: 32rem; }
.slate h1 {
  margin: 1.25rem 0 0.5rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.slate p { margin: 0; color: var(--muted); line-height: 1.5; }

.slate-mark {
  display: inline-flex;
  gap: 6px;
  align-items: flex-end;
  height: 28px;
}
.slate-mark span {
  width: 6px;
  border-radius: 3px;
  background: var(--accent);
  transform-origin: bottom;
  animation: eq 1.2s ease-in-out infinite;
}
.slate-mark span:nth-child(1) { height: 40%; animation-delay: -0.2s; }
.slate-mark span:nth-child(2) { height: 100%; animation-delay: -0.5s; }
.slate-mark span:nth-child(3) { height: 65%; animation-delay: -0.8s; }

.meta { padding: 1.5rem 0.25rem 0; }
.meta h2 { margin: 0 0 0.35rem; font-size: 1.25rem; letter-spacing: -0.01em; }
.fine { margin: 0; color: var(--muted); font-size: 0.875rem; }
.fine a { text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 3px; }
.fine a:hover { color: var(--text); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}
@keyframes blink { 50% { opacity: 0.3; } }
@keyframes eq { 50% { transform: scaleY(0.35); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
