/* ==========================================================================
   AuraSynth AI - Next-Gen Generative AI Music & Vocal Production Studio
   Color Palette: Deep Burgundy (#160307, #350813), White (#FFFFFF), Cyan (#00F0FF)
   Fully Optimized for Desktop, Tablet, Mobile Web & Android PWA
   ========================================================================== */

:root {
  --bg-deep: #120206;
  --bg-main: #180309;
  --bg-card: rgba(35, 6, 14, 0.75);
  --bg-card-hover: rgba(55, 10, 22, 0.85);
  --bg-glass: rgba(26, 4, 10, 0.82);
  --bg-surface: #26050e;
  
  --burgundy-primary: #820f2b;
  --burgundy-light: #ab153a;
  --burgundy-dark: #3a0613;
  --burgundy-glow: rgba(171, 21, 58, 0.45);
  --burgundy-border: rgba(171, 21, 58, 0.35);

  --cyan-neon: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.4);
  --cyan-subtle: rgba(0, 240, 255, 0.12);
  --cyan-dark: #083344;
  --cyan-bright: #38bdf8;

  --text-white: #ffffff;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-burgundy: 0 10px 30px -10px rgba(130, 15, 43, 0.5);
  --shadow-cyan: 0 0 25px rgba(0, 240, 255, 0.35);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.5);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-main);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --bottom-player-height: 84px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(130, 15, 43, 0.3) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0, 240, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(24, 3, 9, 0.9) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-player-height) + 20px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--burgundy-dark);
  border-radius: 4px;
  border: 1px solid var(--burgundy-border);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--burgundy-primary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
}

.text-cyan {
  color: var(--cyan-neon) !important;
  text-shadow: 0 0 12px var(--cyan-glow);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, var(--cyan-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-burgundy-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #ff85a1 40%, var(--cyan-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Header */
.aura-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--burgundy-border);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
}

.logo-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--burgundy-primary), var(--burgundy-dark));
  border: 1.5px solid var(--cyan-neon);
  box-shadow: var(--shadow-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-badge svg {
  width: 24px;
  height: 24px;
  fill: var(--cyan-neon);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--cyan-subtle);
  color: var(--cyan-neon);
  border: 1px solid var(--cyan-neon);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--cyan-neon);
  border-bottom: 2px solid var(--cyan-neon);
}

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

.credits-pill {
  background: rgba(8, 51, 68, 0.8);
  border: 1px solid var(--cyan-neon);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
  color: var(--cyan-neon);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
}

.credits-count {
  color: #fff;
  font-family: var(--font-mono);
}

/* Buttons */
.btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.btn-cyan {
  background: var(--cyan-neon);
  color: #03141e;
  box-shadow: var(--shadow-cyan);
}
.btn-cyan:hover {
  background: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.6);
}

.btn-burgundy {
  background: linear-gradient(135deg, var(--burgundy-primary), var(--burgundy-light));
  color: #ffffff;
  border: 1px solid var(--burgundy-border);
  box-shadow: var(--shadow-burgundy);
}
.btn-burgundy:hover {
  background: linear-gradient(135deg, var(--burgundy-light), #c21943);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(171, 21, 58, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
  background: var(--cyan-subtle);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hero & Studio Generation Box */
.studio-hero {
  padding: 36px 0 24px;
}

.hero-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 30px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Generative Prompt Panel */
.prompt-panel {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid var(--burgundy-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card), 0 0 40px rgba(130, 15, 43, 0.25);
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  transition: border-color 0.3s ease;
}

.prompt-panel:focus-within {
  border-color: var(--cyan-neon);
  box-shadow: var(--shadow-card), 0 0 30px var(--cyan-glow);
}

.prompt-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--burgundy-primary), var(--cyan-neon), var(--burgundy-light));
}

.prompt-input-wrapper {
  position: relative;
  margin-bottom: 18px;
}

.prompt-textarea {
  width: 100%;
  min-height: 90px;
  background: rgba(14, 2, 6, 0.6);
  border: 1px solid var(--burgundy-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--text-white);
  font-size: 1.05rem;
  font-family: var(--font-main);
  resize: vertical;
  outline: none;
  transition: all 0.25s ease;
}

.prompt-textarea:focus {
  background: rgba(14, 2, 6, 0.9);
  border-color: var(--cyan-neon);
}

.prompt-textarea::placeholder {
  color: var(--text-dim);
}

.prompt-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.genre-tags-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  max-width: 100%;
}

.genre-tag-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.genre-tag-pill:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-light);
  color: var(--text-white);
}

.genre-tag-pill.active {
  background: var(--burgundy-primary);
  border-color: var(--cyan-neon);
  color: #fff;
  box-shadow: 0 0 10px var(--cyan-glow);
}

.generation-options {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.custom-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.custom-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-switch {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--burgundy-border);
  transition: .3s;
  border-radius: 34px;
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-muted);
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-switch {
  background-color: var(--burgundy-primary);
  border-color: var(--cyan-neon);
}

input:checked + .slider-switch:before {
  transform: translateX(20px);
  background-color: var(--cyan-neon);
  box-shadow: 0 0 8px var(--cyan-neon);
}

/* Accordion Advanced Drawer */
.advanced-drawer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--burgundy-border);
  display: none;
}

.advanced-drawer.open {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  animation: slideDown 0.3s ease;
}

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

.field-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.field-input, .field-select {
  width: 100%;
  background: rgba(14, 2, 6, 0.7);
  border: 1px solid var(--burgundy-border);
  color: var(--text-white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.9rem;
}

.field-input:focus, .field-select:focus {
  border-color: var(--cyan-neon);
}

/* Generation In-Progress Overlay Card */
.generating-card {
  display: none;
  background: linear-gradient(135deg, rgba(42, 6, 17, 0.9), rgba(10, 2, 4, 0.95));
  border: 1.5px solid var(--cyan-neon);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-cyan);
  animation: pulseCard 2s infinite alternate;
}

@keyframes pulseCard {
  0% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.2); }
  100% { box-shadow: 0 0 35px rgba(0, 240, 255, 0.5); }
}

.generating-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.generating-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--cyan-neon);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.generating-info {
  flex: 1;
}

.generating-title {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.generating-step {
  font-size: 0.9rem;
  color: var(--cyan-neon);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.generating-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.generating-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--burgundy-primary), var(--cyan-neon));
  transition: width 0.3s ease;
}

/* Feed & Filter Tabs */
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--burgundy-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--burgundy-dark);
  color: var(--text-white);
}

.filter-btn.active {
  background: var(--burgundy-primary);
  border-color: var(--cyan-neon);
  color: var(--text-white);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

/* Music Track Grid */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

/* Music Track Card */
.track-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--burgundy-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
}

.track-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-neon);
  box-shadow: var(--shadow-card), 0 0 25px rgba(0, 240, 255, 0.25);
}

.track-card.active-playing {
  border-color: var(--cyan-neon);
  background: linear-gradient(180deg, rgba(50, 8, 20, 0.95), rgba(15, 2, 6, 0.98));
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.card-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  background: #080103;
}

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

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

.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 2, 7, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.track-card:hover .card-play-overlay,
.track-card.active-playing .card-play-overlay {
  opacity: 1;
}

.card-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cyan-neon);
  color: #03141e;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 24px var(--cyan-neon);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-play-btn:hover {
  transform: scale(1.12);
}

.card-play-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.card-meta-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(18, 2, 7, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--burgundy-border);
  color: var(--cyan-neon);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.card-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(18, 2, 7, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.track-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-style {
  font-size: 0.82rem;
  color: var(--cyan-bright);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-prompt {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.25rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-card-action {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-action:hover {
  background: var(--bg-surface);
  border-color: var(--burgundy-border);
  color: var(--cyan-neon);
}

.btn-card-action.liked {
  color: #ff3366;
}

/* Floating Master Bottom Player Bar */
.bottom-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-player-height);
  background: rgba(18, 2, 7, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1.5px solid var(--burgundy-border);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 -2px 15px rgba(0, 240, 255, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.player-inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Left Track Info */
.player-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  max-width: 320px;
}

.player-thumb-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--burgundy-border);
  flex-shrink: 0;
  position: relative;
}

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

.player-track-details {
  overflow: hidden;
}

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

.player-track-sub {
  font-size: 0.78rem;
  color: var(--cyan-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Center Controls & Scrubber */
.player-center {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ctrl-btn:hover {
  color: var(--cyan-neon);
}

.ctrl-btn-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cyan-neon);
  color: #03141e;
  box-shadow: 0 0 16px var(--cyan-neon);
}

.ctrl-btn-play:hover {
  transform: scale(1.08);
  box-shadow: 0 0 24px var(--cyan-neon);
  color: #03141e;
}

.timeline-bar-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-stamp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  min-width: 36px;
}

.scrubber-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.scrubber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan-neon);
  box-shadow: 0 0 8px var(--cyan-neon);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.scrubber-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Right Actions & Canvas Visualizer */
.player-right {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 240px;
  justify-content: flex-end;
}

.player-visualizer-canvas {
  width: 110px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--burgundy-border);
}

.volume-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  width: 75px;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-white);
  cursor: pointer;
}

/* Modals */
.aura-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 1, 4, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.aura-modal.active {
  display: flex;
  animation: modalFadeIn 0.25s ease;
}

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

.modal-dialog {
  background: var(--bg-card);
  border: 1.5px solid var(--burgundy-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), 0 0 50px rgba(130, 15, 43, 0.4);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.btn-close-modal:hover {
  color: var(--cyan-neon);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.lyrics-text {
  white-space: pre-wrap;
  font-family: var(--font-main);
  line-height: 1.8;
  color: var(--text-light);
  font-size: 1rem;
}

/* Stem Isolator Studio Mixer */
.stem-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 2, 6, 0.7);
  border: 1px solid var(--burgundy-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 12px;
}

.stem-label {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 110px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stem-fader {
  flex: 1;
  margin: 0 16px;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.stem-fader::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan-neon);
  box-shadow: 0 0 10px var(--cyan-neon);
  cursor: pointer;
}

.stem-toggles {
  display: flex;
  gap: 6px;
}

.btn-stem-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-stem-toggle.active-mute {
  background: #ff2a5f;
  color: #fff;
  border-color: #ff2a5f;
}

/* Mobile Bottom Navigation (Shown only on small screens) */
.mobile-nav-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(15, 2, 6, 0.98);
  border-top: 1px solid var(--burgundy-border);
  z-index: 1100;
  padding: 0 10px;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  width: 25%;
  height: 100%;
}

.mobile-nav-item.active {
  color: var(--cyan-neon);
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .player-visualizer-canvas {
    display: none;
  }
  .player-left {
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--bottom-player-height) + 65px);
  }

  .nav-links {
    display: none;
  }

  .mobile-nav-bar {
    display: block;
  }

  .bottom-player {
    bottom: 60px;
    height: 70px;
    padding: 0 12px;
  }

  .player-right {
    min-width: auto;
  }

  .volume-slider-wrap {
    display: none;
  }

  .tracks-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .prompt-panel {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .tracks-grid {
    grid-template-columns: 1fr;
  }
  .player-left {
    max-width: 160px;
  }
  .timeline-bar-wrap {
    display: none;
  }
  .player-center {
    justify-content: center;
  }
}
