:root {
  --bg: #000000;
  --fg: #e7edf2;
  --muted: #8a96a3;
  --accent: #25c17a;
  --alert: #ff715b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: "IBM Plex Sans", "Noto Sans JP", sans-serif;
  background: radial-gradient(circle at top, #0f1115 0%, var(--bg) 55%);
  color: var(--fg);
}

body {
  display: flex;
}

main {
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #1d242f;
  background: rgba(4, 7, 10, 0.8);
}

.channel {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #334356;
  color: var(--muted);
}

.status.connected {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, #334356);
}

.status.disconnected {
  color: var(--alert);
  border-color: color-mix(in srgb, var(--alert) 55%, #334356);
}

.viewport {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

.video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background: #000;
}

.placeholder.hidden {
  display: none;
}

.no-signal {
  font-size: clamp(34px, 6vw, 88px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.player {
  margin-top: 10px;
  color: var(--muted);
}

.player.active {
  color: var(--accent);
}
