/* Furry Radio - shared styles. Tokens mirror the Figma file
   "Furry Radio Stream Designs" (collection "Furry Radio Tokens"). */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter/inter-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter/inter-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/fonts/inter/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter/inter-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --surface: #121319;
  --surface2: #191b23;
  --surface3: #20232d;
  --border: #252833;
  --border-strong: #343846;
  --text: #e9e9ee;
  --muted: #9c9eab;
  --faint: #727584;
  --primary: #d9772b;
  --primary-hover: #e88a3f;
  --primary-text: #ee9a55;
  --primary-deep: #3a2413;
  --live: #f05252;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.45 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 700; letter-spacing: 0; }
h1 { font-size: 28px; line-height: 1.2; }
h2 { font-size: 15px; line-height: 1.3; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--font-mono); font-size: 12px; }
.small { font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }

/* panels */
.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.box-head { display: flex; align-items: center; gap: 8px; }
.box-head > .col { flex: 1; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 7px 12px; border-radius: 8px; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--border);
  font-weight: 600; font-size: 13px; color: var(--text); white-space: nowrap;
}
.btn:hover { border-color: var(--border-strong); background: var(--surface3); }
.btn:focus-visible, .input:focus-visible, .toggle:focus-visible, .nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--bg); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { background: transparent; border-color: rgba(248, 113, 113, 0.6); color: var(--danger); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.08); border-color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface2); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor;
  font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 18px;
}
.pill.ok { color: var(--success); border-color: rgba(52, 211, 153, 0.7); }
.pill.warn { color: var(--warning); border-color: rgba(251, 191, 36, 0.7); }
.pill.bad { color: var(--danger); border-color: rgba(248, 113, 113, 0.7); }
.pill.live { color: var(--live); border-color: rgba(240, 82, 82, 0.7); }
.pill.accent { color: var(--primary-text); border-color: rgba(238, 154, 85, 0.7); }
.pill.neutral { color: var(--muted); background: var(--surface3); border-color: transparent; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot.live { background: var(--live); }

/* inputs */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: 13px; }
.input {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
}
.input:focus { border-color: var(--primary); outline: none; }
.input::placeholder { color: var(--faint); }
.hint { font-size: 12.5px; color: var(--faint); }

/* toggle */
.toggle {
  position: relative; width: 36px; height: 20px; flex: none; border-radius: 999px; border: 0; padding: 0;
  background: var(--surface3); cursor: pointer; transition: background 0.15s;
}
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transition: transform 0.15s;
}
.toggle[aria-checked='true'] { background: var(--primary); }
.toggle[aria-checked='true']::after { transform: translateX(16px); }

/* progress */
.bar { height: 4px; border-radius: 2px; background: var(--surface3); overflow: hidden; flex: 1; min-width: 40px; }
.bar > i { display: block; height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.4s linear; }

/* banner */
.banner { padding: 10px 12px; border-radius: 8px; font-size: 13px; border: 1px solid; }
.banner.bad { color: var(--danger); border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.08); }
.banner.warn { color: var(--warning); border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.06); }
.banner.ok { color: var(--success); border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.06); }

/* logo mark */
.mark { display: inline-flex; padding: 6px; border-radius: 7px; background: var(--primary-deep); color: var(--primary-text); }
.mark svg { width: 18px; height: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px var(--font-head); color: var(--text); }
.brand:hover { text-decoration: none; }

/* tables */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--faint); padding: 10px 20px; background: var(--surface2); letter-spacing: 0.02em; text-transform: uppercase; }
.table td { padding: 13px 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.table td.title { color: var(--text); font-weight: 600; font-size: 14px; }
.table tr.playing td { background: rgba(58, 36, 19, 0.35); }

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

/* Confirmations (shared/confirm.js). A real <dialog>, so focus trapping,
   Escape and the backdrop come from the browser while the look stays ours
   (Figma frame "Dashboard - Confirm dialog"). */
.confirm {
  width: min(460px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
}
.confirm::backdrop { background: rgba(11, 12, 16, 0.5); }
.confirm h2 { font-size: 18px; line-height: 1.35; }
.confirm p { margin-top: 10px; color: var(--muted); line-height: 1.5; }
.confirm p:empty { display: none; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
@media (max-width: 420px) {
  .confirm-actions { flex-direction: column-reverse; }
  .confirm-actions .btn { justify-content: center; }
}
