/* ============================================================
   ThePhrequency — Dashboard CSS
   PHYSICAL BROADCAST COMMAND CONSOLE.
   Rack-mounted equipment rendered as web.
   Navy/black + illuminated red. Powder-coated metal, brushed steel,
   recessed panels, glass displays, LED illumination, screws, vents,
   heavy beveled frames, angled corners, red nameplates.
   Tuned for 1920x1080: top 152px / bottom 88px / stations flex.
   ============================================================ */

/* ============================================================
   MATERIAL TOKENS — graphite / near-black industrial metal language.
   Shared across masthead, spine, station chassis and bottom modules so
   the whole console reads as one machine. Restrained red light accents.
   ============================================================ */
:root {
  /* Graphite metal palette (matched to reference spec) */
  --metal-0: #05070a;        /* deepest black */
  --metal-1: #080d13;        /* blue-black */
  --metal-2: #11151a;        /* dark graphite */
  --metal-3: #181d23;        /* raised graphite */
  --metal-4: #1e232e;        /* bezel face */
  --metal-5: #2a3038;        /* metal highlight */
  --metal-hi: #2a3038;       /* bright metallic highlight */
  --metal-line: #000;        /* seam / shadow line */
  --burgundy: #24080b;       /* deep burgundy */
  --dark-red: #5b0b10;       /* dark red */
  --illum-red: #df1f26;      /* illuminated red */
  --hot-red: #ff3b3f;        /* hot red highlight */
  --soft-white: #e7e8ea;     /* soft white */
  --muted-gray: #8c929b;     /* muted gray */
  /* Bevels (inset raised-metal + recessed-cavity shadows) */
  --bevel-raised:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -2px 0 rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 6px 18px rgba(0,0,0,0.6);
  --bevel-inset:
    inset 0 2px 6px rgba(0,0,0,0.85),
    inset 0 -1px 0 rgba(255,255,255,0.05),
    inset 0 0 0 1px rgba(0,0,0,0.6);
  --bevel-knob:
    inset 0 2px 3px rgba(255,255,255,0.18),
    inset 0 -3px 5px rgba(0,0,0,0.8),
    inset 0 0 12px rgba(0,0,0,0.55),
    0 6px 16px rgba(0,0,0,0.75);
  /* Red light accents (restrained) */
  --red-trim: rgba(220,38,38,0.5);
  --red-trim-soft: rgba(220,38,38,0.22);
  --red-glow-sm: 0 0 10px rgba(220,38,38,0.32);
  --red-glow-md: 0 0 22px rgba(220,38,38,0.4);
  /* Reusable metal gradients */
  --metal-face: linear-gradient(180deg, var(--metal-4) 0%, var(--metal-2) 38%, var(--metal-1) 100%);
  --metal-face-dark: linear-gradient(180deg, var(--metal-3) 0%, var(--metal-1) 45%, var(--metal-0) 100%);
  --metal-brushed: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, transparent 4%, transparent 96%, rgba(255,255,255,0.04) 100%);
  /* Grille / vent texture (repeating dark slots) */
  --tex-grille: repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(0,0,0,0.5) 2px, rgba(0,0,0,0.5) 3px);
  --tex-seam-h: linear-gradient(90deg, transparent, rgba(0,0,0,0.65) 12%, rgba(0,0,0,0.65) 88%, transparent);
}

/* ============================================================
   App shell — 1080p full-viewport command center
   ============================================================ */
.tphr-shell {
  display: grid;
  grid-template-columns: 210px 1fr;
  grid-template-rows: 1fr auto;
  height: 100vh;
  position: relative;
  z-index: 1;
}
.tphr-sidebar { grid-row: 1 / 3; }
.tphr-main { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.tphr-content { flex: 1; overflow-y: auto; min-height: 0; }
.tphr-bottom-console { grid-column: 2; grid-row: 2; }

/* ============================================================
   SIDEBAR — left rail of the equipment cabinet
   ============================================================ */
.tphr-sidebar {
  background: linear-gradient(180deg, #0a0f1c 0%, #04060e 100%);
  border-right: 3px solid #140404;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  box-shadow:
    inset -1px 0 0 rgba(220,38,38,0.14),
    inset -3px 0 10px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.05),
    4px 0 16px rgba(0,0,0,0.6);
}
.tphr-sidebar::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(255,255,255,0.012) 2px, rgba(255,255,255,0.012) 3px);
}
.tphr-sidebar::after {
  content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 2px;
  background: linear-gradient(180deg, rgba(220,38,38,0.35), rgba(220,38,38,0.1) 30%, transparent 70%, rgba(220,38,38,0.18));
  pointer-events: none;
}

.tphr-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px 12px;
  border-bottom: 2px solid #140404;
  background: linear-gradient(180deg, rgba(26,6,6,0.7), transparent);
  position: relative;
  box-shadow: inset 0 -1px 0 rgba(220,38,38,0.1);
}
.tphr-brand-mark { filter: drop-shadow(0 0 10px rgba(223,31,38,0.4)); flex-shrink: 0; position: relative; width: 46px; height: 50px; }
.tphr-brand-logo { width: 46px; height: 50px; display: block; object-fit: contain; }
.tphr-brand-logo-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 900; font-style: italic; letter-spacing: -0.02em;
  color: #e7e8ea; text-shadow: 0 0 10px rgba(223,31,38,0.6);
  background: linear-gradient(180deg, #181d23 0%, #080d13 100%);
  border: 1px solid rgba(223,31,38,0.5);
  /* shield/hex outline */
  clip-path: polygon(50% 0, 100% 18%, 100% 70%, 80% 100%, 20% 100%, 0 70%, 0 18%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -2px 4px rgba(0,0,0,0.7), 0 0 12px rgba(223,31,38,0.3);
}
.tphr-brand-text { display: flex; flex-direction: column; min-width: 0; }
.tphr-brand-name {
  font-weight: 900; font-size: 0.92rem; color: #fff;
  text-shadow: 0 0 12px rgba(220,38,38,0.4);
  letter-spacing: 0.02em;
}
.tphr-brand-tag {
  font-size: 0.5rem; color: rgba(255,255,255,0.36);
  letter-spacing: 0.18em; text-transform: uppercase; margin-top: 1px;
}

.tphr-nav {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 8px; flex: 1; overflow-y: auto;
}
.tphr-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 6px;
  color: rgba(255,255,255,0.55); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.03em; position: relative;
  transition: all 0.18s var(--ease);
  border: 1px solid transparent; background: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}
.tphr-nav-link:hover {
  color: var(--text); background: rgba(220,38,38,0.06);
  border-color: rgba(220,38,38,0.12);
}
.tphr-nav-link:hover .tphr-nav-glow { opacity: 1; }
.tphr-nav-link.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(220,38,38,0.2), rgba(220,38,38,0.03) 80%), linear-gradient(180deg, rgba(26,6,6,0.95), rgba(10,2,2,0.55));
  border-color: rgba(220,38,38,0.32);
  box-shadow: inset 3px 0 0 var(--red-500), inset 0 1px 0 rgba(255,255,255,0.05), 0 0 16px rgba(220,38,38,0.24);
  text-shadow: 0 0 8px rgba(220,38,38,0.5);
}
.tphr-nav-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; opacity: 0.72; flex-shrink: 0; }
.tphr-nav-link.is-active .tphr-nav-icon { opacity: 1; filter: drop-shadow(0 0 6px rgba(220,38,38,0.7)); }
.tphr-nav-glow {
  position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 12px rgba(220,38,38,0.22);
  opacity: 0; transition: opacity 0.18s var(--ease); pointer-events: none;
}
.tphr-nav-link[data-nav="library"] { margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 12px; }
.tphr-nav-link[data-nav="system"] { margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 12px; }

/* SYSTEM submenu — indented child navigation (Logs / Backups) */
.tphr-nav-children {
  display: flex; flex-direction: column; gap: 1px;
  margin: 1px 0 4px; padding-left: 20px;
}
.tphr-nav-child-link {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 5px;
  color: rgba(255,255,255,0.45); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.03em; border-left: 2px solid rgba(220,38,38,0.14);
  transition: all 0.18s var(--ease);
}
.tphr-nav-child-link:hover { color: var(--text); background: rgba(220,38,38,0.05); }
.tphr-nav-child-link.is-active {
  color: #fff; border-left-color: var(--red-500);
  background: linear-gradient(90deg, rgba(220,38,38,0.16), rgba(220,38,38,0.02));
  text-shadow: 0 0 8px rgba(220,38,38,0.5);
}
.tphr-nav-child-link .tphr-nav-icon { width: 14px; height: 14px; font-size: 0.72rem; opacity: 0.6; }

.tphr-sidebar-footer { padding: 10px 10px 14px; border-top: 2px solid #140404; box-shadow: inset 0 1px 0 rgba(220,38,38,0.1); }
.tphr-sys-status {
  margin-bottom: 10px; padding: 10px;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px; box-shadow: inset 0 2px 5px rgba(0,0,0,0.65), inset 0 -1px 0 rgba(255,255,255,0.02);
}
.tphr-sys-status-label {
  font-size: 0.54rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.38); margin-bottom: 6px;
  display: flex; align-items: center; gap: 5px;
}
.tphr-sys-status-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.66rem; padding: 2px 0; color: rgba(255,255,255,0.54);
}
.tphr-sys-status-row .val { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text); }
.tphr-sys-status-row .val.ok { color: #34d399; text-shadow: 0 0 6px rgba(52,211,153,0.35); }
.tphr-sys-status-row .val.err { color: var(--red-300); text-shadow: 0 0 6px rgba(220,38,38,0.35); }

.tphr-user-card {
  display: flex; align-items: center; gap: 8px; padding: 7px;
  border-radius: 6px; background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.05); box-shadow: inset 0 1px 0 rgba(255,255,255,0.025), inset 0 2px 4px rgba(0,0,0,0.45);
}
.tphr-user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-500), var(--red-800));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.75rem;
  box-shadow: 0 0 12px rgba(220,38,38,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.tphr-user-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tphr-user-name { font-size: 0.74rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tphr-user-role { font-size: 0.54rem; color: rgba(255,255,255,0.36); text-transform: uppercase; letter-spacing: 0.1em; }
.tphr-user-logout { color: rgba(255,255,255,0.36); font-size: 1rem; padding: 3px 6px; border-radius: 4px; transition: all 0.18s var(--ease); flex-shrink: 0; }
.tphr-user-logout:hover { color: var(--red-200); background: rgba(220,38,38,0.1); box-shadow: 0 0 12px rgba(220,38,38,0.25); }
.tphr-sidebar-version { text-align: center; font-size: 0.52rem; color: rgba(255,255,255,0.16); margin-top: 8px; letter-spacing: 0.18em; font-family: var(--font-mono); }

/* ============================================================
   Topbar (interior pages only — hidden on dashboard)
   ============================================================ */
.tphr-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; border-bottom: 1px solid rgba(220,38,38,0.1);
  background: rgba(4,6,14,0.6); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 -1px 0 rgba(220,38,38,0.04);
}
.tphr-topbar-title { display: flex; align-items: center; gap: 12px; }
.tphr-topbar-title h1 { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.tphr-topbar-pulse {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px; border-radius: 3px;
  background: rgba(220,38,38,0.07); border: 1px solid rgba(220,38,38,0.18);
  font-size: 0.55rem; font-weight: 800; letter-spacing: 0.2em;
  color: var(--red-200); font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(220,38,38,0.12);
}
.tphr-pulse-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--red-500);
  box-shadow: 0 0 7px var(--red-500); animation: dotPulse 1.4s var(--ease) infinite;
}
.tphr-topbar-actions { display: flex; gap: 6px; }

/* ============================================================
   Dashboard layout — dense, fills viewport
   ============================================================ */
.tphr-dashboard {
  padding: 10px 14px 6px;
  display: flex; flex-direction: column; gap: 8px;
  height: 100%;
  background:
    /* faint horizontal seam lines across the console backplate */
    repeating-linear-gradient(180deg, transparent 0, transparent 38px, rgba(0,0,0,0.28) 38px, rgba(0,0,0,0.28) 39px),
    /* faint vertical graphite plate boundaries */
    repeating-linear-gradient(90deg, transparent 0, transparent 320px, rgba(0,0,0,0.22) 320px, rgba(0,0,0,0.22) 321px),
    /* vignette + red wash from center top */
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(223,31,38,0.06), transparent 60%),
    /* base graphite metal */
    linear-gradient(180deg, #0b0e15 0%, #06080d 55%, #04050a 100%);
  position: relative;
}
/* Subtle brushed-metal sheen + corner light + faint red leaks over the backplate */
.tphr-dashboard::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.035) 0%, transparent 8%, transparent 92%, rgba(255,255,255,0.025) 100%),
    radial-gradient(ellipse 90% 70% at 50% 120%, rgba(223,31,38,0.05), transparent 60%),
    radial-gradient(circle at 0% 50%, rgba(223,31,38,0.04), transparent 18%),
    radial-gradient(circle at 100% 50%, rgba(223,31,38,0.04), transparent 18%);
}
.tphr-dashboard > * { position: relative; z-index: 1; }

/* ============================================================
   TOP CONSOLE — single dominant masthead plaque spanning the full
   console width. Identity plate only: wordmark + taglines + live/mock
   banner. No status modules (those live in the bottom console bank).
   Total header height kept at 152px.
   ============================================================ */
.tphr-console-top {
  display: block;
  position: relative;
  height: 184px;
}

/* Masthead — heavy industrial broadcast-equipment housing. Layered geometry:
   outer black chassis → raised graphite lip → red illuminated seam →
   secondary angled inner frame → recessed central masthead cavity → wordmark.
   Angled chamfered corners. Machine around the wordmark, not empty space. */
/* IMAGE MASTHEAD — uses cropped prototype artwork as the primary surface.
   All CSS-built housing, armor, rails, and text overlays are hidden since
   the image already contains the full visual. Only the live/mock banner
   remains as an HTML overlay. */
.tphr-masthead {
  position: relative;
  height: 100%;
  background: url('/ThePhrequency/public/assets/img/masthead/thephrequency_header.png') 0 0 / 100% 100% no-repeat;
  border: none;
  border-radius: 0;
  box-shadow: 0 12px 34px rgba(0,0,0,0.8);
}
/* Hide all CSS-built geometry — the image provides the housing look */
.tphr-masthead::before,
.tphr-masthead::after { display: none !important; }
.tphr-masthead-shell { display: none !important; }
.tphr-mh-armor { display: none !important; }

/* Clean broadcast-console decoration: symmetric metal rails + beacon core.
   Heavier beveled metal strip with a red light line, sitting ABOVE the
   wordmark (never over it). */
.tphr-masthead-deco {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 22px; z-index: 3;
  opacity: 0.92;
}
.tphr-mh-rail {
  width: 170px; height: 6px; border-radius: 3px;
  background: linear-gradient(180deg, var(--metal-hi) 0%, var(--metal-4) 45%, #07090f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 1px rgba(0,0,0,0.8),
    0 2px 3px rgba(0,0,0,0.7);
  position: relative;
}
.tphr-mh-rail::after {
  content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(220,38,38,0.6), transparent 70%);
  box-shadow: 0 0 6px rgba(220,38,38,0.4);
}
.tphr-mh-beacon {
  position: relative; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--red-trim);
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(220,38,38,0.18), transparent 70%);
  box-shadow:
    0 0 14px rgba(220,38,38,0.35),
    inset 0 0 8px rgba(220,38,38,0.25),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.tphr-mh-beacon-core {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red-500);
  box-shadow: 0 0 14px var(--red-500), 0 0 5px var(--red-500), inset 0 1px 0 rgba(255,255,255,0.5);
  animation: dotPulse 2.2s var(--ease) infinite;
}

/* Image masthead: ALL overlays hidden. The image IS the complete visual.
   No text overlays, no live/mock badge, no decorative rails — just the image. */
.tphr-masthead-text { display: none !important; }
.tphr-masthead-deco { display: none !important; }
.tphr-masthead-footplate { display: none !important; }
.tphr-brand-large,
.tphr-brand-tagline,
.tphr-brand-tagline-sub { display: none !important; }
.tphr-live-banner,
.tphr-mock-banner { display: none !important; }
.tphr-mock-banner {
  color: #f59e0b; font-size: 0.6rem; padding: 2px 10px;
  background: linear-gradient(180deg, rgba(245,158,11,0.16), rgba(245,158,11,0.04));
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 999px; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 10px rgba(245,158,11,0.25);
}
.tphr-live-banner {
  color: var(--red-200); font-size: 0.6rem; padding: 2px 10px;
  background: linear-gradient(180deg, rgba(220,38,38,0.18), rgba(220,38,38,0.04));
  border: 1px solid rgba(220,38,38,0.45);
  border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 14px rgba(220,38,38,0.3);
  white-space: nowrap;
}

/* ============================================================
   Station layout — 2x2 + center spine
   Explicit slug-keyed grid placement (independent of DOM order).
   Approved layout:
     TOP LEFT    = phreak   | TOP RIGHT    = killer
     BOTTOM LEFT = smokey   | BOTTOM RIGHT = crash
   ============================================================ */
.tphr-station-layout {
  display: grid;
  grid-template-columns: 1fr 124px 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  flex: 1; min-height: 0;
}
.tphr-station-layout > .tphr-station[data-station="phreak"] { grid-column: 1; grid-row: 1; }
.tphr-station-layout > .tphr-station[data-station="killer"] { grid-column: 3; grid-row: 1; }
.tphr-station-layout > .tphr-station[data-station="smokey"] { grid-column: 1; grid-row: 2; }
.tphr-station-layout > .tphr-station[data-station="crash"]  { grid-column: 3; grid-row: 2; }
.tphr-spine { grid-column: 2; grid-row: 1 / 3; }

/* ============================================================
   SCREWS + RACK RAILS
   ============================================================ */
.tphr-screw {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6a6a76, #1a1a22 60%, #08080d);
  box-shadow: inset 0 0 1px rgba(255,255,255,0.18), 0 1px 1px rgba(0,0,0,0.65);
  z-index: 6;
}
.tphr-screw::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 5px; height: 1px; background: rgba(0,0,0,0.65);
  transform: translate(-50%, -50%) rotate(45deg);
}
.tphr-screw-tl { top: 6px; left: 6px; }
.tphr-screw-tr { top: 6px; right: 6px; }
.tphr-screw-bl { bottom: 6px; left: 6px; }
.tphr-screw-br { bottom: 6px; right: 6px; }
.tphr-rack-rail {
  position: absolute; left: 10px; right: 10px; height: 4px;
  background: linear-gradient(180deg, #303040 0%, #0e0e16 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 1px 2px rgba(0,0,0,0.6);
  z-index: 4;
}
.tphr-rack-rail-t { top: 3px; }
.tphr-rack-rail-b { bottom: 3px; }

/* ============================================================
   STATION PANEL — heavy rack-mounted broadcast module
   Outer shell → angled corners → red edge light → secondary lip →
   inner recessed navy display surface
   ============================================================ */
.tphr-station {
  --st-accent: var(--red-500);
  --st-accent-soft: rgba(220,38,38,0.15);
  background:
    var(--metal-brushed),
    var(--metal-face-dark);
  border: 4px solid #05060a;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.06),
    inset 0 -3px 0 rgba(0,0,0,0.8),
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 10px 28px rgba(0,0,0,0.65);
  transition: all 0.3s var(--ease-out);
}
/* Outer metallic bezel — angled corner highlight */
.tphr-station-shell {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 7%, transparent 93%, rgba(255,255,255,0.04) 100%);
  z-index: 3;
}
/* Accent illuminated trim — per-station edge glow (restrained) */
.tphr-station::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--st-accent-soft) 0%, transparent 26%, transparent 74%, var(--st-accent-soft) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.5; pointer-events: none; transition: opacity 0.3s var(--ease);
}
/* Inner recessed display surface (dark, no color wash) */
.tphr-station::after {
  content: ''; position: absolute; inset: 4px; border-radius: 8px;
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.025), transparent 55%);
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.8);
  opacity: 0.7; pointer-events: none; z-index: 0;
}
.tphr-station:hover { box-shadow: 0 14px 36px rgba(0,0,0,0.7), 0 0 28px var(--st-accent-soft); }
.tphr-station:hover::before { opacity: 0.9; }
.tphr-station.is-onair::before { opacity: 1; animation: edgePulse 2.4s var(--ease) infinite; }
.tphr-station.is-offline { opacity: 0.72; }
.tphr-station.is-offline::before { opacity: 0.28; }
@keyframes edgePulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

/* ============================================================
   NAMEPLATE — dark engraved metal plate with a per-station accent line.
   Identity comes from the accent underline + edge glow, not a red flood.
   ============================================================ */
.tphr-station-nameplate {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px 7px 16px;
  background: linear-gradient(180deg, var(--metal-3) 0%, var(--metal-1) 100%);
  border-bottom: 1px solid #05060a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), inset 0 -2px 4px rgba(0,0,0,0.6);
  position: relative; z-index: 2; flex-shrink: 0;
}
/* Thin accent light line under the nameplate */
.tphr-station-nameplate::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--st-accent), transparent);
  box-shadow: 0 0 6px var(--st-accent);
  opacity: 0.85;
}
.tphr-nameplate-clip {
  position: relative;
  padding: 4px 18px;
  background: linear-gradient(180deg, #24080b 0%, #11151a 55%, #080d13 100%);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -2px 3px rgba(0,0,0,0.7),
    inset 3px 0 5px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(223,31,38,0.18);
}
.tphr-nameplate-clip::before {
  content: ''; position: absolute; inset: 1px;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), transparent 45%);
  pointer-events: none;
}
/* Illuminated station accent edge along the bottom of the nameplate tab */
.tphr-nameplate-clip::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--st-accent), transparent);
  box-shadow: 0 0 6px var(--st-accent);
  opacity: 0.9;
}
.tphr-nameplate-text {
  font-size: 0.86rem; font-weight: 900; letter-spacing: 0.1em;
  color: #f5f5f5; text-shadow: 0 0 10px var(--st-accent-soft), 0 1px 2px rgba(0,0,0,0.85);
  font-family: var(--font-display);
  position: relative; z-index: 1;
}

/* State pill */
.tphr-state-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 0.56rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.44);
  border: 1px solid rgba(255,255,255,0.08); font-family: var(--font-mono);
}
.tphr-state-pill .tphr-state-dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 7px currentColor;
}
.tphr-state-pill.is-onair {
  color: var(--red-200);
  background: linear-gradient(180deg, rgba(220,38,38,0.14), rgba(0,0,0,0.35));
  border-color: rgba(220,38,38,0.3);
  box-shadow: 0 0 14px rgba(220,38,38,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: statePulse 1.8s var(--ease) infinite;
}
.tphr-state-pill.is-onair .tphr-state-dot { animation: dotPulse 1.6s var(--ease) infinite; }
.tphr-state-pill.is-online { color: #34d399; border-color: rgba(52,211,153,0.35); background: rgba(52,211,153,0.07); }
.tphr-state-pill.is-offline { color: rgba(255,255,255,0.32); }
.tphr-state-pill.is-mock { color: #f59e0b; border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.07); }
@keyframes statePulse { 0%,100% { box-shadow: 0 0 8px rgba(220,38,38,0.18); } 50% { box-shadow: 0 0 20px rgba(220,38,38,0.38); } }
@keyframes dotPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }

/* ============================================================
   STATION BODY — logo 30% / info 60% / hardware 64px
   ============================================================ */
.tphr-station-body {
  display: grid;
  grid-template-columns: 30% 1fr 64px;
  grid-template-rows: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
  padding: 7px 9px 4px;
  flex: 1; min-height: 0;
  position: relative; z-index: 1;
  overflow: hidden;
}

/* Large logo area — fills vertical space */
.tphr-station-logo-lg { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 0; }
.tphr-logo-frame {
  width: 100%; flex: 1;
  min-height: 0;
  background: radial-gradient(ellipse at center, var(--metal-1) 0%, var(--metal-0) 100%);
  border: 2px solid #05060a;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  box-shadow:
    inset 0 3px 10px rgba(0,0,0,0.9),
    inset 0 -1px 0 rgba(255,255,255,0.03),
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 0 18px var(--st-accent-soft);
}
.tphr-logo-frame::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--st-accent-soft), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.55; pointer-events: none;
}
/* Larger logo fill — 92% */
.tphr-logo-frame img {
  max-width: 92%; max-height: 92%; object-fit: contain;
  filter: drop-shadow(0 0 12px var(--st-accent-soft));
  position: relative; z-index: 1;
}
.tphr-logo-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; color: rgba(255,255,255,0.12);
  letter-spacing: 0.1em; font-family: var(--font-mono);
}
.tphr-logo-frame img:not([style*="display:none"]) ~ .tphr-logo-placeholder { display: none; }
.tphr-logo-tag {
  font-size: 0.52rem; color: rgba(255,255,255,0.4); text-align: center;
  letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  padding: 2px 4px;
  background: rgba(0,0,0,0.4); border-radius: 4px;
  border-top: 1px solid rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

/* ============================================================
   INFO COLUMN — recessed display zones
   ============================================================ */
.tphr-station-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 0; overflow: hidden; justify-content: flex-start; }
.tphr-station-info > * { flex-shrink: 1; min-height: 0; }
.tphr-zone {
  background: linear-gradient(180deg, var(--metal-1) 0%, var(--metal-0) 100%);
  border: 1px solid #05060a;
  border-radius: 5px;
  padding: 3px 7px;
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,0.85),
    inset 0 -1px 0 rgba(255,255,255,0.03),
    inset 0 0 0 1px rgba(255,255,255,0.02);
  min-height: 0; overflow: hidden;
}
.tphr-zone-label {
  font-size: 0.46rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.32); font-weight: 700;
  text-shadow: 0 0 4px rgba(220,38,38,0.15);
}
.tphr-zone-now { display: flex; flex-direction: column; gap: 1px; }
.tphr-now-title {
  font-size: 0.98rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 14px rgba(220,38,38,0.25);
  line-height: 1.12;
}
.tphr-now-artist {
  font-size: 0.74rem; color: var(--red-100);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 8px rgba(220,38,38,0.2);
  opacity: 0.9;
}
.tphr-zone-wave { display: flex; flex-direction: column; gap: 2px; }
.tphr-station-waveform {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1px; height: 14px; padding: 0 1px;
}
.tphr-wave-bar {
  flex: 1; height: 30%;
  background: linear-gradient(180deg, var(--red-300), var(--red-700));
  border-radius: 1px; transform-origin: bottom;
  animation: waveBar 1.1s var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * 0.03s);
  opacity: 0.85; box-shadow: 0 0 5px rgba(220,38,38,0.35);
}
.tphr-station.is-onair .tphr-station-waveform { opacity: 1; }
.tphr-station.is-offline .tphr-wave-bar, .tphr-station.is-mock .tphr-wave-bar { animation-play-state: paused; opacity: 0.22; }
@keyframes waveBar { 0%,100% { height: 14%; } 50% { height: 84%; } }

.tphr-progress-track {
  height: 5px; background: rgba(0,0,0,0.65); border-radius: 999px;
  overflow: hidden; position: relative;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.05);
}
.tphr-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-400), var(--red-700));
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(220,38,38,0.6), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: width 0.4s var(--ease);
}
.tphr-progress-meta {
  display: flex; justify-content: space-between;
  font-size: 0.56rem; font-family: var(--font-mono); color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
}
.tphr-progress-dur { color: rgba(255,255,255,0.65); text-shadow: 0 0 5px rgba(220,38,38,0.15); }

/* Paired zones (UP NEXT/PLAYLIST, LISTENERS/BITRATE) */
.tphr-zone-pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3px; min-height: 0; overflow: hidden; }
.tphr-zone-next, .tphr-zone-playlist, .tphr-zone-lsnr, .tphr-zone-bitrate {
  display: flex; flex-direction: column; gap: 1px; padding: 3px 6px;
}
.tphr-meta-value {
  font-size: 0.68rem; color: var(--text); font-family: var(--font-mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 4px rgba(220,38,38,0.1);
}
.tphr-meta-sm-icon { color: var(--red-300); font-size: 0.7rem; text-shadow: 0 0 6px rgba(220,38,38,0.4); }

/* ============================================================
   RIGHT-SIDE HARDWARE STRIP — real equipment controls
   ============================================================ */
.tphr-station-hardware {
  display: flex; flex-direction: column; gap: 5px; align-items: center;
  padding: 6px 4px;
  background: linear-gradient(180deg, var(--metal-2) 0%, var(--metal-0) 100%);
  border: 1px solid #05060a;
  border-radius: 6px;
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.85),
    inset 0 -1px 0 rgba(255,255,255,0.03),
    inset 0 0 0 1px rgba(255,255,255,0.02);
}
.tphr-hw-ctrl {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 100%; padding: 6px 2px; border-radius: 5px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.4));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -1px 0 rgba(0,0,0,0.35);
  transition: all 0.18s var(--ease);
}
.tphr-hw-ctrl:hover {
  border-color: var(--red-500);
  background: rgba(220,38,38,0.1);
  box-shadow: 0 0 14px rgba(220,38,38,0.22), inset 0 1px 0 rgba(255,255,255,0.07);
}
.tphr-hw-ctrl:active { box-shadow: inset 0 2px 5px rgba(0,0,0,0.75); transform: translateY(1px); }
.tphr-hw-swatch {
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--red-400), var(--red-800) 70%);
  box-shadow: 0 0 12px var(--st-accent-soft), inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -1px 2px rgba(0,0,0,0.5);
}
.tphr-hw-logo-preview {
  width: 28px; height: 28px; border-radius: 5px;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
}
.tphr-hw-logo-preview img { max-width: 92%; max-height: 92%; object-fit: contain; }
.tphr-hw-gear {
  font-size: 1.2rem; color: rgba(255,255,255,0.55);
  filter: drop-shadow(0 0 6px rgba(220,38,38,0.25));
}
.tphr-hw-ctrl:hover .tphr-hw-gear { color: #fff; }
.tphr-hw-label { font-size: 0.4rem; letter-spacing: 0.08em; font-weight: 700; color: rgba(255,255,255,0.48); text-align: center; }
.tphr-hw-ctrl:hover .tphr-hw-label { color: var(--red-100); }
.tphr-hw-sep {
  width: 70%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.tphr-hw-vent {
  width: 100%; height: 12px;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(0,0,0,0.55) 2px, rgba(0,0,0,0.55) 3px);
  border-radius: 3px; margin-top: auto;
}

/* ============================================================
   TRANSPORT STRIP — physical console buttons spanning bottom
   ============================================================ */
.tphr-station-transport {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
  border-top: 2px solid #140404;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 2px 5px rgba(0,0,0,0.45);
  position: relative; z-index: 2; flex-shrink: 0;
}
.tphr-transport-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: 5px 4px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.4));
  color: rgba(255,255,255,0.48); cursor: pointer;
  transition: all 0.18s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -1px 0 rgba(0,0,0,0.35);
  font-family: var(--font-display);
}
.tphr-transport-btn:hover {
  border-color: var(--red-500); color: #fff;
  background: rgba(220,38,38,0.1);
  box-shadow: 0 0 14px rgba(220,38,38,0.22), inset 0 1px 0 rgba(255,255,255,0.07);
}
.tphr-transport-btn:active { box-shadow: inset 0 2px 5px rgba(0,0,0,0.75); transform: translateY(1px); }
.tphr-tp-icon { font-size: 0.8rem; }
.tphr-tp-label { font-size: 0.46rem; letter-spacing: 0.08em; font-weight: 700; }
/* PLAY — brighter illuminated red */
.tphr-tp-play {
  flex: 1.35;
  background: linear-gradient(180deg, var(--red-500) 0%, var(--red-700) 100%);
  color: #fff; border-color: var(--red-400);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -2px 5px rgba(0,0,0,0.45),
    0 0 18px rgba(220,38,38,0.45),
    0 0 4px rgba(220,38,38,0.6);
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}
.tphr-tp-play:hover {
  background: linear-gradient(180deg, var(--red-400) 0%, var(--red-600) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 0 26px rgba(220,38,38,0.6),
    0 0 6px rgba(220,38,38,0.7);
}
.tphr-tp-play:active { background: linear-gradient(180deg, var(--red-700), var(--red-900)); box-shadow: inset 0 2px 6px rgba(0,0,0,0.65); }
.tphr-tp-more { flex: 0.8; }
/* EDIT — transport entry to the global metadata editor */
.tphr-tp-edit { color: var(--red-100); border-color: rgba(220,38,38,0.28); }
.tphr-tp-edit:hover { background: rgba(220,38,38,0.16); box-shadow: 0 0 16px rgba(220,38,38,0.3), inset 0 1px 0 rgba(255,255,255,0.07); }
.tphr-station-updated {
  margin-left: auto; font-size: 0.48rem; font-family: var(--font-mono);
  color: rgba(255,255,255,0.18); white-space: nowrap; padding-left: 4px;
}

/* ============================================================
   CENTER SPINE — physical rack module
   ============================================================ */
.tphr-spine {
  background:
    var(--metal-brushed),
    var(--metal-face-dark);
  border: 5px solid #05060a;
  border-radius: 12px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.07),
    inset 0 -3px 0 rgba(0,0,0,0.85),
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 0 0 22px rgba(0,0,0,0.7),
    0 10px 26px rgba(0,0,0,0.65),
    0 0 0 1px var(--red-trim-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 10px 5px; gap: 6px;
  position: relative; overflow: hidden;
}
/* Red illuminated trim following the chassis edge */
.tphr-spine::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 2px;
  background: linear-gradient(180deg, var(--red-trim) 0%, transparent 22%, transparent 78%, var(--red-trim-soft) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.6; pointer-events: none;
}
/* Clean top+bottom bevel highlight (no stray diagonal lines) */
.tphr-spine::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 8%, transparent 92%, rgba(255,255,255,0.03) 100%);
}
.tphr-spine-housing { position: absolute; inset: 0; pointer-events: none; z-index: 5; }

/* ON AIR display — deep inset glass cavity with beveled metal frame */
.tphr-spine-onair {
  display: flex; flex-direction: column; align-items: center; gap: 5px; z-index: 1;
  background:
    radial-gradient(ellipse 70% 90% at 50% 40%, rgba(220,38,38,0.22), transparent 70%),
    linear-gradient(180deg, #1a0404 0%, #0a0202 55%, #050101 100%);
  border: 2px solid #05060a;
  border-radius: 8px;
  padding: 10px 6px 11px;
  width: 94%;
  box-shadow:
    inset 0 0 22px rgba(220,38,38,0.22),
    inset 0 3px 6px rgba(0,0,0,0.85),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    inset 0 0 0 1px var(--red-trim-soft),
    0 2px 6px rgba(0,0,0,0.6),
    0 0 18px rgba(220,38,38,0.22);
  min-height: 96px; justify-content: center; position: relative;
}
/* Inset glass reflection overlay */
.tphr-spine-onair-glass {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 32%, transparent 70%, rgba(0,0,0,0.25) 100%);
  z-index: 2;
}
.tphr-spine-onair-dot {
  width: 18px; height: 18px; border-radius: 50%; background: var(--red-500);
  box-shadow: 0 0 26px var(--red-500), 0 0 8px var(--red-500), inset 0 1px 0 rgba(255,255,255,0.4);
  animation: dotPulse 1.6s var(--ease) infinite; z-index: 3;
}
.tphr-spine-onair-label {
  font-family: var(--font-mono); font-size: 1.05rem; font-weight: 900;
  letter-spacing: 0.14em; color: var(--red-200);
  text-shadow: 0 0 20px rgba(220,38,38,0.65), 0 0 8px rgba(220,38,38,0.5); text-align: center; line-height: 1; z-index: 3;
}
.tphr-spine-onair-sub {
  font-family: var(--font-mono); font-size: 0.46rem; letter-spacing: 0.14em;
  color: rgba(220,38,38,0.65); text-align: center; line-height: 1.3; text-transform: uppercase;
  text-shadow: 0 0 6px rgba(220,38,38,0.3); margin-top: 3px; z-index: 3;
}

.tphr-spine-status {
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.42);
  text-align: center; z-index: 1; line-height: 1.4;
}
.tphr-spine-status .hot { color: var(--red-200); text-shadow: 0 0 10px rgba(220,38,38,0.4); }

/* Dual-channel VU meter — deep inset cavity with beveled metal frame */
.tphr-spine-meter-housing {
  background: var(--metal-face-dark);
  border: 2px solid #05060a;
  border-radius: 7px; padding: 7px 6px;
  box-shadow:
    inset 0 3px 8px rgba(0,0,0,0.9),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 2px 5px rgba(0,0,0,0.55);
  z-index: 1; width: 92%; display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.tphr-spine-meter-label {
  font-size: 0.42rem; letter-spacing: 0.16em; color: rgba(255,255,255,0.42);
  text-transform: uppercase; text-shadow: 0 0 5px rgba(220,38,38,0.25); font-weight: 700;
}
.tphr-spine-dual-meter {
  display: flex; align-items: stretch; justify-content: center; gap: 8px;
  width: 100%;
}
.tphr-spine-meter-col {
  display: flex; align-items: center; gap: 4px;
}
.tphr-mono-tag {
  font-family: var(--font-mono); font-size: 0.56rem; font-weight: 900;
  color: rgba(220,38,38,0.75); text-shadow: 0 0 6px rgba(220,38,38,0.45);
}
.tphr-spine-meter-track {
  background: linear-gradient(180deg, #02030a 0%, #000 100%);
  border: 1px solid #05060a;
  border-radius: 4px; padding: 4px;
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.95),
    inset 0 -1px 0 rgba(255,255,255,0.03),
    inset 0 0 0 1px rgba(220,38,38,0.1);
  position: relative;
}
.tphr-spine-meter {
  display: flex; flex-direction: column-reverse; gap: 1px;
  width: 24px; height: 100%;
  box-shadow: inset 0 0 14px rgba(0,0,0,0.85);
}
.tphr-meter-segment {
  flex: 1 1 0; min-height: 2px; border-radius: 1px; background: rgba(255,255,255,0.06);
  transition: background 0.1s var(--ease), box-shadow 0.1s var(--ease);
  pointer-events: none;
}
.tphr-meter-segment.lit-green { background: #34d399; box-shadow: 0 0 7px rgba(52,211,153,0.7); }
.tphr-meter-segment.lit-amber { background: #f59e0b; box-shadow: 0 0 7px rgba(245,158,11,0.7); }
.tphr-meter-segment.lit-red { background: var(--red-500); box-shadow: 0 0 9px rgba(220,38,38,0.75); }

/* MASTER VOLUME — functional monitor rotary (center spine) + segmented readout */
.tphr-spine-rotary {
  display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 1;
}
.tphr-bc-vol-knob.tphr-spine-vol-knob { width: 78px; height: 78px; }
.tphr-bc-vol-knob.tphr-spine-vol-knob .tphr-bc-vol-knob-inner { inset: 16px; }
.tphr-bc-vol-knob.tphr-spine-vol-knob::after { transform-origin: 50% 38px; height: 16px; top: 5px; width: 3px; }
.tphr-spine-vol-pct { font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.7); text-shadow: 0 0 6px rgba(220,38,38,0.25); }
.tphr-rotary-label {
  font-size: 0.42rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.34);
  text-transform: uppercase; font-family: var(--font-mono); font-weight: 700;
  text-shadow: 0 0 5px rgba(220,38,38,0.2);
}

/* BASS / TREBLE monitor EQ rotaries */
.tphr-spine-eq {
  display: flex; align-items: flex-start; justify-content: center; gap: 12px;
  z-index: 1; width: 100%;
}
.tphr-spine-eq-knob {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.tphr-rotary-readout {
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.06em;
  color: var(--red-200); text-shadow: 0 0 7px rgba(220,38,38,0.45);
}
/* EQ indicator ring uses its own rotation variable */
.tphr-bc-vol-knob.tphr-eq-knob { width: 44px; height: 44px; }
.tphr-bc-vol-knob.tphr-eq-knob .tphr-bc-vol-knob-inner { inset: 8px; }
.tphr-eq-knob::after {
  transform: translateX(-50%) rotate(var(--eq-rot, 0deg));
}

/* ============================================================
   BOTTOM HARDWARE CONSOLE — substantial equipment bank (96px):
   NETWORK OVERVIEW | LIVE LISTENERS | BROADCAST STATUS |
   STREAM QUALITY | MASTER CLOCK | SYS HEALTH.
   MASTER VOLUME lives in the center spine (admin monitor audio only).
   ============================================================ */
.tphr-bottom-console {
  display: flex; align-items: stretch; justify-content: space-between; gap: 8px;
  padding: 10px 14px;
  background:
    var(--metal-brushed),
    linear-gradient(180deg, var(--metal-3) 0%, var(--metal-1) 60%, var(--metal-0) 100%);
  border-top: 4px solid #05060a;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.06),
    inset 0 -3px 0 rgba(0,0,0,0.8),
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 -8px 22px rgba(0,0,0,0.55),
    0 0 0 1px var(--red-trim-soft);
  position: relative;
  font-family: var(--font-mono); font-size: 0.68rem;
  min-height: 96px;
}
.tphr-console-frame { position: absolute; inset: 0; pointer-events: none; }
/* Bottom console modules — beveled metal cells matching the console language */
.tphr-bc-module {
  display: flex; flex-direction: column; gap: 5px;
  justify-content: center;
  padding: 8px 12px;
  background: linear-gradient(180deg, var(--metal-2) 0%, var(--metal-0) 100%);
  border: 1px solid #05060a;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -2px 4px rgba(0,0,0,0.7),
    inset 0 2px 6px rgba(0,0,0,0.8),
    inset 0 0 0 1px rgba(255,255,255,0.02);
  position: relative;
}
.tphr-bc-module::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--red-500), transparent);
  box-shadow: 0 0 6px rgba(220,38,38,0.4); border-radius: 1px;
}
.tphr-bc-label {
  font-size: 0.46rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.32); font-weight: 700;
  text-shadow: 0 0 4px rgba(220,38,38,0.15);
}
.tphr-bc-val { color: var(--text); font-weight: 600; font-size: 0.72rem; }
.tphr-bc-val.ok { color: #34d399; text-shadow: 0 0 8px rgba(52,211,153,0.4); }
.tphr-bc-val.hot { color: var(--red-200); text-shadow: 0 0 10px rgba(220,38,38,0.35); }
.tphr-bc-sub { font-size: 0.56rem; color: rgba(255,255,255,0.4); letter-spacing: 0.04em; }

/* NETWORK OVERVIEW — relocated from the top header */
.tphr-bc-mod-net { flex: 1.35 1 0; min-width: 0; }
.tphr-bc-net-row { display: flex; align-items: center; gap: 12px; }
.tphr-bc-net-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tphr-bc-net-val {
  font-size: 1.05rem; font-weight: 800; color: #fff; font-family: var(--font-mono);
  text-shadow: 0 0 12px rgba(220,38,38,0.3); line-height: 1; white-space: nowrap;
}
.tphr-bc-net-val.hot { color: var(--red-200); text-shadow: 0 0 16px rgba(220,38,38,0.55); }
.tphr-bc-net-val.ok { color: #34d399; text-shadow: 0 0 10px rgba(52,211,153,0.4); }
.tphr-bc-net-sub { font-size: 0.46rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.42); }
.tphr-bc-divider-v {
  width: 1px; align-self: stretch; margin: 2px 0;
  background: linear-gradient(180deg, transparent, rgba(220,38,38,0.32), transparent);
  box-shadow: 0 0 4px rgba(220,38,38,0.18);
}
.tphr-bc-net-status { font-size: 0.52rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); }

/* LIVE LISTENERS — relocated from the top header */
.tphr-bc-mod-listeners { flex: 0.8 1 0; min-width: 0; }
.tphr-bc-listeners-row { display: flex; align-items: baseline; gap: 8px; }
.tphr-bc-listeners-val {
  font-size: 1.75rem; font-weight: 900; color: #fff; font-family: var(--font-mono);
  text-shadow: 0 0 18px rgba(220,38,38,0.45), 0 0 28px rgba(220,38,38,0.2); line-height: 1;
}
.tphr-bc-listeners-lbl {
  font-size: 0.5rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.46);
  text-transform: uppercase; font-family: var(--font-mono);
}

/* BROADCAST STATUS / STREAM QUALITY / SYS HEALTH */
.tphr-bc-mod-bcast { flex: 1.15 1 0; min-width: 0; }
.tphr-bc-mod-stream { flex: 1.05 1 0; min-width: 0; }
.tphr-bc-clock-mod { flex: 1.15 1 0; min-width: 0; }
.tphr-bc-mod-health { flex: 0.8 1 0; min-width: 0; }

.tphr-bc-leds { display: flex; gap: 5px; align-items: center; }
.tphr-bc-led {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
}
.tphr-bc-led.ok { background: #34d399; box-shadow: 0 0 7px rgba(52,211,153,0.6); }
.tphr-bc-led.err { background: var(--red-500); box-shadow: 0 0 7px rgba(220,38,38,0.6); animation: dotPulse 1.6s var(--ease) infinite; }

.tphr-bc-pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red-500);
  box-shadow: 0 0 10px var(--red-500); animation: dotPulse 1.6s var(--ease) infinite;
}
.tphr-bc-divider { width: 1px; height: 56px; background: linear-gradient(180deg, transparent, rgba(220,38,38,0.16), transparent); }
.tphr-bc-clock { font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: 0.05em; text-shadow: 0 0 12px rgba(220,38,38,0.4), 0 0 4px rgba(220,38,38,0.5); }
.tphr-bc-date { font-size: 0.58rem; color: rgba(255,255,255,0.42); letter-spacing: 0.1em; text-transform: uppercase; }

/* MASTER VOLUME controls (shared knob styles — the functional monitor rotary
   lives in the center spine). Controls admin monitor audio only. */
.tphr-bc-vol-knob {
  width: 46px; height: 46px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #5a5f6c 0%, #2a2e38 32%, #0e1018 68%, #05060a 100%);
  border: 2px solid #05060a;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.22),
    inset 0 -3px 5px rgba(0,0,0,0.85),
    inset 0 0 12px rgba(0,0,0,0.6),
    0 4px 10px rgba(0,0,0,0.7),
    0 0 14px rgba(220,38,38,0.2);
  position: relative; cursor: ew-resize; flex-shrink: 0;
  outline: none;
}
.tphr-bc-vol-knob:focus-visible { box-shadow: inset 0 2px 3px rgba(255,255,255,0.22), inset 0 -3px 5px rgba(0,0,0,0.85), inset 0 0 12px rgba(0,0,0,0.6), 0 4px 10px rgba(0,0,0,0.7), 0 0 0 2px rgba(220,38,38,0.65), 0 0 18px rgba(220,38,38,0.45); }
.tphr-bc-vol-knob-inner {
  position: absolute; inset: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2e38, #05060a);
  border: 1px solid #05060a;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.14), inset 0 -1px 2px rgba(0,0,0,0.6), inset 0 0 8px rgba(0,0,0,0.5);
}
/* Red illuminated outer ring */
.tphr-bc-vol-knob-ring {
  position: absolute; inset: -4px; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--red-trim);
  box-shadow: 0 0 12px rgba(220,38,38,0.35), inset 0 0 8px rgba(220,38,38,0.22);
}
.tphr-bc-vol-knob::after {
  content: ''; position: absolute; top: 3px; left: 50%;
  width: 2px; height: 10px; background: var(--red-500);
  border-radius: 1px; box-shadow: 0 0 7px rgba(220,38,38,0.8);
  transform: translateX(-50%) rotate(var(--vol-rot, -135deg));
  transform-origin: 50% 20px; transition: transform 0.12s var(--ease);
}
.tphr-bc-vol-meter { display: flex; align-items: flex-end; gap: 2px; height: 30px; flex: 1; max-width: 110px; }
.tphr-bc-vol-seg {
  flex: 1; height: 100%; border-radius: 1px;
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
  transition: background 0.1s var(--ease), box-shadow 0.1s var(--ease);
}
.tphr-bc-vol-seg.lit-green { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.65); }
.tphr-bc-vol-seg.lit-amber { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.65); }
.tphr-bc-vol-seg.lit-red { background: var(--red-500); box-shadow: 0 0 7px rgba(220,38,38,0.7); }
.tphr-bc-vol-pct { font-size: 0.82rem; font-weight: 700; color: #fff; min-width: 38px; text-align: right; text-shadow: 0 0 8px rgba(220,38,38,0.3); }

/* BROADCAST STATUS module */
.tphr-bc-bcast-row { display: flex; align-items: center; gap: 7px; }
.tphr-bc-bcast-sig { display: flex; gap: 4px; margin-top: 2px; }
.tphr-bc-sig-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.1); box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
}
.tphr-bc-sig-dot.live { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.6); animation: dotPulse 1.8s var(--ease) infinite; }
.tphr-bc-sig-dot.live:nth-child(2) { animation-delay: 0.3s; }
.tphr-bc-sig-dot.live:nth-child(3) { animation-delay: 0.6s; }

/* ============================================================
   Login page (preserved from 1.5)
   ============================================================ */
.tphr-login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; overflow: hidden; }
.tphr-login-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.tphr-login-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(220,38,38,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(220,38,38,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 80%);
}
.tphr-login-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(220,38,38,0.15) 0%, transparent 60%);
  filter: blur(40px); animation: glowDrift 8s var(--ease) infinite;
}
@keyframes glowDrift { 0%,100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-45%, -55%) scale(1.1); } }
.tphr-login-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 40px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(220,38,38,0.06), transparent 60%), #08080f;
  border: 1px solid rgba(220,38,38,0.2); border-radius: 16px;
  box-shadow: 0 0 30px rgba(220,38,38,0.1), 0 20px 50px rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
}
.tphr-login-brand { text-align: center; margin-bottom: 28px; }
.tphr-login-brand svg { filter: drop-shadow(0 0 20px rgba(220,38,38,0.2)); margin-bottom: 12px; }
.tphr-login-brand h1 {
  font-size: 1.6rem; font-weight: 900; letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff, var(--red-100));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tphr-login-brand p { color: rgba(255,255,255,0.4); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 4px; }
.tphr-login-error { padding: 10px 14px; margin-bottom: 18px; background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.2); border-radius: 8px; color: var(--red-100); font-size: 0.85rem; }
.tphr-login-hint { margin-top: 22px; text-align: center; font-size: 0.7rem; color: rgba(255,255,255,0.15); }
.tphr-login-hint code { font-size: 0.85em; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1440px) {
  .tphr-station-layout { grid-template-columns: 1fr 110px 1fr; gap: 6px; }
  .tphr-shell { grid-template-columns: 200px 1fr; }
  .tphr-bc-vol-knob.tphr-spine-vol-knob { width: 62px; height: 62px; }
  .tphr-bc-vol-knob.tphr-spine-vol-knob .tphr-bc-vol-knob-inner { inset: 12px; }
  .tphr-bc-vol-knob.tphr-spine-vol-knob::after { transform-origin: 50% 30px; height: 13px; top: 4px; width: 2px; }
  .tphr-spine-vol-pct { font-size: 0.72rem; }
}
@media (max-width: 1366px) {
  .tphr-spine { padding: 6px 4px; gap: 4px; }
  .tphr-spine-onair { padding: 4px 6px; gap: 3px; }
  .tphr-spine-onair-label { font-size: 0.7rem; }
  .tphr-spine-onair-sub { font-size: 0.48rem; }
  .tphr-spine-meter-housing { padding: 3px; gap: 2px; }
  .tphr-spine-meter-track { height: 120px; }
  .tphr-bc-vol-knob.tphr-spine-vol-knob { width: 56px; height: 56px; }
  .tphr-bc-vol-knob.tphr-spine-vol-knob .tphr-bc-vol-knob-inner { inset: 10px; }
  .tphr-bc-vol-knob.tphr-spine-vol-knob::after { transform-origin: 50% 27px; height: 12px; top: 3px; width: 2px; }
  .tphr-spine-vol-pct { font-size: 0.65rem; }
  .tphr-bc-vol-knob.tphr-eq-knob { width: 40px; height: 40px; }
  .tphr-bc-vol-knob.tphr-eq-knob .tphr-bc-vol-knob-inner { inset: 7px; }
  .tphr-rotary-label { font-size: 0.38rem; }
  .tphr-rotary-readout { font-size: 0.48rem; }
}
@media (max-width: 1320px) {
  .tphr-bottom-console { flex-wrap: wrap; }
}
@media (max-width: 1200px) {
  .tphr-station-body { grid-template-columns: 26% 1fr 58px; }
}
@media (max-width: 980px) {
  .tphr-shell { height: auto; grid-template-rows: auto 1fr auto; }
  .tphr-station-layout { grid-template-columns: 1fr; grid-template-rows: auto; }
  .tphr-station-layout > .tphr-station { grid-column: 1; grid-row: auto; }
  .tphr-spine { grid-column: 1; grid-row: auto; flex-direction: row; min-height: 48px; }
  .tphr-spine-onair-label, .tphr-spine-status { writing-mode: horizontal-tb; }
  .tphr-spine-meter { flex-direction: row; width: auto; height: 20px; }
}
@media (max-width: 820px) {
  .tphr-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .tphr-sidebar { position: fixed; left: -240px; top: 0; width: 220px; height: 100vh; z-index: 100; transition: left 0.3s var(--ease); }
  .tphr-sidebar.is-open { left: 0; }
  .tphr-main, .tphr-bottom-console { grid-column: 1; }
  .tphr-station-body { grid-template-columns: 1fr; }
  .tphr-station-hardware { flex-direction: row; }
  .tphr-hw-vent { display: none; }
  .tphr-bottom-console { flex-wrap: wrap; gap: 6px; min-height: 0; }
  .tphr-bc-divider { display: none; }
}

/* ============================================================
   QUICK METADATA EDIT — pencil control + modal
   ============================================================ */
.tphr-zone-label-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tphr-meta-edit-btn {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 4px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.4));
  color: rgba(255,255,255,0.5); font-family: var(--font-display);
  font-size: 0.42rem; font-weight: 700; letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -1px 0 rgba(0,0,0,0.35);
  transition: all 0.18s var(--ease);
}
.tphr-meta-edit-btn:hover {
  border-color: var(--red-500); color: #fff;
  background: linear-gradient(180deg, rgba(220,38,38,0.14), rgba(0,0,0,0.4));
  box-shadow: 0 0 10px rgba(220,38,38,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}
.tphr-meta-edit-icon { font-size: 0.62rem; }
.tphr-meta-edit-label { line-height: 1; }
body:not(.tphr-is-super) .tphr-meta-edit-btn { display: none; }

/* ============================================================
   TAGLINE EDIT — subtle pencil under the station logo.
   Revealed on hover/focus so it never clutters the dashboard.
   ============================================================ */
.tphr-logo-tag-row {
  display: flex; align-items: center; gap: 4px; width: 100%;
  min-width: 0;
}
.tphr-logo-tag { flex: 1; min-width: 0; }
.tphr-tagline-edit-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; padding: 0;
  border-radius: 4px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.45));
  color: rgba(255,255,255,0.55);
  font-size: 0.6rem; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -1px 0 rgba(0,0,0,0.35);
  opacity: 0; transition: opacity 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.tphr-logo-tag-row:hover .tphr-tagline-edit-btn,
.tphr-logo-tag-row:focus-within .tphr-tagline-edit-btn,
.tphr-tagline-edit-btn:focus-visible { opacity: 1; }
body:not(.tphr-is-super) .tphr-tagline-edit-btn { display: none; }
.tphr-tagline-edit-btn:hover {
  border-color: var(--red-500); color: #fff;
  box-shadow: 0 0 10px rgba(220,38,38,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}
.tphr-tagline-edit-btn:active { box-shadow: inset 0 2px 5px rgba(0,0,0,0.7); transform: translateY(1px); }

/* ============================================================
   TOAST — transient feedback for saved identity/metadata actions.
   ============================================================ */
.tphr-toast {
  position: fixed; bottom: 104px; left: 50%; transform: translateX(-50%);
  z-index: 1200;
  padding: 10px 20px; border-radius: 6px;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 24px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.15);
  background: linear-gradient(180deg, rgba(26,6,6,0.98), rgba(10,2,2,0.98));
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.tphr-toast.is-visible,
.tphr-toast.tphr-toast-show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.tphr-toast.ok,
.tphr-toast.tphr-toast-ok { border-color: rgba(52,211,153,0.45); box-shadow: 0 0 22px rgba(52,211,153,0.25); }
.tphr-toast.err,
.tphr-toast.tphr-toast-err { border-color: rgba(220,38,38,0.6); box-shadow: 0 0 22px rgba(220,38,38,0.35); }
.tphr-toast .tphr-toast-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 8px; background: #34d399; box-shadow: 0 0 7px currentColor;
}
.tphr-toast.err .tphr-toast-dot { background: var(--red-500); }

.tphr-meta-modal[hidden] { display: none; }
.tphr-meta-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2,3,8,0.78); backdrop-filter: blur(4px);
  padding: 20px;
}
.tphr-meta-modal-card {
  width: 100%; max-width: 440px;
  background: linear-gradient(180deg, #0c0a14 0%, #06040a 100%);
  border: 2px solid #100303; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(220,38,38,0.4), 0 0 40px rgba(220,38,38,0.18), 0 20px 50px rgba(0,0,0,0.7);
  overflow: hidden;
}
.tphr-meta-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid rgba(220,38,38,0.2);
  background: linear-gradient(180deg, rgba(26,6,6,0.6), transparent);
}
.tphr-meta-modal-head h2 {
  margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em;
  color: var(--red-100); text-shadow: 0 0 10px rgba(220,38,38,0.35);
}
.tphr-meta-modal-close {
  background: transparent; border: 0; color: rgba(255,255,255,0.5);
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px;
}
.tphr-meta-modal-close:hover { color: var(--red-200); }
.tphr-meta-modal-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.tphr-meta-modal-station { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-family: var(--font-mono); }
.tphr-meta-modal-file { font-size: 0.58rem; color: rgba(255,255,255,0.4); font-family: var(--font-mono); word-break: break-all; }
.tphr-meta-field { display: flex; flex-direction: column; gap: 4px; }
.tphr-meta-field span { font-size: 0.54rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); font-weight: 700; }
.tphr-meta-field input {
  width: 100%; padding: 8px 10px; border-radius: 5px;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-size: 0.82rem; font-family: var(--font-display);
}
.tphr-meta-field input:focus { outline: none; border-color: var(--red-500); box-shadow: 0 0 10px rgba(220,38,38,0.3); }
.tphr-meta-usedby {
  display: flex; flex-direction: column; gap: 4px;
  padding: 7px 9px; border-radius: 5px;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.06);
}
.tphr-meta-usedby-lbl { font-size: 0.5rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.42); font-weight: 700; }
.tphr-meta-usedby-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tphr-meta-usedby-list li { font-size: 0.68rem; color: rgba(255,255,255,0.78); font-family: var(--font-mono); }
.tphr-meta-usedby-list li::before { content: '• '; color: var(--red-400); }
.tphr-meta-note { font-size: 0.56rem; color: rgba(255,255,255,0.42); font-family: var(--font-mono); letter-spacing: 0.02em; margin: 0; }
.tphr-meta-modal-status { font-size: 0.62rem; min-height: 1.2em; color: rgba(255,255,255,0.6); }
.tphr-meta-modal-status.ok { color: #34d399; }
.tphr-meta-modal-status.err { color: var(--red-300); }
.tphr-meta-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid rgba(255,255,255,0.05); }
.tphr-meta-btn {
  padding: 8px 16px; border-radius: 5px; cursor: pointer; font-weight: 700;
  font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.1); font-family: var(--font-display);
}
.tphr-meta-cancel { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); }
.tphr-meta-cancel:hover { background: rgba(255,255,255,0.08); color: #fff; }
.tphr-meta-save {
  background: linear-gradient(180deg, var(--red-500), var(--red-700));
  color: #fff; border-color: var(--red-400);
  box-shadow: 0 0 14px rgba(220,38,38,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.tphr-meta-save:hover { box-shadow: 0 0 20px rgba(220,38,38,0.55), inset 0 1px 0 rgba(255,255,255,0.25); }
.tphr-meta-save:disabled { opacity: 0.5; cursor: not-allowed; }

/* Explicitly disabled transport buttons (no verified backend) */
.tphr-transport-btn.tphr-tp-disabled {
  opacity: 0.32; cursor: not-allowed; filter: grayscale(0.6);
}
.tphr-transport-btn.tphr-tp-disabled:hover {
  border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.32);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.4));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -1px 0 rgba(0,0,0,0.35);
}
/* VOL button — wired to monitor volume */
.tphr-tp-vol { cursor: pointer; }
/* PLAY illuminated active state when monitoring */
.tphr-tp-play.is-monitoring {
  background: linear-gradient(180deg, var(--red-400) 0%, var(--red-600) 100%);
  box-shadow: 0 0 28px rgba(220,38,38,0.7), 0 0 8px rgba(220,38,38,0.8), inset 0 1px 0 rgba(255,255,255,0.35);
  animation: dotPulse 1.6s var(--ease) infinite;
}

/* ============================================================
   THEME ADMIN — super-admin visual editing mode
   ============================================================ */
/* Theme Admin toggle button in Quick Actions */
.tphr-qa-theme-entry {
  border-color: rgba(220,38,38,0.25);
  background: linear-gradient(180deg, rgba(220,38,38,0.08), rgba(0,0,0,0.4));
  color: var(--red-100);
  box-shadow: 0 0 10px rgba(220,38,38,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
}
.tphr-qa-theme-entry:hover {
  border-color: var(--red-500);
  background: linear-gradient(180deg, rgba(220,38,38,0.14), rgba(0,0,0,0.4));
  box-shadow: 0 0 16px rgba(220,38,38,0.25);
}
.tphr-qa-theme-toggle.is-active {
  background: linear-gradient(180deg, var(--red-500), var(--red-700));
  color: #fff; border-color: var(--red-400);
  box-shadow: 0 0 14px rgba(220,38,38,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Active mode — body gets editing cursor */
body.tphr-theme-admin-active { cursor: crosshair; }
body.tphr-theme-admin-active .tphr-content { cursor: crosshair; }

/* Themeable targets get hover outlines */
.tphr-theme-target { position: relative; }
.tphr-theme-target:hover {
  outline: 2px dashed rgba(220,38,38,0.7) !important;
  outline-offset: 2px;
  cursor: pointer;
}
.tphr-theme-selected {
  outline: 2px solid var(--red-500) !important;
  outline-offset: 2px;
  box-shadow: 0 0 18px rgba(220,38,38,0.3) !important;
}

/* Inspector drawer */
.tphr-theme-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 360px; z-index: 1000;
  background: linear-gradient(180deg, #0a0f1c 0%, #04060e 100%);
  border-left: 3px solid #140404;
  box-shadow: -8px 0 30px rgba(0,0,0,0.7), inset 1px 0 0 rgba(220,38,38,0.12);
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  color: var(--text);
}
.tphr-td-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(26,6,6,0.6), transparent);
  border-bottom: 2px solid #140404;
  box-shadow: inset 0 -1px 0 rgba(220,38,38,0.1);
}
.tphr-td-title { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.14em; color: var(--red-100); text-shadow: 0 0 8px rgba(220,38,38,0.25); }
.tphr-td-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.tphr-td-btn {
  padding: 4px 8px; font-size: 0.52rem; font-weight: 700; letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.4));
  color: rgba(255,255,255,0.55); cursor: pointer;
  text-transform: uppercase; transition: all 0.18s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.tphr-td-btn:hover { border-color: var(--red-500); color: #fff; background: rgba(220,38,38,0.1); }
.tphr-td-btn:active { box-shadow: inset 0 2px 4px rgba(0,0,0,0.6); transform: translateY(1px); }
.tphr-td-close { color: var(--red-200); border-color: rgba(220,38,38,0.2); }
.tphr-td-publish { background: linear-gradient(180deg, var(--red-500), var(--red-700)); color: #fff; border-color: var(--red-400); box-shadow: 0 0 8px rgba(220,38,38,0.25); }
.tphr-td-body {
  flex: 1; overflow-y: auto; padding: 12px 14px;
  scrollbar-width: thin; scrollbar-color: var(--red-700) transparent;
}
.tphr-td-hint { font-size: 0.64rem; color: rgba(255,255,255,0.32); text-align: center; padding: 20px 8px; }
.tphr-td-comp-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(220,38,38,0.12);
}
.tphr-td-comp-name { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; color: var(--red-100); text-shadow: 0 0 6px rgba(220,38,38,0.2); }
.tphr-td-station { font-size: 0.5rem; color: rgba(255,255,255,0.36); letter-spacing: 0.1em; font-family: var(--font-mono); }
.tphr-td-prop-group { margin-bottom: 14px; padding: 8px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.04); border-radius: 5px; }
.tphr-td-prop-label { display: block; font-size: 0.48rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.32); margin-bottom: 5px; font-weight: 700; }
.tphr-td-fields { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.tphr-td-color { width: 28px; height: 24px; padding: 0; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; background: transparent; cursor: pointer; }
.tphr-td-range { flex: 1; min-width: 60px; height: 4px; -webkit-appearance: none; appearance: none; background: rgba(0,0,0,0.5); border-radius: 2px; outline: none; }
.tphr-td-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 6px rgba(220,38,38,0.4); cursor: pointer; }
.tphr-td-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--red-500); border: none; box-shadow: 0 0 6px rgba(220,38,38,0.4); cursor: pointer; }
.tphr-td-range-val { font-size: 0.56rem; font-family: var(--font-mono); color: rgba(255,255,255,0.5); min-width: 24px; }
.tphr-td-select, .tphr-td-text {
  padding: 4px 6px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.08); border-radius: 4px;
  color: var(--text); font-size: 0.58rem; font-family: var(--font-mono);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.tphr-td-text:focus, .tphr-td-select:focus { border-color: var(--red-500); outline: none; box-shadow: 0 0 6px rgba(220,38,38,0.2); }
.tphr-td-section { margin-bottom: 12px; padding: 8px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.04); border-radius: 5px; }
.tphr-td-field-label { display: block; font-size: 0.48rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.32); margin-bottom: 5px; font-weight: 700; }
.tphr-td-change-img { padding: 6px 10px; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.06em; border: 1px solid var(--red-500); border-radius: 4px; background: rgba(220,38,38,0.1); color: var(--red-100); cursor: pointer; text-transform: uppercase; }
.tphr-td-change-img:hover { background: rgba(220,38,38,0.18); }
.tphr-td-foot { display: flex; gap: 4px; padding: 8px 14px; border-top: 2px solid #140404; background: rgba(4,6,14,0.6); }
.tphr-td-foot .tphr-td-btn { flex: 1; }
.tphr-td-reset-theme { color: var(--red-200); border-color: rgba(220,38,38,0.2); }

/* Overlay */
.tphr-theme-overlay { position: fixed; inset: 0; z-index: 900; pointer-events: none; }

/* Hide Theme Admin UI for non-super-admins */
body:not(.tphr-is-super) .tphr-qa-theme-entry { display: none; }

/* Live visualizer toggle in center spine */
.tphr-spine-live-toggle {
  padding: 4px 8px; font-size: 0.42rem; font-weight: 800; letter-spacing: 0.1em;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.4));
  color: rgba(255,255,255,0.4); cursor: pointer;
  text-transform: uppercase; transition: all 0.18s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  z-index: 2; font-family: var(--font-mono);
}
.tphr-spine-live-toggle:hover { border-color: var(--red-500); color: #fff; background: rgba(220,38,38,0.08); }
.tphr-spine-live-toggle.is-active {
  background: linear-gradient(180deg, var(--red-500), var(--red-700));
  color: #fff; border-color: var(--red-400);
  box-shadow: 0 0 10px rgba(220,38,38,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: dotPulse 1.6s var(--ease) infinite;
}

/* Responsive: drawer shrinks on narrow screens */
@media (max-width: 1200px) {
  .tphr-theme-drawer { width: 300px; }
}
@media (max-width: 820px) {
  .tphr-theme-drawer { width: 100%; }
}

/* ============================================================
   THEME ADMIN — modal, grouped inspector, inheritance, status
   ============================================================ */
/* Live Viz modal */
.tphr-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
}
.tphr-modal-card {
  width: 400px; max-width: 90vw;
  background: linear-gradient(180deg, #0a0f1c 0%, #04060e 100%);
  border: 2px solid #140404; border-radius: 10px;
  box-shadow: 0 0 40px rgba(220,38,38,0.15), 0 20px 50px rgba(0,0,0,0.8);
}
.tphr-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 2px solid #140404;
  background: linear-gradient(180deg, rgba(26,6,6,0.6), transparent);
}
.tphr-modal-title { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; color: var(--red-100); }
.tphr-modal-close { background: none; border: none; color: rgba(255,255,255,0.4); font-size: 1.2rem; cursor: pointer; }
.tphr-modal-close:hover { color: var(--red-200); }
.tphr-modal-body { padding: 16px; }
.tphr-modal-desc { font-size: 0.72rem; color: rgba(255,255,255,0.55); margin-bottom: 14px; line-height: 1.4; }
.tphr-modal-check { display: flex; align-items: center; gap: 8px; font-size: 0.68rem; color: rgba(255,255,255,0.6); cursor: pointer; }
.tphr-modal-check input { accent-color: var(--red-500); }
.tphr-modal-status { margin-top: 14px; }
.tphr-viz-status-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.56rem; font-family: var(--font-mono); color: rgba(255,255,255,0.4); }
.tphr-viz-status-live { color: #34d399; } .tphr-viz-status-procedural { color: rgba(255,255,255,0.35); }
.tphr-viz-status-cors-blocked, .tphr-viz-status-error { color: var(--red-300); }
.tphr-viz-status-autoplay-blocked { color: #f59e0b; } .tphr-viz-status-disabled { color: rgba(255,255,255,0.2); }
.tphr-modal-foot { display: flex; gap: 8px; padding: 10px 16px; border-top: 2px solid #140404; }
.tphr-modal-foot .tphr-td-btn { flex: 1; padding: 6px 12px; font-size: 0.58rem; }

/* Inspector groups */
.tphr-td-group { margin-bottom: 12px; padding: 8px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.04); border-radius: 5px; }
.tphr-td-group-title { font-size: 0.5rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-100); opacity: 0.6; margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.tphr-td-prop { margin-bottom: 8px; }
.tphr-td-inherit { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.tphr-td-inherit-badge { font-size: 0.46rem; font-weight: 800; letter-spacing: 0.1em; padding: 2px 6px; border-radius: 3px; font-family: var(--font-mono); }
.tphr-td-source-global { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }
.tphr-td-source-inherited { background: rgba(52,211,153,0.08); color: #34d399; }
.tphr-td-source-station-override { background: rgba(220,38,38,0.1); color: var(--red-200); }

/* Station customize list */
.tphr-td-station-list { display: flex; flex-direction: column; gap: 4px; }
.tphr-td-comp-btn {
  padding: 6px 10px; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.06); border-radius: 4px;
  background: rgba(0,0,0,0.3); color: rgba(255,255,255,0.5); cursor: pointer;
  text-align: left; text-transform: uppercase; transition: all 0.18s var(--ease);
}
.tphr-td-comp-btn:hover { border-color: var(--red-500); color: #fff; background: rgba(220,38,38,0.08); }

/* Canvas waveform */
.tphr-wave-canvas { width: 100%; height: 100%; }

/* ============================================================
   THEME VARIABLE CONSUMERS
   These rules apply theme CSS variables with fallbacks.
   When no theme override exists, the fallback (default) value
   is used. Station-scoped variables only affect that station.
   ============================================================ */

/* Masthead — image-based. The image IS the complete visual surface. */
.tphr-masthead {
  background: url('/ThePhrequency/public/assets/img/masthead/thephrequency_header.png') 0 0 / 100% 100% no-repeat;
  border: none;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.75);
}
.tphr-brand-large { display: none; }
.tphr-brand-tagline { display: none; }
.tphr-brand-tagline-sub { display: none; }
.tphr-live-banner { display: none; }
.tphr-mock-banner { display: none; }

/* Sidebar */
.tphr-sidebar {
  background: var(--tphr-sidebar-background, linear-gradient(180deg, #0a0f1c 0%, #04060e 100%));
  border-right-color: var(--tphr-sidebar-border-color, #140404);
  border-right-width: var(--tphr-sidebar-border-thickness, 3px);
}

/* Station chassis */
.tphr-station {
  background: var(--tphr-station_chassis-background, var(--metal-brushed), var(--metal-face-dark));
  border-color: var(--tphr-station_chassis-border-color, #05060a);
  border-width: var(--tphr-station_chassis-border-thickness, 4px);
  border-radius: var(--tphr-station_chassis-border-radius, 12px);
  box-shadow: var(--tphr-station_chassis-glow, 0 0 0 1px var(--red-trim-soft)), var(--tphr-station_chassis-shadow, inset 0 2px 0 rgba(255,255,255,0.06), inset 0 -3px 0 rgba(0,0,0,0.8), 0 10px 28px rgba(0,0,0,0.65));
}

/* Station nameplate */
.tphr-nameplate-clip {
  background: var(--tphr-station_nameplate-background, linear-gradient(180deg, #24080b 0%, #11151a 55%, #080d13 100%));
  box-shadow: var(--tphr-station_nameplate-glow, inset 0 1px 0 rgba(255,255,255,0.1), inset 0 -2px 3px rgba(0,0,0,0.7), inset 3px 0 5px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(223,31,38,0.18));
}
.tphr-nameplate-text {
  color: var(--tphr-station_nameplate-text-color, #f5f5f5);
  font-size: var(--tphr-station_nameplate-text-font_size, 0.86rem);
  font-weight: var(--tphr-station_nameplate-text-font_weight, 900);
  font-family: var(--tphr-station_nameplate-text-font_family, var(--font-display));
  letter-spacing: var(--tphr-station_nameplate-text-letter_spacing, 0.1em);
  text-shadow: var(--tphr-station_nameplate-text-glow, 0 0 10px rgba(220,38,38,0.18), 0 1px 2px rgba(0,0,0,0.85));
}

/* Station logo */
.tphr-logo-frame {
  background: var(--tphr-station_logo-background, radial-gradient(ellipse at center, #0a0a14 0%, #04040a 100%));
  border-color: var(--tphr-station_logo-border-color, #100303);
  border-width: var(--tphr-station_logo-border-thickness, 2px);
  box-shadow: var(--tphr-station_logo-image_glow, inset 0 2px 10px rgba(0,0,0,0.75));
}
.tphr-logo-frame img {
  max-width: var(--tphr-station_logo-image_size, 92%);
  filter: var(--tphr-station_logo-image_glow, drop-shadow(0 0 12px var(--st-accent-soft)));
}

/* Now Playing */
.tphr-now-title {
  color: var(--tphr-now_playing-text-color, #fff);
  font-size: var(--tphr-now_playing-text-font_size, 1.12rem);
  font-weight: var(--tphr-now_playing-text-font_weight, 700);
  font-family: var(--tphr-now_playing-text-font_family, var(--font-display));
  text-shadow: var(--tphr-now_playing-glow, 0 0 14px rgba(220,38,38,0.25));
}
.tphr-now-artist {
  color: var(--tphr-artist_text-text-color, var(--red-100));
  font-size: var(--tphr-artist_text-text-font_size, 0.8rem);
  font-weight: var(--tphr-artist_text-text-font_weight, 400);
  text-shadow: var(--tphr-artist_text-glow, 0 0 8px rgba(220,38,38,0.2));
}

/* Progress */
.tphr-progress-fill {
  background: var(--tphr-progress-gradient, linear-gradient(90deg, var(--red-400), var(--red-700)));
  box-shadow: var(--tphr-progress-glow, 0 0 12px rgba(220,38,38,0.6));
  height: var(--tphr-progress-height, 5px);
}
.tphr-progress-track {
  background: var(--tphr-progress-background, rgba(0,0,0,0.65));
}

/* Hardware strip */
.tphr-station-hardware {
  background: var(--tphr-hardware_strip-background, linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.65)));
  border-color: var(--tphr-hardware_strip-border-color, rgba(255,255,255,0.05));
  box-shadow: var(--tphr-hardware_strip-glow, inset 0 2px 6px rgba(0,0,0,0.65));
}

/* Transport */
.tphr-transport-btn {
  background: var(--tphr-transport_btn-background, linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.4)));
  border-color: var(--tphr-transport_btn-border-color, rgba(255,255,255,0.08));
  color: var(--tphr-transport_btn-text-color, rgba(255,255,255,0.48));
  border-radius: var(--tphr-transport_btn-border-radius, 5px);
  box-shadow: var(--tphr-transport_btn-glow, inset 0 1px 0 rgba(255,255,255,0.04));
}
.tphr-tp-play {
  background: var(--tphr-transport_play-background, linear-gradient(180deg, var(--red-500) 0%, var(--red-700) 100%));
  border-color: var(--tphr-transport_play-border-color, var(--red-400));
  color: var(--tphr-transport_play-text-color, #fff);
  box-shadow: var(--tphr-transport_play-glow, 0 0 18px rgba(220,38,38,0.45));
}

/* Center spine */
.tphr-spine {
  background: var(--tphr-center_spine-background, var(--metal-brushed), var(--metal-face-dark));
  border-color: var(--tphr-center_spine-border-color, #05060a);
  box-shadow: var(--tphr-center_spine-glow, 0 0 0 1px var(--red-trim-soft)), var(--tphr-center_spine-shadow, inset 0 2px 0 rgba(255,255,255,0.07), inset 0 -3px 0 rgba(0,0,0,0.85), 0 10px 26px rgba(0,0,0,0.65));
}
.tphr-spine-onair-dot {
  background: var(--tphr-on_air_display-background, var(--red-500));
  box-shadow: var(--tphr-on_air_display-glow, 0 0 20px var(--red-500));
}
.tphr-spine-onair-label {
  color: var(--tphr-on_air_display-text-color, var(--red-200));
}

/* VU meter */
.tphr-meter-segment.lit-red { background: var(--tphr-vu_meter-color, var(--red-500)); box-shadow: var(--tphr-vu_meter-glow, 0 0 9px rgba(220,38,38,0.75)); }

/* Bottom console */
.tphr-bottom-console {
  background: var(--tphr-bottom_console-background, var(--metal-brushed), linear-gradient(180deg, var(--metal-3) 0%, var(--metal-1) 60%, var(--metal-0) 100%));
  border-top-color: var(--tphr-bottom_console-border-color, #05060a);
  border-top-width: var(--tphr-bottom_console-border-thickness, 4px);
}

/* Status LED */
.tphr-bc-led.ok { background: var(--tphr-status_led-color, #34d399); box-shadow: var(--tphr-status_led-glow, 0 0 7px rgba(52,211,153,0.6)); }

/* Network overview / Live listeners / Quick actions */
.tphr-top-left { background: var(--tphr-network_overview-background, linear-gradient(180deg, #0c1322 0%, #060a14 100%)); border-color: var(--tphr-network_overview-border-color, #140404); }
.tphr-top-listeners-mod { background: var(--tphr-live_listeners-background, linear-gradient(180deg, #0c1322 0%, #060a14 100%)); border-color: var(--tphr-live_listeners-border-color, #140404); }

/* Background texture */
.tphr-dashboard { background: var(--tphr-background_texture-background, transparent); }

/* Unsaved-changes modal */
.tphr-exit-modal-card { width: 380px; max-width: 90vw; }
.tphr-exit-modal-body { padding: 16px; font-size: 0.72rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.tphr-exit-modal-foot { display: flex; gap: 8px; padding: 10px 16px; border-top: 2px solid #140404; }
.tphr-exit-modal-foot .tphr-td-btn { flex: 1; padding: 8px 12px; font-size: 0.58rem; }