/* Richify Official Brand Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --richify-black: #06080d;
  --richify-navy: #0b1120;
  --richify-card: rgba(13, 20, 36, 0.7);
  --richify-card-border: rgba(56, 189, 248, 0.12);
  --richify-blue: #0066ff;
  --richify-blue-glow: rgba(0, 102, 255, 0.35);
  --richify-cyan: #00d2ff;
  --richify-silver: #e2e8f0;
  --richify-muted: #94a3b8;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--richify-black);
  color: var(--richify-silver);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 102, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(0, 210, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(11, 17, 32, 0.8) 0%, transparent 100%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #080c16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0066ff;
}

/* Glassmorphism */
.glass-panel {
  background: var(--richify-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--richify-card-border);
  border-radius: 16px;
  transition: all 0.25s ease;
}

.glass-panel:hover {
  border-color: rgba(0, 210, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 102, 255, 0.08);
}

/* Brand Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px var(--richify-blue-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 102, 255, 0.55);
  filter: brightness(1.1);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  font-weight: 500;
  border-radius: 12px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-icon:hover {
  background: rgba(0, 102, 255, 0.2);
  border-color: #0066ff;
  color: #38bdf8;
  transform: scale(1.05);
}
.btn-icon.active {
  background: #0066ff;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 15px var(--richify-blue-glow);
}

/* Timeline & Sliders */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #1e293b;
  outline: none;
  transition: background 0.2s;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
  transition: transform 0.15s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  background: #ffffff;
}

/* Glow effects */
.glow-blue {
  box-shadow: 0 0 35px rgba(0, 102, 255, 0.3);
}
.glow-cyan {
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.25);
}

/* Animated gradient text */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-blue {
  background: linear-gradient(135deg, #38bdf8 0%, #0066ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pulse dot */
.pulse-green {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Hero vinyl spinning animation */
.vinyl-spin {
  animation: spinVinyl 12s linear infinite;
}
.vinyl-paused {
  animation-play-state: paused;
}
@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Sidebar navigation links */
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sidebar-nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}
.sidebar-nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(0, 102, 255, 0.2) 0%, rgba(0, 210, 255, 0.05) 100%);
  border-left: 3px solid #00d2ff;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

/* Playback target buttons */
.playback-target-btn {
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}
.playback-target-btn:hover {
  color: #ffffff;
}
.playback-target-btn.active {
  background: linear-gradient(135deg, #0066ff 0%, #00d2ff 100%);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.5);
}

/* Music Card Styles */
.music-card {
  position: relative;
  background: rgba(13, 20, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.music-card:hover {
  transform: translateY(-5px);
  background: rgba(18, 28, 52, 0.85);
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 12px 35px rgba(0, 102, 255, 0.25);
}
.music-card .play-overlay {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s ease;
}
.music-card:hover .play-overlay {
  opacity: 1;
  transform: scale(1);
}

/* Lyrics teleprompter active line */
.lyric-line-active {
  color: #38bdf8;
  font-weight: 800;
  font-size: 1.25rem;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
  transform: scale(1.04);
  transition: all 0.25s ease;
}


/* Horizontal Carousel Utilities */
.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 8px 4px 16px 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar {
  display: none;
}
.carousel-item {
  flex: 0 0 190px;
  max-width: 190px;
}
@media (min-width: 640px) {
  .carousel-item {
    flex: 0 0 215px;
    max-width: 215px;
  }
}

/* Category Filter Pills */
.category-pill {
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.category-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
.category-pill.active {
  background: linear-gradient(135deg, #0066ff 0%, #00d2ff 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
}

/* YouTube Dock Modes */
#yt-player-dock.video-mode {
  display: block !important;
  width: 340px !important;
  height: 192px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 102, 255, 0.3) !important;
}
#yt-player-dock.video-mode iframe {
  width: 100% !important;
  height: 100% !important;
}
#yt-player-dock.expanded-mode {
  display: block !important;
  width: 520px !important;
  height: 292px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 102, 255, 0.4) !important;
}
#yt-player-dock.expanded-mode iframe {
  width: 100% !important;
  height: 100% !important;
}
#yt-player-dock.song-mode {
  display: block !important;
  width: 200px !important;
  height: 120px !important;
  opacity: 0.01 !important;
  pointer-events: none !important;
  position: fixed !important;
  bottom: 0 !important;
  right: -9999px !important;
}

/* Collapsed Sidebar */
aside#main-sidebar.sidebar-collapsed {
  width: 76px !important;
}
aside#main-sidebar.sidebar-collapsed .sidebar-text,
aside#main-sidebar.sidebar-collapsed p.uppercase,
aside#main-sidebar.sidebar-collapsed #sidebar-user-pill .truncate {
  display: none !important;
}
aside#main-sidebar.sidebar-collapsed .sidebar-nav-link {
  justify-content: center !important;
  padding: 10px !important;
}
body.sidebar-collapsed-body div.lg\:pl-64 {
  padding-left: 76px !important;
}

/* ========================================================================= */
/* LUXURY LIQUID GLASS FLOATING ISLAND DOCK */
/* ========================================================================= */
#persistent-player-bar.floating-island,
#persistent-player-bar.liquid-glass {
  position: fixed !important;
  bottom: 16px !important;
  left: 14px !important;
  right: 14px !important;
  z-index: 50 !important;
  border-radius: 36px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 38%, rgba(8, 14, 28, 0.85) 100%) !important;
  backdrop-filter: blur(40px) saturate(220%) brightness(115%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(220%) brightness(115%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.88),
    0 0 50px rgba(0, 102, 255, 0.22),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.4),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.5) !important;
  padding: 10px 20px !important;
  overflow: visible !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (min-width: 1024px) {
  #persistent-player-bar.floating-island,
  #persistent-player-bar.liquid-glass {
    left: 276px !important;
    right: 24px !important;
    bottom: 22px !important;
    padding: 12px 28px !important;
  }
  body.sidebar-collapsed-body #persistent-player-bar.floating-island,
  body.sidebar-collapsed-body #persistent-player-bar.liquid-glass {
    left: 96px !important;
  }
}

/* Liquid Shimmer Rim */
#persistent-player-bar.floating-island::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 36px;
  padding: 1px;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(0, 210, 255, 0.45) 25%,
    rgba(168, 85, 247, 0.3) 50%,
    rgba(0, 102, 255, 0.45) 75%,
    rgba(255, 255, 255, 0.5) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

/* Central Liquid Droplet Play/Pause Button */
.liquid-play-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #00d2ff 0%, #0066ff 55%, #6366f1 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 
    0 0 25px rgba(0, 210, 255, 0.75),
    0 0 50px rgba(0, 102, 255, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.7),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.liquid-play-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 
    0 0 35px rgba(0, 210, 255, 0.9),
    0 0 65px rgba(0, 102, 255, 0.55),
    inset 0 2px 4px rgba(255, 255, 255, 0.85) !important;
}
.liquid-play-btn:active {
  transform: scale(0.95) !important;
}

/* Floating Player Equalizer Waveform */
.equalizer-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}
.equalizer-bars .eq-bar {
  width: 3px;
  background: linear-gradient(to top, #0066ff, #00d2ff);
  border-radius: 2px;
  height: 3px;
  transition: height 0.15s ease;
}
.equalizer-bars.playing .bar-1 {
  animation: eqBounce 0.75s ease-in-out infinite alternate;
}
.equalizer-bars.playing .bar-2 {
  animation: eqBounce 1.05s ease-in-out 0.15s infinite alternate;
}
.equalizer-bars.playing .bar-3 {
  animation: eqBounce 0.65s ease-in-out 0.35s infinite alternate;
}
.equalizer-bars.playing .bar-4 {
  animation: eqBounce 0.95s ease-in-out 0.1s infinite alternate;
}
@keyframes eqBounce {
  0% { height: 3px; }
  100% { height: 16px; }
}

/* Liquid Glass Server / Discord Session Chip */
.server-dock-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  max-width: 220px;
}
.server-dock-chip:hover {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}
.server-dock-chip.active {
  background: rgba(88, 101, 242, 0.24);
  border-color: #5865F2;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Liquid Autoplay Pill Button */
.liquid-autoplay-btn {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.liquid-autoplay-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
.liquid-autoplay-btn.active {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  color: #34d399 !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

/* Liquid Volume Button & Controls */
.liquid-vol-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.liquid-vol-btn:hover {
  color: #38bdf8;
  transform: scale(1.1);
}
.liquid-vol-btn.muted {
  color: #f43f5e !important;
}

/* Liquid Scrubber Slider */
.liquid-scrubber {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.liquid-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #00d2ff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.95);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.liquid-scrubber::-webkit-slider-thumb:hover {
  transform: scale(1.35);
  box-shadow: 0 0 16px rgba(0, 210, 255, 1);
}

/* Bottom Player Art Pulse / Glow */
.player-art-glow {
  box-shadow: 0 0 25px rgba(0, 102, 255, 0.45);
}

/* Full height margin compensation for main container */
#main-content {
  padding-bottom: 120px;
}
@media (min-width: 1024px) {
  #main-content {
    padding-bottom: 130px;
  }
}

/* Synced Karaoke Lyrics Line Active Glow */
.lyric-line.active {
  color: #00d2ff;
  font-size: 1.15rem;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(0, 210, 255, 0.6);
  transform: scale(1.04);
}

/* Vibe Radar Pulse Indicator */
.vibe-pulse {
  animation: vibe-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes vibe-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
}

/* Autoplay Glowing Active Indicator */
.liquid-autoplay-btn.active {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: #34d399 !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.35) !important;
}

/* ========================================================================= */
/* ROCK-SOLID NON-TRANSPARENT SEARCH & AUTOCOMPLETE STYLES                  */
/* ========================================================================= */
.search-pill-container {
  background-color: #0b1120 !important;
  background: #0b1120 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75) !important;
}
.search-pill-container:focus-within {
  border-color: #00d2ff !important;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.4) !important;
}
#global-search-input {
  color: #ffffff !important;
  background-color: transparent !important;
}
#global-search-input::placeholder {
  color: #94a3b8 !important;
}

#search-autocomplete-dropdown {
  background-color: #090e1c !important;
  background: #090e1c !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.98), 0 0 30px rgba(0, 102, 255, 0.25) !important;
  z-index: 99999 !important;
  opacity: 1 !important;
}
#search-instant-results > div {
  background-color: #11182c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
#search-instant-results > div:hover {
  background-color: #18243e !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
}

#page-search-input {
  background-color: #0b1120 !important;
  background: #0b1120 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6) !important;
}
#page-search-input:focus {
  border-color: #00d2ff !important;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.4) !important;
}

/* ========================================================================= */
/* SIDEBAR HIDE / EXPAND RESPONSIVE BEHAVIOR                                */
/* ========================================================================= */
aside#main-sidebar.sidebar-hidden {
  transform: translateX(-100%) !important;
}
#main-content-wrapper.sidebar-hidden-layout {
  padding-left: 0 !important;
}
body.sidebar-hidden-active #persistent-player-bar.floating-island,
body.sidebar-hidden-active #persistent-player-bar.liquid-glass {
  left: 20px !important;
  right: 20px !important;
}

/* ========================================================================= */
/* FULLSCREEN / EXPANDED NOW PLAYING MODAL                                   */
/* ========================================================================= */
#nowplaying-fullscreen-modal {
  position: fixed;
  inset: 0;
  z-index: 99999 !important;
  background-color: #06080d !important;
  background: linear-gradient(180deg, #090f1f 0%, #06080d 100%) !important;
}
#nowplaying-fullscreen-modal.hidden {
  display: none !important;
}

