@font-face {
  font-family: 'DM Sans';
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-sans-400.woff2) format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-weight: 600;
  font-display: swap;
  src: url(fonts/dm-sans-600.woff2) format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-weight: 800;
  font-display: swap;
  src: url(fonts/manrope-800.woff2) format('woff2');
}

:root {
  --bg: #090d0f;
  --panel: #11191c;
  --panel2: #172124;
  --ink: #f1f4ef;
  --muted: #91a29d;
  --accent: #beff80;
  --lavender: #b8a5ff;
  --line: #283532;
  --danger: #ff9d8a;
  --display: 'Manrope', Arial, sans-serif;
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button,
input,
.card {
  border: 1px solid var(--line);
  border-radius: 11px;
}

button {
  min-height: 43px;
  padding: 0 17px;
  font-weight: 600;
  background: var(--panel2);
  cursor: pointer;
}

button:hover {
  background: #21302d;
}

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #122015;
}

input {
  min-height: 43px;
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  background: var(--panel);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.logo {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -2px;
}

.logo span {
  color: var(--accent);
  margin-left: 3px;
}

.error {
  color: var(--danger);
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.login {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 16px;
  text-align: center;
}

.login .logo {
  font-size: 56px;
  letter-spacing: -4px;
}

.row {
  display: flex;
  gap: 8px;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar .user {
  margin-left: auto;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--panel);
}

.card:hover {
  background: var(--panel2);
}

.card .info {
  flex: 1;
  min-width: 0;
}

.card .title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.number {
  font-family: var(--display);
  font-weight: 800;
  color: var(--muted);
}

.status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}

.status.live {
  color: var(--accent);
}

.status.interrupted {
  color: var(--lavender);
}

.status.created {
  color: var(--muted);
}

.stage {
  position: fixed;
  inset: 0;
  background: #000;
}

.stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.overlay {
  position: absolute;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 1px 3px #000;
}

.overlay.top {
  top: 0;
  background: linear-gradient(#000a, transparent);
}

.overlay.bottom {
  bottom: 0;
  background: linear-gradient(transparent, #000a);
}

.overlay .stats {
  margin-left: auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.overlay h1 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.message {
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

[hidden] {
  display: none !important;
}
