/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0f;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --surface: #111118;
  --surface-2: #1a1a24;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text: #f0f0f5;
  --text-secondary: #8a8a9a;
  --text-muted: #55556a;
  --spotify: #1DB954;
  --spotify-dark: #169c46;
  --spotify-glow: rgba(29,185,84,0.25);
  --accent: #1DB954;
  --danger: #e74c5e;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== ANIMATED BACKGROUND ========== */
.bg-gradient {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(29,185,84,0.08), transparent 70%),
              radial-gradient(ellipse 60% 50% at 80% 50%, rgba(29,185,84,0.04), transparent),
              radial-gradient(ellipse 60% 50% at 20% 80%, rgba(88,40,200,0.04), transparent);
}

.bg-noise {
  position: fixed; inset: 0; z-index: 0; opacity: 0.03; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.floating-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: var(--spotify); top: -10%; left: -5%; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: #6366f1; bottom: 10%; right: -5%; animation-delay: -7s; }
.orb-3 { width: 250px; height: 250px; background: var(--spotify); top: 50%; left: 50%; animation-delay: -14s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ========== HEADER ========== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.7);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-icon { width: 32px; height: 32px; color: var(--spotify); }
.logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-accent { color: var(--spotify); }
.nav-links { display: flex; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-xs); color: var(--text-secondary);
  text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--bg-card); }

/* ========== HERO ========== */
main { position: relative; z-index: 1; }
.hero {
  max-width: 800px; margin: 0 auto; padding: 140px 24px 60px; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px; font-size: 0.8rem; font-weight: 500;
  background: rgba(29,185,84,0.1); color: var(--spotify); border: 1px solid rgba(29,185,84,0.2);
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--spotify);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title { font-size: clamp(3rem, 8vw, 5rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 20px; }
.title-line { display: block; }
.title-accent {
  background: linear-gradient(135deg, var(--spotify), #15e065, #1DB954);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.6; max-width: 550px; margin: 0 auto 40px; }

/* ========== SEARCH BOX ========== */
.search-container { max-width: 640px; margin: 0 auto; }
.search-box {
  display: flex; align-items: center; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 6px; transition: var(--transition);
}
.search-box:focus-within { border-color: var(--spotify); box-shadow: 0 0 0 3px var(--spotify-glow); }
.search-icon { padding: 0 12px; color: var(--text-muted); flex-shrink: 0; }
.search-icon svg { width: 20px; height: 20px; display: block; }
.search-input {
  flex: 1; background: none; border: none; outline: none; color: var(--text);
  font-family: var(--font); font-size: 0.95rem; padding: 12px 0; min-width: 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  display: flex; align-items: center; gap: 8px; padding: 12px 28px;
  background: var(--spotify); color: #000; border: none; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); flex-shrink: 0;
}
.search-btn:hover { background: #22d35e; transform: translateY(-1px); box-shadow: 0 4px 20px var(--spotify-glow); }
.search-btn:active { transform: translateY(0); }
.search-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-icon { width: 18px; height: 18px; }
.search-hint {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  margin-top: 14px; font-size: 0.78rem; color: var(--text-muted);
}

/* ========== LOADING ========== */
.loading-section { display: flex; flex-direction: column; align-items: center; padding: 60px 24px; }
.loader { position: relative; width: 60px; height: 60px; }
.loader-ring {
  position: absolute; inset: 0; border: 3px solid transparent; border-radius: 50%;
  border-top-color: var(--spotify);
}
.loader-ring:nth-child(1) { animation: spin 1.2s linear infinite; }
.loader-ring:nth-child(2) { inset: 6px; border-top-color: rgba(29,185,84,0.5); animation: spin 1.8s linear infinite reverse; }
.loader-ring:nth-child(3) { inset: 12px; border-top-color: rgba(29,185,84,0.3); animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { margin-top: 20px; color: var(--text-secondary); font-size: 0.9rem; }

/* ========== ERROR ========== */
.error-section { display: flex; justify-content: center; padding: 60px 24px; }
.error-card {
  text-align: center; padding: 40px; background: var(--bg-card);
  border: 1px solid rgba(231,76,94,0.2); border-radius: var(--radius); max-width: 400px;
}
.error-icon { color: var(--danger); margin-bottom: 16px; }
.error-icon svg { width: 48px; height: 48px; }
.error-message { color: var(--text-secondary); margin-bottom: 20px; }
.retry-btn {
  padding: 10px 24px; background: var(--bg-card-hover); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: var(--transition);
}
.retry-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--border-hover); }

/* ========== TRACK RESULT ========== */
.result-section { max-width: 900px; margin: 0 auto; padding: 20px 24px 60px; }
.track-card {
  display: flex; gap: 32px; padding: 32px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(10px);
  animation: slideUp 0.5s ease-out;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.track-cover-wrap {
  position: relative; width: 200px; height: 200px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
}
.track-cover { width: 100%; height: 100%; object-fit: cover; }
.cover-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.track-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.track-type-badge {
  display: inline-flex; align-self: flex-start;
  padding: 4px 12px; border-radius: 100px; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(29,185,84,0.15); color: var(--spotify); margin-bottom: 12px;
}
.track-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.track-artist { color: var(--text-secondary); font-size: 1rem; margin-bottom: 16px; }
.track-meta { display: flex; gap: 20px; margin-bottom: 24px; }
.meta-item { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.85rem; }
.meta-item svg { flex-shrink: 0; }

.download-btn {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 14px 28px; background: var(--spotify); color: #000;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.download-btn:hover { background: #22d35e; transform: translateY(-2px); box-shadow: 0 8px 30px var(--spotify-glow); }
.download-btn:active { transform: translateY(0); }
.download-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ========== COLLECTION RESULT ========== */
.collection-header {
  display: flex; gap: 32px; padding: 32px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 24px; animation: slideUp 0.5s ease-out;
}
.collection-cover-wrap { position: relative; width: 200px; height: 200px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.collection-cover { width: 100%; height: 100%; object-fit: cover; }
.collection-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.collection-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.collection-owner { color: var(--text-secondary); font-size: 1rem; margin-bottom: 12px; }
.collection-stats { display: flex; gap: 16px; margin-bottom: 20px; }
.stat { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.85rem; }

/* ========== TRACKLIST ========== */
.tracklist-container {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; animation: slideUp 0.5s ease-out 0.1s both;
}
.tracklist-header {
  display: grid; grid-template-columns: 50px 1fr 1fr 80px 120px;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.track-row {
  display: grid; grid-template-columns: 50px 1fr 1fr 80px 120px;
  padding: 12px 20px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: var(--transition); cursor: default;
}
.track-row:last-child { border-bottom: none; }
.track-row:hover { background: var(--bg-card-hover); }
.track-row .tr-num { color: var(--text-muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.track-row .tr-title { font-weight: 500; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 16px; }
.track-row .tr-artist { color: var(--text-secondary); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 16px; }
.track-row .tr-duration { color: var(--text-muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.track-row .tr-action { display: flex; justify-content: flex-end; }

.dl-track-btn {
  display: flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: rgba(29,185,84,0.1); color: var(--spotify); border: 1px solid rgba(29,185,84,0.2);
  border-radius: var(--radius-xs); font-family: var(--font); font-size: 0.78rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
}
.dl-track-btn:hover { background: rgba(29,185,84,0.2); border-color: rgba(29,185,84,0.4); }
.dl-track-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.dl-track-btn svg { width: 14px; height: 14px; }

/* ========== FEATURES ========== */
.features-section { max-width: 1100px; margin: 0 auto; padding: 80px 24px; }
.section-title {
  text-align: center; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 48px;
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  padding: 28px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--transition);
}
.feature-card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-4px); }
.feature-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: rgba(29,185,84,0.1); color: var(--spotify); border-radius: 12px; margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ========== HOW TO ========== */
.howto-section { max-width: 700px; margin: 0 auto; padding: 40px 24px 80px; }
.steps-container { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-number {
  width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(29,185,84,0.15); color: var(--spotify); border-radius: 12px;
  font-weight: 800; font-size: 1.1rem;
}
.step-content h3 { font-weight: 700; margin-bottom: 4px; }
.step-content p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.step-connector { width: 2px; height: 28px; background: rgba(29,185,84,0.2); margin-left: 21px; }

/* ========== FAQ ========== */
.faq-section { max-width: 700px; margin: 0 auto; padding: 40px 24px 100px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; transition: var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item.open { border-color: rgba(29,185,84,0.3); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; font-weight: 600; font-size: 0.95rem;
}
.faq-chevron { width: 20px; height: 20px; color: var(--text-muted); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--spotify); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding: 0 20px 18px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid var(--border); position: relative; z-index: 1;
  background: rgba(10,10,15,0.8); backdrop-filter: blur(10px);
}
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 48px 24px 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-logo .logo-icon { width: 28px; height: 28px; }
.footer-logo .logo-text { font-size: 1.1rem; }
.footer-desc { margin-top: 12px; color: var(--text-muted); font-size: 0.85rem; max-width: 300px; line-height: 1.5; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; transition: var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding: 20px 24px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--text-muted); font-size: 0.75rem; line-height: 1.5; text-align: center; }

/* ========== PROGRESS BAR ========== */
.progress-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: rgba(26, 26, 36, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--spotify);
  border-radius: var(--radius);
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 20px rgba(29, 185, 84, 0.2);
  animation: slideUpProgress 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpProgress {
  from { transform: translate(-50%, 100px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 16px;
}

.progress-percentage {
  font-weight: 800;
  color: var(--spotify);
  font-variant-numeric: tabular-nums;
}

.progress-bar-bg {
  height: 8px;
  background: var(--bg);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1DB954, #1ed760);
  border-radius: 100px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
}

/* ========== SETTINGS MODAL ========== */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 10, 15, 0.8); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); width: 100%; max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); overflow: hidden;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 1.2rem; font-weight: 700; }
.close-btn { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: color 0.2s; }
.close-btn:hover { color: var(--text); }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.setting-group { display: flex; flex-direction: column; gap: 8px; }
.setting-group label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.setting-input {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; outline: none; transition: border-color 0.2s;
}
.setting-input:focus { border-color: var(--spotify); }
.setting-hint { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

.checkbox-group { flex-direction: row; align-items: flex-start; gap: 16px; }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: var(--bg); border-radius: 24px; border: 1px solid var(--border); transition: 0.4s; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background: var(--text-muted); border-radius: 50%; transition: 0.4s; }
.toggle-switch input:checked + .slider { background: var(--spotify); border-color: var(--spotify); }
.toggle-switch input:checked + .slider:before { transform: translateX(20px); background: #000; }
.toggle-label { flex: 1; }

.modal-footer { padding: 20px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }
.save-btn {
  background: var(--spotify); color: #000; border: none; padding: 10px 24px;
  border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: 0.2s;
}
.save-btn:hover { background: #22d35e; transform: translateY(-1px); }
.settings-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 8px; transition: color 0.2s; }
.settings-btn:hover { color: var(--text); }

/* ========== PROGRESS BAR COMPLETE ANIMATION ========== */
.progress-container.complete {
  border-color: #22d35e;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 30px rgba(34, 211, 94, 0.4);
  animation: pulseComplete 1s ease-out;
}
@keyframes pulseComplete {
  0% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, 0) scale(1.02); }
  100% { transform: translate(-50%, 0) scale(1); }
}

/* ========== UTILITIES ========== */
.hidden { display: none !important; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding-top: 120px; }
  .hero-title { font-size: 2.8rem; }
  .search-btn .btn-text { display: none; }
  .search-btn { padding: 12px 16px; }
  .track-card, .collection-header { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .track-cover-wrap, .collection-cover-wrap { width: 180px; height: 180px; }
  .track-info, .collection-info { align-items: center; }
  .track-type-badge { align-self: center; }
  .download-btn { align-self: center; }
  .track-meta { justify-content: center; }
  .collection-stats { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .tracklist-header { grid-template-columns: 40px 1fr 80px 90px; }
  .track-row { grid-template-columns: 40px 1fr 80px 90px; }
  .track-row .tr-artist { display: none; }
  .tracklist-header .tl-artist { display: none; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .tracklist-header { grid-template-columns: 30px 1fr 60px; }
  .track-row { grid-template-columns: 30px 1fr 60px; padding: 10px 14px; }
  .track-row .tr-duration { display: none; }
  .tracklist-header .tl-duration { display: none; }
  .track-row .tr-artist { display: none; }
  .tracklist-header .tl-artist { display: none; }
  .tracklist-header .tl-action { display: none; }
  .dl-track-btn span { display: none; }
}

/* ========== PROGRESS BAR ========== */
.progress-container {
  margin-top: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.progress-text {
  color: #fff;
}

.progress-percentage {
  color: var(--primary);
  font-weight: 600;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #38df7b);
  border-radius: 4px;
  transition: width 0.2s ease-out;
  box-shadow: 0 0 10px rgba(29,185,84,0.3);
}
