/* ==========================================================================
   BITR | Soft Club Architecture & Single-Screen Luminous Audio Deck
   Source Reference: 1036602039306117536.jpg ("SOFT CLUB 002")
   Palette: Luminous Ice-Blue Mist (#EEF7FF), Deep Ultramarine & Cobalt Ink (#0038B8)
   Typography: Lowercase Geometric Space Grotesk
   Borders & Details: Soft Squircle Photographic Apertures, Iridescent CD Disc,
   Barcode Glyphs, Starburst Reticles, and Screen-Printed Transport Hardware
   ========================================================================== */

:root {
  --bg-canvas: #f0f7ff;
  --bg-surface: #ffffff;
  --bg-surface-frosted: rgba(255, 255, 255, 0.85);
  --bg-pill: rgba(0, 56, 184, 0.08);

  --color-cobalt: #0038b8;
  --color-cobalt-dark: #002379;
  --color-ink-title: #002b80;
  --color-sky: #93c5fd;
  --color-cyan: #38bdf8;
  --color-ice: #e1effe;

  --border-cobalt: rgba(0, 56, 184, 0.35);
  --border-cobalt-subtle: rgba(0, 56, 184, 0.16);
  --border-hairline: rgba(0, 56, 184, 0.12);

  --text-primary: #002776;
  --text-secondary: rgba(0, 39, 118, 0.72);
  --text-dim: rgba(0, 39, 118, 0.45);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Syncopate', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-drawer: cubic-bezier(0.16, 1, 0.3, 1);
  --disc-rot: 45deg;
}

/* ==========================================================================
   CURATED TYPOGRAPHY PAIRINGS SYSTEM
   ========================================================================== */
body.font-softclub,
body:not(.font-console):not(.font-brutalist) {
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Syncopate', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

body.font-console {
  --font-display: 'Sora', sans-serif;
  --font-brand: 'Michroma', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

body.font-brutalist {
  --font-display: 'Space Grotesk', sans-serif;
  --font-brand: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

/* Global Precision Theme Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 56, 184, 0.32) transparent;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 56, 184, 0.28);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: background-color 160ms ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-cobalt);
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  background-color: #eef7ff;
}

body.softclub-theme {
  background:
    radial-gradient(ellipse 65% 55% at 20% 25%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 80% 60% at 85% 75%, #bfe3fb 0%, rgba(191, 227, 251, 0) 70%),
    linear-gradient(135deg, #f0f7ff 0%, #e1effe 45%, #c8e4fc 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: url('../assets/cursors/softclub-crosshair.svg') 9 9, crosshair;
}

button, a, .tab-item, .album-cover-aperture, .strip-item, .waveform-scrubber, .vol-control, .scrubber-style-toggle, .cd-disc, .member-oled-card, .btn-sidecar-open, .sidecar-dock-tab, .btn-theme-toggle, .btn-floating-toggle, .dock-member-item, .dock-svg-link {
  cursor: url('../assets/cursors/softclub-pointer.svg') 2 2, pointer;
}

/* ==========================================================================
   TOP NAVIGATION
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 247, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-hairline);
  transition: opacity 800ms ease, background-color 200ms ease, border-color 200ms ease;
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-left-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-sidecar-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-cobalt-subtle);
  background: rgba(0, 56, 184, 0.06);
  color: var(--color-cobalt);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms, border-color 140ms;
}

.btn-sidecar-open:hover {
  background: rgba(0, 56, 184, 0.12);
  border-color: var(--color-cobalt);
  transform: translateY(-1px);
}

.btn-sidecar-open:active {
  transform: scale(0.97);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.brand-dots {
  display: inline-flex;
  gap: 4px;
}
.brand-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cobalt);
}

.brand-text {
  font-family: var(--font-brand, inherit) !important;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--color-cobalt);
}

.brand-barcode {
  display: flex;
  gap: 2px;
  height: 14px;
  align-items: stretch;
  opacity: 0.75;
}
.brand-barcode span {
  background: var(--color-cobalt);
  width: 2px;
}
.brand-barcode span.thick {
  width: 4px;
}

.nav-right-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-font-toggle {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-cobalt);
  background: rgba(0, 56, 184, 0.06);
  border: 1px solid var(--border-cobalt-subtle);
  border-radius: 9999px;
  padding: 5px 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 140ms ease, background-color 140ms, border-color 140ms, color 140ms;
}

.btn-font-toggle:hover {
  background: rgba(0, 56, 184, 0.12);
  border-color: var(--color-cobalt);
  transform: translateY(-1px);
}

.btn-font-toggle:active {
  transform: scale(0.97);
}

.btn-font-toggle .font-pill-val {
  font-weight: 700;
  color: var(--color-cyan);
}

.btn-theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-cobalt-subtle);
  background: rgba(0, 56, 184, 0.05);
  color: var(--color-cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms, border-color 140ms, color 140ms;
}

.btn-theme-toggle:hover {
  background: rgba(0, 56, 184, 0.12);
  border-color: var(--color-cobalt);
  transform: rotate(15deg);
}

.btn-theme-toggle:active {
  transform: scale(0.95);
}

.btn-theme-toggle .icon-sun {
  display: none;
}
.btn-theme-toggle .icon-moon {
  display: block;
}

/* Starburst Reticle & Timecode */
.nav-status-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-starburst {
  width: 24px;
  height: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-starburst::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background: var(--color-cobalt);
}
.nav-starburst::after {
  content: '';
  position: absolute;
  height: 100%;
  width: 1px;
  background: var(--color-cobalt);
}
.nav-starburst span {
  width: 6px;
  height: 6px;
  background: var(--color-cobalt);
  transform: rotate(45deg);
  border-radius: 1px;
}

.nav-timecode {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-cobalt);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* ==========================================================================
   LEFT SIDECAR DRAWER & BACKDROP
   ========================================================================== */
.sidecar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 24, 70, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease-out);
}
.sidecar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sidecar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-right: 1px solid var(--border-cobalt-subtle);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 340ms var(--ease-drawer);
  display: flex;
  flex-direction: column;
  box-shadow: 20px 0 60px rgba(0, 39, 118, 0.14);
}
.sidecar-drawer.is-open {
  transform: translateX(0);
}

.sidecar-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidecar-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidecar-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cobalt);
  opacity: 0.75;
}

.sidecar-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-ink-title);
  text-transform: lowercase;
}

.sidecar-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-sidecar-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-cobalt-subtle);
  background: transparent;
  color: var(--color-cobalt);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 140ms, transform 140ms;
}
.btn-sidecar-close:hover {
  background: rgba(0, 56, 184, 0.08);
  transform: scale(1.05);
}

/* Liner Notes Tracklist Strip inside Sidecar */
.sidecar-drawer .tracklist-strip {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  margin: 0;
  max-height: none;
  max-width: 100%;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .strip-item:hover {
    background: rgba(0, 56, 184, 0.06);
  }
}

.strip-item:active {
  transform: scale(0.98);
}

.strip-item.is-active {
  background: rgba(0, 56, 184, 0.1);
  border-color: rgba(0, 56, 184, 0.25);
}

.strip-item.is-dimmed {
  opacity: 0.22;
}

.strip-item.is-highlighted {
  opacity: 1;
  background: rgba(0, 56, 184, 0.08);
  border-color: rgba(0, 56, 184, 0.35);
}

.strip-idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-cobalt);
  min-width: 22px;
}

.strip-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-cobalt-subtle);
  display: block;
  flex-shrink: 0;
}

.strip-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.strip-name {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-ink-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: lowercase;
}

.strip-by {
  font-size: 0.72rem;
  color: var(--color-cobalt);
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: lowercase;
}

.strip-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-cobalt);
  opacity: 0.65;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
  padding-left: 8px;
  font-variant-numeric: tabular-nums;
}

.strip-item.is-active .strip-time {
  opacity: 1;
  font-weight: 600;
}

/* Sidecar Audio Transport Unit */
.sidecar-player-unit {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border-hairline);
  background: rgba(240, 247, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.sidecar-track-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Squircle Creator PFP Aperture with Glass Sheen */
.album-cover-aperture {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-cobalt-subtle);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 43, 128, 0.1);
  position: relative;
  flex-shrink: 0;
  transition: transform 160ms var(--ease-out), box-shadow 160ms ease;
}

.album-cover-aperture:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 43, 128, 0.16);
}

.album-cover-aperture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Authentic Reflective Glass Diagonal Sheen */
.album-cover-aperture::after,
.cd-label::after,
.floating-art-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.22) 36%,
    rgba(255, 255, 255, 0) 48%,
    rgba(255, 255, 255, 0.12) 100%
  );
  pointer-events: none;
  border-radius: inherit;
  z-index: 5;
}

.sidecar-player-unit .player-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.sidecar-player-unit .track-title {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-ink-title);
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidecar-player-unit .track-artist {
  font-size: 0.8rem;
  color: var(--color-cobalt);
  opacity: 0.85;
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Waveform Scrubber */
.waveform-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.waveform-scrubber {
  position: relative;
  width: 100%;
  height: 36px;
  background: rgba(0, 56, 184, 0.05);
  border: 1px solid var(--border-cobalt-subtle);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.waveform-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.waveform-hover-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-cobalt);
  opacity: 0;
  pointer-events: none;
}

.waveform-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-cobalt);
  box-shadow: 0 0 8px rgba(0, 56, 184, 0.6);
  opacity: 0;
  pointer-events: none;
}

.waveform-scrubber:hover .waveform-hover-bar,
.waveform-scrubber:hover .waveform-thumb {
  opacity: 1;
}

.waveform-tooltip {
  position: absolute;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  background: var(--color-cobalt);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.waveform-scrubber:hover .waveform-tooltip {
  opacity: 1;
}

.scrub-times {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Transport & Volume Controls */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.transport-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-transport {
  background: transparent;
  border: 1px solid var(--border-cobalt);
  color: var(--color-cobalt);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-transport:hover {
    background: rgba(0, 56, 184, 0.08);
    border-color: var(--color-cobalt);
    transform: translateY(-1px);
  }
}

.btn-transport:active {
  transform: scale(0.95);
}

.btn-play-main {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-cobalt);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 56, 184, 0.35);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-play-main:hover {
    background: var(--color-cobalt-dark);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 56, 184, 0.45);
  }
}

.btn-play-main:active {
  transform: scale(0.95);
}

/* Rotary Volume Dial */
.vol-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 56, 184, 0.06);
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-cobalt-subtle);
  cursor: pointer;
  user-select: none;
}

.vol-wheel {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-cobalt);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 43, 128, 0.1);
}

.vol-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-cobalt);
  position: relative;
  transition: transform 60ms var(--ease-out);
}

.vol-knob.is-dragging {
  transition: none;
}

.vol-notch {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 4px;
  background: #ffffff;
  border-radius: 1px;
}

.vol-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.vol-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.vol-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-cobalt);
}

/* ==========================================================================
   PINNED LEFT DOCK TAB
   ========================================================================== */
.sidecar-dock-tab {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-cobalt-subtle);
  box-shadow: 0 4px 20px rgba(0, 43, 128, 0.1);
  color: var(--color-cobalt);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  cursor: pointer;
  transition: opacity 800ms ease, transform 200ms var(--ease-out), background-color 160ms, box-shadow 160ms;
}

.sidecar-dock-tab:hover {
  transform: translateY(-50%) translateX(3px);
  box-shadow: 0 8px 26px rgba(0, 43, 128, 0.16);
  background: #ffffff;
}

.sidecar-dock-tab:active {
  transform: translateY(-50%) scale(0.96);
}

/* ==========================================================================
   MAIN SINGLE-SCREEN STAGE & OPTICAL CD DISC
   ========================================================================== */
.main-stage.single-screen {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px 20px 140px;
  overflow: hidden;
}

.hero-centerpiece {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.cd-deck-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cd-case {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-glare {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(
    circle at calc(50% - var(--tilt-x, 0) * 35%) calc(50% - var(--tilt-y, 0) * 35%),
    rgba(255, 255, 255, 0.55) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 10;
}

/* Iridescent 360° CD Disc */
.cd-disc {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 50% 50%, #f8fafc 0%, #e2e8f0 16%, #cbd5e1 22%, transparent 24%),
    conic-gradient(
      from var(--disc-rot, 45deg),
      #f1f5f9 0deg,
      #dbeafe 35deg,
      #93c5fd 65deg,
      #60a5fa 95deg,
      #e0e7ff 130deg,
      #f1f5f9 180deg,
      #c7d2fe 215deg,
      #38bdf8 260deg,
      #93c5fd 300deg,
      #f8fafc 340deg,
      #f1f5f9 360deg
    );
  box-shadow:
    0 28px 70px rgba(0, 43, 128, 0.2),
    0 6px 20px rgba(0, 43, 128, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: none !important;
  will-change: transform;
}

.cd-disc:active,
.cd-disc.is-scratching {
  cursor: grabbing !important;
}

.cd-grooves {
  position: absolute;
  inset: 16%;
  border-radius: 50% !important;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.cd-label {
  position: absolute;
  width: 124px;
  height: 124px;
  border-radius: 50% !important;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.95);
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cd-label-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% !important;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.cd-center-hole {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50% !important;
  background: #dbeafe;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

/* ==========================================================================
   FLOATING NOW PLAYING SONG TITLE CARD
   ========================================================================== */
.floating-now-playing {
  position: fixed;
  top: 100px;
  left: 80px;
  z-index: 80;
  user-select: none;
  will-change: transform;
  touch-action: none;
}

.floating-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 10px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-cobalt-subtle);
  border-radius: 18px;
  box-shadow:
    0 12px 36px rgba(0, 43, 128, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  cursor: grab;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.floating-card-inner:hover {
  border-color: var(--border-cobalt);
  box-shadow: 0 16px 44px rgba(0, 43, 128, 0.16);
}

.floating-card-inner:active {
  cursor: grabbing;
}

.floating-art-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-cobalt-subtle);
}

.floating-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-eq {
  position: absolute;
  inset: 0;
  background: rgba(0, 35, 121, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 8px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.floating-eq.is-playing {
  opacity: 1;
}

.floating-eq span {
  width: 3px;
  background: #ffffff;
  border-radius: 2px;
  animation: eqJump 0.8s ease-in-out infinite alternate;
}

.floating-eq span:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.floating-eq span:nth-child(2) { height: 18px; animation-delay: 0.3s; }
.floating-eq span:nth-child(3) { height: 12px; animation-delay: 0.2s; }

@keyframes eqJump {
  0% { height: 4px; }
  100% { height: 20px; }
}

.floating-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 100px;
  max-width: 200px;
}

.floating-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cobalt);
  opacity: 0.75;
  font-weight: 600;
}

.floating-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: lowercase;
  line-height: 1.2;
}

.floating-artist {
  font-family: var(--font-display);
  font-size: 0.74rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: lowercase;
  line-height: 1.1;
}

.btn-floating-toggle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-cobalt);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 56, 184, 0.3);
  transition: transform 140ms ease, background-color 140ms;
}

.btn-floating-toggle:hover {
  transform: scale(1.08);
  background: var(--color-cobalt-dark);
}

.btn-floating-toggle:active {
  transform: scale(0.95);
}

/* ==========================================================================
   FRONT PAGE MEMBER DOCK (6 Friends - Clean, Transparent Capsule)
   ========================================================================== */
.front-members-dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  max-width: calc(100vw - 36px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-cobalt-subtle);
  border-radius: 22px;
  padding: 8px 14px;
  box-shadow:
    0 16px 40px rgba(0, 43, 128, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  padding: 8px 14px 10px;
  transition: opacity 800ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.members-dock-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.members-dock-row::-webkit-scrollbar {
  display: none;
}

.dock-member-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 14px;
  background: rgba(240, 247, 255, 0.65);
  border: 1px solid var(--border-hairline);
  transition: transform 160ms var(--ease-out), background-color 160ms, border-color 160ms;
  flex-shrink: 0;
}

.dock-member-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border-cobalt-subtle);
  transform: translateY(-2px);
}

.dock-member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-cobalt-subtle);
  flex-shrink: 0;
}

.dock-member-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dock-member-name {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-ink-title);
  text-transform: lowercase;
  line-height: 1;
}

.dock-member-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dock-svg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(0, 56, 184, 0.07);
  color: var(--color-cobalt);
  border: 1px solid var(--border-cobalt-subtle);
  transition: transform 140ms ease, background-color 140ms, color 140ms;
}

.dock-svg-link:hover {
  background: var(--color-cobalt);
  color: #ffffff;
  transform: translateY(-1px);
}

.dock-svg-link svg {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   DARK MODE THEME
   ========================================================================== */
body.dark-mode {
  --bg-canvas: #090d16;
  --bg-surface: #0f1523;
  --bg-surface-frosted: rgba(15, 21, 35, 0.85);
  --bg-pill: rgba(56, 189, 248, 0.12);

  --color-cobalt: #38bdf8;
  --color-cobalt-dark: #0284c7;
  --color-ink-title: #f0f6fc;
  --color-sky: #7dd3fc;
  --color-cyan: #38bdf8;
  --color-ice: #1e293b;

  --border-cobalt: rgba(56, 189, 248, 0.4);
  --border-cobalt-subtle: rgba(56, 189, 248, 0.2);
  --border-hairline: rgba(255, 255, 255, 0.08);

  --text-primary: #f0f6fc;
  --text-secondary: rgba(226, 237, 255, 0.72);
  --text-dim: rgba(226, 237, 255, 0.42);

  background:
    radial-gradient(ellipse 65% 55% at 20% 25%, #131c31 0%, rgba(19, 28, 49, 0) 70%),
    radial-gradient(ellipse 80% 60% at 85% 75%, #0d172a 0%, rgba(13, 23, 42, 0) 70%),
    linear-gradient(135deg, #070a10 0%, #0a0f1d 45%, #0e172a 100%);
  background-attachment: fixed;
  color: #f0f6fc;
}

body.dark-mode .top-nav {
  background: rgba(9, 13, 22, 0.88);
}

body.dark-mode .btn-font-toggle {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--color-cobalt);
}
body.dark-mode .btn-font-toggle:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--color-cobalt);
}

body.dark-mode .btn-theme-toggle .icon-sun {
  display: block;
}
body.dark-mode .btn-theme-toggle .icon-moon {
  display: none;
}

body.dark-mode .sidecar-drawer {
  background: rgba(11, 16, 28, 0.94);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
}

body.dark-mode .sidecar-player-unit {
  background: rgba(15, 23, 42, 0.75);
}

body.dark-mode .sidecar-dock-tab {
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .floating-card-inner {
  background: rgba(14, 21, 37, 0.85);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.dark-mode .front-members-dock {
  background: rgba(14, 21, 37, 0.85);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.dark-mode .dock-member-item {
  background: rgba(22, 33, 56, 0.6);
}
body.dark-mode .dock-member-item:hover {
  background: rgba(30, 41, 59, 0.9);
}

body.dark-mode .hero-centerpiece .cd-disc {
  background:
    radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 16%, #090d16 22%, transparent 24%),
    conic-gradient(
      from var(--disc-rot, 45deg),
      #1e293b 0deg,
      #334155 35deg,
      #0284c7 65deg,
      #38bdf8 95deg,
      #1e293b 130deg,
      #0f172a 180deg,
      #0369a1 215deg,
      #38bdf8 260deg,
      #0284c7 300deg,
      #1e293b 340deg,
      #1e293b 360deg
    );
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.6),
    0 6px 20px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

body.dark-mode .vol-wheel {
  background: #1e293b;
}
body.dark-mode .vol-notch {
  background: #38bdf8;
}

body.dark-mode .album-cover-aperture::after,
body.dark-mode .cd-label::after,
body.dark-mode .floating-art-wrap::after {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.1) 36%,
    rgba(255, 255, 255, 0) 48%,
    rgba(56, 189, 248, 0.14) 100%
  );
}

body.dark-mode .strip-item.is-highlighted {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   AMBIENT IDLE LIVING SCREEN (Softens chrome to 18% opacity after 5s)
   ========================================================================== */
body.is-ambient-idle .top-nav,
body.is-ambient-idle .front-members-dock,
body.is-ambient-idle .sidecar-dock-tab {
  opacity: 0.18;
  pointer-events: none;
}

/* ==========================================================================
   FRONT PAGE MEMBER DOCK - INTEGRATED TELEMETRY BAR
   ========================================================================== */
.dock-scrobble-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 6px 7px;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(0, 56, 184, 0.16);
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
}

body.dark-mode .dock-scrobble-bar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dock-scrobble-bar:hover {
  color: var(--text-main);
  border-bottom-color: rgba(56, 189, 248, 0.35);
}

body.dark-mode .dock-scrobble-bar:hover {
  color: #fff;
}

.dock-scrobble-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dock-scrobble-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: ticker_pulse 2s infinite;
}

.dock-scrobble-dot.is-idle {
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
  animation: none;
}

@keyframes ticker_pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.dock-scrobble-tag {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #38bdf8;
}

.dock-scrobble-content {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-size: 11px;
}

.dock-scrobble-user {
  font-family: var(--font-display, var(--font-primary));
  font-weight: 700;
  color: var(--text-main);
}

body.dark-mode .dock-scrobble-user {
  color: #fff;
}

.dock-scrobble-verb {
  color: var(--text-muted);
  opacity: 0.85;
}

.dock-scrobble-track {
  font-weight: 600;
  color: #38bdf8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-scrobble-artist {
  color: var(--text-muted);
  opacity: 0.75;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-scrobble-badge {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ==========================================================================
   DOCK MEMBER ENHANCEMENTS (Micro-indicator & clickability)
   ========================================================================== */
.dock-member-item {
  cursor: pointer;
  position: relative;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease;
}

.dock-member-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.dock-member-live-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #060b14;
  box-shadow: 0 0 8px #10b981;
  animation: ticker_pulse 2s infinite;
}

/* ==========================================================================
   BLEH-INSPIRED USER POPOUT CARD
   --------------------------------------------------------------------------
   Soft Club Brutalist Archival Console standards:
   - High-density Dark Obsidian glass chassis
   - Floating artwork with subtle breathing motion & clean mirror floor falloff
   - Hairline borders, live equalizer badge, and precision monospace telemetry
   ========================================================================== */
.bleh-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.bleh-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bleh-popout {
  position: fixed;
  z-index: 101;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(24px) scale(0.96);
  width: 340px;
  max-width: calc(100vw - 28px);
  border-radius: 18px;
  background: rgba(7, 12, 22, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(0, 56, 184, 0.32);
  box-shadow:
    0 24px 64px -12px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 45px -15px rgba(56, 189, 248, 0.18);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.22s ease;
  overflow: hidden;
  user-select: none;
}

.bleh-popout.is-open {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Card Header */
.bleh-popout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.bleh-user-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bleh-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.bleh-user-names {
  display: flex;
  flex-direction: column;
}

.bleh-display-name {
  font-family: var(--font-display, var(--font-primary));
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  line-height: 1.2;
}

.bleh-lastfm-handle {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  color: #38bdf8;
}

.btn-bleh-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-bleh-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: scale(1.05);
}

/* Hero "Now Playing" Stage */
.bleh-hero-stage {
  padding: 20px 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bleh-art-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 30px; /* clean clearance for floor reflection */
  animation: bleh_art_float 4.5s ease-in-out infinite;
}

@keyframes bleh_art_float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.bleh-art-img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow:
    0 20px 48px -8px rgba(0, 0, 0, 0.8),
    0 0 32px -8px rgba(56, 189, 248, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: block;
}

/* Floor reflection (Bleh signature) */
.bleh-art-reflection {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 26px;
  margin-top: 3px;
  transform: scaleY(-1);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 80%);
  pointer-events: none;
  filter: blur(0.5px);
}

.bleh-art-reflection img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

/* Status Badge */
.bleh-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.bleh-status-badge.is-now-playing {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.bleh-equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 9px;
}

.bleh-equalizer span {
  width: 2px;
  background: currentColor;
  border-radius: 1px;
  animation: bleh_eq 1s ease-in-out infinite alternate;
}

.bleh-equalizer span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.bleh-equalizer span:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.bleh-equalizer span:nth-child(3) { height: 60%; animation-delay: 0.2s; }

@keyframes bleh_eq {
  0% { height: 25%; }
  100% { height: 100%; }
}

.bleh-track-title {
  font-family: var(--font-display, var(--font-primary));
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bleh-track-artist {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #38bdf8;
  margin-bottom: 3px;
}

.bleh-track-album {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* History Strip ("Previously Played") */
.bleh-history-section {
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.bleh-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 7px;
}

.bleh-history-count {
  color: rgba(255, 255, 255, 0.3);
}

.bleh-history-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bleh-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.15s ease;
}

.bleh-history-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.09);
}

.bleh-history-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bleh-history-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bleh-history-name {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bleh-history-by {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bleh-history-time {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

/* Card Footer */
.bleh-popout-footer {
  padding: 10px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bleh-scrobble-total {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.bleh-scrobble-total strong {
  color: #fff;
  font-weight: 700;
}

/* Refined Archival Hardware Last.fm Badge */
.btn-bleh-profile {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(227, 27, 35, 0.12);
  border: 1px solid rgba(227, 27, 35, 0.35);
  color: #ff6b6b;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-bleh-profile:hover {
  background: rgba(227, 27, 35, 0.25);
  border-color: rgba(227, 27, 35, 0.65);
  color: #fff;
  transform: translateY(-1px);
}

/* Collective Unlinked Profile State */
.bleh-unlinked-stage {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bleh-unlinked-avatar {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
}

.bleh-unlinked-title {
  font-family: var(--font-display, var(--font-primary));
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.bleh-unlinked-role {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #38bdf8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.bleh-unlinked-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
}

.bleh-unlinked-tag {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
}

.btn-bleh-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-bleh-social:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #fff;
}

/* Ambient idle integration */
body.is-ambient-idle .dock-scrobble-bar {
  opacity: 0.2;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR DOCK & POPOUT
   ========================================================================== */
@media (max-width: 768px) {
  .hero-centerpiece .cd-disc {
    width: 290px;
    height: 290px;
  }
  .hero-centerpiece .cd-label {
    width: 96px;
    height: 96px;
  }
  .sidecar-drawer {
    width: 100vw;
  }
  .nav-inner {
    padding: 10px 16px;
  }
  .nav-status-cluster {
    display: none;
  }
  .front-members-dock {
    max-width: calc(100vw - 20px);
    padding: 6px 10px;
    bottom: 10px;
  }
  .dock-scrobble-bar {
    font-size: 10px;
    padding: 2px 4px 5px;
    margin-bottom: 5px;
  }
  .bleh-popout {
    bottom: 20px;
    width: calc(100vw - 24px);
    max-height: 85vh;
    overflow-y: auto;
  }
}

