/* ==========================================================================
   CYBER PULSE // TECHNO & TRANCE THEME (RED & YELLOW HIGH-VOLTAGE PALETTE)
   ULTRA RESPONSIVE & MOBILE OPTIMIZED - HIGH CONTRAST LUMINOUS TYPOGRAPHY
   ========================================================================== */

:root {
  --bg-primary: #07080c;
  --bg-secondary: #0d0f17;
  --bg-card: rgba(16, 19, 29, 0.85);
  --bg-card-hover: rgba(26, 30, 46, 0.95);
  --bg-glass: rgba(12, 14, 22, 0.8);
  
  --neon-red: #ff0d46;
  --neon-red-glow: rgba(255, 13, 70, 0.5);
  --neon-red-dark: #b8002d;
  
  --neon-yellow: #ffe600;
  --neon-yellow-glow: rgba(255, 230, 0, 0.5);
  --neon-yellow-dark: #cca300;
  
  --gradient-fire: linear-gradient(135deg, #ff0d46 0%, #ff5e00 50%, #ffe600 100%);
  --gradient-dock: linear-gradient(90deg, #ff0d46, #ffe600);
  
  --text-primary: #ffffff;
  --text-secondary: #a2aabf;
  --text-muted: #646d84;
  
  --font-display: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-tech: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --border-radius: 10px;
  --border-glow: 1px solid rgba(255, 230, 0, 0.25);
  --border-red: 1px solid rgba(255, 13, 70, 0.3);
  
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 30px;
  transition: padding-bottom 0.3s ease;
}

body.has-active-player {
  padding-bottom: 110px;
}

/* Accessibility Helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #090a0f;
}
::-webkit-scrollbar-thumb {
  background: #2a1b24;
  border-radius: 3px;
  border: 1px solid rgba(255, 13, 70, 0.3);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-red);
}

/* Cyber Ambient Backgrounds */
.cyber-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.red-glow {
  top: -10%;
  left: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(255, 13, 70, 0.8) 0%, transparent 70%);
}
.yellow-glow {
  bottom: 10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255, 230, 0, 0.6) 0%, transparent 70%);
}

.cyber-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 230, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 13, 70, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Text helpers */
.highlight-yellow { color: var(--neon-yellow); text-shadow: 0 0 12px var(--neon-yellow-glow); }
.text-yellow { color: var(--neon-yellow); }
.text-red { color: var(--neon-red); }
.font-bold { font-weight: 700; }
.neon-red {
  color: var(--neon-red);
  text-shadow: 0 0 15px var(--neon-red-glow), 0 0 30px rgba(255, 13, 70, 0.35);
}
.neon-yellow {
  color: var(--neon-yellow);
  text-shadow: 0 0 15px var(--neon-yellow-glow), 0 0 30px rgba(255, 230, 0, 0.35);
}

.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 230, 0, 0.15);
  gap: 12px;
}

.header-left {
  justify-self: start;
}

.header-center {
  justify-self: center;
  display: flex;
  justify-content: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--neon-red), var(--neon-yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #000;
  font-size: 1.3rem;
  box-shadow: 0 0 16px var(--neon-red-glow);
  transform: skewX(-6deg);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  line-height: 1.1;
}

.brand-subtitle {
  font-family: var(--font-tech);
  font-size: 0.74rem;
  letter-spacing: 2.5px;
  color: var(--neon-yellow);
  font-weight: 600;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 17, 26, 0.85);
  border: 1px solid rgba(255, 230, 0, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-tech);
  font-size: 0.82rem;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-yellow);
  box-shadow: 0 0 8px var(--neon-yellow);
  animation: pulse-dot 1.4s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.system-status .divider {
  color: rgba(255, 255, 255, 0.2);
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Cyber Buttons */
.cyber-btn {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-text-mobile {
  display: none;
}
.btn-text-full {
  display: inline;
}

.btn-yellow {
  background: var(--neon-yellow);
  color: #080808;
  box-shadow: 0 0 14px rgba(255, 230, 0, 0.35);
}
.btn-yellow:hover, .btn-yellow:active {
  background: #fff04d;
  box-shadow: 0 0 22px rgba(255, 230, 0, 0.6);
  transform: translateY(-2px);
}

.btn-red {
  background: var(--neon-red);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 13, 70, 0.4);
}
.btn-red:hover, .btn-red:active {
  background: #ff3366;
  box-shadow: 0 0 22px rgba(255, 13, 70, 0.7);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Stage & Visualizer
   ========================================================================== */
.hero-stage {
  position: relative;
  margin: 22px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 13, 70, 0.35);
  background: radial-gradient(ellipse at center, rgba(35, 15, 28, 0.85) 0%, rgba(8, 9, 14, 0.96) 100%);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255, 13, 70, 0.18), inset 0 0 30px rgba(0, 0, 0, 0.7);
}

.stage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.25) 0%, rgba(7, 8, 12, 0.85) 100%);
  pointer-events: none;
  z-index: 2;
}

#stage-visualizer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.85;
}

.stage-content {
  position: relative;
  z-index: 3;
  padding: 38px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stage-badge {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge-tag {
  font-family: var(--font-tech);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 4px 10px;
  border-radius: 4px;
}
.red-tag {
  background: rgba(255, 13, 70, 0.2);
  border: 1px solid var(--neon-red);
  color: var(--neon-red);
}
.yellow-tag {
  background: rgba(255, 230, 0, 0.2);
  border: 1px solid var(--neon-yellow);
  color: var(--neon-yellow);
}

.stage-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  color: #fff;
}

/* ==========================================================================
   Cohesive Hero Description Highlight Banner (Satu Kesatuan)
   ========================================================================== */
.stage-desc-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.stage-desc {
  max-width: 840px;
  width: 100%;
  font-family: var(--font-tech), 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 auto 24px auto;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, rgba(255, 13, 70, 0.15) 0%, rgba(10, 12, 20, 0.95) 45%, rgba(255, 230, 0, 0.15) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 230, 0, 0.55);
  border-radius: 12px;
  padding: 16px 28px;
  box-shadow: 0 0 25px rgba(255, 230, 0, 0.22), 0 0 40px rgba(255, 13, 70, 0.18), inset 0 0 15px rgba(255, 230, 0, 0.08);
  position: relative;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.stage-desc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-yellow), transparent);
}

.hl-neon-red {
  color: #ff2259 !important;
  font-weight: 800;
  text-shadow: 0 0 10px #ff0d46, 0 0 22px rgba(255, 13, 70, 0.9);
  letter-spacing: 0.5px;
}

.hl-neon-yellow {
  color: #ffe600 !important;
  font-weight: 800;
  text-shadow: 0 0 10px #ffe600, 0 0 22px rgba(255, 230, 0, 0.9);
  letter-spacing: 0.5px;
}

.visualizer-controls {
  background: rgba(10, 12, 18, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 230, 0, 0.3);
  border-radius: 12px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.viz-mode-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-label {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--neon-yellow);
  letter-spacing: 1px;
}

.viz-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  touch-action: manipulation;
}

.viz-tab:hover {
  background: rgba(255, 13, 70, 0.2);
  border-color: var(--neon-red);
  color: #fff;
}

.viz-tab.active {
  background: linear-gradient(135deg, var(--neon-red), #d60037);
  border-color: var(--neon-red);
  color: #fff;
  box-shadow: 0 0 10px var(--neon-red-glow);
}

.viz-audio-prompt {
  font-size: 0.82rem;
  color: #d1d8e8;
  font-family: var(--font-tech);
  letter-spacing: 0.4px;
}

/* ==========================================================================
   Explorer Toolbar (Search, Filter, Sort)
   ========================================================================== */
.explorer-section {
  margin-top: 16px;
}

.explorer-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(14, 16, 24, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 230, 0, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box i.fa-magnifying-glass {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neon-yellow);
  font-size: 1rem;
}

.search-box input {
  width: 100%;
  background: rgba(8, 10, 16, 0.95);
  border: 1px solid rgba(255, 230, 0, 0.3);
  border-radius: 8px;
  padding: 12px 38px 12px 42px;
  color: #fff;
  font-size: 16px;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--neon-yellow);
  box-shadow: 0 0 14px rgba(255, 230, 0, 0.35);
}

.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
}
.clear-btn:hover { color: var(--neon-red); }

/* Genre Filter Chips */
.filter-wrapper {
  width: 100%;
  padding-bottom: 2px;
}

.genre-scroll {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  width: 100%;
}

.genre-chip {
  background: rgba(22, 26, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-family: var(--font-tech);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  touch-action: manipulation;
}

.genre-chip:hover, .genre-chip:active {
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
  background: rgba(255, 230, 0, 0.12);
}

.genre-chip.active {
  background: var(--neon-yellow);
  color: #000;
  border-color: var(--neon-yellow);
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.45);
  font-weight: 700;
}

/* View & Sort controls */
.view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sort-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 10px;
}
.sort-selector label {
  color: var(--neon-yellow);
  font-size: 0.85rem;
}
.sort-selector select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-tech);
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.sort-selector select option {
  background: #11131c;
  color: #fff;
}

.layout-toggle {
  display: flex;
  gap: 4px;
}
.layout-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  touch-action: manipulation;
}
.layout-btn:hover {
  color: #fff;
  border-color: var(--neon-red);
}
.layout-btn.active {
  background: var(--neon-red);
  border-color: var(--neon-red);
  color: #fff;
  box-shadow: 0 0 10px var(--neon-red-glow);
}

.filter-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 12px;
  padding: 0 4px;
}
.tracks-counter {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
}
.tracks-counter span {
  color: var(--neon-yellow);
  font-weight: 700;
}

/* ==========================================================================
   Track Grid & Card Layout
   ========================================================================== */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.track-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 13, 70, 0.22);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.track-card:hover {
  transform: translateY(-4px);
  border-color: var(--neon-yellow);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 230, 0, 0.25);
}

.track-card.is-playing {
  border-color: var(--neon-red);
  box-shadow: 0 0 22px var(--neon-red-glow);
  background: rgba(28, 14, 22, 0.9);
}

/* Card Cover */
.card-cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.track-card:hover .card-cover {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 14, 0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.track-card:hover .card-overlay,
.track-card.is-playing .card-overlay {
  opacity: 1;
}

.card-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-red), var(--neon-yellow));
  border: none;
  color: #000;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 230, 0, 0.6);
  transition: transform 0.15s ease;
  touch-action: manipulation;
}
.card-play-btn:active {
  transform: scale(0.92);
}

.card-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 230, 0, 0.4);
  color: var(--neon-yellow);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.card-quality-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 13, 70, 0.9);
  color: #fff;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255, 13, 70, 0.4);
}

/* Card Body */
.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-card.is-playing .card-title {
  color: var(--neon-yellow);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.tag-pill {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}
.tag-pill.tag-red {
  border-color: rgba(255, 13, 70, 0.45);
  color: #ff5e82;
}
.tag-pill.tag-yellow {
  border-color: rgba(255, 230, 0, 0.45);
  color: #ffe680;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.card-actions .btn-open-hud {
  width: 100%;
  justify-content: center;
}

.card-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-tech);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  touch-action: manipulation;
}
.card-btn:hover, .card-btn:active {
  background: rgba(255, 230, 0, 0.15);
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
}

.card-btn-red:hover, .card-btn-red:active {
  background: rgba(255, 13, 70, 0.2);
  border-color: var(--neon-red);
  color: var(--neon-red);
}

/* ==========================================================================
   List View Styling
   ========================================================================== */
.tracks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}

.track-list-row {
  display: grid;
  grid-template-columns: 40px 60px 1.8fr 1.2fr 75px 160px;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 13, 70, 0.15);
  border-radius: 8px;
  padding: 8px 14px;
  transition: var(--transition-fast);
}

.track-list-row:hover {
  border-color: var(--neon-yellow);
  background: var(--bg-card-hover);
}

.track-list-row.is-playing {
  border-color: var(--neon-red);
  background: rgba(35, 15, 25, 0.85);
}

.row-index {
  font-family: var(--font-tech);
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
}

.row-cover-wrap {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.row-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.row-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: var(--neon-yellow);
  transition: var(--transition-fast);
}
.row-cover-wrap:hover .row-play-overlay,
.track-list-row.is-playing .row-play-overlay {
  opacity: 1;
}

.row-info h4 {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-list-row.is-playing .row-info h4 {
  color: var(--neon-yellow);
}

.row-genres {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-duration {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  color: var(--neon-yellow);
  font-weight: 600;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* ==========================================================================
   Persistent Bottom Dock Player
   ========================================================================== */
.dock-player.dock-hidden,
.dock-player.party-hud-active,
body.in-party-mode .dock-player {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.dock-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(9, 10, 16, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 230, 0, 0.3);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 13, 70, 0.2);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.player-progress-bar-container {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
  touch-action: none;
}

.player-progress-bar-container:hover,
.player-progress-bar-container:active {
  height: 8px;
}

.player-progress-buffered {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.25);
}

.player-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--gradient-dock);
  box-shadow: 0 0 8px var(--neon-yellow);
}

.progress-handle {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--neon-red);
  box-shadow: 0 0 6px #fff;
  transition: transform 0.15s ease;
}
.player-progress-bar-container:hover .progress-handle,
.player-progress-bar-container:active .progress-handle {
  transform: translateY(-50%) scale(1);
}

.time-tooltip {
  position: absolute;
  bottom: 12px;
  background: #000;
  border: 1px solid var(--neon-yellow);
  color: var(--neon-yellow);
  font-family: var(--font-tech);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  transform: translateX(-50%);
  display: none;
}

.dock-content {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 20px 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

/* Left Track Info */
.dock-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  cursor: pointer;
  justify-self: start;
  min-width: 0;
}

.dock-cover-wrap {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 230, 0, 0.4);
  position: relative;
  flex-shrink: 0;
}
.dock-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dock-playing-wave {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  padding-bottom: 6px;
}
.dock-playing-wave.active {
  display: flex;
}
.dock-playing-wave span {
  width: 3.5px;
  height: 14px;
  background: var(--neon-yellow);
  border-radius: 2px;
  animation: wave-bar 0.8s infinite ease-in-out;
}
.dock-playing-wave span:nth-child(1) { animation-delay: 0.1s; }
.dock-playing-wave span:nth-child(2) { animation-delay: 0.3s; }
.dock-playing-wave span:nth-child(3) { animation-delay: 0.5s; }
.dock-playing-wave span:nth-child(4) { animation-delay: 0.2s; }

@keyframes wave-bar {
  0%, 100% { height: 3px; }
  50% { height: 18px; }
}

.dock-meta {
  overflow: hidden;
  white-space: nowrap;
}
.dock-title {
  font-family: var(--font-tech);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-genre {
  font-size: 0.75rem;
  color: var(--neon-yellow);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Center Controls */
.dock-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  margin: 0 auto;
  gap: 4px;
}

.controls-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.control-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
  position: relative;
  touch-action: manipulation;
}
.control-btn:hover, .control-btn:active {
  color: #fff;
}
.control-btn.active {
  color: var(--neon-yellow);
}

.play-main-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--neon-red), var(--neon-yellow));
  color: #000;
  font-size: 1.2rem;
  box-shadow: 0 0 14px rgba(255, 230, 0, 0.5);
}
.play-main-btn:active {
  transform: scale(0.92);
}

.repeat-indicator {
  position: absolute;
  bottom: 2px;
  right: 5px;
  font-size: 0.55rem;
  font-weight: 900;
  color: var(--neon-yellow);
}

.time-display {
  font-family: var(--font-tech);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}
.time-display span#current-time {
  color: var(--neon-yellow);
  font-weight: 600;
}
.time-sep { margin: 0 3px; }

/* Right Actions & Volume */
.dock-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 10px;
}

#dock-visualizer {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 13, 70, 0.3);
  border-radius: 4px;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider-wrap {
  width: 70px;
  display: flex;
  align-items: center;
}

#volume-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}
#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-yellow);
  box-shadow: 0 0 6px var(--neon-yellow);
  cursor: pointer;
}

.dock-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  touch-action: manipulation;
}
.dock-icon-btn:hover, .dock-icon-btn:active {
  background: rgba(255, 13, 70, 0.2);
  border-color: var(--neon-red);
  color: #fff;
}

/* ==========================================================================
   Dock Player Minimized Floating Capsule Mode
   ========================================================================== */
.dock-player {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              right 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-player.is-minimized {
  position: fixed;
  bottom: 22px;
  right: 24px;
  left: auto;
  width: 380px;
  max-width: calc(100vw - 32px);
  border-radius: 40px;
  border: 1px solid var(--neon-yellow);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.95), 0 0 20px rgba(255, 230, 0, 0.4);
  background: rgba(9, 10, 16, 0.96);
  padding: 0;
  overflow: hidden;
  z-index: 150;
}

.dock-player.is-minimized #dock-content-full {
  display: none !important;
}

.dock-player.is-minimized #dock-minibar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  gap: 12px;
}

.dock-player.is-minimized .player-progress-bar-container {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}
.dock-player.is-minimized .player-progress-bar-container:hover {
  height: 5px;
}

/* Minibar Layout */
.dock-minibar {
  display: none;
  width: 100%;
}

.minibar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  user-select: none;
}

.minibar-thumb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--neon-yellow);
  box-shadow: 0 0 10px rgba(255, 230, 0, 0.4);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.minibar-info:hover .minibar-thumb {
  border-color: var(--neon-red);
  box-shadow: 0 0 12px rgba(255, 13, 70, 0.6);
}

.dock-player.is-playing .minibar-thumb {
  animation: spin-minibar-disc 5s linear infinite;
}

@keyframes spin-minibar-disc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.minibar-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  gap: 2px;
}

.minibar-title {
  font-family: var(--font-tech);
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.minibar-time {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  color: var(--neon-yellow);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.minibar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.minibar-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.86rem;
  transition: var(--transition-fast);
  touch-action: manipulation;
}

.minibar-btn:hover {
  background: rgba(255, 230, 0, 0.2);
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
  transform: scale(1.06);
}

.minibar-play-btn {
  background: var(--gradient-neon);
  border: none;
  color: #000;
  font-size: 0.92rem;
  box-shadow: 0 0 12px var(--neon-red);
}

.minibar-play-btn:hover {
  background: var(--gradient-dock);
  color: #000;
  box-shadow: 0 0 16px var(--neon-yellow);
}

.minibar-expand-btn {
  background: rgba(255, 230, 0, 0.15);
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
}
.minibar-expand-btn:hover {
  background: var(--neon-yellow);
  color: #000;
}

/* ==========================================================================
   Lyrics & Metadata HUD Modal
   ========================================================================== */
.hud-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.hud-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.hud-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 9, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hud-window {
  position: relative;
  width: 100%;
  max-width: 840px;
  max-height: 85vh;
  max-height: 85dvh;
  background: #0d0f17;
  border: 1px solid var(--neon-yellow);
  border-radius: 14px;
  box-shadow: 0 0 35px rgba(255, 230, 0, 0.3), 0 0 70px rgba(255, 13, 70, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
  margin: auto;
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 230, 0, 0.2);
  background: rgba(18, 21, 32, 0.85);
  gap: 12px;
  flex-shrink: 0;
}

.hud-badge {
  font-family: var(--font-tech);
  font-size: 0.76rem;
  letter-spacing: 2px;
  color: var(--neon-red);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.hud-song-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
  touch-action: manipulation;
}
.hud-close-btn:hover, .hud-close-btn:active {
  background: var(--neon-red);
  border-color: var(--neon-red);
}

.hud-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  padding: 18px 20px;
  gap: 20px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}

.hud-left-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hud-cover-wrap {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 13, 70, 0.4);
  margin: 0 auto;
}
.hud-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hud-overlay-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--neon-yellow);
  font-size: 2rem;
  opacity: 0;
  transition: var(--transition-fast);
}
.hud-cover-wrap:hover .hud-overlay-play,
.hud-cover-wrap:active .hud-overlay-play {
  opacity: 1;
}

.hud-meta-list {
  background: rgba(14, 17, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 5px;
}
.hud-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.meta-label {
  font-family: var(--font-tech);
  color: var(--text-muted);
  font-weight: 600;
}
.meta-val {
  font-family: var(--font-tech);
  font-weight: 700;
  text-align: right;
  max-width: 150px;
  word-break: break-word;
}

.hud-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-right-panel {
  display: flex;
  flex-direction: column;
  background: rgba(9, 10, 16, 0.7);
  border: 1px solid rgba(255, 230, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  min-height: 0;
}

.lyrics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 20, 30, 0.6);
  flex-shrink: 0;
}

.lyrics-heading {
  font-family: var(--font-tech);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--neon-yellow);
  letter-spacing: 0.8px;
}

.copy-btn {
  background: rgba(255, 230, 0, 0.1);
  border: 1px solid var(--neon-yellow);
  color: var(--neon-yellow);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.copy-btn:hover, .copy-btn:active {
  background: var(--neon-yellow);
  color: #000;
}

.lyrics-scroll-box {
  flex: 1;
  min-height: 180px;
  max-height: 380px;
  overflow-y: auto;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.7;
  color: #d1d7e8;
  white-space: pre-wrap;
}

/* ==========================================================================
   Fullscreen Party HUD Mode
   ========================================================================== */
.fullscreen-hud {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #050608;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
.fullscreen-hud.active {
  opacity: 1;
  pointer-events: auto;
}

#fullscreen-visualizer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.fs-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 13, 70, 0.25) 0%, rgba(5, 6, 8, 0.95) 75%);
  pointer-events: none;
  z-index: 2;
}

.fs-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fs-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-center-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin: auto 0;
}

.fs-album-art {
  position: relative;
  width: min(220px, 42vw);
  height: min(220px, 42vw);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--neon-yellow);
  box-shadow: 0 0 30px var(--neon-yellow-glow);
}
.fs-album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: spin-vinyl 25s linear infinite;
}
.fs-album-art.paused img {
  animation-play-state: paused;
}

@keyframes spin-vinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fs-pulse-ring {
  position: absolute;
  inset: -12px;
  border: 2px dashed rgba(255, 13, 70, 0.6);
  border-radius: 50%;
  animation: spin-vinyl 15s linear infinite reverse;
}

.fs-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.fs-genre-tag {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--neon-yellow);
}

.fs-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: #fff;
  text-shadow: 0 0 18px var(--neon-red-glow);
  padding: 0 10px;
  text-align: center;
  width: 100%;
}

.fs-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin: 12px auto 0;
  width: auto;
}
.fs-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition-fast);
  touch-action: manipulation;
}
.fs-btn:active {
  transform: scale(0.92);
}
.fs-play {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--neon-red), var(--neon-yellow));
  color: #000;
  font-size: 1.4rem;
}

.fs-lyrics-stream {
  position: relative;
  z-index: 5;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  font-family: var(--font-tech);
  padding: 10px;
  min-height: 44px;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.cyber-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  left: 16px;
  margin: 0 auto;
  max-width: 380px;
  background: rgba(12, 15, 22, 0.95);
  border: 1px solid var(--neon-yellow);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(255, 230, 0, 0.4);
  transform: translateY(-80px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 999;
}
.cyber-toast.active {
  transform: translateY(0);
  opacity: 1;
}
.cyber-toast i {
  color: var(--neon-yellow);
  font-size: 1.1rem;
}

/* ==========================================================================
   Responsive Adaptations (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 992px) {
  .dock-content {
    grid-template-columns: 1fr auto 1fr;
    padding: 10px 16px 6px;
    gap: 12px;
  }
  #dock-visualizer {
    display: none;
  }
  .volume-container {
    display: none;
  }
  .hud-body {
    grid-template-columns: 1fr;
  }
  .hud-left-panel {
    align-items: center;
  }
  .hud-cover-wrap {
    width: 160px;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .app-container {
    padding: 0 12px;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: clip;
  }
  
  .header {
    padding: 12px 0;
    gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .brand-logo {
    gap: 8px;
    min-width: 0;
  }
  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  .brand-title {
    font-size: 1.15rem;
    white-space: nowrap;
  }
  .brand-subtitle {
    font-size: 0.62rem;
    letter-spacing: 1.2px;
    white-space: nowrap;
  }
  
  .system-status {
    display: none;
  }
  
  .header-right {
    gap: 6px;
    flex-shrink: 0;
  }
  .header-right .cyber-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .explorer-toolbar {
    padding: 12px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .search-box input {
    font-size: 0.9rem;
    padding: 10px 36px 10px 38px;
  }
}

@media (max-width: 520px) {
  .header {
    padding: 10px 0;
    gap: 6px;
  }
  .brand-logo {
    gap: 6px;
  }
  .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }
  .brand-title {
    font-size: 1.02rem;
    letter-spacing: 0.8px;
  }
  .brand-subtitle {
    font-size: 0.52rem;
    letter-spacing: 0.6px;
  }
  .header-right {
    gap: 5px;
  }
  .header-right .cyber-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
    gap: 4px;
  }
  .header-right .btn-text-full {
    display: none;
  }
  .header-right .btn-text-mobile {
    display: inline;
  }
}

@media (max-width: 360px) {
  .app-container {
    padding: 0 8px;
  }
  .brand-title {
    font-size: 0.92rem;
  }
  .brand-subtitle {
    display: none;
  }
  .header-right .cyber-btn {
    padding: 5px 6px;
    font-size: 0.72rem;
  }
}

@media (max-width: 640px) {
  .stage-content {
    padding: 24px 12px 18px;
  }
  
  .stage-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    padding: 12px 16px;
    margin-bottom: 16px;
  }
  
  .visualizer-controls {
    padding: 8px 12px;
    gap: 8px;
  }
  .viz-audio-prompt {
    font-size: 0.75rem;
  }
  
  .tracks-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 12px;
  }
  
  .card-body {
    padding: 10px;
  }
  
  .card-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }
  
  .card-tags {
    gap: 3px;
    margin-bottom: 8px;
  }
  .tag-pill {
    font-size: 0.65rem;
    padding: 1px 4px;
  }
  
  .card-actions {
    padding-top: 8px;
  }
  .card-btn {
    font-size: 0.74rem;
    padding: 5px 8px;
  }

  .track-list-row {
    grid-template-columns: 28px 44px 1fr 50px 40px;
    gap: 8px;
    padding: 6px 8px;
  }
  .row-genres {
    display: none;
  }
  .row-duration {
    font-size: 0.78rem;
  }
  .row-actions .card-btn:not(.card-btn-red) {
    display: none;
  }
  
  .dock-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 12px 6px;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .dock-track-info {
    max-width: 100%;
    min-width: 0;
    gap: 8px;
    justify-self: start;
    overflow: hidden;
  }
  .dock-cover-wrap {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .dock-title {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dock-genre {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-hide-btn {
    display: none !important;
  }
  
  .dock-controls {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    width: auto;
    max-width: none;
  }
  .controls-buttons {
    gap: 8px;
    align-items: center;
  }
  #btn-shuffle, #btn-repeat {
    display: none;
  }
  .control-btn {
    width: 30px;
    height: 30px;
    font-size: 0.88rem;
  }
  .play-main-btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }
  .time-display {
    font-size: 0.65rem;
    margin-top: 2px;
  }
  
  .dock-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .dock-icon-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  /* Minimized Dock on Mobile */
  .dock-player.is-minimized {
    bottom: 10px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    border-radius: 36px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.95), 0 0 16px rgba(255, 13, 70, 0.5);
  }
  .dock-player.is-minimized #dock-minibar {
    padding: 6px 12px;
    gap: 8px;
    height: 48px;
  }
  .minibar-thumb {
    width: 34px;
    height: 34px;
  }
  .minibar-title {
    font-size: 0.8rem;
  }
  .minibar-time {
    font-size: 0.68rem;
  }
  .minibar-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .hud-modal {
    padding: 12px;
    align-items: center;
    justify-content: center;
  }
  .hud-window {
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 14px;
    border: 1px solid var(--neon-yellow);
  }
  .hud-header {
    padding: 12px 14px;
  }
  .hud-song-title {
    font-size: 1.05rem;
  }
  .hud-body {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 14px;
  }
  .hud-left-panel {
    align-items: center;
  }
  .hud-cover-wrap {
    width: 130px;
    max-width: 130px;
  }
  .lyrics-scroll-box {
    max-height: 240px;
    font-size: 0.88rem;
  }
}

/* -------------------------------------------------------------
   Security & Drag-and-Drop Restrictions for Media
   ------------------------------------------------------------- */
img,
audio,
.dock-cover-wrap,
.card-cover-wrap,
.row-cover-wrap,
.hud-cover-wrap,
.fs-album-art,
.minibar-thumb {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}


