/**
 * JAZZ PLAYS SOFTLY // MODERN MINIMAL LUXURY
 * Midnight Smoke & Sound System Noir
 */

:root {
  --bg-deep: #07080a;
  --bg-surface: #0e1015;
  --bg-card: rgba(18, 20, 26, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --text-main: #f4f4f5;
  --text-muted: #8b8d98;
  --text-dim: #52535d;
  --accent-silver: #e4e4e7;
}

/* Reset and Viewport Lock (Desktop zero-scroll, Mobile natural scroll) */
html, body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1024px) {
  html, body {
    height: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
}

code, kbd, samp, pre, .font-mono {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

/* Subtle Film / Analog Texture */
.smoke-texture {
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 80%),
                    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.015) 0%, transparent 60%);
}

/* Luxury Glassmorphism Cards */
.glass-deck {
  background: rgba(12, 14, 19, 0.45);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-artwork {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Drawer transitions */
.drawer-backdrop {
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-panel {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Minimal Progress Bar */
.progress-rail {
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  transition: height 0.15s ease;
}
.progress-rail:hover {
  height: 5px;
}
.progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  width: 0%;
  position: relative;
}
.progress-rail:hover .progress-handle {
  opacity: 1;
  transform: scale(1);
}
.progress-handle {
  position: absolute;
  right: -5px;
  top: 50%;
  margin-top: -5px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Sound Wave Bars Animation */
.wave-bar {
  width: 2px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: bottom;
}
.wave-playing .wave-bar:nth-child(1) { animation: wavePulse 0.8s ease-in-out infinite alternate; }
.wave-playing .wave-bar:nth-child(2) { animation: wavePulse 1.1s ease-in-out 0.2s infinite alternate; }
.wave-playing .wave-bar:nth-child(3) { animation: wavePulse 0.7s ease-in-out 0.4s infinite alternate; }
.wave-playing .wave-bar:nth-child(4) { animation: wavePulse 1.0s ease-in-out 0.1s infinite alternate; }

@keyframes wavePulse {
  0% { height: 4px; }
  100% { height: 16px; }
}

/* Selection */
::selection {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
