/* ============================================
   MusiQ — Design System & Styles
   Dark glassmorphism music jukebox UI
   ============================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Palette */
  --bg-primary: #0d0b1a;
  --bg-secondary: #13102a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-hover: rgba(255, 255, 255, 0.10);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);

  /* Accents */
  --accent-gradient: linear-gradient(135deg, #7c3aed, #ec4899);
  --accent-purple: #7c3aed;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #c084fc;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(236, 72, 153, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--text-accent); text-decoration: none; }
a:hover { color: var(--accent-pink); }

img { max-width: 100%; height: auto; }

ul { list-style: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* ---------- Utility: Glass Panel ---------- */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base), background var(--transition-base);
}
.glass:hover {
  border-color: var(--border-glass-hover);
  background: var(--bg-glass-hover);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.btn-success:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.4);
}

/* ---------- Inputs ---------- */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* ============================================
   LANDING PAGE
   ============================================ */

.landing-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Navbar ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-2xl);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition-slow);
}
.navbar.scrolled {
  background: rgba(13, 11, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.navbar-links { display: flex; gap: var(--space-lg); align-items: center; }
.navbar-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition-base);
}
.navbar-links a:hover { color: var(--text-primary); }

/* ---- Hero Section ---- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--space-xl) 4rem;
  min-height: 100vh;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-full);
  color: var(--text-accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.7s ease;
}
.hero-title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.8s ease;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  animation: fadeInUp 0.9s ease;
}

.hero-actions .btn { padding: 0.85rem 2rem; font-size: 1rem; }

.hero-join {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  animation: fadeInUp 1s ease;
}
.hero-join .input {
  width: 240px;
  padding: 0.75rem 1rem;
}

/* ---- Features ---- */
.features {
  position: relative;
  z-index: 1;
  padding: 4rem var(--space-xl) 6rem;
}

.features-heading {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: var(--space-2xl);
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  padding: var(--space-xl);
  text-align: center;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent-purple);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-glass);
}

/* ============================================
   PLAYER PAGE
   ============================================ */
.player-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Top Bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  background: rgba(13, 11, 26, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: var(--space-md);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.topbar-brand {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.topbar-playlist-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ---- Main Layout ---- */
.player-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  overflow: hidden;
}

/* ---- Video Area ---- */
.video-section {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  gap: var(--space-lg);
  overflow-y: auto;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.video-container iframe,
.video-container #player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.now-playing-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.now-playing-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.now-playing-label .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.now-playing-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- Player Controls ---- */
.player-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
}

.player-controls .btn-icon {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  font-size: 1.2rem;
}
.player-controls .btn-icon:hover {
  background: rgba(255,255,255,0.12);
  transform: scale(1.1);
}
.player-controls .btn-icon.active {
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.controls-divider {
  width: 1px;
  height: 24px;
  background: var(--border-glass);
  margin: 0 var(--space-sm);
}

/* ---- Search Section ---- */
.search-section {
  padding: 0 var(--space-xl) var(--space-xl);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
}
.search-bar .input {
  border: none;
  background: transparent;
  padding: 0.6rem 0.75rem;
}
.search-bar .input:focus {
  box-shadow: none;
}
.search-bar .btn {
  flex-shrink: 0;
}

/* ---- Search Results ---- */
.search-results {
  margin-top: var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--transition-slow), opacity var(--transition-base);
}
.search-results.visible {
  max-height: 600px;
  opacity: 1;
}
.search-results-inner {
  padding: var(--space-md);
}
.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: var(--space-md);
}
.search-results-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.search-result-item:hover {
  background: rgba(255,255,255,0.05);
}
.search-result-thumb {
  width: 64px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-item .btn-add {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.search-result-item .btn-add:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: scale(1.15);
}

/* ---- Playlist Sidebar ---- */
.playlist-sidebar {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-glass);
  background: rgba(13, 11, 26, 0.5);
  backdrop-filter: blur(8px);
  height: calc(100vh - 57px);
  overflow: hidden;
}

.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--border-glass);
}
.playlist-header h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.playlist-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-glass);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.playlist-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm);
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  margin-bottom: 2px;
}
.playlist-item:hover {
  background: rgba(255,255,255,0.04);
}
.playlist-item.active {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.playlist-item-position {
  width: 24px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.playlist-item.active .playlist-item-position {
  color: var(--accent-purple);
}

.playlist-item-thumb {
  width: 48px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.playlist-item-info {
  flex: 1;
  min-width: 0;
}
.playlist-item-title {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.playlist-item.active .playlist-item-title {
  color: var(--text-accent);
}

.playlist-item-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}
.playlist-item:hover .playlist-item-actions {
  opacity: 1;
}

.playlist-action-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}
.playlist-action-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}
.playlist-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}
.playlist-action-btn.play:hover {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}

.playlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  gap: var(--space-md);
}
.playlist-empty-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}
.playlist-empty p {
  font-size: 0.85rem;
}

/* ---- Share Modal / Toast ---- */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  transition: all var(--transition-base);
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---- Modal Overlay ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: scaleIn 0.25s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-glass);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.modal-close:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.fade-in { animation: fadeInUp 0.5s ease both; }
.fade-in-delay-1 { animation: fadeInUp 0.5s ease 0.1s both; }
.fade-in-delay-2 { animation: fadeInUp 0.5s ease 0.2s both; }

/* ---- Loading Spinner ---- */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .player-main {
    grid-template-columns: 1fr;
  }
  .playlist-sidebar {
    border-left: none;
    border-top: 1px solid var(--border-glass);
    height: auto;
    max-height: 50vh;
  }
  .topbar {
    padding: var(--space-md);
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 6rem var(--space-md) 3rem;
  }
  .hero-join {
    flex-direction: column;
    width: 100%;
  }
  .hero-join .input { width: 100%; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .navbar { padding: var(--space-md); }
  .features { padding: 3rem var(--space-md); }
  .video-section { padding: var(--space-md); }
  .search-section { padding: 0 var(--space-md) var(--space-md); }
  .player-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}
