/* ==========================================================================
   CALDER QUINN — OFFICIAL PLATFORM STYLESHEET
   Rustbelt Americana / Weathered Cedar / Warm Amber / Deep Twilight
   ========================================================================== */

:root {
  --bg-black: #0d0e11;
  --bg-surface: #14161b;
  --bg-card: #1c1f26;
  --bg-card-hover: #242831;
  --bg-glass: rgba(20, 22, 27, 0.85);

  --amber-primary: #d48b38;
  --amber-glow: #e09f4c;
  --amber-dark: #a16422;
  --amber-soft: rgba(212, 139, 56, 0.15);

  --olive-accent: #5c6853;
  --olive-light: #7a8870;

  --text-primary: #f5f3ef;
  --text-secondary: #b0ada8;
  --text-muted: #787570;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-amber: rgba(212, 139, 56, 0.35);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-black);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--amber-primary);
  background: var(--amber-soft);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-amber);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(13, 14, 17, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.brand-badge {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 2px 8px;
  background: var(--amber-soft);
  color: var(--amber-primary);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--amber-primary);
}

.btn-nav {
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--amber-primary);
  color: #fff;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.btn-nav:hover {
  background: var(--amber-glow);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.65) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 14, 17, 0.4) 0%,
    rgba(13, 14, 17, 0.75) 60%,
    var(--bg-black) 100%
  );
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 40%,
    rgba(13, 14, 17, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-primary);
  background: rgba(13, 14, 17, 0.75);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-amber);
  margin-bottom: 24px;
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-primary);
  box-shadow: 0 0 10px var(--amber-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  line-height: 1.05;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
  font-size: 0.38em;
  font-family: var(--font-sans);
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #d6d3cd;
  max-width: 600px;
  margin-bottom: 36px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: var(--amber-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(212, 139, 56, 0.35);
}

.btn-primary:hover {
  background: var(--amber-glow);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 139, 56, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ==========================================================================
   Music Player Section
   ========================================================================== */

.music-section {
  padding: 100px 0;
  background: var(--bg-surface);
  position: relative;
}

.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.player-artwork {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.player-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.player-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber-primary);
}

.now-playing-title {
  font-size: 2.2rem;
  line-height: 1.2;
}

.now-playing-artist {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.now-playing-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Progress bar */
.progress-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.time-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 40px;
}

.progress-bar-wrapper {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber-dark), var(--amber-primary));
  border-radius: var(--radius-full);
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.btn-control {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-control:hover {
  color: var(--text-primary);
}

.btn-play-pause {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--amber-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(212, 139, 56, 0.4);
}

.btn-play-pause:hover {
  background: var(--amber-glow);
  transform: scale(1.05);
}

/* Track list */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.track-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-amber);
  transform: translateX(4px);
}

.track-row.active {
  background: rgba(212, 139, 56, 0.08);
  border-color: var(--amber-primary);
}

.track-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.track-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  width: 24px;
}

.track-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.track-vibe {
  font-size: 0.8rem;
  color: var(--amber-primary);
  margin-left: 8px;
}

.track-duration {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Video Showcase Section
   ========================================================================== */

.video-section {
  padding: 100px 0;
  background: var(--bg-black);
}

.video-wrapper {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.video-player-container {
  position: relative;
  aspect-ratio: 9/16;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  background: #000;
}

.video-player-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-info h3 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.video-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.video-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber-primary);
  margin-top: 4px;
}

/* ==========================================================================
   Bio / Story Section
   ========================================================================== */

.bio-section {
  padding: 100px 0;
  background: var(--bg-surface);
}

.bio-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 64px;
  align-items: center;
}

.bio-photo-stack {
  position: relative;
}

.bio-photo-main {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
}

.bio-card-quote {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--bg-card);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  max-width: 280px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.bio-card-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.bio-card-quote span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-primary);
  margin-top: 8px;
}

.bio-text h2 {
  font-size: 2.8rem;
  margin-bottom: 24px;
  line-height: 1.15;
}

.bio-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.bio-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trait-pill {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */

.gallery-section {
  padding: 100px 0;
  background: var(--bg-black);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 14, 17, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 60px 0 40px;
  background: #090a0d;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--amber-primary);
  color: #fff;
  transform: translateY(-2px);
}

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

/* ==========================================================================
   Custom Styled Modal (Compliant with User Rule: NO window.confirm/alert)
   ========================================================================== */

.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.custom-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.custom-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  text-align: center;
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.custom-modal-backdrop.active .custom-modal-card {
  transform: scale(1);
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.modal-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .player-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .player-artwork {
    max-width: 280px;
    margin: 0 auto;
  }
  .progress-container {
    justify-content: center;
  }
  .player-controls {
    justify-content: center;
  }
  .video-wrapper {
    grid-template-columns: 1fr;
  }
  .bio-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Merch / General Provisioner Section
   ========================================================================== */

.merch-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-black) 0%, #12141a 100%);
  position: relative;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.merch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.merch-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-amber);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.merch-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #191c22;
  overflow: hidden;
}

.merch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.merch-card:hover .merch-img {
  transform: scale(1.05);
}

.merch-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(13, 14, 17, 0.85);
  color: var(--amber-glow);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-amber);
  backdrop-filter: blur(8px);
}

.merch-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.merch-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--olive-light);
  font-weight: 700;
  margin-bottom: 6px;
}

.merch-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.merch-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.merch-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--amber-primary);
  font-family: var(--font-serif);
}

.merch-curr {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.merch-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.merch-buy-btn {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--amber-primary);
  color: #0d0e11;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.merch-buy-btn:hover {
  background: var(--amber-glow);
  box-shadow: 0 0 20px var(--amber-soft);
}

/* ==========================================================================
   The Hollow Fan Club / Newsletter Section
   ========================================================================== */

.join-section {
  padding: 90px 0;
  background: #0f1115;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  text-align: center;
}

.join-container {
  max-width: 680px;
  margin: 0 auto;
}

.join-form {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  justify-content: center;
}

.join-input {
  flex: 1;
  max-width: 420px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.join-input:focus {
  border-color: var(--amber-primary);
  box-shadow: 0 0 0 2px var(--amber-soft);
}

.join-btn {
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  background: var(--amber-primary);
  color: #0d0e11;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.join-btn:hover {
  background: var(--amber-glow);
}

@media (max-width: 640px) {
  .join-form {
    flex-direction: column;
    align-items: stretch;
  }
  .join-input {
    max-width: 100%;
  }
}

/* ==========================================================================
   Persistent Floating Corner Player Widget
   ========================================================================== */

.persistent-floating-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(20, 22, 27, 0.94);
  border: 1px solid var(--border-amber);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 18px 10px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 139, 56, 0.2);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  max-width: 380px;
}

.persistent-floating-player.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.persistent-floating-player:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 139, 56, 0.35);
  border-color: var(--amber-glow);
}

.floating-player-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.mini-player-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-amber);
  flex-shrink: 0;
  animation: spinSlow 14s linear infinite;
  animation-play-state: paused;
}

.mini-player-thumb.spinning {
  animation-play-state: running;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mini-player-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.mini-player-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.mini-player-artist {
  font-size: 0.75rem;
  color: var(--amber-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.mini-play-btn {
  background: var(--amber-primary);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d0e11;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.mini-play-btn:hover {
  background: var(--amber-glow);
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .persistent-floating-player {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
    justify-content: space-between;
  }
  .mini-player-title,
  .mini-player-artist {
    max-width: 170px;
  }
}
