/* === RESET & TOKENS & SPARKLE CD CURSOR === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  cursor: url('cursor_sparkle_cd.png') 16 16, auto !important;
}

*, button, a, input, textarea, select, .mood-chip, .nav-tab, .sp-icon-btn, .sp-play-circle, .karaoke-trigger-btn, .recs-item, .track-item, .sp-progress-track, .sp-volume-slider, .header-logo, .center-play-btn, .genius-btn {
  cursor: url('cursor_sparkle_cd.png') 16 16, pointer !important;
}

/* ── GLOWING PLASMA COMET FLUID CANVAS ── */
.plasma-cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999990;
}

/* ── MUSIC CORE CURSOR SPARKLE & NOTE PARTICLES ── */
.cursor-music-particle {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  font-size: 1.25rem;
  line-height: 1;
  user-select: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
}

/* Utility: Hidden element helpers */
.hidden {
  display: none !important;
}

.yt-video-wrap.hidden {
  display: block !important;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

:root {
  --bg:       #0e0b07;
  --surface:  rgba(38,28,16,0.82);
  --surface2: rgba(52,38,20,0.88);
  --border:   rgba(210,160,80,0.13);
  --text:     #f5e6c8;
  --muted:    #a8916a;
  --accent:   #e8b96a;
  --red:      #e05c3a;
  --player-h: 88px;
  --header-h: 58px;
  --banner-h: 0px;
  --radius:   20px;

  /* 8-Bit Pixelated Font Stack Tokens */
  --font-main:   'Pixelify Sans', 'Silkscreen', 'VT323', 'Press Start 2P', monospace, sans-serif;
  --font-header: 'Press Start 2P', 'Pixelify Sans', 'Silkscreen', monospace;
  --font-pixel:  'Silkscreen', 'Pixelify Sans', monospace;
  --font-mono:   'VT323', monospace;
  /* Warm amber mood overlay default */
  --mood-overlay: linear-gradient(135deg, rgba(40,22,6,0.82), rgba(18,10,3,0.76));
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  letter-spacing: 0.03em;
  background-color: #0e0b07;
}

/* Warm candlelight ambient glow behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 80% 55% at 50% 90%, rgba(200,120,30,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 20% 10%, rgba(180,100,20,0.10) 0%, transparent 60%);
}

/* ── BACKGROUND LAYERS & FULLSCREEN VIDEO ── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.yt-video-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.18); /* Calibrated 18% scale for maximum 1080p/4K HD crispness while hiding YouTube overlay bars */
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  pointer-events: none !important;
  z-index: 1;
  overflow: hidden;
  opacity: 0.92;
  transition: opacity 0.8s ease, transform 0.8s ease;
  image-rendering: -webkit-optimize-contrast;
}

.yt-video-wrap iframe,
.yt-video-wrap #ytPlayer {
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  user-select: none !important;
  border: none;
  object-fit: cover;
}



/* Clear, vibrant background imagery */
.bg-img {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  filter: blur(8px) brightness(0.68) saturate(1.3);
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease, transform 0.8s ease;
  will-change: opacity, filter;
  z-index: 0;
}


/* Synced Album Artwork Cover Background Mode */
.bg-img.artwork-mode {
  filter: blur(42px) brightness(0.48) saturate(1.75) scale(1.15);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

/* Soothing Green Core Rain Canvas */
.rain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 1;
  transition: opacity 1s ease;
  contain: strict;
  will-change: contents;
}

/* Mood-tinted atmospheric overlay (translucent) */
.bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 60%, rgba(60,32,5,0.45) 0%, rgba(8,5,2,0.82) 100%);
  transition: background 1.2s ease;
  z-index: 2;
  pointer-events: none;
}

/* ── INTERACTIVE MUSIC VIDEO PLAY/PAUSE OVERLAY ── */
.video-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  transition: background 0.3s ease;
}

/* When paused, dim background slightly to emphasize play control */
.video-play-overlay.paused-state {
  background: rgba(0, 0, 0, 0.45);
}

.center-play-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 255, 255, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.center-play-btn:focus {
  outline: none;
}

/* Show center play button ONLY when video is paused */
.video-play-overlay.paused-state .center-play-btn {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  animation: pulsePlayGlow 2.5s infinite ease-in-out;
}

.video-play-overlay.paused-state .center-play-btn:hover {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  transform: scale(1.12) !important;
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.5) !important;
  animation: none !important;
}

.video-play-overlay.paused-state .center-play-btn:active {
  transform: scale(0.92) !important;
}

.center-play-btn svg#centerPlayIcon {
  margin-left: 4px; /* Visual center adjustment for triangle play icon */
}

.center-play-btn svg#centerPauseIcon {
  margin-left: 0;
}

@keyframes pulsePlayGlow {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 10px 38px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 255, 255, 0.45);
  }
}

/* Tactile visual ripple feedback when play/pause is clicked */
.video-status-ripple {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
  animation: playRippleAnim 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes playRippleAnim {
  0% {
    opacity: 1;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

.hidden { display: none !important; }

/* ── SETUP BANNER ────────────────────────────────── */
.setup-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(255, 180, 0, 0.12);
  border-bottom: 1px solid rgba(255, 180, 0, 0.25);
  font-size: 0.82rem;
  color: #ffd580;
  flex-shrink: 0;
}

.setup-banner code {
  background: rgba(255,255,255,0.1);
  padding: 1px 5px;
  border-radius: 3px;
}

.setup-banner a { color: #ffd580; font-weight: 600; }

#dismissBanner {
  margin-left: auto;
  background: none;
  border: none;
  color: #ffd580;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px 6px;
}

/* ── VINTAGE CRT OLD TV SIDE BARS ── */
.tv-side-bar {
  position: fixed;
  top: 64px;
  bottom: 68px;
  width: 42px;
  z-index: 150;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #140d06;
  border-top: 2px solid #000000;
  border-bottom: 2px solid #000000;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tv-bar-left {
  left: 0;
  border-right: 2.5px solid #000000;
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 
    inset -5px 0 12px rgba(0, 0, 0, 0.85),
    inset 2px 0 0px rgba(255, 235, 180, 0.25),
    5px 0 16px rgba(0, 0, 0, 0.75);
}

.tv-bar-right {
  right: 0;
  border-left: 2.5px solid #000000;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  box-shadow: 
    inset 5px 0 12px rgba(0, 0, 0, 0.85),
    inset -2px 0 0px rgba(255, 235, 180, 0.25),
    -5px 0 16px rgba(0, 0, 0, 0.75);
}


/* Vintage TV Speaker Grille Slots */
.tv-speaker-grille {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 18px;
  z-index: 5;
}

.tv-speaker-grille span {
  width: 100%;
  height: 3px;
  background: #000000;
  border-radius: 2px;
  box-shadow: 0 1px 0px rgba(255, 235, 180, 0.25);
}

.tv-inner-shadow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

/* Animated background pattern movement exclusively for TV side pillar bars */
.tv-side-bar .bar-bg-layer {
  inset: -60px;
  background-size: 160% 160%;
  background-repeat: repeat;
  animation: panTvSidePattern 25s linear infinite;
}

@keyframes panTvSidePattern {
  0%   { background-position: 0px 0px; }
  50%  { background-position: -400px 0px; }
  100% { background-position: -800px 0px; }
}

/* Immersive video mode slide out for TV side bars */
body.immersive-mode .tv-bar-left {
  transform: translateX(-110%);
}
body.immersive-mode .tv-bar-right {
  transform: translateX(110%);
}
body.immersive-mode.show-hud .tv-bar-left,
body.immersive-mode.show-hud .tv-bar-right {
  transform: translateX(0);
}

/* ── HEADER WITH RETRO RGB PIXEL WAVE BACKGROUND ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  background: rgba(16, 10, 4, 0.94);
  border-bottom: 1px solid rgba(200, 140, 55, 0.18);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(210,150,60,0.08);

  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: visible;
  z-index: 180;
}

/* ── PERIODIC BAR PATTERN LAYERS ── */
.bar-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  image-rendering: pixelated;
  filter: brightness(0.95) saturate(1.15);
  pointer-events: none;
}

.bar-bg-layer.active {
  opacity: 1;
}

.header-logo, .header-actions {
  position: relative;
  z-index: 2;
}

.header-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.logo-img-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, border-color 0.4s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.header-logo:hover .logo-img-avatar {
  transform: scale(1.22) rotate(180deg);
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.5);
}

.logo-img-avatar.icon-transition {
  opacity: 0;
  transform: scale(0.65) rotate(-120deg);
}
.logo-name   { font-family: var(--font-header); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; color: #f5dfa0; text-shadow: 0 2px 12px rgba(210,150,60,0.45); }
.header-tag  { font-size: 0.78rem; color: rgba(220, 180, 110, 0.85); font-weight: 600; letter-spacing: 0.04em; transition: opacity 0.3s; text-shadow: 0 2px 6px rgba(0,0,0,0.8); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.header-hub-btn {
  padding: 6px 12px;
  background: linear-gradient(180deg, #3d2915 0%, #24180c 100%);
  border: 2px solid #000000;
  border-radius: 12px;
  color: #f5dfa0;

  font-family: var(--font-pixel);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.08s ease;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 235, 180, 0.4),
    inset -2px -2px 0px rgba(0, 0, 0, 0.65),
    0 3px 0px #000000;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Prominent Theme Studio Button */
.theme-nav-btn {
  background: linear-gradient(180deg, #4d331a 0%, #2c1a0c 100%) !important;
  border-color: rgba(232, 185, 106, 0.4) !important;
}

.theme-nav-btn:hover {
  background: linear-gradient(180deg, #6e4925 0%, #3e240f 100%) !important;
  border-color: #ffd700 !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4) !important;
}

.header-hub-btn:hover {
  background: linear-gradient(180deg, #573c20 0%, #342312 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.6),
    inset -2px -2px 0px rgba(0, 0, 0, 0.75),
    0 4px 0px #000000;
}

.header-hub-btn:active {
  transform: translateY(3px);
  box-shadow: 
    inset -2px -2px 0px rgba(255, 255, 255, 0.2),
    inset 2px 2px 0px rgba(0, 0, 0, 0.85),
    0 0px 0px #000000;
}

.retro-btn-img-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 4px rgba(255, 220, 0, 0.6));
  flex-shrink: 0;
}

/* ── IMMERSIVE VIDEO MODE (UPPER HEADER & LOWER TRAY SLIDE OUT) ── */
body.immersive-mode .main {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

body.immersive-mode .bg-overlay {
  opacity: 0.1; /* Full resolution crisp video playback */
  transition: opacity 0.8s ease;
}

body.immersive-mode #bgImg {
  opacity: 0 !important;
  display: none !important;
}

body.immersive-mode .header {
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.immersive-mode .player-bar {
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reveal BOTH upper header and lower player bar HUD on screen edge hover */
body.immersive-mode.show-hud .header,
body.immersive-mode.show-hud .player-bar {
  transform: translateY(0);
}

/* ── SEARCH AUTO-COMPLETE RECOMMENDATIONS DROPDOWN ── */
.search-bar-wrap {
  position: relative;
}

.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(22, 14, 8, 0.98);
  border: 2px solid #000000;
  border-radius: 18px;
  box-shadow: 

    inset 2px 2px 0px rgba(255, 235, 180, 0.25),
    inset -2px -2px 0px rgba(0, 0, 0, 0.65),
    0 12px 36px rgba(0, 0, 0, 0.92);
  z-index: 300;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
  backdrop-filter: blur(12px);
  animation: dropdownSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: #f5dfa0;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid rgba(200, 140, 55, 0.12);
  transition: background 0.12s ease, color 0.12s ease, padding 0.12s ease;
}

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

.suggestion-item:hover,
.suggestion-item.selected {
  background: linear-gradient(90deg, #3d2915 0%, #24180c 100%);
  color: #ffffff;
  padding-left: 22px;
}

.suggestion-icon {
  font-size: 0.85rem;
  color: #a8916a;
  flex-shrink: 0;
}

.suggestion-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-text strong {
  color: #ffe870;
  font-weight: 700;
}

/* ── SAVED SONGS & TRACK LISTING DEMOGRAPHIC ── */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(30, 20, 12, 0.85);
  border: 2px solid #000000;
  border-radius: 6px;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 235, 180, 0.25),
    inset -2px -2px 0px rgba(0, 0, 0, 0.65),
    0 3px 0px #000000;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
}

.track-item:hover {
  background: rgba(48, 30, 16, 0.95);
  transform: translateY(-2px);
  border-color: #d4922a;
}

.track-item.active {
  background: linear-gradient(180deg, #3d2915 0%, #24180c 100%);
  border-color: #f5dfa0;
  box-shadow: 0 0 14px rgba(212, 146, 42, 0.5);
}

.track-num {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: #a8916a;
  min-width: 20px;
}

.track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.track-meta {
  flex: 1;
  min-width: 0;
}

.track-title {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-channel {
  font-size: 0.8rem;
  color: #a8916a;
}

.track-duration {
  font-size: 0.78rem;
  color: #a7a7a7;
  font-variant-numeric: tabular-nums;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-play-btn,
.track-save-btn,
.track-remove-btn,
.track-save-mini-btn {
  background: transparent;
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.track-play-btn:hover,
.track-save-btn:hover,
.track-remove-btn:hover,
.track-save-mini-btn:hover {
  transform: scale(1.25);
  filter: drop-shadow(0 0 6px rgba(255, 220, 100, 0.8));
}

.sp-heart-btn {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  margin-left: 6px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.sp-heart-btn:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 0 8px rgba(255, 100, 100, 0.8));
}

.empty-saved-hint {
  text-align: center;
  padding: 40px 20px;
  background: rgba(20, 12, 6, 0.75);
  border: 2px dashed rgba(200, 140, 55, 0.3);
  border-radius: 8px;
}

/* ── RECOMMENDATIONS DROPDOWN MENU (STRICTLY CENTERED ABOVE VIDEO) ── */
.recs-dropdown-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
}

.recs-dropdown-btn {
  padding: 7px 16px;
  background: linear-gradient(180deg, #3d2915 0%, #24180c 100%);
  border: 2px solid #000000;
  border-radius: 4px;
  color: #f5dfa0;
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.08s ease;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 235, 180, 0.4),
    inset -2px -2px 0px rgba(0, 0, 0, 0.65),
    0 3px 0px #000000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recs-dropdown-btn:hover {
  background: linear-gradient(180deg, #573c20 0%, #342312 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.6),
    inset -2px -2px 0px rgba(0, 0, 0, 0.75),
    0 4px 0px #000000;
}

.recs-dropdown-btn:active {
  transform: translateY(3px);
  box-shadow: 
    inset -2px -2px 0px rgba(255, 255, 255, 0.2),
    inset 2px 2px 0px rgba(0, 0, 0, 0.85),
    0 0px 0px #000000;
}

.padoru-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 50%;
  vertical-align: middle;
  animation: padoruWiggle 0.6s infinite alternate ease-in-out;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

@keyframes padoruWiggle {
  0% { transform: scale(1) rotate(-8deg); }
  50% { transform: scale(1.15) rotate(0deg) translateY(-2px); }
  100% { transform: scale(1) rotate(8deg); }
}

.recs-dropdown-btn:hover {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.recs-dropdown-btn:hover .padoru-icon {
  animation: padoruSpin 0.5s infinite linear;
}

@keyframes padoruSpin {
  0% { transform: rotate(0deg) scale(1.25); }
  100% { transform: rotate(360deg) scale(1.25); }
}

.recs-dropdown-menu {
  position: fixed;
  top: 70px;
  right: 20px;
  left: auto;
  transform: none;
  width: 400px;
  max-width: 92vw;
  max-height: 480px;
  background: rgba(14, 14, 18, 0.98);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  overflow-y: auto;
  padding: 16px;
  z-index: 99999;
  animation: dropdownFadeRight 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.recs-dropdown-menu.hidden {
  display: none !important;
}

.recs-empty-hint {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 24px 16px;
  line-height: 1.6;
}

@keyframes dropdownFadeRight {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.recs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.recs-menu-title {
  font-family: var(--font-header);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.recs-subtitle-tag {
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  color: #d4a055;
  font-weight: 700;
  margin-left: 8px;
}

.close-recs-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: background 0.15s, transform 0.1s;
}

.close-recs-btn:hover {
  background: rgba(255, 68, 68, 0.85);
  transform: scale(1.1);
}

/* In Immersive Mode, when Recommendations menu is open, lock upper HUD visible above video */
body.immersive-mode.recs-open .header {
  transform: translateY(0) !important;
}

.recs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.recs-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.recs-item.active {
  background: rgba(180, 110, 30, 0.18);
  border: 1px solid rgba(210, 150, 60, 0.32);
}

.recs-num {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  width: 16px;
}

.recs-thumb {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.recs-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recs-channel {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.recs-verified {
  color: #d4a055;
  font-weight: 900;
  margin-left: 2px;
}

.recs-duration {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}

/* ── MAIN ────────────────────────────────────────── */
.main {
  flex: 1;
  overflow-y: auto;
  padding: 40px 24px 24px;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.main::-webkit-scrollbar { width: 4px; }
.main::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 2px; }

.section { width: 100%; }

/* ── NAVIGATION TABS ─────────────────────────────── */
.nav-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  background: #140d06;
  padding: 5px;
  border-radius: 6px;
  border: 2px solid #000000;
  box-shadow: 0 4px 0px #000000;
  width: fit-content;
}

.nav-tab {
  padding: 7px 16px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, color 0.15s ease, background 0.15s ease;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-tab:hover { color: var(--text); }

.nav-tab.active {
  background: linear-gradient(180deg, #e8a030 0%, #a86810 100%);
  color: #ffffff;
  border: 2px solid #000000;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.5),
    inset -2px -2px 0px rgba(0, 0, 0, 0.65),
    0 2px 0px #000000;
}

/* ── SONG SEARCH BAR ─────────────────────────────── */
.search-bar-wrap {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.search-input {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 14px 22px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: rgba(210, 155, 65, 0.45);
  box-shadow: 0 0 0 3px rgba(190, 130, 40, 0.12);
}

.search-btn {
  padding: 0 22px;
  background: linear-gradient(180deg, #f5e6c8 0%, #c4b08c 100%);
  border: 2px solid #000000;
  border-radius: 14px;
  color: #000000;

  font-family: var(--font-pixel);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.08s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 2px 2px 0px #ffffff,
    inset -2px -2px 0px rgba(0, 0, 0, 0.5),
    0 3px 0px #000000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #dcd0b8 100%);
  transform: translateY(-1px);
  box-shadow: 
    inset 2px 2px 0px #ffffff,
    inset -2px -2px 0px rgba(0, 0, 0, 0.6),
    0 4px 0px #000000;
}

.search-btn:active {
  transform: translateY(3px);
  box-shadow: 
    inset -2px -2px 0px rgba(255, 255, 255, 0.4),
    inset 2px 2px 0px rgba(0, 0, 0, 0.8),
    0 0px 0px #000000;
}

/* ── INPUT ───────────────────────────────────────── */
.heading {
  font-family: var(--font-header);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  color: #f5dfa0;
  text-shadow: 0 2px 18px rgba(200, 130, 40, 0.35);
}

.subheading {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 14px 16px;
  resize: none;
  outline: none;
  line-height: 1.65;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 14px;
}

textarea:focus {
  border-color: rgba(210, 155, 65, 0.5);
  box-shadow: 0 0 0 3px rgba(190, 130, 40, 0.14);
}

textarea::placeholder { color: var(--muted); }

/* MOOD CHIPS */
.mood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.mood-chip {
  padding: 7px 14px;
  background: linear-gradient(180deg, #3d2915 0%, #24180c 100%);
  border: 2px solid #000000;
  border-radius: 20px;
  color: #f0d5a0;

  font-family: var(--font-pixel);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.08s ease;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 235, 180, 0.35),
    inset -2px -2px 0px rgba(0, 0, 0, 0.6),
    0 3px 0px #000000;
  letter-spacing: 0.03em;
}

.mood-chip:hover  {
  background: linear-gradient(180deg, #573c20 0%, #342312 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.5),
    inset -2px -2px 0px rgba(0, 0, 0, 0.7),
    0 4px 0px #000000;
}

.mood-chip.active {
  background: linear-gradient(180deg, #e8a030 0%, #a86810 100%);
  color: #ffffff;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.55),
    inset -2px -2px 0px rgba(0, 0, 0, 0.7),
    0 3px 0px #000000;
}

.mood-chip:active {
  transform: translateY(3px);
  box-shadow: 
    inset -2px -2px 0px rgba(255, 255, 255, 0.2),
    inset 2px 2px 0px rgba(0, 0, 0, 0.85),
    0 0px 0px #000000;
}

/* GENERATE BTN (PRIMARY BUTTON) */
.primary-btn,
.generate-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(180deg, #e8a030 0%, #9e5a10 100%);
  border: 2px solid #000000;
  border-radius: 16px;
  color: #ffffff;

  font-family: var(--font-pixel);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.08s ease;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.55),
    inset -2px -2px 0px rgba(0, 0, 0, 0.75),
    0 4px 0px #000000,
    0 6px 16px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary-btn:hover,
.generate-btn:hover {
  background: linear-gradient(180deg, #f8b848 0%, #b86e14 100%);
  transform: translateY(-1px);
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.7),
    inset -2px -2px 0px rgba(0, 0, 0, 0.8),
    0 5px 0px #000000,
    0 8px 20px rgba(0, 0, 0, 0.7);
}

.primary-btn:active,
.generate-btn:active {
  transform: translateY(3px);
  box-shadow: 
    inset -2px -2px 0px rgba(255, 255, 255, 0.2),
    inset 2px 2px 0px rgba(0, 0, 0, 0.85),
    0 0px 0px #000000;
}
.generate-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* SPINNER */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESULTS ─────────────────────────────────────── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.mood-info         { display: flex; align-items: center; gap: 12px; }
.results-emoji     { font-size: 2rem; line-height: 1; }
.results-title     { font-family: var(--font-header); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.results-subtitle  { font-size: 0.8rem; color: var(--muted); }

.outline-btn {
  padding: 6px 14px;
  background: linear-gradient(180deg, #3d2915 0%, #24180c 100%);
  border: 2px solid #000000;
  border-radius: 4px;
  color: #f5dfa0;
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.08s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 235, 180, 0.4),
    inset -2px -2px 0px rgba(0, 0, 0, 0.65),
    0 3px 0px #000000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.outline-btn:hover {
  background: linear-gradient(180deg, #573c20 0%, #342312 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.6),
    inset -2px -2px 0px rgba(0, 0, 0, 0.75),
    0 4px 0px #000000;
}

.outline-btn:active {
  transform: translateY(3px);
  box-shadow: 
    inset -2px -2px 0px rgba(255, 255, 255, 0.2),
    inset 2px 2px 0px rgba(0, 0, 0, 0.85),
    0 0px 0px #000000;
}

/* ── TRACK LIST ──────────────────────────────────── */
.track-list { display: flex; flex-direction: column; gap: 2px; }

.track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.12s;
}

.track-item:hover  { background: var(--surface); }
.track-item.active { background: var(--surface); }

.track-num {
  width: 22px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  flex-shrink: 0;
}

.track-item.active .track-num { color: #d4922a; }

.track-thumb {
  width: 52px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--surface2);
  flex-shrink: 0;
}

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

.track-name {
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.track-item.active .track-name { color: #e8a840; }

.track-channel {
  font-size: 0.77rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}

.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.68rem;
  color: #3ea6ff;
  font-weight: 600;
  margin-left: 6px;
  background: rgba(62,166,255,0.12);
  border: 1px solid rgba(62,166,255,0.3);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ── SONG LENGTH TRAY ────────────────────────────── */
.track-length-tray {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  margin-left: auto;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.track-item:hover .track-length-tray {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.length-icon {
  font-size: 0.72rem;
  opacity: 0.85;
}

.track-duration {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ── ARTIST BIO CARD (Scroll View) ────────────────── */
.artist-card {
  margin-top: 32px;
  padding: 24px;
  background: rgba(38, 24, 8, 0.75);
  border: 1px solid rgba(200, 140, 55, 0.16);
  border-radius: 24px;
  backdrop-filter: blur(20px);

  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 45px rgba(0,0,0,0.45), 0 0 30px rgba(160,90,20,0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.artist-card:hover {
  border-color: rgba(220, 160, 65, 0.28);
}

.artist-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.artist-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface2);
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.artist-card-info { min-width: 0; }

.artist-badge-wrap { margin-bottom: 4px; }

.verified-artist-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #d4a055;
  background: rgba(180, 110, 30, 0.14);
  border: 1px solid rgba(210, 150, 60, 0.32);
  padding: 2px 8px;
  border-radius: 50px;
  letter-spacing: 0.03em;
}

.artist-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.artist-card-genre {
  font-size: 0.8rem;
  color: var(--muted);
}

.artist-bio-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #dddddd;
  margin-bottom: 18px;
}

.artist-links {
  display: flex;
  gap: 10px;
}

.genius-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.genius-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* ── LYRICS & SING-ALONG DRAWER ────────────────────── */
.lyrics-drawer {
  position: fixed;
  right: 24px;
  bottom: calc(var(--player-h) + 16px);
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 480px;
  max-height: 60vh;
  background: rgba(22, 14, 5, 0.94);
  border: 1px solid rgba(200, 140, 55, 0.16);
  border-radius: 18px;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 30px rgba(140,80,15,0.12);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.lyrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.lyrics-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffaa00;
  background: rgba(255, 170, 0, 0.12);
  padding: 2px 8px;
  border-radius: 50px;
  margin-bottom: 4px;
}

.lyrics-song-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.lyrics-artist-name {
  font-size: 0.78rem;
  color: var(--muted);
}

.close-lyrics-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: color 0.15s;
}

.close-lyrics-btn:hover { color: #fff; }

.lyrics-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  position: relative;
}

.lyrics-body::-webkit-scrollbar { width: 4px; }
.lyrics-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.lyrics-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #e5e5e5;
  white-space: pre-line;
  font-weight: 400;
}

.lyric-line {
  font-size: 0.94rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
  transition: color 0.25s, font-size 0.25s, transform 0.25s, background 0.25s;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.lyric-line:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}

.lyric-line.active {
  font-size: 1.12rem;
  font-weight: 700;
  color: #f5dfa0;
  background: rgba(200, 140, 40, 0.12);
  text-shadow: 0 0 16px rgba(210, 150, 50, 0.55);
  transform: scale(1.02);
}

/* ── COMPACT PLAYER BAR WITH RETRO RGB PIXEL WAVE BACKGROUND ── */
/* ── COMPACT PLAYER BAR WITH RETRO RGB PIXEL WAVE BACKGROUND ── */
.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 68px;
  background: rgba(12, 8, 3, 0.95);
  border-top: 1px solid rgba(200, 140, 55, 0.18);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.85), 0 -1px 0 rgba(210,150,60,0.08);

  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 180;
  color: #f5e6c8;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.sp-player-left, .sp-player-center, .sp-player-right {
  position: relative;
  z-index: 2;
}

/* 1. Left Section */
.sp-player-left {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 24%;
  min-width: 180px;
}

.sp-album-thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;

  flex-shrink: 0;
  background: #121212;
  box-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

.sp-track-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.sp-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-track-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.sp-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  background: #c87e28;
  color: #fff8e8;
  font-size: 0.58rem;
  font-weight: 900;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(200,130,40,0.5);
}

.sp-subtitle-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #a8916a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.sp-video-icon {
  color: #a8916a;
  flex-shrink: 0;
}

.sp-artist-name {
  color: #a8916a;
  transition: color 0.15s;
  cursor: pointer;
}

.sp-artist-name:hover {
  color: #f5dfa0;
  text-decoration: underline;
}

/* 2. Center Section: Playback Controls & Timeline (STRICTLY CENTERED & COMPACT) */
.sp-player-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 48%;
  max-width: 560px;
}

.sp-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.sp-controls-row .sp-icon-btn {
  background: linear-gradient(180deg, #3d2915 0%, #24180c 100%);
  border: 2px solid #000000;
  border-radius: 4px;
  width: 38px;
  height: 38px;
  color: #f5dfa0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.08s ease;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 235, 180, 0.4),
    inset -2px -2px 0px rgba(0, 0, 0, 0.65),
    0 3px 0px #000000;
}

.sp-controls-row .sp-icon-btn:hover {
  background: linear-gradient(180deg, #573c20 0%, #342312 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.6),
    inset -2px -2px 0px rgba(0, 0, 0, 0.75),
    0 4px 0px #000000;
}

/* Active Shuffle Mode Styling */
.sp-icon-btn.active-mode {
  background: linear-gradient(180deg, #f0b040 0%, #a86810 100%) !important;
  color: #ffffff !important;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.7),
    inset -2px -2px 0px rgba(0, 0, 0, 0.75),
    0 0px 10px rgba(240, 176, 64, 0.7) !important;
}

.shuffle-active {
  background: linear-gradient(180deg, #f0b040 0%, #a86810 100%) !important;
  color: #ffffff !important;
  border-color: #f5dfa0 !important;
  box-shadow: 0 0 12px rgba(240, 176, 64, 0.6) !important;
}

.sp-controls-row .sp-icon-btn:active {
  transform: translateY(3px);
  box-shadow: 
    inset -2px -2px 0px rgba(255, 255, 255, 0.2),
    inset 2px 2px 0px rgba(0, 0, 0, 0.85),
    0 0px 0px #000000;
}

.sp-controls-row .sp-icon-btn svg {
  width: 20px;
  height: 20px;
}

.sp-icon-btn {
  background: linear-gradient(180deg, #3d2915 0%, #24180c 100%);
  border: 2px solid #000000;
  border-radius: 12px;
  color: #f5dfa0;

  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  position: relative;
  transition: color 0.15s, background 0.15s, transform 0.08s ease;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 235, 180, 0.4),
    inset -2px -2px 0px rgba(0, 0, 0, 0.65),
    0 2px 0px #000000;
}

.sp-icon-btn:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #573c20 0%, #342312 100%);
}

.sp-icon-btn:active {
  transform: translateY(2px);
  box-shadow: 
    inset -2px -2px 0px rgba(255, 255, 255, 0.2),
    inset 2px 2px 0px rgba(0, 0, 0, 0.85),
    0 0px 0px #000000;
}

/* Active amber dot underneath active buttons */
.sp-active-dot {
  width: 4px;
  height: 4px;
  background: #d4922a;
  border-radius: 50%;
  position: absolute;
  bottom: -2px;
  box-shadow: 0 0 6px rgba(200, 130, 40, 0.7);
}

/* Play/Pause Warm Amber Tactile Pixel Button */
.sp-play-circle {
  width: 42px;
  height: 42px;
  background: linear-gradient(180deg, #f0b040 0%, #a86810 100%);
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.55),
    inset -2px -2px 0px rgba(0, 0, 0, 0.7),
    0 4px 0px #000000,
    0 6px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.08s ease;
}

.sp-play-circle:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #f8c860 0%, #c47c18 100%);
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.7),
    inset -2px -2px 0px rgba(0, 0, 0, 0.75),
    0 5px 0px #000000,
    0 8px 18px rgba(0, 0, 0, 0.6);
}

.sp-play-circle:active {
  transform: translateY(3px);
  box-shadow: 
    inset -2px -2px 0px rgba(255, 255, 255, 0.2),
    inset 2px 2px 0px rgba(0, 0, 0, 0.85),
    0 0px 0px #000000;
}

.sp-play-circle svg {
  width: 20px;
  height: 20px;
}

/* Timeline Progress Bar Row */
.sp-timeline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.sp-time-text {
  font-size: 0.72rem;
  color: #a7a7a7;
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: center;
}

.sp-progress-track {
  flex: 1;
  height: 6px;
  background: #140d06;
  border: 1.5px solid #000000;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.8);
}

.sp-progress-fill {
  height: 100%;
  background: linear-gradient(180deg, #f0b040 0%, #c87818 100%);
  border-radius: 1px;
  width: 0%;
  transition: width 0.2s linear;
  position: relative;
}

.karaoke-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(210, 150, 60, 0.35);
  border-radius: 4px;
  cursor: pointer;
  margin-left: 4px;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}

.karaoke-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 220, 100, 0.6);
  transform: scale(1.06);
}

.karaoke-trigger-btn:active {
  transform: scale(0.96);
}

.karaoke-vinyl-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  clip-path: circle(48% at 50% 50%);
  flex-shrink: 0;
  animation: spinVinyl 3s linear infinite;
  box-shadow: 0 0 8px rgba(255, 140, 0, 0.6);
}

.karaoke-mic-icon {
  font-size: 0.92rem;
  line-height: 1;
  display: inline-block;
  animation: micPulseGlow 3s ease-in-out infinite;
}

@keyframes micPulseGlow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(255, 200, 80, 0.6)); }
  50% { transform: scale(1.18); filter: drop-shadow(0 0 8px rgba(255, 220, 100, 0.9)); }
}

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

/* ── VOLUME MANAGEMENT (PERIODIC COLOR CYCLING ANIMATION) ── */
@keyframes volumeColorCycle {
  0%   { background: linear-gradient(90deg, #ff416c 0%, #ff4b2b 100%); box-shadow: 0 0 10px rgba(255, 75, 43, 0.5); }
  20%  { background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%); box-shadow: 0 0 10px rgba(255, 210, 0, 0.5); }
  40%  { background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%); box-shadow: 0 0 10px rgba(56, 239, 125, 0.5); }
  60%  { background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%); box-shadow: 0 0 10px rgba(0, 114, 255, 0.5); }
  80%  { background: linear-gradient(90deg, #8a2be2 0%, #da70d6 100%); box-shadow: 0 0 10px rgba(218, 112, 214, 0.5); }
  100% { background: linear-gradient(90deg, #ff416c 0%, #ff4b2b 100%); box-shadow: 0 0 10px rgba(255, 75, 43, 0.5); }
}

@keyframes volumeThumbGlowCycle {
  0%   { background: #ff4b2b; box-shadow: 0 0 12px #ff4b2b; }
  20%  { background: #ffd200; box-shadow: 0 0 12px #ffd200; }
  40%  { background: #38ef7d; box-shadow: 0 0 12px #38ef7d; }
  60%  { background: #0072ff; box-shadow: 0 0 12px #0072ff; }
  80%  { background: #da70d6; box-shadow: 0 0 12px #da70d6; }
  100% { background: #ff4b2b; box-shadow: 0 0 12px #ff4b2b; }
}

@keyframes volumeGroupBorderCycle {
  0%   { border-color: rgba(255, 75, 43, 0.6); }
  20%  { border-color: rgba(255, 210, 0, 0.6); }
  40%  { border-color: rgba(56, 239, 125, 0.6); }
  60%  { border-color: rgba(0, 114, 255, 0.6); }
  80%  { border-color: rgba(218, 112, 214, 0.6); }
  100% { border-color: rgba(255, 75, 43, 0.6); }
}

/* ── SPACIOUS MEDIA SWITCHER BUTTONS (ARTWORK VS VIDEO) ── */
.sp-media-switch-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 18px;
  background: rgba(20, 13, 6, 0.85);
  border: 2px solid #000000;
  border-radius: 26px;
  padding: 4px 6px;
  box-shadow: 

    inset 1.5px 1.5px 0px rgba(255, 235, 180, 0.25),
    inset -1.5px -1.5px 0px rgba(0, 0, 0, 0.65),
    0 2px 6px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.sp-media-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: transparent;
  border: none;
  border-radius: 14px;
  color: #a8916a;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-media-btn:hover {
  color: #f5dfa0;
  background: rgba(255, 255, 255, 0.08);
}

.sp-media-btn.active {
  background: linear-gradient(180deg, #f0b040 0%, #a86810 100%);
  color: #ffffff;
  box-shadow: 
    inset 1.5px 1.5px 0px rgba(255, 255, 255, 0.65),
    inset -1.5px -1.5px 0px rgba(0, 0, 0, 0.75),
    0 0px 10px rgba(240, 176, 64, 0.65);
}

.media-btn-icon {
  font-size: 0.85rem;
}

.media-btn-img-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* ── HD ALBUM ARTWORK FULLSCREEN CANVAS (DYNAMIC SYNCED BACKDROP) ── */
.album-art-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--art-ambient-bg, radial-gradient(circle at center, rgba(35, 20, 10, 0.65) 0%, rgba(8, 5, 2, 0.88) 100%));
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  animation: artFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: background 0.8s ease;
}

@keyframes artFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.album-art-container {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-art-display-img {
  width: 280px;
  height: 280px;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 16px 50px rgba(0, 0, 0, 0.7),
    0 0 45px var(--art-glow-color, rgba(240, 176, 64, 0.35));
  position: relative;
  z-index: 5;
  animation: floatArtCover 8s ease-in-out infinite alternate;
  transition: box-shadow 0.8s ease, border-color 0.8s ease;
}

@keyframes floatArtCover {
  0%   { transform: translateY(0px) rotate(-0.6deg); }
  50%  { transform: translateY(-9px) rotate(0.8deg); }
  100% { transform: translateY(0px) rotate(-0.6deg); }
}


.album-art-record-spin {
  position: absolute;
  right: -24px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #1a1a1a 0%, #000000 70%, #111111 100%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 10px 32px rgba(0,0,0,0.9),
    0 0 35px var(--art-glow-color, rgba(240, 176, 64, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  animation: vinylSpin 3.5s linear infinite;
  transition: box-shadow 0.8s ease, border-color 0.8s ease;
}

@keyframes vinylSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.record-center-label {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid var(--art-glow-color, #d4922a);
  overflow: hidden;
  transition: border-color 0.8s ease;
}

.record-center-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-art-title-block {
  text-align: center;
  max-width: 520px;
  padding: 0 20px;
  z-index: 10;
}

.art-song-title {
  font-family: var(--font-header);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.9), 0 0 20px var(--art-title-glow, rgba(240, 176, 64, 0.3));
  margin-bottom: 8px;
  transition: text-shadow 0.8s ease;
}

.art-artist-name {
  font-size: 1.05rem;
  color: #f5dfa0;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}







.sp-volume-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #3d2915 0%, #24180c 100%);
  padding: 4px 10px;
  border-radius: 4px;
  border: 2px solid #000000;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 235, 180, 0.4),
    inset -2px -2px 0px rgba(0, 0, 0, 0.65),
    0 3px 0px #000000;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.08s ease;
}

.sp-volume-group:hover {
  background: linear-gradient(180deg, #573c20 0%, #342312 100%);
  transform: translateY(-1px);
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.6),
    inset -2px -2px 0px rgba(0, 0, 0, 0.75),
    0 4px 0px #000000;
}

#volumeMuteBtn,
.volume-btn {
  background: transparent;
  border: none;
  color: #f5dfa0;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px;
  transition: transform 0.15s ease, color 0.15s ease;
}

#volumeMuteBtn:hover,
.volume-btn:hover {
  transform: scale(1.15);
  color: #ffffff;
}

.sp-volume-slider,
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  animation: volumeColorCycle 10s linear infinite;
  transition: all 0.2s ease;
}

.sp-volume-slider::-webkit-slider-thumb,
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  animation: volumeThumbGlowCycle 10s linear infinite;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.sp-volume-slider::-webkit-slider-thumb:hover,
.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.sp-volume-slider::-moz-range-thumb,
.volume-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  animation: volumeThumbGlowCycle 10s linear infinite;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.sp-volume-slider::-moz-range-thumb:hover,
.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.3);
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .player-bar {
    padding: 0 14px;
    height: 72px;
  }
  .header {
    padding: 0 12px;
    height: 58px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-hub-btn {
    padding: 5px 8px;
    font-size: 0.72rem;
  }
  .header-hub-btn .hub-btn-text {
    display: inline-block;
  }
  .sp-player-left {
    width: 32%;
    min-width: 120px;
  }
  .sp-player-center {
    width: 42%;
    max-width: none;
  }
  .sp-player-right {
    gap: 8px;
  }
  .sp-volume-slider, .volume-slider {
    width: 60px;
  }
  .heading { font-size: 1.25rem; }
}

@media (max-width: 580px) {
  .header-tag {
    display: none;
  }
  .header-actions .hub-btn-text {
    display: none;
  }
  .header-hub-btn {
    padding: 6px 8px;
  }
}

@media (max-width: 480px) {
  .sp-timeline-row {
    display: none;
  }
  .sp-player-left {
    width: auto;
    max-width: 130px;
  }
  .sp-player-center {
    position: static;
    transform: none;
    width: auto;
  }
  .karaoke-trigger-btn .btn-text {
    display: none;
  }
  .karaoke-trigger-btn {
    padding: 6px;
    border-radius: 50%;
  }
}

/* ── SONG & ARTIST INFO OVERLAY MODAL ── */
.song-info-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.song-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 2, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.song-info-card {
  position: relative;
  z-index: 10;
  max-width: 620px;
  width: 100%;
  background: linear-gradient(180deg, #24160c 0%, #140d06 100%);
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 235, 180, 0.35),
    inset -2px -2px 0px rgba(0, 0, 0, 0.75),
    0 16px 48px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  color: #f5e6c8;
}

.close-info-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 235, 180, 0.3);
  color: #f5dfa0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.close-info-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  color: #ffffff;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1.5px solid rgba(200, 140, 55, 0.25);
}

.info-album-art {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #000000;
  box-shadow: 
    inset 1px 1px 0px rgba(255, 255, 255, 0.4),
    0 6px 18px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}

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

.info-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  color: #d4922a;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.info-song-title {
  font-family: var(--font-header);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 4px;
}

.info-artist-name {
  font-size: 0.92rem;
  color: #f5dfa0;
  margin-bottom: 10px;
}

.info-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.info-tag {
  font-size: 0.74rem;
  padding: 3px 8px;
  background: rgba(200, 140, 55, 0.15);
  border: 1px solid rgba(200, 140, 55, 0.35);
  border-radius: 4px;
  color: #ffd580;
}

.info-card-body {
  padding: 24px 28px;
  max-height: 380px;
  overflow-y: auto;
}

.info-section-block {
  margin-bottom: 20px;
}

.info-section-title {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  color: #f5dfa0;
  margin-bottom: 8px;
}

.info-section-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #d5c4aa;
}

.info-card-footer {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1.5px solid rgba(200, 140, 55, 0.2);
}

.sp-album-thumb {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.sp-album-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(255, 200, 80, 0.7);
  filter: brightness(1.15);
}

/* ── SPOTIFY KARAOKE MODE MODAL (MAX OPACITY DARK CANVAS, NO GREEN BG) ── */
.spotify-karaoke-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #121212; /* Max opacity rich dark matte canvas */
  opacity: 1 !important;
  animation: fadeIn 0.25s ease;
}

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

.karaoke-backdrop {
  display: none; /* Removed green gradient overlay */
}

.karaoke-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: #181818;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.karaoke-album-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.karaoke-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.karaoke-title {
  font-family: var(--font-header);
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.karaoke-artist {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.exit-karaoke-btn {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.exit-karaoke-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.03);
}

.karaoke-body {
  position: relative;
  z-index: 10;
  flex: 1;
  overflow-y: auto;
  padding: 50px 48px 160px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.karaoke-body::-webkit-scrollbar { width: 6px; }
.karaoke-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

.karaoke-lyrics-container {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

/* Spotify Exact Lyrics Line Styling */
.karaoke-line {
  font-family: var(--font-main);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 22px;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.karaoke-line:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* Musical Interlude Break Marker ♪ */
.karaoke-note-line {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 22px;
  user-select: none;
}

.karaoke-note-line.active {
  color: #ffffff !important;
  font-size: 1.8rem;
}

/* Active Line: Glowing Golden Amber Active Lyric Line */
.karaoke-line.active {
  font-size: 2.05rem;
  font-weight: 800;
  color: #ffe870 !important;
  text-shadow: 0 0 16px rgba(255, 230, 80, 0.65), 0 2px 6px rgba(0, 0, 0, 0.9);
  transform: scale(1.03);
}

/* ── VYNL LOGO RIGHT-CLICK CUSTOM CONTEXT MENU ── */
.vynl-context-menu {
  position: fixed;
  z-index: 999999;
  width: 235px;
  background: rgba(22, 15, 8, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 
    inset 1.5px 1.5px 0px rgba(255, 235, 180, 0.25),
    inset -1.5px -1.5px 0px rgba(0, 0, 0, 0.7),
    0 12px 32px rgba(0, 0, 0, 0.85);
  animation: contextMenuPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes contextMenuPop {
  from { opacity: 0; transform: scale(0.92) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.context-menu-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 8px;
}

.context-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent);
}

.context-title {
  font-family: var(--font-header);
  font-size: 0.78rem;
  color: #f5dfa0;
  letter-spacing: 0.05em;
}

.context-menu-divider {
  height: 1px;
  background: rgba(200, 140, 55, 0.25);
  margin: 4px 0 6px;
}

.context-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #f5e6c8;
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.context-menu-item:hover {
  background: linear-gradient(90deg, rgba(232, 185, 106, 0.22) 0%, rgba(200, 140, 55, 0.1) 100%);
  color: #ffffff;
  transform: translateX(3px);
}

.ctx-icon {
  font-size: 0.95rem;
}

/* Toast Notifications */
.vynl-toast-container {
  position: fixed;
  bottom: 105px;
  right: 30px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.vynl-toast {
  padding: 10px 18px;
  background: rgba(26, 18, 9, 0.95);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   ─── VYNL+ PREMIUM TIER DESIGN SYSTEM & ULTRA-CLEAN UI ────
   ══════════════════════════════════════════════════════════ */

/* ── VYNL+ Header Badge Button ── */
.vynl-plus-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(232, 185, 106, 0.16) 0%, rgba(180, 80, 240, 0.22) 100%);
  border: 1px solid rgba(232, 185, 106, 0.45);
  border-radius: 24px;
  padding: 6px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.vynl-plus-header-btn:hover {
  background: linear-gradient(135deg, rgba(232, 185, 106, 0.28) 0%, rgba(200, 100, 255, 0.35) 100%);
  border-color: #ffd700;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 185, 106, 0.35);
}

.vynl-plus-header-btn.is-active-plus {
  background: linear-gradient(135deg, #e8b96a 0%, #b850f0 100%);
  border-color: #ffe699;
  color: #1a0f02;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(184, 80, 240, 0.4);
}

.vynl-plus-crown {
  font-size: 1rem;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.8));
}

.plus-price-pill {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 0.72rem;
  color: #ffd700;
  font-weight: 700;
  border: 1px solid rgba(255, 215, 0, 0.25);
}

.vynl-plus-header-btn.is-active-plus .plus-price-pill {
  background: #1a0f02;
  color: #ffd700;
  border-color: #ffd700;
}

.tab-crown-tag {
  background: linear-gradient(135deg, rgba(232, 185, 106, 0.25), rgba(180, 80, 240, 0.35));
  border: 1px solid rgba(232, 185, 106, 0.5);
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 0.68rem;
  color: #ffd700;
  margin-left: 5px;
  font-weight: 700;
}

/* ── ADVANCED MOOD AI SECTION ── */
.section-badge-header {
  text-align: center;
  margin-bottom: 22px;
}

.vynl-plus-crown-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(232, 185, 106, 0.2) 0%, rgba(180, 80, 240, 0.28) 100%);
  border: 1px solid rgba(232, 185, 106, 0.5);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.mood-ai-card {
  background: rgba(22, 15, 8, 0.82);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(232, 185, 106, 0.22);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.ai-sliders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.ai-slider-item {
  background: rgba(36, 24, 13, 0.65);
  border: 1px solid rgba(232, 185, 106, 0.14);
  border-radius: 14px;
  padding: 15px 18px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.slider-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f5e6c8;
}

.slider-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffd700;
  background: rgba(0,0,0,0.35);
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(232, 185, 106, 0.2);
}

.ai-range {
  width: 100%;
  margin: 8px 0;
  accent-color: #e8b96a;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #9d835e;
}

.ai-select {
  width: 100%;
  background: rgba(18, 12, 6, 0.9);
  border: 1px solid rgba(232, 185, 106, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  color: #f5e6c8;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  margin-top: 4px;
}

.ai-select:focus {
  border-color: #e8b96a;
  box-shadow: 0 0 12px rgba(232, 185, 106, 0.3);
}

.ai-prompt-wrap {
  margin-bottom: 22px;
}

.ai-textarea {
  min-height: 70px;
  margin-bottom: 12px;
  border-color: rgba(232, 185, 106, 0.25);
  background: rgba(16, 10, 5, 0.85);
  border-radius: 12px;
}

.ai-presets-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.presets-tag {
  font-size: 0.78rem;
  color: #a8916a;
  font-weight: 700;
}

.ai-preset-chip {
  background: rgba(42, 28, 14, 0.75);
  border: 1px solid rgba(232, 185, 106, 0.22);
  border-radius: 14px;
  padding: 5px 13px;
  color: #f5e6c8;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-preset-chip:hover {
  background: rgba(232, 185, 106, 0.25);
  border-color: #ffd700;
  color: #fff;
  transform: translateY(-1px);
}

.ai-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.ai-btn {
  flex: 1;
  background: linear-gradient(135deg, #e8b96a 0%, #b850f0 100%);
  border: none;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(184, 80, 240, 0.35);
  padding: 13px 20px;
  border-radius: 14px;
}

.ai-btn:hover {
  background: linear-gradient(135deg, #ffd700 0%, #d46aff 100%);
  box-shadow: 0 6px 24px rgba(184, 80, 240, 0.5);
  transform: translateY(-2px);
}

.ai-surprise-btn {
  padding: 13px 18px;
  border-color: rgba(232, 185, 106, 0.35);
  border-radius: 14px;
}

.ai-telemetry-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background: rgba(14, 9, 4, 0.7);
  border: 1px solid rgba(232, 185, 106, 0.12);
  border-radius: 14px;
  padding: 14px 18px;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.telemetry-label {
  font-size: 0.7rem;
  color: #a8916a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.telemetry-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffd700;
}

/* ── BOARDS GRID & CARDS ── */
.boards-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-counter-pill {
  background: rgba(45, 30, 16, 0.85);
  border: 1px solid rgba(232, 185, 106, 0.3);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e8b96a;
}

.boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.board-card {
  background: rgba(35, 23, 12, 0.85);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(232, 185, 106, 0.2);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.board-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(232, 185, 106, 0.2);
}

.board-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.board-emoji-badge {
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(232, 185, 106, 0.2);
}

.board-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.board-desc {
  font-size: 0.78rem;
  color: #a8916a;
}

.board-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #ffd700;
  border-top: 1px solid rgba(232, 185, 106, 0.12);
  padding-top: 10px;
}

.board-actions-row {
  display: flex;
  gap: 6px;
}

.board-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(232, 185, 106, 0.2);
}

.board-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.board-detail-emoji {
  font-size: 2.2rem;
}

.board-detail-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.board-detail-subtitle {
  font-size: 0.85rem;
  color: #a8916a;
}

.board-detail-controls {
  display: flex;
  gap: 8px;
}

.danger-btn {
  border-color: rgba(224, 92, 58, 0.5) !important;
  color: #ff7b5a !important;
}

.danger-btn:hover {
  background: rgba(224, 92, 58, 0.2) !important;
}

/* ── KARAOKE STUDIO PRO TOOLBAR ── */
.karaoke-pro-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 18px;
  background: rgba(20, 12, 6, 0.8);
  border: 1px solid rgba(232, 185, 106, 0.25);
  border-radius: 16px;
  margin: 12px auto;
  max-width: 800px;
  backdrop-filter: blur(12px);
  z-index: 10;
}

.k-pro-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(45, 28, 14, 0.7);
  border: 1px solid rgba(232, 185, 106, 0.3);
  border-radius: 12px;
  padding: 6px 12px;
  color: #f5e6c8;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.k-pro-btn:hover {
  background: rgba(232, 185, 106, 0.25);
  border-color: #ffd700;
  color: #fff;
}

.k-pro-btn.active {
  background: linear-gradient(135deg, rgba(232, 185, 106, 0.4) 0%, rgba(180, 80, 240, 0.5) 100%);
  border-color: #ffd700;
  color: #fff;
  box-shadow: 0 0 12px rgba(232, 185, 106, 0.4);
}

.k-pro-tag {
  background: linear-gradient(135deg, #e8b96a 0%, #b850f0 100%);
  color: #1a0f02;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
}

.pitch-control-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(45, 28, 14, 0.7);
  border: 1px solid rgba(232, 185, 106, 0.3);
  border-radius: 12px;
  padding: 4px 10px;
}

.k-tool-label {
  font-size: 0.75rem;
  color: #a8916a;
  font-weight: 700;
}

.k-pitch-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(232, 185, 106, 0.3);
  border-radius: 6px;
  width: 22px;
  height: 22px;
  color: #ffd700;
  font-weight: 800;
  cursor: pointer;
}

.k-pitch-btn:hover {
  background: #e8b96a;
  color: #000;
}

.k-pitch-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  min-width: 55px;
  text-align: center;
}

/* ── MODALS FRAMEWORK ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 1, 0.82);
  backdrop-filter: blur(14px);
}

.modal-card {
  position: relative;
  background: rgba(26, 17, 9, 0.96);
  border: 1.5px solid rgba(232, 185, 106, 0.35);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 32px rgba(232, 185, 106, 0.15);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(14px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.mini-modal-card {
  max-width: 460px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(232, 185, 106, 0.18);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.modal-badge {
  font-size: 0.68rem;
  background: rgba(232, 185, 106, 0.2);
  color: #ffd700;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  margin-bottom: 4px;
  display: inline-block;
}

.theme-modal-body, .mini-modal-body, .plus-modal-body {
  padding: 24px;
}

/* Theme Studio Grid */
.theme-section {
  margin-bottom: 24px;
}

.theme-section-header {
  margin-bottom: 12px;
}

.theme-section-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.free-badge {
  background: rgba(70, 180, 100, 0.2);
  color: #6ee7b7;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(110, 231, 183, 0.3);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.theme-card {
  background: rgba(40, 26, 14, 0.7);
  border: 1.5px solid rgba(232, 185, 106, 0.2);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.theme-card:hover {
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.theme-card.active {
  border-color: #ffd700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.4);
}

.pro-theme-card {
  border-color: rgba(180, 80, 240, 0.35);
}

.pro-lock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #e8b96a 0%, #b850f0 100%);
  color: #1a0f02;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  z-index: 2;
}

.theme-thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.theme-card-info {
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.theme-status {
  font-size: 0.7rem;
  color: #a8916a;
}

.custom-url-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.particle-selector-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.p-select-label {
  font-size: 0.8rem;
  color: #a8916a;
  font-weight: 700;
}

.particle-btn {
  background: rgba(45, 28, 14, 0.7);
  border: 1px solid rgba(232, 185, 106, 0.25);
  border-radius: 10px;
  padding: 5px 12px;
  color: #f5e6c8;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.particle-btn:hover, .particle-btn.active {
  background: rgba(232, 185, 106, 0.3);
  border-color: #ffd700;
  color: #fff;
}

/* ── VYNL+ SUBSCRIPTION HUB STYLING (ULTRA-CLEAN MODERN) ── */
.plus-modal-card {
  max-width: 860px;
  border: 1px solid rgba(232, 185, 106, 0.3);
  background: linear-gradient(180deg, rgba(22, 14, 7, 0.98) 0%, rgba(12, 8, 4, 0.99) 100%);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(232, 185, 106, 0.1);
}

.plus-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 30px;
  border-bottom: 1px solid rgba(232, 185, 106, 0.15);
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(232, 185, 106, 0.16) 0%, transparent 80%);
}

.plus-hero-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-crown {
  font-size: 2.6rem;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
  animation: crownBob 3s infinite ease-in-out;
}

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

.plus-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.plus-symbol {
  background: linear-gradient(135deg, #ffd700 0%, #d46aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plus-hero-subtitle {
  font-size: 0.86rem;
  color: #cbb493;
  margin-top: 3px;
}

.active-sub-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(232, 185, 106, 0.18) 0%, rgba(180, 80, 240, 0.22) 100%);
  border: 1px solid #ffd700;
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.sub-status-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sub-crown-icon {
  font-size: 1.5rem;
}

.sub-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffd700;
}

.sub-desc {
  font-size: 0.8rem;
  color: #f5e6c8;
}

/* Pricing Plan Cards */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.plan-card {
  background: rgba(26, 17, 9, 0.85);
  border: 1.5px solid rgba(232, 185, 106, 0.2);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-card:hover {
  border-color: #ffd700;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
}

.plan-card.popular-plan {
  border-color: rgba(232, 185, 106, 0.5);
  background: linear-gradient(180deg, rgba(38, 24, 12, 0.9) 0%, rgba(22, 14, 7, 0.9) 100%);
  box-shadow: 0 8px 24px rgba(232, 185, 106, 0.12);
}

.plan-card.vip-plan {
  border-color: rgba(184, 80, 240, 0.45);
  background: linear-gradient(180deg, rgba(35, 18, 42, 0.9) 0%, rgba(18, 9, 24, 0.9) 100%);
  box-shadow: 0 8px 24px rgba(184, 80, 240, 0.12);
}

.plan-ribbon {
  position: absolute;
  top: 12px;
  right: -32px;
  background: linear-gradient(90deg, #e8b96a, #ffd700);
  color: #1a0f02;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 34px;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  letter-spacing: 0.05em;
}

.vip-ribbon {
  background: linear-gradient(90deg, #b850f0, #ff6ae0);
  color: #fff;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

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

.plan-price-row .currency {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffd700;
}

.plan-price-row .amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.plan-price-row .period {
  font-size: 0.85rem;
  color: #a8916a;
  font-weight: 600;
}

.plan-tagline {
  font-size: 0.78rem;
  color: #c4ad8e;
  margin-bottom: 16px;
}

.plan-perks-list {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plan-perks-list li {
  font-size: 0.82rem;
  color: #f5e6c8;
  font-weight: 600;
}

.select-plan-btn {
  width: 100%;
  background: rgba(45, 30, 16, 0.75);
  border: 1px solid rgba(232, 185, 106, 0.35);
  border-radius: 12px;
  padding: 11px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-plan-btn:hover, .select-plan-btn.active-plan-btn {
  background: linear-gradient(135deg, #e8b96a 0%, #ffd700 100%);
  color: #1a0f02;
  border-color: #fff;
  box-shadow: 0 4px 16px rgba(232, 185, 106, 0.35);
}

/* ── EXACT FEATURE COMPARISON MATRIX TABLE (CLEAN MINIMALIST) ── */
.matrix-section {
  margin-bottom: 28px;
}

.matrix-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.matrix-table-wrap {
  border: 1px solid rgba(232, 185, 106, 0.2);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(16, 10, 5, 0.88);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-main);
  text-align: left;
}

.matrix-table thead th {
  background: rgba(38, 24, 12, 0.95);
  padding: 13px 20px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #f5e6c8;
  border-bottom: 1px solid rgba(232, 185, 106, 0.2);
}

.matrix-table .col-free, .matrix-table .col-plus {
  text-align: center;
  width: 130px;
}

.matrix-table tbody tr {
  border-bottom: 1px solid rgba(232, 185, 106, 0.08);
  transition: background 0.15s ease;
}

.matrix-table tbody tr:hover {
  background: rgba(232, 185, 106, 0.05);
}

.matrix-table tbody tr.highlight-row {
  background: rgba(180, 80, 240, 0.04);
}

.matrix-table tbody td {
  padding: 12px 20px;
  font-size: 0.86rem;
  color: #f5e6c8;
  font-weight: 600;
}

.matrix-table tbody td.check {
  text-align: center;
  font-size: 1.05rem;
}

.matrix-table tbody td.cross {
  text-align: center;
  font-size: 1.05rem;
}

.sub-note {
  font-size: 0.72rem;
  color: #a8916a;
  display: block;
}

/* ── CHECKOUT & PROMO BOX ── */
.checkout-box {
  background: rgba(30, 19, 10, 0.75);
  border: 1px solid rgba(232, 185, 106, 0.25);
  border-radius: 18px;
  padding: 22px;
}

.checkout-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}

.checkout-header p {
  font-size: 0.78rem;
  color: #a8916a;
  margin-bottom: 16px;
}

.promo-code-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.promo-input {
  flex: 1;
}

.payment-methods-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pay-method-btn {
  flex: 1;
  min-width: 100px;
  background: rgba(20, 13, 7, 0.7);
  border: 1px solid rgba(232, 185, 106, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  color: #f5e6c8;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pay-method-btn:hover, .pay-method-btn.active {
  background: rgba(232, 185, 106, 0.25);
  border-color: #ffd700;
  color: #fff;
}

.checkout-activate-btn {
  width: 100%;
  background: linear-gradient(135deg, #e8b96a 0%, #b850f0 100%);
  border: none;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  padding: 14px;
  box-shadow: 0 6px 20px rgba(184, 80, 240, 0.4);
}

.checkout-activate-btn:hover {
  background: linear-gradient(135deg, #ffd700 0%, #d46aff 100%);
  box-shadow: 0 8px 28px rgba(184, 80, 240, 0.6);
  transform: translateY(-2px);
}

.checkout-guarantee {
  text-align: center;
  font-size: 0.72rem;
  color: #a8916a;
  margin-top: 8px;
}

/* Emoji Picker in Modal */
.emoji-picker-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.emoji-chip {
  font-size: 1.3rem;
  background: rgba(45, 28, 14, 0.7);
  border: 1px solid rgba(232, 185, 106, 0.25);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.emoji-chip:hover, .emoji-chip.active {
  background: rgba(232, 185, 106, 0.35);
  border-color: #ffd700;
  transform: scale(1.1);
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f5e6c8;
  margin: 12px 0 6px;
}

.form-label:first-child {
  margin-top: 0;
}

.add-song-sub {
  font-size: 0.85rem;
  color: #ffd700;
  font-weight: 700;
  margin-bottom: 12px;
}

.add-to-boards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.add-board-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(45, 28, 14, 0.7);
  border: 1px solid rgba(232, 185, 106, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-board-option-btn:hover {
  background: rgba(232, 185, 106, 0.3);
  border-color: #ffd700;
  transform: translateX(3px);
}

/* ══════════════════════════════════════════════════════════
   ─── USER PROFILE, VIRAL SHARING & 3-PLAN PRICING STYLES ─
   ══════════════════════════════════════════════════════════ */

/* ── Header User Profile Button ── */
.header-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(35, 22, 12, 0.7);
  border: 1px solid rgba(232, 185, 106, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.header-profile-btn:hover {
  background: rgba(232, 185, 106, 0.25);
  border-color: #ffd700;
  transform: translateY(-1px);
}

.header-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffd700;
}

.user-tier-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
}

/* ── Hero Conversational Story Prompts ── */
.hero-prompt-container {
  margin-bottom: 20px;
}

.hero-mood-input {
  min-height: 80px;
  font-size: 1rem;
  border-color: rgba(232, 185, 106, 0.35);
  background: rgba(20, 13, 7, 0.85);
  border-radius: 16px;
  padding: 14px 18px;
  line-height: 1.5;
}

.story-prompts-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.prompts-hint {
  font-size: 0.75rem;
  color: #a8916a;
  font-weight: 700;
}

.story-prompt-chip {
  background: rgba(35, 22, 12, 0.65);
  border: 1px solid rgba(232, 185, 106, 0.22);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f5e6c8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.story-prompt-chip:hover {
  background: rgba(232, 185, 106, 0.3);
  border-color: #ffd700;
  color: #fff;
  transform: translateY(-1px);
}

.hero-generate-btn {
  margin-top: 18px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 900;
}

/* ── User Profile Modal ── */
.profile-modal-card {
  max-width: 580px;
}

.profile-modal-header {
  border-bottom: 1px solid rgba(232, 185, 106, 0.2);
  padding-bottom: 18px;
}

.profile-header-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar-wrap {
  position: relative;
}

.profile-large-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #ffd700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.3);
}

.change-avatar-badge {
  position: absolute;
  bottom: 0;
  right: -2px;
  width: 22px;
  height: 22px;
  background: #e8b96a;
  border: none;
  border-radius: 50%;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-display-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.profile-tier-badge {
  background: rgba(232, 185, 106, 0.2);
  border: 1px solid #e8b96a;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffd700;
}

.profile-tier-badge.vip-badge {
  background: linear-gradient(135deg, #ffd700, #b850f0);
  color: #1a0f02;
  border: none;
}

.profile-bio-text {
  font-size: 0.8rem;
  color: #a8916a;
  margin-top: 2px;
}

/* Stats Grid */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.profile-stat-card {
  background: rgba(30, 19, 10, 0.7);
  border: 1px solid rgba(232, 185, 106, 0.2);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-icon {
  font-size: 1.3rem;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffd700;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: #a8916a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Avatar Selection Tray */
.avatar-picker-tray {
  background: rgba(20, 13, 7, 0.8);
  border: 1px solid rgba(232, 185, 106, 0.25);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.picker-label {
  font-size: 0.75rem;
  color: #a8916a;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.avatar-options-row {
  display: flex;
  gap: 12px;
}

.avatar-option {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-option:hover, .avatar-option.active {
  border-color: #ffd700;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.profile-edit-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(25, 16, 8, 0.6);
  border: 1px solid rgba(232, 185, 106, 0.15);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
}

.profile-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-block-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.mood-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.mood-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 19, 10, 0.6);
  border: 1px solid rgba(232, 185, 106, 0.14);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #f5e6c8;
}

.mood-history-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mood-history-time {
  font-size: 0.7rem;
  color: #a8916a;
}

/* ── Viral Share Modal ── */
.share-modal-card {
  max-width: 520px;
}

.share-board-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(35, 22, 12, 0.75);
  border: 1px solid rgba(232, 185, 106, 0.3);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.share-preview-emoji {
  font-size: 2.2rem;
}

.share-preview-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.share-preview-sub {
  font-size: 0.78rem;
  color: #cbb493;
}

.share-url-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.share-input {
  flex: 1;
  font-size: 0.82rem;
  background: rgba(14, 9, 4, 0.85);
}

.social-share-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.discord-btn {
  background: linear-gradient(135deg, #5865f2, #4752c4);
}

.twitter-btn {
  background: linear-gradient(135deg, #1d9bf0, #0c7abf);
}

.instagram-btn {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.share-viral-hint {
  text-align: center;
  font-size: 0.74rem;
  color: #a8916a;
}

.share-glow-btn {
  background: linear-gradient(135deg, #e8b96a, #ffd700);
  color: #1a0f02 !important;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(232, 185, 106, 0.4);
}

/* ── 3-Plan Pricing Grid & Founder Pass ── */
.pricing-3-col {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}

.founder-plan {
  border: 2px solid #ffd700 !important;
  background: linear-gradient(180deg, rgba(50, 32, 10, 0.95) 0%, rgba(30, 18, 5, 0.95) 100%) !important;
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.25) !important;
}

.founder-ribbon {
  background: linear-gradient(90deg, #ff4500, #ffd700) !important;
  color: #fff !important;
  font-weight: 900 !important;
}

.founder-btn {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%) !important;
  color: #1a0f02 !important;
  border: none !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4) !important;
}

.founder-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.6) !important;
}

/* ── 60FPS TRAILING MOUSE SPARKLE EFFECTS CANVAS ── */
.mouse-trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
  contain: strict;
}

/* ── AUTHENTICATION & LOGIN / SIGN UP MODAL ───────── */
.auth-modal-card {
  width: 460px;
  max-width: 92vw;
  background: rgba(18, 11, 5, 0.98);
  border: 2px solid #000000;
  border-radius: 20px;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 235, 180, 0.25),
    inset -2px -2px 0px rgba(0, 0, 0, 0.75),
    0 24px 60px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0;
  overflow: hidden;
}

.auth-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(200, 140, 55, 0.18);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.auth-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #e8b96a;
  box-shadow: 0 0 12px rgba(232, 185, 106, 0.4);
  flex-shrink: 0;
}

.auth-title {
  font-family: var(--font-header);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.auth-subtitle {
  font-size: 0.75rem;
  color: #a8916a;
  line-height: 1.35;
}

.auth-tabs-row {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(200, 140, 55, 0.15);
}

.auth-tab-btn {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: #a8916a;
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.auth-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.auth-tab-btn.active {
  color: #ffd700;
  background: rgba(232, 185, 106, 0.1);
  border-bottom-color: #ffd700;
}

.auth-modal-body {
  padding: 22px 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-text-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(10, 6, 2, 0.85);
  border: 2px solid #000000;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-text-input:focus {
  border-color: #e8b96a;
  box-shadow: 0 0 10px rgba(232, 185, 106, 0.35);
}

.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #a8916a;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.demo-login-link {
  background: transparent;
  border: none;
  color: #ffd700;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.demo-login-link:hover {
  color: #fff;
}

.auth-submit-btn {
  padding: 12px;
  background: linear-gradient(180deg, #e8b96a 0%, #a86810 100%);
  border: 2px solid #000000;
  border-radius: 8px;
  color: #1a0f02;
  font-family: var(--font-pixel);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 2px 2px 0px rgba(255, 255, 255, 0.5),
    inset -2px -2px 0px rgba(0, 0, 0, 0.7),
    0 4px 14px rgba(232, 185, 106, 0.4);
  transition: transform 0.08s ease, filter 0.15s ease;
  margin-top: 4px;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.auth-submit-btn:active {
  transform: translateY(2px);
}

.avatar-signup-tray {
  display: flex;
  gap: 12px;
}

.signup-avatar-opt {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(200, 140, 55, 0.4);
  cursor: pointer;
  transition: all 0.18s ease;
}

.signup-avatar-opt:hover {
  transform: scale(1.1);
  border-color: #ffd700;
}

.signup-avatar-opt.active {
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  transform: scale(1.12);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: #a8916a;
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(200, 140, 55, 0.2);
}

.auth-divider span {
  padding: 0 10px;
}

.social-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.social-auth-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.profile-account-actions {
  display: flex;
  gap: 10px;
  margin: 14px 0 6px;
}

.danger-btn {
  background: linear-gradient(180deg, #4d1515 0%, #280a0a 100%) !important;
  color: #ff9999 !important;
  border-color: #ff4444 !important;
}

.danger-btn:hover {
  background: linear-gradient(180deg, #701d1d 0%, #3e0e0e 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.4) !important;
}



