/* =============================================================
   UNLEASHED Radio: shared brand styles
   Colours and type follow the UNLEASHED Brand Guide.
   Pink leads. Supporting colours organise, highlight and energise.
   ============================================================= */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/anton-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
}

:root {
  /* Brand palette */
  --beast-pink: #EC008C;
  --night-black: #070707;
  --fang-white: #FFFFFF;
  --eye-glow: #F1F7D2;
  --electric-cyan: #00D9FF;
  --ultraviolet: #6C2BD9;
  --acid-lime: #B7F000;
  --ember-orange: #FF5A1F;

  /* Surfaces built from Night Black */
  --bg: var(--night-black);
  --surface: #111113;
  --surface-2: #19191D;
  --line: #2A2A30;
  --text: var(--fang-white);
  --muted: #A3A3AD;

  --font-head: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  border-top: 4px solid var(--beast-pink);
}
img { max-width: 100%; }
a { color: var(--beast-pink); }
::selection { background: var(--beast-pink); color: var(--night-black); }

/* ─── Type ─────────────────────────────────────────── */
.h-display, h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--beast-pink);
}
.muted { color: var(--muted); }

/* ─── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--electric-cyan); outline-offset: 2px; }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.btn-primary { background: var(--beast-pink); color: var(--night-black); }
.btn-primary:hover { background: var(--fang-white); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fang-white); }
.btn-ghost.active { border-color: var(--beast-pink); color: var(--beast-pink); }
.btn-cyan { background: var(--electric-cyan); color: var(--night-black); }
.btn-cyan:hover { background: var(--fang-white); }
.btn-lime { background: var(--acid-lime); color: var(--night-black); }
.btn-lime:hover { background: var(--fang-white); }
.btn-danger { background: transparent; color: var(--ember-orange); border-color: var(--ember-orange); }
.btn-danger:hover { background: var(--ember-orange); color: var(--night-black); }
.btn-sm { padding: 7px 12px; font-size: 0.72rem; }
.btn-full { width: 100%; }

/* ─── Inputs ───────────────────────────────────────── */
input[type=text], input[type=password], input[type=search], input[type=datetime-local],
input[type=time], textarea, select {
  width: 100%;
  padding: 11px 14px;
  background: var(--night-black);
  border: 2px solid var(--line);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color .15s;
}
input::placeholder, textarea::placeholder { color: #6E6E78; }
input:focus, textarea:focus, select:focus { border-color: var(--beast-pink); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--beast-pink) 50%), linear-gradient(135deg, var(--beast-pink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
textarea { resize: vertical; min-height: 90px; }
.label {
  display: block;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type=range] {
  -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--line); outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; background: var(--beast-pink); border: 0;
}
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; background: var(--beast-pink); border: 0; border-radius: 0; }

/* ─── Status chips ─────────────────────────────────── */
.chip {
  display: inline-block;
  padding: 3px 8px;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  color: var(--muted);
}
.chip-playing { background: var(--beast-pink); border-color: var(--beast-pink); color: var(--night-black); }
.chip-up_next, .chip-loaded { border-color: var(--electric-cyan); color: var(--electric-cyan); }
.chip-queued, .chip-approved, .chip-ready { border-color: var(--acid-lime); color: var(--acid-lime); }
.chip-pending, .chip-downloading { border-color: var(--eye-glow); color: var(--eye-glow); }
.chip-rejected, .chip-failed { border-color: var(--ember-orange); color: var(--ember-orange); }
.chip-played { border-color: var(--line); color: var(--muted); }
.chip-song { border-color: var(--beast-pink); color: var(--beast-pink); }
.chip-vox { border-color: var(--ultraviolet); color: #B08CFF; }
.chip-announcement { border-color: var(--electric-cyan); color: var(--electric-cyan); }

/* Live badge */
.live {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--beast-pink); color: var(--night-black);
  font-weight: 700; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 9px;
}
.live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--night-black);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse { 50% { opacity: .25; } }
.live.off { background: var(--surface-2); color: var(--muted); }
.live.off::before { background: var(--muted); animation: none; }

/* ─── Toast ────────────────────────────────────────── */
#toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: var(--surface-2); color: var(--text);
  border-left: 4px solid var(--fang-white);
  padding: 12px 18px; font-size: 0.88rem; font-weight: 600;
  z-index: 999; display: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
}
#toast.success { border-left-color: var(--acid-lime); }
#toast.error { border-left-color: var(--ember-orange); }

/* ─── Misc ─────────────────────────────────────────── */
.empty { text-align: center; padding: 26px 16px; color: var(--muted); font-size: 0.88rem; }
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--line); border-top-color: var(--beast-pink); border-radius: 50%;
  animation: spin .6s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer {
  border-top: 4px solid var(--beast-pink);
  padding: 22px 16px 28px;
  text-align: center;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.site-footer strong { color: var(--fang-white); font-weight: 700; }
.site-footer a { color: var(--beast-pink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

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