:root {
  --bg-dark: #090614;
  --bg-card: rgba(22, 16, 38, 0.65);
  --bg-card-hover: rgba(36, 26, 61, 0.75);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(236, 72, 153, 0.35);
  --primary-pink: #ec4899;
  --primary-purple: #8b5cf6;
  --accent-peach: #f472b6;
  --accent-cyan: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

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

/* Security: Disable browser media dragging */
img, audio {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  selection-background-color: var(--primary-pink);
}

/* Background Animated Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
  top: -10%;
  left: -10%;
}

.orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
  bottom: -15%;
  right: -10%;
  animation-delay: -6s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #f43f5e 0%, rgba(244, 63, 94, 0) 70%);
  top: 40%;
  left: 35%;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Base Glassmorphism */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.app-container {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  gap: 24px;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-peach);
}

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

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.stat-pill {
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.stat-pill .icon {
  font-style: normal;
}

/* Main Layout Grid */
.main-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 24px;
  flex: 1;
}

/* Player Showcase (Left Panel) */
.player-showcase {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 120px);
  min-height: 640px;
}

/* Vinyl Stage & Canvas */
.vinyl-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 270px;
  width: 100%;
}

.vinyl-wrapper {
  position: relative;
  width: 210px;
  height: 210px;
  z-index: 2;
  transition: transform 0.4s ease;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #111;
  background: radial-gradient(circle, #252528 0%, #151518 45%, #0d0d0f 70%, #000 100%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-grooves {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  box-shadow: 
    inset 0 0 0 10px rgba(255, 255, 255, 0.02),
    inset 0 0 0 20px rgba(255, 255, 255, 0.02),
    inset 0 0 0 35px rgba(255, 255, 255, 0.03);
}

.vinyl-art-wrap {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 4px #0d0d0f, 0 0 20px rgba(0,0,0,0.8);
  z-index: 3;
}

.vinyl-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.vinyl-center-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #090614;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 0 4px #000;
  z-index: 4;
}

.vinyl-glow {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
  filter: blur(16px);
  z-index: 1;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

/* Vinyl Spin State */
.vinyl-wrapper.is-playing .vinyl-disc {
  animation: spinVinyl 12s linear infinite;
}

.vinyl-wrapper.is-playing .vinyl-glow {
  opacity: 1;
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

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

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

/* Canvas Audio Visualizer */
#visualizerCanvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.visualizer-toggle-group {
  position: absolute;
  bottom: 4px;
  display: flex;
  gap: 6px;
  background: rgba(13, 9, 26, 0.75);
  border: 1px solid var(--border-glass);
  padding: 4px;
  border-radius: 20px;
  z-index: 4;
}

.viz-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.viz-btn.active {
  background: rgba(236, 72, 153, 0.25);
  color: #fff;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

/* Track Info Details */
.track-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.track-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.genre-pill, .quality-pill, .hash-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.genre-pill {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.quality-pill {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.hash-pill {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.track-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.track-style {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Scrub & Progress */
.scrub-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scrub-times {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.progress-bar-wrap {
  position: relative;
  height: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  overflow: visible;
  transition: height 0.2s ease;
}

.progress-bar-wrap:hover {
  height: 10px;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.5);
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.progress-bar-wrap:hover .progress-thumb {
  opacity: 1;
}

/* Player Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: 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;
  position: relative;
}

.ctrl-btn:hover {
  color: #fff;
  transform: scale(1.08);
}

.ctrl-btn.active {
  color: var(--primary-pink);
}

.sub-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sub-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
}

.play-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.6);
  color: #fff;
}

.repeat-one-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9px;
  font-weight: 800;
  background: var(--primary-pink);
  color: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bottom Bar & Volume */
.player-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 12px;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 130px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(236, 72, 153, 0.18);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #fdf2f8;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(236, 72, 153, 0.3);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.25);
}

.action-btn.outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.action-btn.outline:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.glass-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.glass-btn.icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}

/* Playlist Section (Right Panel) */
.playlist-section {
  display: flex;
  flex-direction: column;
  padding: 28px;
  gap: 20px;
  overflow: hidden;
}

.playlist-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.playlist-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playlist-title-row h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.count-pill {
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 100px;
  color: var(--accent-peach);
}

/* Search Box */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  padding: 12px 40px 12px 42px;
  background: rgba(13, 9, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.search-wrap input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.25);
  background: rgba(20, 14, 38, 0.8);
}

.clear-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
}

.clear-btn:hover {
  color: #fff;
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.filter-chip.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-color: var(--primary-pink);
  color: #fff;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.3);
}

/* Scrollable Song List */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: calc(100vh - 310px);
  padding-right: 6px;
}

.song-list::-webkit-scrollbar {
  width: 6px;
}

.song-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.song-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary-pink);
}

/* Song Item Card */
.song-card {
  display: grid;
  grid-template-columns: 36px 52px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.song-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.09);
  transform: translateX(4px);
}

.song-card.active {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.15);
}

.song-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

.active .song-index {
  display: none;
}

/* Equalizer animation when playing */
.sound-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  width: 16px;
  margin: 0 auto;
}

.active .sound-bars {
  display: flex;
}

.sound-bar {
  width: 3px;
  background: var(--primary-pink);
  border-radius: 2px;
  animation: eqBounce 1s infinite alternate ease-in-out;
}

.sound-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.sound-bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.sound-bar:nth-child(3) { height: 40%; animation-delay: 0.5s; }

@keyframes eqBounce {
  0% { height: 20%; }
  100% { height: 100%; }
}

.song-thumb-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.song-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.song-card:hover .song-thumb {
  transform: scale(1.1);
}

.song-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.song-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-card.active .song-name {
  color: var(--accent-peach);
}

.song-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.song-tag-badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.song-duration {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.song-card-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.song-card:hover .song-card-actions {
  opacity: 1;
}

.song-quick-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.song-quick-btn:hover {
  background: var(--primary-pink);
  color: #fff;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 12, 0.82);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-container {
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 28px;
  gap: 20px;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-container {
  transform: translateY(0);
}

.modal-container.compact {
  max-width: 440px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-pink);
  margin-bottom: 4px;
  display: block;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 6px;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.info-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.info-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.lyrics-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 20px;
}

.lyrics-card h4 {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.lyrics-text {
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.8;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Shortcuts Dialog */
.shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-peach);
}

/* Footer */
.app-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 8px;
  padding-bottom: 80px;
}

/* Mobile Tab Bar (Hidden on desktop) */
.mobile-tab-bar {
  display: none;
  padding: 6px;
  gap: 8px;
  background: rgba(18, 12, 32, 0.85);
}

.mobile-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 44px;
}

.mobile-tab.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-color: var(--primary-pink);
  color: #fff;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.25);
}

/* Mobile Floating Mini Player Bar */
.mobile-mini-player {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 85;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(18, 12, 32, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(236, 72, 153, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(236, 72, 153, 0.25);
}

.mini-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

.mini-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  transition: width 0.1s linear;
}

.mini-player-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 12px;
}

.mini-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.mini-cover {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.mini-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mini-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-style {
  font-size: 11px;
  color: var(--accent-peach);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.mini-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}

.mini-btn.play-btn {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border: none;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

/* Touch-friendly progress hit area */
.progress-bar-wrap {
  padding: 12px 0;
  margin: -12px 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .mobile-tab-bar {
    display: flex;
  }

  .main-layout {
    display: block;
  }

  .main-layout[data-active-tab="player"] .player-showcase {
    display: flex;
  }
  .main-layout[data-active-tab="player"] .playlist-section {
    display: none;
  }
  .main-layout[data-active-tab="player"] ~ .mobile-mini-player {
    display: none;
  }

  .main-layout[data-active-tab="playlist"] .player-showcase {
    display: none;
  }
  .main-layout[data-active-tab="playlist"] .playlist-section {
    display: flex;
  }
  .main-layout[data-active-tab="playlist"] ~ .mobile-mini-player {
    display: block;
  }

  .player-showcase {
    position: relative;
    top: 0;
    height: auto;
    min-height: auto;
    padding: 24px 20px;
  }

  .song-list {
    max-height: calc(100vh - 270px);
    padding-bottom: 90px;
  }

  /* Filter chips smooth horizontal scroll on touch */
  .filter-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-chips::-webkit-scrollbar {
    display: none;
  }
  .filter-chip {
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .app-container {
    padding: 12px 12px 24px;
    gap: 12px;
  }

  .app-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .brand-title {
    font-size: 18px;
  }

  .header-stats .stat-pill:first-child {
    display: none;
  }

  .vinyl-stage {
    height: 190px;
  }

  .vinyl-wrapper {
    width: 150px;
    height: 150px;
  }

  .vinyl-art-wrap {
    width: 75px;
    height: 75px;
  }

  .track-title {
    font-size: 17px;
  }

  .song-card {
    grid-template-columns: 24px 44px 1fr auto;
    gap: 10px;
    padding: 8px 10px;
  }

  .song-card-actions {
    display: none;
  }

  /* Bottom sheet modal for mobile */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-container {
    border-radius: 24px 24px 0 0;
    max-height: 86vh;
    padding: 20px 16px 28px;
    transform: translateY(100%);
  }

  .modal-backdrop.open .modal-container {
    transform: translateY(0);
  }

  .modal-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
