/* ==========================================================================
   AVANTIDA RADIO — MAIN STYLESHEET
   --------------------------------------------------------------------------
   Load order:
     1. style.css        <- this file
     2. responsive.css   <- LAST, so its media queries win specificity ties

   All @media blocks live in responsive.css. Nothing in this file is
   breakpoint-dependent, so link order between the two is the only thing
   that matters.

   --------------------------------------------------------------------------
   CONTENTS
     01. Reset & base
     02. Theme variables
     03. Layout shell
     04. Header & navigation
     05. Language selector
     06. Cover banner & visualizer
     07. Hero section
     08. Audio player
     09. Genres
     10. Song requests
     11. About & footer
     12. Inner pages (archive / about / CTA)
     13. Wall of Fame
     14. Chat widget
     15. Profile & auth
     16. CRT effects
     17. Utilities & legacy
   ========================================================================== */


/* ==========================================================================
   01. RESET & BASE
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global kill-switch for the hidden attribute. Anything toggled via
   el.hidden = true in script.js relies on this. */
[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'VT323', 'Courier New', monospace;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #0d0d0d;
  overflow-x: hidden;
  max-width: 100%;
}


/* ==========================================================================
   02. THEME VARIABLES
   --------------------------------------------------------------------------
   --site-accent / --site-accent-rgb are rewritten by script.js when a mix
   button (.mix-choice) is clicked. Everything downstream reads from them,
   so the whole UI recolours from two values.

   --border-medium and --border-subtle are DERIVED, not literal colours.
   That means every rule written as `border: 1px solid var(--border-medium)`
   follows the theme for free.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Accent — the only two values JS needs to touch */
  --site-accent: #00ff00;
  --site-accent-rgb: 0, 255, 0;

  /* Derived borders */
  --border-medium: rgba(var(--site-accent-rgb), 0.78);
  --border-subtle: rgba(var(--site-accent-rgb), 0.30);

  /* Derived translucent panels — the "coloured glass" surfaces */
  --panel-bg:        rgba(var(--site-accent-rgb), 0.06);
  --panel-bg-strong: rgba(var(--site-accent-rgb), 0.12);

  /* Neutral backgrounds */
  --bg-primary:   #0d0d0d;
  --bg-secondary: #0a0a0a;
  --bg-tertiary:  #0f0f0f;

  /* Text hierarchy */
  --text-primary:   #e0e0e0;
  --text-secondary: #aaa;
  --text-muted:     #666;

  /* Semantic (deliberately NOT themed) */
  --ok:    #00ff00;
  --err:   #ff5577;
  --info:  #d7b8ff;
}



/* ==========================================================================
   03. LAYOUT SHELL
   ========================================================================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ==========================================================================
   04. HEADER & NAVIGATION
   ========================================================================== */

.main-header {
  background: rgba(13, 13, 13, 0.95);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-medium);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 0 20px rgba(var(--site-accent-rgb), 0.1);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 5px var(--site-accent));
}

.main-header nav {
  display: flex;
  gap: 1.5rem;
}

.main-header nav a {
  text-decoration: none;
  color: var(--site-accent);
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.main-header nav a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--site-accent);
}


/* ==========================================================================
   05. LANGUAGE SELECTOR
   ========================================================================== */

.lang-selector {
  background: rgba(13, 13, 13, 0.95);
  border-bottom: 1px solid var(--border-medium);
  padding: 0.5rem 0;
  position: sticky;
  top: 65px;              /* clears the header above it */
  z-index: 99;
}

.lang-selector .container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--site-accent);
  color: var(--site-accent);
  padding: 0.4rem 1rem;
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.lang-btn:hover {
  box-shadow: 0 0 15px rgba(var(--site-accent-rgb), 0.4);
}

.lang-btn.active {
  background: var(--site-accent);
  color: #000;
  box-shadow: 0 0 20px rgba(var(--site-accent-rgb), 0.5);
}


/* ==========================================================================
   06. COVER BANNER & VISUALIZER
   --------------------------------------------------------------------------
   #banner-viz is a <canvas> stacked over .banner-image. When the visualizer
   is running, .viz-active hides the image rather than removing it, so the
   container keeps its height and nothing reflows.
   ========================================================================== */

/* section 06 COVER BANNER */

/* NEW — two modes */
.cover-banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2240 / 1260;  /* ← your PNG's ratio */
  height: auto;               /* follows aspect-ratio */
  overflow: hidden;
  background: #000;
  box-sizing: border-box;
}

/* Viz ON — ignores aspect-ratio, uses fixed band height */
.cover-banner.viz-active {
  aspect-ratio: auto;         /* disable the ratio */
  height: clamp(260px, 38vh, 480px);
}
/* Replace the above with this to make viz same height as image
.cover-banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2240 / 1260;   ← set this to YOUR png's real ratio 
  overflow: hidden;
  background: #000;
  box-sizing: border-box;
}
*/



.banner-image {
  display: block;
  width: 100%;
  height: 100%;                /* ← was auto */
  object-fit: cover;
  object-position: center;
}

#banner-viz {
  display: none;
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 2;
}

.cover-banner.viz-active #banner-viz   { display: block; }
.cover-banner.viz-active .banner-image { visibility: hidden; }

/* --- Visualizer control buttons --- */
#banner-viz-toggle,
#banner-viz-mode,
#banner-viz-fullscreen {
  font-family: 'VT323', monospace;
  font-size: 16px;
  letter-spacing: 2px;
  padding: 8px 16px;
  color: var(--site-accent);
  background: rgba(0, 0, 0, 0.78);
  border: 2px solid var(--site-accent);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  box-shadow: 0 0 12px rgba(var(--site-accent-rgb), 0.35);
}

#banner-viz-toggle:hover,
#banner-viz-toggle:focus-visible,
#banner-viz-mode:hover,
#banner-viz-mode:focus-visible,
#banner-viz-fullscreen:hover,
#banner-viz-fullscreen:focus-visible {
  background: var(--site-accent);
  color: #000;
  outline: none;
  box-shadow: 0 0 20px rgba(var(--site-accent-rgb), 0.7);
}

#banner-viz-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
}

#banner-viz-mode {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: none;          /* revealed by JS on activate() */
}

#banner-viz-fullscreen {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
  display: none;          /* revealed by JS on activate() */
}

/* ON state — white instead of accent, so it reads as "engaged" */
#banner-viz-toggle.viz-on {
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
#banner-viz-toggle.viz-on:hover {
  background: #fff;
  color: #000;
}

/* Fullscreen: canvas fills the viewport, image stays hidden */
.cover-banner:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  padding: 0;
  margin: 0;
}
.cover-banner:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  padding: 0;
  margin: 0;
}
.cover-banner:fullscreen .banner-image,
.cover-banner:-webkit-full-screen .banner-image {
  display: none;
}


/* ==========================================================================
   07. HERO SECTION
   ========================================================================== */

.hero {
  background: linear-gradient(rgba(13,13,13,0.8), rgba(13,13,13,0.9)), url('/images/backshot.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  isolation: isolate;   /* ← creates a stacking context */
}

/* Faint scanline wash over the hero, tinted by the accent */
.background-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(var(--site-accent-rgb), 0.03) 2px,
    rgba(var(--site-accent-rgb), 0.03) 4px
  );
  pointer-events: none;
}

.glitch-text {
  font-size: 6.4rem;
  margin-bottom: 0.5rem;
  color: var(--site-accent);
  text-shadow:
    0 0 10px var(--site-accent),
    0 0 20px var(--site-accent),
    0 0 40px var(--site-accent);
  animation: flicker var(--pulse-tempo, 7s) infinite;
}

.tagline {
  opacity: 0.9;
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--site-accent);
  letter-spacing: 3px;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92%      { opacity: 1; }
  93%      { opacity: 0.8; }
  94%      { opacity: 1; }
  96%      { opacity: 0.9; }
  97%      { opacity: 1; }
}


/* ==========================================================================
   08. AUDIO PLAYER
   ========================================================================== */

.player-wrapper {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  padding: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(var(--site-accent-rgb), 0.2);
}

.now-playing {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;          /* ← add */
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* --- Mix selector badges ---
   Each badge carries its own brand colour via data-theme-color in the HTML.
   These are intentionally NOT tied to --site-accent: they're the swatches
   you click to CHANGE the accent. */
/* --- Mix selector chips ---
   One shared base style so the pair reads as matched. Today's Mix keeps
   its fixed purple; Avantida Mix is fixed green until a DJ goes live,
   at which point it pins itself to --live-pink. Neither depends on
   --site-accent, so Today's Mix staying purple on air doesn't bleed
   into this button. */
.mix-choice {
  cursor: pointer;
}

.mix-choice:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.mix-chip {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  letter-spacing: 2px;
  line-height: 1.4;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.mix-chip:hover {
  transform: translateY(-1px);
}

/* Today's Mix — fixed purple, immune to the live palette */
.focus-badge {
  background: #5c00df;
  color: #fff;
  border-color: #168cff;
  box-shadow: 0 0 12px #168cff;
}

/* Avantida Mix — green while off air */
.live-badge {
  background: #00ff00;
  color: #000;
  border-color: #00ff00;
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.6);
}

/* On air — pin to the live pink and blink, regardless of page accent */
html.dj-live .live-badge {
  background: var(--live-pink);
  color: #000;
  border-color: var(--live-pink);
  box-shadow: 0 0 18px rgba(var(--live-pink-rgb), 0.6);
  animation: blink calc(var(--pulse-tempo, 7s) * 0.75) infinite;
}

.red-badge {
  background: #b60589;
  color: #fff;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  box-shadow: 0 0 12px #b60589;
  animation: blink var(--pulse-tempo, 7s) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

audio {
  width: 100%;
  margin: 1rem 0;
  filter: invert(0.1);
}

.quality-control,
.volume-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--site-accent);
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

input[type="range"] {
  accent-color: var(--site-accent);
}

/* Track info line is suppressed; the badge row carries the state instead */
#track-info {
  display: none;
}


/* ==========================================================================
   09. GENRES
   ========================================================================== */

.genres {
  padding: 2.5rem 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.genre-tags span {
  background: transparent;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--site-accent);
  color: var(--site-accent);
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.genre-tags span:hover {
  background: var(--site-accent);
  color: #000;
  box-shadow: 0 0 15px var(--site-accent);
}


/* ==========================================================================
   10. SONG REQUESTS
   --------------------------------------------------------------------------
   Shared by the homepage .requests section AND the chat #tab-song_req pane.
   The HTML form carries both id="request-form" and class="request-form".
   ========================================================================== */

.requests {
  padding: 3rem 0;
  background: var(--bg-tertiary);
  text-align: center;
  border-bottom: 1px solid var(--border-medium);
}

.requests h2 {
  margin-bottom: 1.5rem;
  color: var(--site-accent);
  letter-spacing: 2px;
}

/* Page-level "requests disabled" notice */
.status-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 600px;
}

.status-banner.disabled {
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid #ff5555;
  color: #ffaaaa;
}

.request-intro {
  margin: 0 0 1.5rem;
  color: #b8ffb8;
  font-size: 1.2rem;
}

.request-form {
  max-width: 760px;
  padding: 1.5rem;
  border: 2px solid var(--border-medium);
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 0 18px rgba(var(--site-accent-rgb), 0.2);
}

/* ARTIST | SONG TITLE side by side, MESSAGE spans both */
.request-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.request-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--site-accent);
  font-family: 'VT323', monospace;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.request-fields label span {
  color: #999;
  font-size: 1rem;
}

/* NOTE: `font:` is a shorthand and resets font-family, so these inputs
   render in the generic monospace face rather than VT323. Swap to
   `font-size: 1rem` if you want them to match the rest of the UI. */
.request-fields input,
.request-fields textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  border: 1px solid var(--border-medium);
  border-radius: 0;
  background: #080808;
  color: #eaffea;
  font: 1rem monospace;
}

.request-fields input:focus,
.request-fields textarea:focus {
  outline: 2px solid var(--site-accent);
  outline-offset: 2px;
}

.request-comment {
  grid-column: 1 / -1;
}

.request-submit-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.request-submit-row button {
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--site-accent);
  border-radius: 0;
  background: transparent;
  color: var(--site-accent);
  font: 1.3rem 'VT323', monospace;
  cursor: pointer;
}

.request-submit-row button:hover,
.request-submit-row button:focus-visible {
  background: var(--site-accent);
  color: #050505;
}

.request-submit-row button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Inline feedback written by script.js */
#form-message {
  margin: 0;
  font: 1.15rem 'VT323', monospace;
}

#form-message.success { color: var(--ok); }
#form-message.error   { color: var(--err); }
#form-message.info    { color: var(--info); }

/* Chat pane wrapper — scrolls internally so the chat window never stretches */
#tab-song_req {
  overflow-y: auto;
  padding: 16px;
}

#tab-song_req .request-fields {
  display: grid;
  gap: 12px;
}

#tab-song_req h2 {
  font-size: 1.1em;
  margin: 0 0 8px;
}


/* ==========================================================================
   11. ABOUT & FOOTER
   ========================================================================== */

.about {
  padding: 3rem 0;
  text-align: center;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
}

.about h2 {
  margin-bottom: 1rem;
  color: var(--site-accent);
  letter-spacing: 2px;
}

.about p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

footer {
  background: var(--bg-secondary);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

footer p {
  margin: 0.25rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  color: var(--site-accent);
  margin: 0 0.75rem;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.social-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--site-accent);
}


/* ==========================================================================
   12. INNER PAGES — ARCHIVE / ABOUT / CTA
   --------------------------------------------------------------------------
   Used by about.html, the mixtape and podcast archive listings, and any
   page ending in a call-to-action band.
   ========================================================================== */

.page-hero {
  background: linear-gradient(rgba(13,13,13,0.7), rgba(13,13,13,0.9));
  color: var(--site-accent);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-medium);
}

.page-hero h1 {
  font-size: 6.4rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px var(--site-accent);
}

.archive-list {
  padding: 3rem 0;
}

.archive-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--site-accent);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.archive-item:hover {
  box-shadow: 0 0 20px rgba(var(--site-accent-rgb), 0.2);
}

.archive-item.full {
  background: var(--bg-primary);
}

.archive-item h3 {
  margin-bottom: 0.5rem;
  color: var(--site-accent);
  letter-spacing: 1px;
}

.archive-item .date,
.archive-item .duration {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 1.5rem;
}

.archive-item audio {
  margin-top: 1rem;
  width: 100%;
  filter: invert(0.1);
}

/* --- About page content blocks --- */
.about-content {
  padding: 4rem 0;
}

.content-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--site-accent);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s;
}

.content-block:hover {
  box-shadow: 0 0 25px rgba(var(--site-accent-rgb), 0.15);
}

.content-block.highlight {
  background: var(--bg-primary);
}

.content-block h2 {
  color: var(--site-accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.content-block p {
  color: #bbb;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.feature-list li {
  color: #888;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.location {
  font-size: 1rem;
  color: var(--site-accent);
  font-weight: bold;
  margin-top: 1.5rem;
}

/* --- Call-to-action band --- */
.cta-section {
  background: linear-gradient(135deg,
              rgba(var(--site-accent-rgb), 0.85) 0%,
              var(--site-accent) 100%);
  padding: 4rem 0;
  text-align: center;
  color: #000;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: #000;
  color: var(--site-accent);
  padding: 1rem 3rem;
  text-decoration: none;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  letter-spacing: 2px;
  border: 2px solid #000;
  transition: all 0.3s;
}

.cta-button:hover {
  background: transparent;
  color: #000;
  box-shadow: 0 0 30px rgba(var(--site-accent-rgb), 0.5);
}


/* ==========================================================================
   13. WALL OF FAME
   ========================================================================== */

.wall-hero {
  padding: 4rem 0;
  background: linear-gradient(rgba(13,13,13,0.8), rgba(13,13,13,0.95));
}

.wall-grid {
  padding: 4rem 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-medium);
}

.artist-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--site-accent);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 2rem;
  transition: all 0.3s;
}

.artist-card:hover {
  box-shadow: 0 0 25px rgba(var(--site-accent-rgb), 0.2);
  transform: translateY(-2px);
}

.artist-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-secondary);
  border: 2px solid var(--border-medium);
  overflow: hidden;
}

.artist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.7) contrast(1.2);
  transition: filter 0.3s;
}

.artist-card:hover .artist-photo img {
  filter: grayscale(0.3) contrast(1.3);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(var(--site-accent-rgb), 0.1), transparent);
}

.photo-icon {
  font-size: 4rem;
  color: var(--site-accent);
  opacity: 0.5;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.artist-card:hover .overlay {
  opacity: 1;
}

.view-profile {
  background: var(--site-accent);
  color: #000;
  border: 2px solid var(--site-accent);
  padding: 0.75rem 1.5rem;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.view-profile:hover {
  background: #000;
  color: var(--site-accent);
  box-shadow: 0 0 20px var(--site-accent);
}

.artist-info h2 {
  color: var(--site-accent);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--site-accent);
}

.artist-genre {
  color: var(--site-accent);
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.artist-bio {
  color: #bbb;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.artist-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stat {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.stat strong {
  color: var(--site-accent);
}

.featured-tracks {
  margin-bottom: 1.5rem;
}

.featured-tracks h4 {
  color: var(--site-accent);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.featured-tracks ul {
  list-style: none;
  padding: 0;
}

.featured-tracks li {
  color: #aaa;
  padding: 0.25rem 0 0.25rem 0.75rem;
  border-left: 2px solid var(--border-medium);
  margin-bottom: 0.5rem;
}

.artist-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.artist-tags span {
  background: transparent;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border-medium);
  color: var(--site-accent);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.nominate-section {
  padding: 4rem 0;
  background: linear-gradient(135deg,
              rgba(var(--site-accent-rgb), 0.85) 0%,
              var(--site-accent) 100%);
  text-align: center;
  color: #000;
}

.nominate-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
}

.nominate-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- CRT "hall of fame" panel ---
   NOTE: this block still uses its own hardcoded mint-green palette
   (#43ff91 etc.) rather than the accent. Left as-is because it's a
   deliberately distinct component. Say the word and I'll theme it. */
.crt-wall-section {
  padding: 56px 20px;
  background: #07110c;
}

.crt-wall {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
  border: 2px solid #43ff91;
  border-radius: 18px;
  background: #08150e;
  color: #aaffc5;
  box-shadow: 0 0 12px #43ff9166, inset 0 0 35px #43ff911c;
  font-family: "VT323", monospace;
}

.crt-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    #00000035 4px
  );
}

.crt-wall__eyebrow,
.crt-wall__footer {
  color: #66dd91;
  letter-spacing: 0.12em;
}

.crt-wall__title {
  margin: 8px 0 24px;
  color: #c3ffd5;
  font-size: clamp(38px, 8vw, 64px);
  text-shadow: 0 0 12px #43ff91;
}

.crt-wall__list {
  display: grid;
  gap: 10px;
}

.crt-wall__link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #318d54;
  color: #aaffc5;
  text-decoration: none;
  background: #0a1d12cc;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.crt-wall__link:hover,
.crt-wall__link:focus-visible {
  border-color: #aaffc5;
  background: #12351f;
  color: #fff;
  transform: translateX(4px);
  outline: none;
}

.crt-wall__number { color: #55c97d; font-size: 24px; }
.crt-wall__name   { flex: 1; font-size: 30px; }
.crt-wall__name small {
  display: block;
  color: #76bd8c;
  font-size: 18px;
}
.crt-wall__arrow  { font-size: 26px; }
.crt-wall__footer { margin: 22px 0 0; }


/* ==========================================================================
   14. CHAT WIDGET
   ========================================================================== */


/* --- Floating toggle button ---
   No !important needed: there's now a single definition, and responsive.css
   loads last so its mobile sizing wins on merit. */
.chat-toggle-btn {
  position: fixed;
  z-index: 9999;          /* above .chat-layer (1150) — see notes */
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: calc(20px + env(safe-area-inset-left, 0px));
  top: auto;
  right: auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--site-accent);
  color: #000;
  border: 2px solid var(--site-accent);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: 0 0 15px rgba(var(--site-accent-rgb), 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chat-toggle-btn img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.chat-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 26px rgba(var(--site-accent-rgb), 0.9);
}

.chat-toggle-btn:active {
  transform: scale(0.96);
}

/* --- Modal layer --- */
.chat-layer {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
}

.chat-layer.active {
  visibility: visible;
  pointer-events: auto;
}

.chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chat-layer.active .chat-backdrop {
  opacity: 1;
}

/* --- Chat window --- */
.chat-container {
  position: relative;
  z-index: 1;
  width: min(80vw, 1040px);
  height: min(80dvh, 740px);
  background: rgba(13, 13, 13, 0.985);
  border: 2px solid var(--border-medium);
  border-radius: 4px;
  box-shadow:
    0 0 40px rgba(var(--site-accent-rgb), 0.35),
    inset 0 0 24px rgba(var(--site-accent-rgb), 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.965);
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.chat-layer.active .chat-container {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chat-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: transparent;
  color: var(--site-accent);
  border: 1px solid var(--site-accent);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s;
}

.chat-close-btn:hover {
  background: var(--site-accent);
  color: #000;
  box-shadow: 0 0 12px var(--site-accent);
}

/* --- Header --- */
.chat-header {
  padding: 1rem 3.5rem 1rem 1rem;
  background: var(--panel-bg-strong);
  border-bottom: 1px solid var(--border-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chat-header h3 {
  color: var(--site-accent);
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--site-accent);
}

.chat-status {
  color: var(--site-accent);
  font-size: 0.85rem;
  letter-spacing: 1px;
  animation: blink calc(var(--pulse-tempo, 7s) * 0.75) infinite;
}

/* --- Chat header status cluster ---
   Groups the green visitor indicator with the magenta DJ indicator so
   the header's space-between layout still sees exactly two children. */
.chat-status-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --- DJ presence chip ---
   Magenta, matching the .is-dj pink used on staff rows in the private
   lists. Steady while a DJ is merely online; escalates to the live pink
   and blinks once they're actually mixing. */
.dj-online-chip {
  color: #ff5ec7;
  font-size: 0.85rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

html.dj-live .dj-online-chip {
  color: var(--live-pink);
  text-shadow: 0 0 8px rgba(var(--live-pink-rgb), 0.6);
  animation: blink calc(var(--pulse-tempo, 7s) * 0.75) infinite;
}
/* --- Tab bar (five tabs, scrolls horizontally when cramped) --- */
.chat-tabs {
  display: flex;
  background: var(--panel-bg);
  border-bottom: 1px solid var(--border-medium);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;          /* Firefox */
}

.chat-tabs::-webkit-scrollbar {
  display: none;                  /* Chrome / Safari */
}

.tab-btn {
  flex: 1 0 auto;
  min-width: 88px;
  padding: 0.75rem;
  background: transparent;
  color: var(--site-accent);
  border: none;
  border-right: 1px solid var(--border-medium);
  font-family: 'VT323', monospace;
  font-size: 1rem;
  letter-spacing: 1px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn:hover {
  background: rgba(var(--site-accent-rgb), 0.12);
}

.tab-btn.active {
  background: var(--site-accent);
  color: #000;
  box-shadow: 0 0 15px rgba(var(--site-accent-rgb), 0.4);
}

/* --- Tab content area ---
   .chat-content is the flex parent. min-height: 0 on every level is what
   lets .messages-container scroll instead of stretching the window. */
.chat-content {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab-pane {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.tab-pane.active {
  display: flex;
}

/* --- Messages scroll area --- */
.messages-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(0, 10, 0, 0.7);
  scrollbar-width: thin;
  scrollbar-color: var(--site-accent) #0a0a0a;
}

.messages-container::-webkit-scrollbar        { width: 8px; }
.messages-container::-webkit-scrollbar-track  { background: #0a0a0a; }
.messages-container::-webkit-scrollbar-thumb  {
  background: var(--site-accent);
  border-radius: 4px;
}

/* --- Individual message --- */
.message {
  position: relative;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  border-left: 2px solid var(--site-accent);
  background: rgba(0, 20, 0, 0.4);
  word-break: break-word;
}

.message.system {
  border-left-color: var(--site-accent);
  background: rgba(0, 30, 0, 0.3);
}

.message .timestamp {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.message .sender {
  color: var(--site-accent);
  font-weight: bold;
  margin-right: 0.5rem;
}

.message .msg-text {
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

/* --- DJ / host messages ---
   Declared AFTER .message .sender so the equal-specificity tie breaks
   in favour of the host colour. No !important needed. */
.dj-host {
  background: rgba(182, 5, 137, 0.1);
  border-left: 3px solid #b60589;
  padding-left: 8px;
}

.dj-host .sender {
  color: #b60589;
  font-weight: bold;
}

/* --- Reactions: like + pin --- */
.msg-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.msg-like {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: none;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  color: #555;
  opacity: 0.45;
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 50%;
  transition: opacity 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.msg-like:hover {
  opacity: 1;
  color: #ff3860;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.msg-like.is-liked {
  opacity: 1;
  color: #ff3860;
}

.msg-like .heart {
  font-size: 0.9rem;
  line-height: 1;
  display: inline-block;
  transform: scale(0.85);
  transform-origin: center;
}

.msg-like .like-count {
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 2px;
  color: var(--site-accent);
}

.msg-pin {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #888;
  cursor: pointer;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.msg-pin:hover {
  background: var(--site-accent);
  color: #000;
}

.msg-pin[hidden] {
  display: none;
}

/* Pinned state on the message itself */
.message.pinned {
  background: rgba(var(--site-accent-rgb), 0.05);
  border-left-color: var(--site-accent);
}

.message.pinned .msg-pin {
  background: var(--site-accent);
  color: #000;
}

/* --- Pinned strip above the public message list --- */
.pinned-strip {
  display: flex;
  gap: 8px;
  padding: 8px 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-medium);
  overflow-x: auto;
  flex-wrap: nowrap;
  max-height: 180px;
}

.pinned-strip[hidden] {
  display: none !important;
}

.pinned-strip::-webkit-scrollbar       { height: 6px; }
.pinned-strip::-webkit-scrollbar-track { background: #0a0a0a; }
.pinned-strip::-webkit-scrollbar-thumb {
  background: var(--site-accent);
  border-radius: 4px;
}

.pinned-item {
  position: relative;
  min-width: 120px;
  max-width: 300px;
  padding: 6px 10px;
  background: rgba(0, 30, 0, 0.6);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--site-accent);
  font-size: 0.9rem;
  color: var(--text-primary);
  word-break: break-word;
  cursor: pointer;
  transition: transform 0.15s;
}

.pinned-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(var(--site-accent-rgb), 0.3);
}

.pinned-item .pinned-time {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --- Input row --- */
.chat-input-form {
  display: flex;
  padding: 1rem;
  background: var(--panel-bg-strong);
  border-top: 1px solid var(--border-medium);
  gap: 0.5rem;
  flex-shrink: 0;
}

.chat-input-form input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem;
  background: var(--bg-secondary);
  color: var(--site-accent);
  border: 1px solid var(--border-medium);
  font-family: 'VT323', monospace;
  font-size: 1rem;
  letter-spacing: 1px;
}

.chat-input-form input:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(var(--site-accent-rgb), 0.5);
}

.chat-input-form button {
  padding: 0.75rem 1.5rem;
  background: var(--site-accent);
  color: #000;
  border: 1px solid var(--border-medium);
  font-family: 'VT323', monospace;
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.25s;
}

.chat-input-form button:hover:not(:disabled) {
  background: #000;
  color: var(--site-accent);
  box-shadow: 0 0 15px var(--site-accent);
}

.chat-input-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Private tab: staff contact dropdown --- */
.private-dj-dropdown {
  padding: 0.75rem 1rem;
  background: var(--panel-bg-strong);
  border-bottom: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.private-dj-dropdown[hidden] {
  display: none !important;
}

.private-dj-dropdown label {
  color: var(--site-accent);
  font-size: 0.9rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

.private-dj-dropdown select {
  flex: 1;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  color: var(--site-accent);
  border: 1px solid var(--border-medium);
  border-radius: 0;
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
}

.private-dj-dropdown select:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(var(--site-accent-rgb), 0.5);
}

/* --- Private tab: user search + results --- */
.private-user-panel {
  background: var(--panel-bg-strong);
  border-bottom: 1px solid var(--border-medium);
  flex-shrink: 0;
}

.private-search-box {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-medium);
}

.private-search-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 1rem;
  background: var(--bg-secondary);
  color: var(--site-accent);
  border: 1px solid var(--border-medium);
  font-family: 'VT323', monospace;
  font-size: 1rem;
  letter-spacing: 1px;
}

.private-search-box input:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(var(--site-accent-rgb), 0.5);
}

.private-user-list {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--site-accent) #0a0a0a;
}

.private-user-list::-webkit-scrollbar       { width: 6px; }
.private-user-list::-webkit-scrollbar-track { background: #0a0a0a; }
.private-user-list::-webkit-scrollbar-thumb {
  background: var(--site-accent);
  border-radius: 4px;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(var(--site-accent-rgb), 0.2);
}


/* pink circle for admins in chat private */
.user-item.is-dj .user-avatar,
.user-item.is-dj .user-avatar-placeholder {
  border-color: #ff5ec7 !important;
  box-shadow: 0 0 8px rgba(255, 94, 199, 0.4);
}


.user-item:last-child {
  border-bottom: none;
}

.user-item:hover {
  background: rgba(var(--site-accent-rgb), 0.15);
}

.user-item.active {
  background: rgba(var(--site-accent-rgb), 0.25);
  border-left: 3px solid var(--site-accent);
}

/* --- Staff / DJ rows in the conversation list ---
   .is-dj is applied by renderConversationItems() and renderUserList()
   in script.js. Pink ring on the avatar circle, pink left edge on the row.

   NOTE: placed AFTER the .active rules on purpose — media queries add no
   specificity, so source order decides ties. A DJ row that is also the
   open thread shows pink, not accent. */
.conversation-item.is-dj,
.user-item.is-dj {
  border-left: 4px solid #b60589;
}

.conversation-item.is-dj .user-avatar,
.conversation-item.is-dj .user-avatar-placeholder,
.user-item.is-dj .user-avatar,
.user-item.is-dj .user-avatar-placeholder {
  border-color: #b60589;
  box-shadow: 0 0 8px rgba(182, 5, 137, 0.45);
}

.conversation-item.is-dj .user-avatar-placeholder,
.user-item.is-dj .user-avatar-placeholder {
  color: #ff9ad4;
}

/* Name tint so staff read as staff even with a photo avatar */
.conversation-item.is-dj .conversation-name,
.user-item.is-dj .user-name {
  color: #ff9ad4;
}

/* Unread badge on a staff row stays legible against the pink edge */
.conversation-item.is-dj .unread-badge {
  background: #b60589;
  color: #fff;
}

.user-avatar,
.user-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111;
  border: 2px solid var(--site-accent);
  flex-shrink: 0;
}

.user-avatar {
  object-fit: cover;
}

.user-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--site-accent);
  font-size: 1.2rem;
}

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

.user-name {
  color: var(--site-accent);
  font-size: 1.05rem;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-last-msg {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-users-found {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Private tab keeps its own scroll context */
#tab-private .messages-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Search results panel — capped so it can't squeeze the convo lists */
#private-user-results {
  flex: 0 0 auto;
  max-height: 40%;
  border-bottom: 1px solid var(--border-medium);
}

#private-user-results[hidden] {
  display: none !important;
}

/* --- Private tab: signed-out prompt ---
   #tab-private is already a flex column with padding and gap, so this
   just needs to claim the remaining height and centre itself. */
.private-auth-prompt {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  background: rgba(0, 10, 0, 0.7);
  border: 1px solid var(--border-subtle);
}

.private-auth-prompt h3 {
  margin: 0;
  color: var(--site-accent);
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--site-accent);
}

.private-auth-prompt p {
  margin: 0;
  max-width: 340px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.auth-action-btn {
  padding: 0.7rem 2rem;
  background: transparent;
  color: var(--site-accent);
  border: 2px solid var(--site-accent);
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.25s;
}

.auth-action-btn:hover,
.auth-action-btn:focus-visible {
  background: var(--site-accent);
  color: #000;
  box-shadow: 0 0 18px var(--site-accent);
  outline: none;
}





/* ==========================================================================
   15. PROFILE & AUTH
   ========================================================================== */

#tab-profile {
  overflow-y: auto;
  padding: 16px;
  gap: 14px;
}

.profile-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.profile-title {
  margin: 0;
  color: var(--site-accent);
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--site-accent);
}

/* --- Login / Register switch --- */
.auth-toggle {
  display: flex;
  border: 1px solid var(--border-medium);
}

.auth-mode {
  flex: 1;
  padding: 0.6rem;
  background: transparent;
  color: var(--site-accent);
  border: none;
  border-right: 1px solid var(--border-medium);
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.25s;
}

.auth-mode:last-child {
  border-right: none;
}

.auth-mode:hover {
  background: rgba(var(--site-accent-rgb), 0.12);
}

.auth-mode.active {
  background: var(--site-accent);
  color: #000;
  box-shadow: 0 0 15px rgba(var(--site-accent-rgb), 0.4);
}

/* --- Forms --- */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-form.active {
  display: flex;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--site-accent);
  font-size: 1.15rem;
  letter-spacing: 1px;
}

.auth-form label span {
  color: #777;
  font-size: 0.9rem;
}

.auth-form input,
.auth-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem;
  background: var(--bg-secondary);
  color: var(--site-accent);
  border: 1px solid var(--border-medium);
  border-radius: 0;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  letter-spacing: 1px;
}

.auth-form input:focus,
.auth-form textarea:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(var(--site-accent-rgb), 0.5);
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: #444;
}

.auth-form button[type="submit"],
.logout-btn {
  padding: 0.75rem 1.5rem;
  background: var(--site-accent);
  color: #000;
  border: 1px solid var(--border-medium);
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.25s;
}

.auth-form button[type="submit"]:hover:not(:disabled),
.logout-btn:hover:not(:disabled) {
  background: #000;
  color: var(--site-accent);
  box-shadow: 0 0 15px var(--site-accent);
}

.auth-form button[type="submit"]:disabled,
.logout-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* --- Password-change fieldset ---
   Without explicit styling a <fieldset> renders with default browser
   chrome (grey groove border, light background) inside the dark theme. */
.pw-fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.9rem;
  border: 1px dashed rgba(var(--site-accent-rgb), 0.5);
}

.pw-fieldset legend {
  padding: 0 0.4rem;
  color: var(--site-accent);
  font-size: 1rem;
  letter-spacing: 1px;
}

.pw-fieldset legend span {
  color: #777;
  font-size: 0.85rem;
}

/* --- Logged-in header --- */
.profile-header {
  text-align: center;
}

.profile-avatar {
  font-size: 44px;
  line-height: 1;
  display: block;
}

.profile-header h2 {
  margin: 0.4rem 0 0.2rem;
  color: var(--site-accent);
  font-size: 1.6rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--site-accent);
}

.profile-meta {
  margin: 0;
  color: #777;
  font-size: 0.95rem;
}

.logout-btn {
  background: transparent;
  color: var(--err);
  border-color: var(--err);
}

.logout-btn:hover:not(:disabled) {
  background: var(--err);
  color: #000;
  box-shadow: 0 0 15px var(--err);
}

/* --- Inline status text --- */
.form-status {
  margin: 0;
  min-height: 1.1em;
  font-size: 1rem;
  letter-spacing: 1px;
}

.form-status.success { color: var(--ok); }
.form-status.error   { color: var(--err); }
.form-status.info    { color: var(--info); }

/* --- Checkbox rows ---
   Keeps the box inline with its label instead of stretching full width. */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--site-accent);
  width: auto;
  margin: 0;
}

/* --- Avatar upload --- */
.avatar-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.avatar-section input[type="file"] {
  font-size: 0.9rem;
  color: #aaa;
}

.field-hint {
  color: #777;
  font-size: 0.8rem;
}

.avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--site-accent);
  display: block;
  margin: 0 auto 0.5rem;
}

/* --- Gender radios --- */
.gender-fieldset {
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
}

.gender-fieldset legend {
  color: var(--site-accent);
  font-size: 0.9rem;
  padding: 0 0.5rem;
}

.radio-label {
  display: inline-block;
  margin-right: 1rem;
  cursor: pointer;
  color: #ddd;
  font-size: 0.95rem;
}

.radio-label input[type="radio"] {
  accent-color: var(--site-accent);
  margin-right: 0.35rem;
}


/* --- Background image upload --- */
.bg-upload-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.bg-upload-section input[type="file"] {
  font-size: 0.9rem;
  color: #aaa;
}

/* --- Slideshow settings --- */
.slideshow-settings {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px dashed rgba(var(--site-accent-rgb), 0.4);
}

.slideshow-settings label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--site-accent);
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.slideshow-settings input[type="number"] {
  width: 100px;
  padding: 0.7rem;
  background: var(--bg-secondary);
  color: var(--site-accent);
  border: 1px solid var(--border-medium);
  font-family: 'VT323', monospace;
  font-size: 1rem;
}

/* ==========================================================================
   16. CRT EFFECTS & ANIMATIONS
   ========================================================================== */

/* Full-viewport scanline wash. pointer-events: none is essential —
   without it this overlay swallows every click on the page. */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 990;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 2px
  );
}

/* Soft inner glow, tinted by the accent */
.crt-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 989;
  box-shadow: inset 0 0 100px rgba(var(--site-accent-rgb), 0.05);
}

/* --- Channel switch buttons (live / focus) --- */
.channel-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-btn {
  min-height: 42px;
  padding: 8px 18px;
  border: 2px solid;
  border-radius: 6px;
  color: #fff;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}

.channel-btn:hover {
  transform: scale(1.04);
}

.live-btn {
  color: #baff9a;
  background: #123b16;
  border-color: #39ff14;
}

.live-btn.is-selected {
  animation: live-flash calc(var(--pulse-tempo, 7s) * 0.5) infinite;
  box-shadow: 0 0 12px #39ff14;
}

.focus-btn {
  color: #a8d9ff;
  background: #102b46;
  border-color: #168cff;
}

.focus-btn.is-selected {
  background: #124c7d;
  box-shadow: 0 0 12px #168cff;
}

@keyframes live-flash {
  50% { opacity: 0.55; }
}

/* ==========================================================================
   17. UTILITIES & LEGACY
   ========================================================================== */

/* Generic disabled state for any button */
button:disabled {
  background: #ccc;
  border-color: #bbb;
  color: #666;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Suppresses the blinking animation on a badge without hiding it */
.disabled-badge {
  animation: none !important;
  opacity: 0.4 !important;
}

/* Badges that double as buttons */
.stream-badge {
  font: inherit;
  cursor: pointer;
}

.stream-badge:disabled {
  cursor: not-allowed;
}

/* Channel picker (two-card variant) */
.channel-picker {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.channel-card {
  flex: 1;
  padding: 16px;
  color: inherit;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #666;
  text-align: left;
  cursor: pointer;
}

.channel-card strong,
.channel-card span {
  display: block;
}

.channel-card span {
  margin-top: 6px;
  font-size: 0.9em;
  opacity: 0.75;
}

.channel-card.active {
  border-color: var(--site-accent);
  box-shadow: 0 0 12px rgba(var(--site-accent-rgb), 0.35);
}

/* Red channel button variant */
.channel-btn.red-btn {
  background: #d91515;
  color: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 0 12px #ff3030;
}






/* --- Private chat: user list panel --- */
.private-user-panel {
  background: var(--panel-bg-strong);
  border-bottom: 1px solid var(--border-medium);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  max-height: 35%;
}

.private-search-box {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-medium);
}

.private-search-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 1rem;
  background: var(--bg-secondary);
  color: var(--site-accent);
  border: 1px solid var(--border-medium);
  font-family: 'VT323', monospace;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* DJ indicator badge */
.private-dj-indicator {
  padding: 0.5rem 1rem;
  background: rgba(182, 5, 137, 0.15);
  border-bottom: 1px solid #b60589;
  color: #ff9ad4;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'VT323', monospace;
}

/* User list */
.private-user-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--site-accent) #0a0a0a;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(var(--site-accent-rgb), 0.15);
  position: relative;
}

.user-item:hover {
  background: rgba(var(--site-accent-rgb), 0.15);
}

.user-item.active {
  background: rgba(var(--site-accent-rgb), 0.25);
  border-left: 4px solid var(--site-accent);
}

/* DJ user indicator */
.user-item.is-dj {
  border-left: 4px solid #b60589;
}

.user-item.is-dj::after {
  content: '🎤';
  margin-left: auto;
  opacity: 0.7;
}

.user-item.has-unread {
  background: rgba(var(--site-accent-rgb), 0.08);
}

.user-avatar,
.user-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111;
  border: 2px solid var(--site-accent);
  flex-shrink: 0;
}

.user-avatar {
  object-fit: cover;
}

.user-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--site-accent);
  font-size: 1.3rem;
}

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

.user-name {
  color: var(--site-accent);
  font-size: 1.05rem;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-last-msg {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}

.user-last-time {
  font-size: 0.75rem;
  opacity: 0.7;
}

.no-users-found {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.loading-users {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   PRIVATE THREAD BUBBLES
   --------------------------------------------------------------------------
   SCOPED to #private-messages. These rules previously used bare
   `.message.dj-host` / `.message.mine` selectors, so `float`, `max-width`
   and `margin-left` leaked into the public room: any DJ message got
   floated, shrank to fit, and the following message's background slid
   underneath it. Scoping raises specificity above `.message`, so the
   !important flags are no longer needed either.
   ========================================================================== */

#private-messages .message {
  clear: both;
  max-width: 75%;
  word-break: break-word;
}

#private-messages .message.mine {
  border-left: none;
  border-right: 3px solid var(--site-accent);
  background: rgba(var(--site-accent-rgb), 0.15);
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  float: right;
}

#private-messages .message.received {
  border-left: 3px solid var(--site-accent);
  border-right: none;
  background: rgba(0, 20, 0, 0.4);
  margin-right: auto;
  margin-left: 0;
  text-align: left;
  float: left;
}

#private-messages .message.dj-host {
  border-left: 3px solid #b60589;
  border-right: none;
  background: rgba(182, 5, 137, 0.22);
  margin-right: auto;
  margin-left: 0;
  text-align: left;
  float: left;
}

/* System notices span the full width, centred, never floated */
#private-messages .message.system {
  float: none;
  clear: both;
  max-width: 100%;
  margin: 0 auto 0.75rem;
  text-align: center;
}

#private-messages .message.mine .sender { display: none; }

#private-messages .message.mine .timestamp {
  float: left;
  margin: 0 0.5rem 0 0;
}

#private-messages .message.received .timestamp,
#private-messages .message.dj-host .timestamp {
  float: right;
  margin: 0 0 0 0.5rem;
}

/* Clearfix lives on the container, not on every .message globally */
#private-messages::after {
  content: '';
  display: table;
  clear: both;
}




/* --- Private chat main panel --- */
.private-main-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Conversation list view */
.private-list-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.private-header {
  padding: 1rem;
  background: var(--panel-bg-strong);
  border-bottom: 1px solid var(--border-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.private-header h3 {
  color: var(--site-accent);
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin: 0;
}

.private-status {
  color: var(--site-accent);
  font-size: 0.85rem;
  animation: blink calc(var(--pulse-tempo, 7s) * 0.75) infinite;
}

/* Search box */
.private-search-box {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-medium);
}

.private-search-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 1rem;
  background: var(--bg-secondary);
  color: var(--site-accent);
  border: 1px solid var(--border-medium);
  font-family: 'VT323', monospace;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Section titles */
.private-section-title {
  padding: 0.5rem 1rem;
  background: rgba(var(--site-accent-rgb), 0.05);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'VT323', monospace;
  border-bottom: 1px solid var(--border-subtle);
}

/* User/conversation lists */
.private-user-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--site-accent) #0a0a0a;
}

/* Conversation item card */
.conversation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(var(--site-accent-rgb), 0.15);
  position: relative;
}

.conversation-item:hover {
  background: rgba(var(--site-accent-rgb), 0.15);
}

.conversation-item.active {
  background: rgba(var(--site-accent-rgb), 0.25);
  border-left: 4px solid var(--site-accent);
}

.conversation-item.unread {
  background: rgba(var(--site-accent-rgb), 0.10);
}

/* User item (for searching/add new) */
.user-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(var(--site-accent-rgb), 0.15);
}

.user-item:hover {
  background: rgba(var(--site-accent-rgb), 0.15);
}

.user-item.is-dj::after {
  content: '🎤';
  margin-left: auto;
  opacity: 0.7;
}

.user-avatar,
.user-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111;
  border: 2px solid var(--site-accent);
  flex-shrink: 0;
}

.user-avatar {
  object-fit: cover;
}

.user-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--site-accent);
  font-size: 1.3rem;
}

.user-info,
.conversation-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  color: var(--site-accent);
  font-size: 1.05rem;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.conversation-name {
  color: var(--site-accent);
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-preview {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.conversation-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.unread-badge {
  background: var(--site-accent);
  color: #000;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  font-weight: bold;
}

/* Chat view (active conversation) */
.private-chat-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.private-chat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--panel-bg-strong);
  border-bottom: 1px solid var(--border-medium);
}

.back-btn {
  background: transparent;
  border: 1px solid var(--site-accent);
  color: var(--site-accent);
  padding: 0.5rem 1rem;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}

.back-btn:hover {
  background: var(--site-accent);
  color: #000;
}

.chat-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-info span {
  color: var(--site-accent);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.dj-badge {
  background: rgba(182, 5, 137, 0.2);
  color: #ff9ad4;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}



/* ==========================================================================
   18. LIVE MIX / DJ PRESENCE
   --------------------------------------------------------------------------
   script.js toggles two classes on <html>:

     .dj-online  → a DJ is on the site. Outline only.
     .dj-live    → a DJ is mixing. JS has already swapped the accent
                   variables inline, so the whole UI is pink by the time
                   these rules apply.

   .dj-live sits AFTER .dj-online on purpose: identical specificity, so
   source order decides the tie.
   ========================================================================== */

:root {
  --live-pink:     #ff2fa0;
  --live-pink-rgb: 255, 47, 160;
}

/* --- Tier 1: DJ online — outline only --- */
html.dj-online .player-wrapper {
  border: 2px solid var(--live-pink);
  box-shadow:
    0 0 30px rgba(var(--live-pink-rgb), 0.55),
    0 0 70px rgba(var(--live-pink-rgb), 0.22),
    inset 0 0 22px rgba(var(--live-pink-rgb), 0.10);
}

/* --- Tier 2: DJ mixing — pulsing outline --- */
html.dj-live .player-wrapper {
  border: 2px solid var(--live-pink);
  animation: live-pulse calc(var(--pulse-tempo, 7s) * 0.75) ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% {
    box-shadow:
      0 0 30px rgba(var(--live-pink-rgb), 0.55),
      0 0 70px rgba(var(--live-pink-rgb), 0.25),
      inset 0 0 22px rgba(var(--live-pink-rgb), 0.10);
  }
  50% {
    box-shadow:
      0 0 44px rgba(var(--live-pink-rgb), 0.85),
      0 0 100px rgba(var(--live-pink-rgb), 0.35),
      inset 0 0 26px rgba(var(--live-pink-rgb), 0.16);
  }
}

/* --- "ON AIR" chip ---
   Plain display toggling, not [hidden]: the global
   [hidden]{display:none!important} rule would beat this. */


/* --- DJ's own profile toggle --- */
.dj-live-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem;
  border: 1px dashed var(--border-medium);
}

.dj-live-toggle .checkbox-label {
  color: var(--site-accent);
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.dj-live-toggle input[type="checkbox"] {
  accent-color: var(--live-pink);
}

/* --- Live markers in the private-chat lists ---
   Must sit AFTER the .is-dj blocks in section 14 to win those ties. */
.user-item.is-live .user-name,
.conversation-item.is-live .conversation-name {
  color: var(--live-pink);
}

.user-item.is-live .user-avatar,
.user-item.is-live .user-avatar-placeholder,
.conversation-item.is-live .user-avatar,
.conversation-item.is-live .user-avatar-placeholder {
  border-color: var(--live-pink);
  box-shadow: 0 0 8px rgba(var(--live-pink-rgb), 0.5);
}

.user-item.is-live::after {
  content: '● LIVE';
  margin-left: auto;
  color: var(--live-pink);
  font-size: 0.7rem;
  letter-spacing: 1px;
}
/* ==========================================================================
   IMAGE LIGHTBOX — TERMINAL WINDOW
   ========================================================================== */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.image-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.image-lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: min(92vw, 1000px);
  max-height: 88vh;
  border: 2px solid var(--site-accent);
  border-radius: 4px;
  background: rgba(13, 13, 13, 0.985);
  overflow: hidden;
  font-family: 'VT323', monospace;
  box-shadow:
    0 0 0 1px rgba(var(--site-accent-rgb), 0.25),
    0 0 45px rgba(var(--site-accent-rgb), 0.35),
    inset 0 0 70px rgba(var(--site-accent-rgb), 0.05);
}

/* --- Title bar --- */
.image-lightbox-inner::before {
  content: "▚ " attr(data-title);
  flex: 0 0 auto;
  padding: 0.45rem 3.2rem 0.45rem 0.9rem;
  background: linear-gradient(var(--panel-bg-strong), rgba(0, 0, 0, 0.9));
  border-bottom: 1px solid var(--border-medium);
  color: var(--site-accent);
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Scanline wash over the whole window --- */
.image-lightbox-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.30) 3px
  );
}

.image-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 46px);
  object-fit: contain;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

/* --- Close button, styled as a window control --- */
.image-lightbox-close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 10;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--site-accent);
  border-radius: 4px;
  color: var(--site-accent);
  font-family: 'VT323', monospace;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.image-lightbox-close:hover {
  background: var(--site-accent);
  border-color: var(--site-accent);
  color: #000;
  transform: scale(1.08);
}


.image-lightbox.active .image-lightbox-img {
  animation: zoom-in 0.25s ease-out;
}

@keyframes zoom-in {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

@media (max-width: 640px) {
  .image-lightbox-inner        { max-width: 94vw; max-height: 84vh; }
  .image-lightbox-inner::before{ font-size: 0.95rem; letter-spacing: 1px; }
  .image-lightbox-img          { max-height: calc(84vh - 44px); }
  .image-lightbox-close        { width: 27px; height: 27px; font-size: 1.2rem; }
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox.active {
  visibility: visible;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: scale(1.1);
}

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(var(--site-accent-rgb), 0.3);
  transition: transform 0.2s;
}

.lightbox.active .lightbox-img {
  animation: zoom-in 0.25s ease-out;
}

@keyframes zoom-in {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }
}

/* === SMOOTHER CROSS-FADE TRANSITIONS === */
/* Fade layer lives INSIDE .hero, so it's clipped to the hero box.
   z-index: -1 puts it above the hero's own background but below the
   heading, tagline and player. */
.hero-fade-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;

  /* Must mirror .hero exactly or the two won't line up mid-fade */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  transition-property: opacity;
  transition-timing-function: ease-in-out;
  will-change: opacity;
}

/* === BG SLIDESHOW BUTTON - YELLOW STYLING === */
/* --- ON: solid orange with slow pulse --- */
/* --- ON: solid orange with slow pulse --- */
.bg-slideshow-toggle.active {
  background: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #000 !important;
  animation: pulse-glow-orange var(--pulse-tempo, 7s) infinite;
}

@keyframes pulse-glow-orange {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 140, 0, 0.55); }
  50%      { box-shadow: 0 0 32px rgba(255, 140, 0, 0.90); }
}

@keyframes pulse-glow-yellow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
  50%      { box-shadow: 0 0 40px rgba(255, 193, 7, 0.85); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .bg-slideshow-toggle {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
}

/* === CHAT BUBBLE SPACING === */
.messages-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem;           /* More padding overall */
  background: rgba(0, 10, 0, 0.7);
  scrollbar-width: thin;
  scrollbar-color: var(--site-accent) #0a0a0a;
}

/* Add spacing between individual messages */
.message {
  position: relative;
  margin-bottom: 1.5rem;     /* Increased from 0.75rem for more breathing room */
  padding: 0.75rem;          /* Slightly more internal padding too */
  border-left: 2px solid var(--site-accent);
  background: rgba(0, 20, 0, 0.4);
  word-break: break-word;
}

/* Extra space for private chat bubbles specifically */
#private-messages .message {
  margin-bottom: 2rem;       /* Even more space in private threads */
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.image-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.image-lightbox-inner {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.image-lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.6);
}


.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  transform: scale(1.1);
}

/* ==========================================================================
   BACKGROUND SLIDESHOW TOGGLE — AUTHORITATIVE DEFINITION
   Keep this block LAST in style.css and delete every other
   .bg-slideshow-toggle rule, or they will fight this one.
   ========================================================================== */

.bg-slideshow-toggle {
  position: fixed !important;
  left: calc(20px + env(safe-area-inset-left, 0px)) !important;
  bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  top: auto !important;
  right: auto !important;

  width: 62px !important;
  height: 62px !important;
  border-radius: 50% !important;
  padding: 0 !important;

  background: #ff8c00 !important;      /* solid orange, idle */
  color: #000 !important;
  border: 2px solid #ff8c00 !important;

  font-size: 1.7rem !important;
  line-height: 1 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;

  box-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background 0.25s ease, border-color 0.25s ease;
}

.bg-slideshow-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 0 26px rgba(255, 140, 0, 0.9);
}

.bg-slideshow-toggle:active { transform: scale(0.96); }

.bg-slideshow-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}



@keyframes pulse-glow-yellow {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 198, 0, 0.55); }
  50%      { box-shadow: 0 0 32px rgba(255, 216, 49, 0.90); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-slideshow-toggle.active { animation: none; }
}

@media (max-width: 768px) {
  .bg-slideshow-toggle {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.5rem !important;
    left: calc(16px + env(safe-area-inset-left, 0px)) !important;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Prevent audio element from forcing scroll on focus */
#stream-player:focus {
  outline: none;
}

html {
  scroll-behavior: auto;   /* disables smooth scroll on programmatic focus */
}
.mix-choice[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


/* Live reactions bar — hidden until DJ goes live */
#live-reactions {
  display: none;
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(var(--live-pink-rgb), 0.12);
  border: 1px dashed var(--live-pink);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

html.dj-live #live-reactions {
  display: block;
}

.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.reaction-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--live-pink);
  background: rgba(var(--live-pink-rgb), 0.08);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  z-index: 2;
}

.reaction-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(var(--live-pink-rgb), 0.7);
  background: var(--live-pink);
}

.reaction-count {
  margin-left: auto;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--live-pink);
  letter-spacing: 1px;
}

/* Emoji burst physics layer */
#burst-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.burst-emoji {
  position: absolute;
  font-size: 1.4rem;
  animation: burst-fly 1.2s forwards cubic-bezier(.6,-0.28,.735,.045);
  filter: drop-shadow(0 0 8px var(--live-pink));
  opacity: 1;
}

@keyframes burst-fly {
  0% {
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(1.8) rotate(var(--rot));
    opacity: 0;
  }
}

/* Cooldown state for live reactions */
#live-reactions.cooling .reaction-btn {
  opacity: .35;
  pointer-events: none;
  filter: grayscale(.6);
}

.reaction-cooldown {
  margin-left: .5rem;
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  color: var(--live-pink);
  letter-spacing: 1px;
}

/* ========== LEADERBOARD MODAL ========== */
#reaction-leaderboard.modal-dialog {
  z-index: 999 !important;
  max-width: 400px;
}

/* Reaction bar MUST be above modal so clicks work */
#live-reactions {
  z-index: 10000 !important;
  pointer-events: auto !important;
}

#live-reactions .reaction-btn {
  pointer-events: auto !important;
}

/* Ensure burst layer also sits above modal */
#burst-layer {
  z-index: 10001 !important;
  pointer-events: none !important;
}

/* ========== LEADERBOARD MODAL CENTERING ========== */
#reaction-leaderboard.modal-dialog {
  z-index: 999 !important;
  max-width: 400px;
  margin: auto;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Make dialog overlay fill viewport */
#reaction-leaderboard::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

/* ========== LEADERBOARD MODAL — NO BLACKOUT ========== */
#reaction-leaderboard.modal-dialog {
  /* Viewport-centered, not trapped inside .player-wrapper */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: auto;
  
  width: min(90vw, 400px);
  max-width: 400px;
  max-height: 70vh;
  overflow-y: auto;

  /* Dark theme, NOT blacked out */
  background: #0d0d0d;
  border: 2px solid var(--live-pink);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'VT323', monospace;
  box-shadow: 0 0 40px rgba(var(--live-pink-rgb), 0.35);
}

/* NO BACKDROP BLACKOUT — make it transparent */
#reaction-leaderboard::backdrop {
  background: transparent;
}

#reaction-leaderboard .modal-content {
  display: flex;
  flex-direction: column;
}

#reaction-leaderboard .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(var(--live-pink-rgb), 0.4);
}

#reaction-leaderboard .modal-title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--live-pink);
}

#reaction-leaderboard .modal-close {
  background: transparent;
  border: 1px solid var(--live-pink);
  color: var(--live-pink);
  width: 28px;
  height: 28px;
  cursor: pointer;
}

#reaction-leaderboard .modal-close:hover {
  background: var(--live-pink);
  color: #000;
}

#reaction-leaderboard .modal-body {
  padding: 0.5rem 1rem;
}

#reaction-leaderboard .modal-footer {
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(var(--live-pink-rgb), 0.25);
  color: var(--text-muted);
  text-align: right;
  font-size: 0.85rem;
}

.leaderboard-list {
  max-height: 45vh;
  overflow-y: auto;
}

.reaction-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(var(--live-pink-rgb), 0.15);
}

.reaction-item:last-child {
  border-bottom: none;
}

.reaction-emoji {
  font-size: 1.4rem;
}

.reaction-user {
  flex: 1;
  font-size: 0.95rem;
}

.reaction-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.loading-reactions {
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ========== LEADERBOARD MODAL — NO BLACKOUT ========== */
#reaction-leaderboard.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: auto;
  
  width: min(90vw, 400px);
  max-width: 400px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0;

  background: #0d0d0d;
  border: 2px solid var(--live-pink);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'VT323', monospace;
  box-shadow: 0 0 40px rgba(var(--live-pink-rgb), 0.35);
  z-index: 9999;
}

#reaction-leaderboard::backdrop {
  background: transparent !important;
}

#reaction-leaderboard .modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#reaction-leaderboard .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(var(--live-pink-rgb), 0.4);
}

#reaction-leaderboard .modal-title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--live-pink);
}

#reaction-leaderboard .modal-close {
  background: transparent;
  border: 1px solid var(--live-pink);
  color: var(--live-pink);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1.1rem;
}

#reaction-leaderboard .modal-close:hover {
  background: var(--live-pink);
  color: #000;
}

#reaction-leaderboard .modal-body {
  padding: 0.5rem 1rem;
  flex: 1;
  overflow-y: auto;
}

#reaction-leaderboard .modal-footer {
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(var(--live-pink-rgb), 0.25);
  color: var(--text-muted);
  text-align: right;
  font-size: 0.85rem;
}

.leaderboard-list {
  max-height: 45vh;
  overflow-y: auto;
}

.reaction-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(var(--live-pink-rgb), 0.15);
  font-size: 0.95rem;
}

.reaction-item:last-child {
  border-bottom: none;
}

.reaction-emoji {
  font-size: 1.4rem;
}

.reaction-user {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reaction-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.loading-reactions {
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.lb-total {
  padding: 0.4rem 0;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(var(--live-pink-rgb), 0.4);
  color: var(--live-pink);
  letter-spacing: 2px;
  font-size: 1rem;
}

.reaction-count {
  font-size: 0.85rem;
  color: var(--live-pink);
  white-space: nowrap;
}

/* ========== LEADERBOARD — EMOJI GRID + RECENT LIST ========== */
.lb-total {
  padding: 0.6rem 0;
  margin-bottom: 0.3rem;
  border-bottom: 2px solid var(--live-pink);
  color: var(--live-pink);
  letter-spacing: 2px;
  font-size: 1.3rem;
  text-align: center;
}

.lb-subtotal {
  padding: 0.4rem 0;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* EMOJI STATISTICS GRID */
.lb-emoji-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(var(--live-pink-rgb), 0.3);
  margin-bottom: 0.5rem;
}

.emoji-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.25rem;
  background: rgba(var(--live-pink-rgb), 0.08);
  border-radius: 4px;
  opacity: 0.4;
  transition: all 0.2s ease;
}

.emoji-stat.active {
  opacity: 1;
  background: rgba(var(--live-pink-rgb), 0.2);
  box-shadow: 0 0 10px rgba(var(--live-pink-rgb), 0.3);
}

.emoji-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.emoji-count {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--live-pink);
}

.lb-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(var(--live-pink-rgb), 0.3), transparent);
  margin: 0.5rem 0;
}

.lb-section-title {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

/* RECENT ACTIVITY LIST */
.reaction-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(var(--live-pink-rgb), 0.1);
  font-size: 0.9rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.reaction-item:last-child {
  border-bottom: none;
}

.reaction-emoji {
  font-size: 1.3rem;
}

.reaction-user {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reaction-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.loading-reactions {
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.bk-page .page-hero h1 {
  font-size: clamp(6.4rem, 8.5vw, 5.5rem);
  letter-spacing: 4px;
  line-height: 1.05;
  word-break: break-word;
}

/* VIEW-ONCE ATTACHMENTS */
.message-attachment.view-once {
    position: relative;
    max-width: 200px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.message-attachment.view-once .vo-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    filter: blur(12px) grayscale(0.5);
    opacity: 0.6;
    display: block;
}

.message-attachment.view-once .vo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(13,13,13,0.9) 0%, rgba(13,13,13,0.75) 100%);
    z-index: 2;
}

.message-attachment.view-once .vo-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.message-attachment.view-once .vo-text {
    font-family: var(--font-stack, monospace);
    font-size: 14px;
    font-weight: bold;
    color: var(--site-accent, #ff2fa0);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.message-attachment.view-once .vo-hint {
    font-family: var(--font-stack, monospace);
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Preview badge styling */
.attachment-preview.view-once .vo-label {
    font-size: 10px;
    background: rgba(255, 47, 160, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    color: var(--site-accent, #ff2fa0);
}

.attachment-preview.permanent .vo-label {
    display: none;
}
/* ===== ONE-TIME ATTACHMENT PLACEHOLDER ===== */
.message-attachment.view-once {
    margin-top: 8px;
    max-width: 100%;
}
/* ===== ONE-TIME ATTACHMENT PLACEHOLDER ===== */
.message-attachment.view-once {
    margin-top: 6px;
    margin-bottom: 4px;
    display: inline-block;
}

.vo-card {
    /* Flexible size that fits narrow containers */
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;

    min-width: 150px;
    max-width: calc(100% - 16px);  /* ← Never exceed parent minus padding */
    width: fit-content;            /* ← Shrink to content if possible */
    padding: 10px 12px;
    box-sizing: border-box;

    border: 1px dashed var(--site-accent, #ff2fa0);
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, border-style 0.2s ease;

    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 6px,
        transparent 6px,
        transparent 12px
    );
}

.vo-card:hover {
    background: rgba(255, 47, 160, 0.08);
    border-style: solid;
}

.vo-card .vo-icon {
    font-size: 20px;
    line-height: 1;
}

.vo-card .vo-text {
    font-family: var(--font-stack, monospace);
    font-size: 10px;        /* ← Reduced further */
    font-weight: bold;
    letter-spacing: 0.8px;
    line-height: 1.2;
    color: var(--site-accent, #ff2fa0);
    text-align: center;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
}

.vo-card .vo-hint {
    font-family: var(--font-stack, monospace);
    font-size: 7px;         /* ← Reduced further */
    line-height: 1.3;
    letter-spacing: 0.3px;
    color: #888;
    text-align: center;
    max-width: 160px;
}

.message {
    max-width: 95% !important;
    width: auto !important;
    min-width: 220px;
}

/* ========== NOTIFICATION BUBBLE ========== */
.notification-bubble {
  position: relative;
  background: transparent;
  border: 2px solid var(--site-accent);
  color: var(--site-accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.25s ease;
  margin-left: 1rem;
}

.notification-bubble:hover {
  background: rgba(var(--site-accent-rgb), 0.12);
  box-shadow: 0 0 20px rgba(var(--site-accent-rgb), 0.5);
  transform: scale(1.05);
}

.notification-bubble.has-unread {
  animation: pulse-badge calc(var(--pulse-tempo, 7s) * 0.75) infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 15px rgba(var(--site-accent-rgb), 0.4); }
  50% { box-shadow: 0 0 30px rgba(var(--site-accent-rgb), 0.8); }
}

.unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--site-accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  border: 2px solid #0d0d0d;
}

/* Notification panel dropdown */
.notification-panel {
  position: absolute;
  top: 65px;
  right: 20px;
  width: 350px;
  max-height: 500px;
  background: #0d0d0d;
  border: 2px solid var(--site-accent);
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(var(--site-accent-rgb), 0.35);
  z-index: 2000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.notification-panel.active {
  display: flex;
}

.notification-panel-header {
  padding: 1rem;
  background: var(--panel-bg-strong);
  border-bottom: 1px solid var(--border-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-panel-header h3 {
  margin: 0;
  color: var(--site-accent);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.notification-panel-close {
  background: transparent;
  border: none;
  color: var(--site-accent);
  font-size: 1.5rem;
  cursor: pointer;
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}

.notification-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s ease;
}

.notification-item:hover {
  background: rgba(var(--site-accent-rgb), 0.08);
}

.notification-item.unread {
  background: rgba(var(--site-accent-rgb), 0.12);
  border-left: 3px solid var(--site-accent);
}

.notification-item.priority-high {
  border-left: 3px solid var(--site-accent);
  background: rgba(var(--site-accent-rgb), 0.15);
}

.notification-item-content {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.notification-item-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-item-mark-read {
  background: transparent;
  border: 1px solid var(--site-accent);
  color: var(--site-accent);
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.notification-item-mark-read:hover {
  background: var(--site-accent);
  color: #000;
}

.empty-notifications {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .notification-panel {
    width: calc(100vw - 40px);
    right: 20px;
  }
  
  .notification-bubble {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

.main-header nav a {
  white-space: nowrap;   /* never break INSIDE a link */
}

.main-header nav {
  flex-wrap: wrap;       /* wrap BETWEEN links instead */
  row-gap: 0.25rem;
}

/* ===== MAGENTA TAB BAR ===== */
#site-tabs {
  position: sticky;
  top: 0;                /* or below header if header stays sticky: top: 65px */
  z-index: 98;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: #17050f;   /* near-black with magenta blood */
  border-bottom: 1px solid rgba(255, 47, 160, 0.6);
  box-shadow: 0 0 18px rgba(255, 47, 160, 0.15);
}

.tab-launcher {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid #ff2fa0;
  color: #ff2fa0;
  font-family: 'VT323', monospace;
  letter-spacing: 2px;
  padding: 0.3rem 1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.18s ease;
}
.tab-launcher:hover {
  background: #ff2fa0;
  color: #000;
  box-shadow: 0 0 16px rgba(255, 47, 160, 0.55);
}

/* everything INSIDE the bar themes magenta, green stays untouched elsewhere */
#site-tabs .site-tab,
#site-tabs .tab-add {
  border-color: rgba(255, 47, 160, 0.5);
  color: #ff2fa0;
}
#site-tabs .site-tab.active {
  background: rgba(255, 47, 160, 0.15);
  border-color: #ff2fa0;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 47, 160, 0.35);
}
#site-tabs .mini-player-pill {
  border-color: rgba(255, 47, 160, 0.5);
  color: #ff2fa0;
}

/* launcher hides once any tab is open */
#site-tabs.has-tabs .launcher-zone {
  display: none;
}

/* optional: graceful collapse of the zone when it does hide */
.launcher-zone {
  transition: opacity 0.15s ease;
}

/* ===== MAGENTA TAB BAR — height discipline ===== */
#site-tabs {
  display: flex;
  flex-wrap: wrap;          /* lets panes drop to row 2 */
  align-items: center;      /* NOT stretch — this caused the giants */
  height: auto;
         /* hard cap: launcher/tabs/add stay bar-sized */
  overflow: visible;
}

/* strip and launcher live on row 1 */
#site-tabs .launcher-zone,
#site-tabs .tabstrip {
  display: flex;
  flex-direction: row;      /* tabs horizontal again */
  align-items: center;
  gap: 0.4rem;
  height: 40px;
}

/* every button in the bar gets a sane fixed height */
#site-tabs .tab-launcher,

#site-tabs .site-tab,
#site-tabs .tab-add,
#site-tabs .mini-player-pill,
#site-tabs .tab-overflow {
  height: 32px;
  align-self: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* panes take the ENTIRE second row, below the bar */
#site-tabs #tab-panes {
  flex: 0 0 100%;           /* full-width force-wrap to row 2 */
  width: 100%;
  height: auto;             /* panes size themselves, e.g. calc(100vh - bar) */
}
#site-tabs #tab-panes .tab-pane-ext {
  height: calc(100vh - 140px);  /* tune: viewport minus header + bar */
}

#site-tabs.has-tabs > .tab-launcher {
 
  display: none;
}

#site-tabs .tab-launcher {
  overflow: visible;          /* tooltip can breathe again */
}

#site-tabs .tab-launcher .tab-label {
  overflow: hidden;
  text-overflow: ellipsis;    /* label still truncates gracefully */
}



/* ===== hidden-attribute discipline (fix 2026-11-10) =====
   display:flex above was defeating [hidden] on the collapsed strip —
   RADIO tab and + button leaked beside the launcher. UA default loses
   to author rules, so we re-enforce it at matching+ specificity. */
#site-tabs .tabstrip[hidden] { display: none; }
#site-tabs .mini-player-pill[hidden] { display: none; }
#site-tabs .tab-panes:empty { display: none; }
/* ==== CASEFILE 158 — custody player UI (2026-11-10) ==== */
.vinyl-unload { border-color: #00ffff; color: #00ffff; }
.vinyl-unload:hover { background: #00ffff; color: #000; box-shadow: 0 0 18px rgba(0,255,255,0.6); }
#custody-rail { padding: 10px 14px; border-top: 1px solid var(--border-subtle); max-height: 220px; overflow-y: auto; }
.custody-head { color: var(--site-accent); letter-spacing: 2px; margin-bottom: 8px; font-size: 1.05rem; }
.custody-row { display: flex; gap: 10px; padding: 6px 8px; cursor: pointer; border-bottom: 1px solid rgba(var(--site-accent-rgb), 0.1); }
.custody-row:hover { background: rgba(var(--site-accent-rgb), 0.1); }
.custody-row.custody-now { background: rgba(var(--site-accent-rgb), 0.16); box-shadow: inset 3px 0 0 var(--site-accent); }
.custody-row .c-no { color: var(--site-accent); min-width: 2ch; }
.custody-row .c-title { color: var(--fg-light, #e0e0e0); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custody-row .c-art { color: #888; font-size: 0.9em; max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==== [PULSE-TEMPO] the site's resting heart-rate ==== */
/* Master dial for every ambient pulse on the site. 4s = calm breathing tempo.
   TODO (ledger): hook this var to the admin page — settings slider, writes to
   :root via JS (document.documentElement.style.setProperty('--pulse-tempo', v)).
   Multipliers preserve each element's relative character (badge vs glow vs dot). */
:root { --pulse-tempo: 7s; }

/* ==== [BREATH-GLOW] .player-wrapper inhales/exhales magenta light ====
      7s cycle via the pulse-tempo dial (admin slider hook pending).
      Preserves the ambient dark drop-shadow; the pink glow swells softly. ==== */
.player-wrapper {
  animation: breath-glow var(--pulse-tempo, 7s) ease-in-out infinite;
}
@keyframes breath-glow {
  0%, 100% {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45),
                0 0 10px rgba(255, 47, 160, 0.25),
                0 0 26px rgba(255, 47, 160, 0.12);
  }
  50% {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45),
                0 0 22px rgba(255, 47, 160, 0.60),
                0 0 52px rgba(255, 47, 160, 0.32);
  }
}

/* ==== [BREATH-RGB] the breath follows the accent — no hard-coded color ====
      Old breath-glow keyframes above are superseded by this later definition.
      States (all via --site-accent-rgb, which JS swaps per mode):
        offline + todays mix + dj-live → whatever the accent is (green/purple/pink)
      dj-live keeps its elder live-pulse (higher specificity wins there). ==== */
.player-wrapper {
  --breath-rgb: var(--site-accent-rgb, 0, 255, 0);
  animation: breath-glow var(--pulse-tempo, 7s) ease-in-out infinite;
}
@keyframes breath-glow {
  0%, 100% {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45),
                0 0 10px rgba(var(--breath-rgb), 0.25),
                0 0 26px rgba(var(--breath-rgb), 0.12);
  }
  50% {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45),
                0 0 22px rgba(var(--breath-rgb), 0.60),
                0 0 52px rgba(var(--breath-rgb), 0.32);
  }
}

/* ==== [BREATH-GATE] the breath sleeps offline, magenta while a DJ breathes ====
      Decision on the record: no breath when nobody's online (static dark shell).
      While online, magenta across ALL modes (todays mix / avantida mix / live)
      — pinned to --live-pink-rgb, NOT the accent. Later append supersedes
      both the BREATH-RGB default and the elder live-pulse (source order). ==== */
.player-wrapper {
  animation: none;
}
html.dj-online .player-wrapper,
html.dj-live .player-wrapper {
  --breath-rgb: var(--live-pink-rgb, 255, 47, 160);
  animation: breath-glow var(--pulse-tempo, 7s) ease-in-out infinite;
}

/* ==== [PUBLIC-BELL] anonymous event panel ==== */
.pub-bell-panel { position: fixed; right: 18px; bottom: 84px; z-index: 9999; background: rgba(13,13,13,.97); border: 1px solid var(--site-accent, #00ff00); padding: 10px 12px; max-width: 320px; }
.pub-bell-head { color: var(--site-accent, #00ff00); font-size: .85rem; letter-spacing: .08em; margin-bottom: 6px; }
.pub-bell-item { display: block; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.08); }
.pub-bell-msg { display: block; color: #e0e0e0; font-size: .9rem; white-space: pre-wrap; }
.pub-bell-time { display: block; color: #888; font-size: .75rem; margin-top: 2px; }
.pub-bell-empty { color: #888; font-size: .85rem; }
