@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
  --bg-base: #0a0b0e;
  --bg-surface: #12141a;
  --bg-card: rgba(22, 26, 35, 0.75);
  --bg-card-hover: rgba(28, 33, 46, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(252, 76, 2, 0.3);

  --primary: #FC4C02; /* Strava signature athlete orange */
  --primary-hover: #ff5f1a;
  --primary-glow: rgba(252, 76, 2, 0.4);
  --accent-green: #10b981;
  --accent-cyan: #06b6d4;

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

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

  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(252, 76, 2, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  padding-bottom: 40px;
}

/* App Header */
.app-header {
  width: 100%;
  max-width: 900px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-logo svg {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 12px var(--primary-glow));
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-title span {
  color: var(--primary);
}

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

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.status-dot.offline {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

/* Main Container */
.main-wrapper {
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  transition: var(--transition-smooth);
}

/* Input Section */
.converter-card {
  border: 1px solid rgba(252, 76, 2, 0.2);
  background: linear-gradient(145deg, rgba(25, 28, 38, 0.9), rgba(18, 20, 28, 0.8));
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: var(--primary);
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.input-group-custom {
  display: flex;
  gap: 10px;
  position: relative;
}

.url-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.url-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.btn-glow {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px var(--primary-glow);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(252, 76, 2, 0.6);
}

.btn-glow:active {
  transform: translateY(0);
}

.btn-glow:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.download-status-bar {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.spinner-border {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: inline-block;
}

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

.quick-upload-option {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-link-upload {
  color: var(--text-secondary);
  background: none;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: underline;
  transition: var(--transition-smooth);
}

.btn-link-upload:hover {
  color: var(--primary);
}

/* Player Interface */
.player-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.player-main-view {
  display: flex;
  gap: 28px;
  align-items: center;
}

.cover-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  background: #14161f;
}

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

.cover-art.spinning {
  animation: subtlePulse 4s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.badge-offline {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}

.track-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.track-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.track-artist {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.canvas-visualizer {
  width: 100%;
  height: 40px;
  margin-top: 8px;
  border-radius: var(--radius-sm);
}

/* Timeline & Progress */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-filled {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #ff7b00);
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

.time-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* Controls */
.controls-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
}

.btn-ctrl {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

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

.btn-play-hero {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border: none;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: var(--transition-smooth);
}

.btn-play-hero:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(252, 76, 2, 0.7);
}

.btn-play-hero:active {
  transform: scale(0.95);
}

.extra-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* Playlist Section */
.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.playlist-count-tag {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.playlist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

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

.playlist-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.track-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.track-item.active {
  background: rgba(252, 76, 2, 0.12);
  border-color: var(--border-accent);
}

.track-thumb-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.track-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sound-wave-badge {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 10px;
}

.sound-wave-badge .bar {
  width: 3px;
  background: var(--primary);
  animation: soundBars 0.8s ease-in-out infinite alternate;
}

.sound-wave-badge .bar:nth-child(1) { height: 8px; animation-delay: 0.1s; }
.sound-wave-badge .bar:nth-child(2) { height: 16px; animation-delay: 0.3s; }
.sound-wave-badge .bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }

@keyframes soundBars {
  0% { height: 4px; }
  100% { height: 22px; }
}

.track-item-info {
  flex: 1;
  min-width: 0;
}

.track-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.track-item.active .track-item-title {
  color: var(--primary);
}

.track-item-artist {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.badge-offline-chip {
  color: var(--accent-green);
  font-size: 0.7rem;
  font-weight: 600;
}

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

.btn-action-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.btn-action-icon:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
  opacity: 0.4;
}

/* Lock screen & background playback info box */
.info-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.info-box i {
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* Toast Notifications */
.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f232d;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  max-width: 90%;
}

.app-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.toast-warning {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .player-main-view {
    flex-direction: column;
    text-align: center;
  }

  .cover-wrapper {
    width: 200px;
    height: 200px;
  }

  .input-group-custom {
    flex-direction: column;
  }

  .btn-glow {
    justify-content: center;
  }

  .volume-control {
    display: none;
  }
}

/* Tab Bar Pencarian vs Link */
.search-tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.search-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

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

.search-tab.active {
  background: rgba(252, 76, 2, 0.15);
  border-color: var(--border-accent);
  color: var(--primary);
}

/* Hasil Pencarian YouTube (Tray) */
.search-results-tray {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  animation: fadeIn 0.3s ease;
}

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

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.btn-close-tray {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.btn-close-tray:hover {
  color: #fff;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.search-card-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: var(--transition-smooth);
}

.search-card-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(252, 76, 2, 0.4);
}

.search-card-thumb-wrap {
  position: relative;
  width: 70px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.search-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-card-duration {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.65rem;
  font-family: monospace;
  padding: 1px 4px;
  border-radius: 3px;
}

.search-card-info {
  flex: 1;
  min-width: 0;
}

.search-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.search-card-artist {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.btn-card-download {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}

.btn-card-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-card-download:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Playlist Header Actions & Backup Buttons */
.playlist-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-sm-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-smooth);
}

.btn-sm-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   SPOTIFY-STYLE MOBILE BOTTOM NAVIGATION & FLOATING MINI PLAYER
   ========================================================================== */

/* Space out page body so bottom dock never overlaps content */
body {
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 12px)) !important;
}

/* Dock Container (Fixed at viewport bottom) */
.spotify-dock-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none; /* Let clicks pass through empty spaces */
  padding: 0 10px;
}

/* Spotify Floating Mini Player Bar */
.spotify-mini-player {
  width: 100%;
  max-width: 650px;
  margin-bottom: 8px;
  background: rgba(20, 22, 28, 0.94);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  pointer-events: auto;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.spotify-mini-player:hover {
  background: rgba(28, 32, 40, 0.98);
  border-color: rgba(252, 76, 2, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 18px rgba(252, 76, 2, 0.2);
  transform: translateY(-2px);
}

/* Mini Player Progress Bar (Top or Bottom subtle line) */
.mini-player-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.mini-progress-filled {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FC4C02, #FF7A00);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(252, 76, 2, 0.6);
  transition: width 0.15s linear;
}

/* Mini Player Inner Content */
.mini-player-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 10px;
  gap: 12px;
}

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

.mini-cover-art {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #111;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease;
}

.spotify-mini-player:hover .mini-cover-art {
  transform: scale(1.04);
}

.mini-track-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-track-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.mini-track-artist {
  font-size: 0.73rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  font-weight: 500;
}

/* Mini Player Controls */
.mini-player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mini-btn-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #0e1015;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(255, 255, 255, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-btn-play:hover {
  transform: scale(1.08);
  background: #f8fafc;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.4);
}

.mini-btn-play:active {
  transform: scale(0.92);
}

.mini-btn-ctrl {
  background: transparent;
  border: none;
  color: #b3b3b3;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.mini-btn-ctrl:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.mini-btn-ctrl:active {
  transform: scale(0.92);
}

/* Spotify Bottom Tab Bar */
.spotify-bottom-nav {
  width: 100%;
  max-width: 650px;
  background: rgba(14, 16, 22, 0.95);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 12px calc(8px + env(safe-area-inset-bottom, 6px));
  pointer-events: auto;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.55);
}

/* Navigation Items */
.spotify-nav-item {
  background: transparent;
  border: none;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex: 1;
  max-width: 120px;
  user-select: none;
}

.spotify-nav-item:hover {
  color: #e5e7eb;
}

.spotify-nav-item:active {
  transform: scale(0.9);
}

.spotify-nav-item.active {
  color: #ffffff;
}

.nav-icon-wrap {
  position: relative;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.spotify-nav-item.active .nav-icon-wrap {
  color: #FC4C02;
  transform: scale(1.15) translateY(-2px);
  filter: drop-shadow(0 2px 8px rgba(252, 76, 2, 0.5));
}

.nav-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.spotify-nav-item.active .nav-label {
  font-weight: 700;
  color: #ffffff;
}

/* Spinning Vinyl Animation for Pemutar */
@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nav-icon-disc.spinning {
  animation: spinDisc 4s linear infinite;
}

/* Dynamic Badge on Koleksi */
.nav-badge {
  position: absolute;
  top: -4px;
  right: -9px;
  background: linear-gradient(135deg, #FC4C02, #FF7A00);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 9999px;
  border: 1.5px solid #0e1015;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(252, 76, 2, 0.4);
}

/* Mobile Screen Specific Tweaks */
@media (max-width: 600px) {
  .spotify-dock-container {
    padding: 0;
  }
  .spotify-mini-player {
    width: calc(100% - 16px);
    margin-bottom: 6px;
    border-radius: 12px;
  }
  .spotify-bottom-nav {
    border-radius: 16px 16px 0 0;
    padding: 5px 6px calc(6px + env(safe-area-inset-bottom, 4px));
  }
  .spotify-nav-item {
    padding: 5px 4px;
  }
  .nav-icon-wrap {
    font-size: 1.25rem;
  }
  .nav-label {
    font-size: 0.65rem;
  }
}

/* =========================================================
   ARCHIVE.ORG — Styles tambahan untuk fitur baru
   ========================================================= */

/* Tab bar dengan 3 tab */
.search-tab-bar {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 12px;
}

.search-tab {
  flex: 1;
  padding: 7px 4px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.search-tab:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

.search-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(252,76,2,0.35);
}

/* Badge "Archive.org" pada thumbnail kartu */
.badge-source-archive {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(15, 118, 110, 0.92);
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Kartu Archive.org: aksen warna berbeda */
.archive-card .btn-card-download {
  background: linear-gradient(135deg, #0f766e, #0891b2);
  border-color: transparent;
}

.archive-card .btn-card-download:hover:not(:disabled) {
  background: linear-gradient(135deg, #0d9488, #0ea5e9);
  transform: translateY(-1px);
}

/* Tombol sudah tersimpan */
.btn-card-download.btn-archived {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.3);
  color: var(--accent-green);
  cursor: default;
}

/* accent-orange variable (dibutuhkan untuk download count) */
:root {
  --accent-orange: #FC4C02;
}

