/* Back to Home button styles - Responsive */
#back-home-btn {
  position: absolute;
  top: 50px; /* Align with search bar */
  left: 7.5%; /* Align with search bar's left edge (search bar is centered with width 85%) */
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(214, 51, 132, 0.3);
  color: #ff6b9d;
  border-radius: 24px;
  padding: 10px 20px 10px 16px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(214, 51, 132, 0.10);
  transition: all 0.3s;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  min-height: 44px; /* Minimum touch target size */
}

@media (max-width: 900px) {
  #back-home-btn {
    top: 15px;
    left: 15px;
  }
}
#back-home-btn i {
  font-size: 18px;
  flex-shrink: 0; /* Prevent icon from shrinking */
}

#back-home-btn:hover {
  background: linear-gradient(135deg, #d63384, #ff6b9d);
  color: #fff;
  border-color: #ff6b9d;
  box-shadow: 0 4px 16px rgba(214, 51, 132, 0.18);
  transform: scale(1.04);
}

/* Tablet responsiveness */
@media (max-width: 768px) {
  #back-home-btn {
    top: 15px;
    left: 15px;
    padding: 8px 16px 8px 12px;
    font-size: 14px;
    border-radius: 20px;
    gap: 6px;
    min-height: 42px;
  }
  
  #back-home-btn i {
    font-size: 16px;
  }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  #back-home-btn {
    display: none !important;
  }
}

/* Extra small screens */
@media (max-width: 320px) {
  #back-home-btn {
    top: 10px;
    left: 10px;
    padding: 5px 10px 5px 8px;
    font-size: 12px;
    border-radius: 16px;
    gap: 3px;
    min-height: 38px;
  }
  
  #back-home-btn i {
    font-size: 13px;
  }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  #back-home-btn {
    top: 10px;
    left: 10px;
    padding: 5px 12px 5px 8px;
    font-size: 12px;
    border-radius: 16px;
    gap: 4px;
    min-height: 36px;
  }
  
  #back-home-btn i {
    font-size: 12px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  #back-home-btn {
    border-width: 0.5px;
  }
}

/* Ensure button doesn't interfere with other elements */
#back-home-btn {
  pointer-events: auto;
  user-select: none;
}

/* Focus state for accessibility */
#back-home-btn:focus {
  outline: 2px solid #ff6b9d;
  outline-offset: 2px;
}

/* Active state for better touch feedback */
#back-home-btn:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}
/* Search Bar Styles */
#search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin: 15px;
  position: relative;
  z-index: 10;
}

#search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}

#search-input:focus {
  outline: none;
  border-color: #ff6b9d;
  box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.2);
}

#search-btn {
  background: linear-gradient(135deg, #d63384, #ff6b9d);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

#search-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(214, 51, 132, 0.4);
}

/* Search dropdown */
#search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(30, 30, 30, 0.95);
  border-radius: 12px;
  margin: 5px 15px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

#search-dropdown.hidden {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #search-bar {
    padding: 10px;
    margin: 10px;
    gap: 8px;
  }
  
  #search-input {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  #search-btn {
    width: 36px;
    height: 36px;
  }
  
  .navbar-icons {
    gap: 5px;
  }
  
  .navbar-heart-minimal {
    width: 36px;
    height: 36px;
    padding: 8px;
    top: 0;
  }
}

@media (max-width: 480px) {
  #search-bar {
    flex-wrap: wrap;
    padding: 8px;
  }
  
  #search-input {
    order: 1;
    width: 100%;
    margin-bottom: 8px;
  }
  
  #search-btn {
    order: 2;
  }
  
  .navbar-icons {
    order: 3;
    margin-left: auto;
  }
  
  .navbar-heart-minimal {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}

/* Hide like button by default */
#like-btn {
  display: none;
}

/* Show like button when a song is playing */
#like-btn.active {
  display: inline-flex;
}
/* Minimal, aesthetic navbar icons group */
.navbar-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  margin-top: 2px;
  margin-bottom: 2px;
}

/* Minimal heart button for navbar */
.navbar-heart-minimal {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-left: 10px;
  flex-shrink: 0;
  font-size: 22px;
  transition: all 0.3s ease;
  position: relative;
  top: 9px;
}
.navbar-heart-minimal i.fa-heart {
  color: #ff6b9d;
  font-size: 20px;
  transition: color 0.18s, text-shadow 0.18s;
}
.navbar-heart-minimal:hover {
  background: linear-gradient(135deg, #d63384 60%, #ff6b9d 100%);
  border-color: #ff6b9d;
  box-shadow: 0 4px 16px #ff6b9d33;
  transform: scale(1.09) translateY(-1px);
}
.navbar-heart-minimal:hover i.fa-heart {
  color: #fff;
  text-shadow: 0 2px 8px #d63384;
}
.navbar-heart-minimal:active {
  transform: scale(0.97);
}
.navbar-heart-minimal:focus {
  outline: 2px solid #ff6b9d;
  outline-offset: 2px;
}
/* Enhanced navbar liked songs button */
.navbar-heart {
  position: relative;
  overflow: visible;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.18s, box-shadow 0.18s;
}
.navbar-heart-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #d63384 60%, #ff6b9d 100%);
  opacity: 0.18;
  z-index: 0;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(214, 51, 132, 0.18);
}
.navbar-heart i.fa-heart {
  position: relative;
  z-index: 1;
  color: #ff6b9d;
  font-size: 22px;
  filter: drop-shadow(0 2px 8px #d6338433);
  transition: color 0.2s, text-shadow 0.2s;
}
.navbar-heart:hover {
  transform: scale(1.13) translateY(-2px);
  box-shadow: 0 4px 18px #d6338455;
}
.navbar-heart:hover .navbar-heart-bg {
  opacity: 0.32;
  box-shadow: 0 6px 24px #ff6b9d55;
}
.navbar-heart:active {
  transform: scale(1.05);
}
.navbar-heart:focus {
  outline: 2px solid #ff6b9d;
  outline-offset: 2px;
}
/* Liked Songs Modal Overlay */
.liked-songs-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 20, 40, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}
.liked-songs-modal.hidden {
  display: none;
}
.liked-songs-modal-content {
  background: rgba(30, 30, 50, 0.95);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(214, 51, 132, 0.18);
  padding: 32px 24px 24px 24px;
  min-width: 340px;
  max-width: 95vw;
  max-height: 80vh;
  width: 420px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.liked-songs-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.liked-songs-modal-header h2 {
  font-size: 1.5rem;
  color: #ff6b9d;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.liked-songs-list {
  overflow-y: auto;
  max-height: 55vh;
  min-height: 80px;
  padding-right: 4px;
}
.liked-song-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: background 0.2s;
}
.liked-song-item:last-child {
  border-bottom: none;
}
.liked-song-item:hover {
  background: linear-gradient(90deg, rgba(214,51,132,0.08), rgba(255,107,157,0.06));
}
.liked-song-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(214, 51, 132, 0.10);
  border: 2px solid rgba(255,255,255,0.10);
}
.liked-song-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.liked-song-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.liked-song-artist {
  font-size: 0.92rem;
  color: #ff6b9d;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.liked-song-like-btn {
  background: none;
  border: none;
  color: #ff6b9d;
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  margin-left: 8px;
}
.liked-song-like-btn.liked {
  color: #fff;
  text-shadow: 0 2px 8px #d63384;
  transform: scale(1.15);
}
.liked-songs-list-empty {
  text-align: center;
  color: #fff;
  opacity: 0.7;
  padding: 32px 0 16px 0;
  font-size: 1.1rem;
}
/* Like (heart) button styles */
.icon-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(214, 51, 132, 0.3);
  color: #ff6b9d;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(214, 51, 132, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover, .icon-btn.active {
  background: linear-gradient(135deg, #d63384, #ff6b9d);
  color: #fff;
  border-color: #ff6b9d;
  box-shadow: 0 4px 16px rgba(214, 51, 132, 0.25);
  transform: scale(1.1);
}

.icon-btn .fa-heart {
  transition: color 0.2s;
}

.icon-btn.active .fa-heart {
  color: #fff;
}

.liked-songs-btn {
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 16px;
  margin: 0 auto 18px auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  color: #ff6b9d;
  border: 1px solid rgba(214, 51, 132, 0.3);
  box-shadow: 0 2px 8px rgba(214, 51, 132, 0.10);
  transition: all 0.3s;
}
.liked-songs-btn:hover, .liked-songs-btn.active {
  background: linear-gradient(135deg, #d63384, #ff6b9d);
  color: #fff;
  border-color: #ff6b9d;
  box-shadow: 0 4px 16px rgba(214, 51, 132, 0.18);
  transform: scale(1.04);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#music-player {
  width: 100%;
  height: 100vh;
  padding: 30px;
  position: relative;
  transition: all 0.3s ease;
}

#music-player.dark-mode {
  background: rgba(0, 0, 0, 0.85);
  color: #e0e0e0;
}

#music-player.light-mode {
  background: rgba(238, 184, 200, 0.95);
  color: #333;
}

#theme-toggle {
  position: relative;
  cursor: pointer;
  font-size: 22px;
  color: inherit;
  transition: all 0.3s ease;
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  flex-shrink: 0;
}

#theme-toggle:hover {
  transform: rotate(180deg) scale(1.1);
  background: rgba(214, 51, 132, 0.2);
  border-color: #d63384;
  box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
}

#search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 4px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: 85%;
  max-width: 600px;
  position: relative;
  min-height: 48px;
}

#search-bar:focus-within {
  box-shadow: 0 6px 20px rgba(214, 51, 132, 0.2);
  transform: translateY(-1px);
}

#search-input {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 14px;
  outline: none;
  font-weight: 400;
  min-width: 0;
  transition: all 0.2s ease;
}

#search-input:focus {
  transform: scale(1.02);
}

#search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

#search-input:focus::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

#search-btn {
  padding: 10px;
  border: none;
  background: linear-gradient(135deg, #d63384, #ff6b9d);
  color: white;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(214, 51, 132, 0.3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  min-width: 40px;
}

#search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

#search-btn:hover::before {
  left: 100%;
}

#search-btn:hover {
  background: linear-gradient(135deg, #b02a5b, #e85a8a);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(214, 51, 132, 0.4);
}

#search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0 0 12px 12px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
  animation: slideDown 0.3s ease-out;
  transform-origin: top;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#search-dropdown.hidden {
  display: none;
}

.dropdown-item {
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(214, 51, 132, 0.1), transparent);
  transition: left 0.6s ease;
}

.dropdown-item:hover::before {
  left: 100%;
}

.dropdown-item:hover,
.dropdown-item.selected {
  background: linear-gradient(135deg, rgba(214, 51, 132, 0.15), rgba(255, 107, 157, 0.1));
  border-color: rgba(214, 51, 132, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(214, 51, 132, 0.2);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.dropdown-item:hover .dropdown-image {
  transform: scale(1.05);
  border-color: rgba(214, 51, 132, 0.4);
  box-shadow: 0 6px 20px rgba(214, 51, 132, 0.3);
}

.dropdown-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.dropdown-info {
  flex: 1;
  min-width: 0;
  margin-left: 14px;
}

.dropdown-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.dropdown-item:hover .dropdown-title {
  color: rgba(255, 255, 255, 0.95);
}

.dropdown-artist {
  font-size: 12px;
  opacity: 0.65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  font-weight: 400;
}

.dropdown-item:hover .dropdown-artist {
  opacity: 0.85;
  color: rgba(255, 107, 157, 0.9);
}

.dropdown-play-btn {
  background: linear-gradient(135deg, #d63384, #ff6b9d);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 12px;
  flex-shrink: 0;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(214, 51, 132, 0.3);
  position: relative;
  overflow: hidden;
}

.dropdown-play-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dropdown-play-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 25px rgba(214, 51, 132, 0.5);
  background: linear-gradient(135deg, #e85a8a, #ff8fb3);
}

.dropdown-play-btn:hover::before {
  opacity: 1;
}

.dropdown-play-btn:active {
  transform: scale(1.05) translateY(0);
}

#content-container {
  display: flex;
  height: calc(100% - 120px);
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 20px;
}

#song-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#album-art-container {
  width: 380px;
  height: 380px;
  min-width: 380px;
}

#album-art {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#song-details {
  max-width: 400px;
  text-align: center;
}

#song-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  order: 2;
}

#song-artist {
  font-size: 18px;
  opacity: 0.8;
  order: 1;
}

#player {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  order: 3;
}

#progress-container {
  width: 100%;
  margin-bottom: 5px;
}

#progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

#progress {
  height: 100%;
  background: #d63384;
  width: 0;
  border-radius: 3px;
  position: absolute;
  z-index: 2;
}

#wave-progress {
  height: 100%;
  width: 0;
  position: absolute;
  z-index: 1;
  background: linear-gradient(90deg, #d63384, #ff6b9d);
  opacity: 0.7;
  animation: wave 1.5s linear infinite;
  background-size: 200% 100%;
}

@keyframes wave {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

#time-display {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

#player-options {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  gap: 20px;
}

#loop-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(214, 51, 132, 0.3);
  color: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 20px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#loop-btn:hover {
  background: rgba(214, 51, 132, 0.2);
  border-color: #d63384;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(214, 51, 132, 0.3);
}

#loop-btn.active {
  background: linear-gradient(135deg, #d63384, #ff6b9d);
  border-color: #ff6b9d;
  color: white;
  box-shadow: 0 3px 10px rgba(214, 51, 132, 0.4);
}

.loop-count {
  font-size: 10px;
  margin-left: 2px;
  font-weight: bold;
}

#controls {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}

#controls button {
  margin: 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

#controls button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(214, 51, 132, 0.3), transparent);
  transition: all 0.3s ease;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#controls button:hover::before {
  width: 100px;
  height: 100px;
}

#controls button:hover {
  background: linear-gradient(135deg, #d63384, #ff6b9d);
  border-color: #ff6b9d;
  color: white;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 51, 132, 0.4);
}

#controls button:active {
  transform: scale(1.05) translateY(-1px);
}

#play-pause-btn {
  padding: 18px;
  background: linear-gradient(135deg, #d63384, #ff6b9d) !important;
  border: 1px solid #ff6b9d !important;
  color: white !important;
  transform: scale(1.15);
  box-shadow: 0 6px 25px rgba(214, 51, 132, 0.5) !important;
  position: relative;
}

#play-pause-btn::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #ff6b9d, #d63384);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#play-pause-btn:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 30px rgba(214, 51, 132, 0.6) !important;
}

#play-pause-btn:hover::after {
  opacity: 1;
}

#unavailable-message {
  text-align: center;
  padding: 15px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

#unavailable-message code {
  background: transparent;
  color: inherit;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

#volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(214, 51, 132, 0.3);
  border-radius: 20px;
  padding: 8px 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#volume-control:hover {
  background: rgba(214, 51, 132, 0.1);
  border-color: #d63384;
  box-shadow: 0 4px 15px rgba(214, 51, 132, 0.2);
}

#volume-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  transition: all 0.3s ease;
}

#volume-btn:hover {
  color: #d63384;
  transform: scale(1.1);
}

#volume-slider {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

#volume-slider:hover {
  opacity: 1;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d63384, #ff6b9d);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d63384, #ff6b9d);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.learn-more-link {
  color: #d63384 !important;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(214, 51, 132, 0.1);
  border: 1px solid rgba(214, 51, 132, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
  margin-left: 5px;
}

.learn-more-link:hover {
  background: rgba(214, 51, 132, 0.2);
  border-color: #d63384;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(214, 51, 132, 0.3);
  color: #ff6b9d !important;
}

/* Theme-specific styling for learn more link */
#music-player.light-mode .learn-more-link {
  color: #d63384 !important;
  background: rgba(214, 51, 132, 0.15);
  border-color: rgba(214, 51, 132, 0.4);
}

#music-player.light-mode .learn-more-link:hover {
  background: rgba(214, 51, 132, 0.25);
  border-color: #d63384;
  color: #b02a5b !important;
}

#music-player.dark-mode .learn-more-link {
  color: #ff6b9d !important;
  background: rgba(255, 107, 157, 0.1);
  border-color: rgba(255, 107, 157, 0.3);
}

#music-player.dark-mode .learn-more-link:hover {
  background: rgba(255, 107, 157, 0.2);
  border-color: #ff6b9d;
  color: #ffadd1 !important;
}

/* Existing player-options style override */
@media (max-width: 900px) {
  #content-container {
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    height: auto;
  }
  
  #song-info {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  #album-art-container {
    width: 250px;
    height: 250px;
  }
  
  #song-details {
    max-width: 100%;
  }
  
  #player {
    width: 90%;
    max-width: 400px;
  }
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
  #player-options {
    flex-direction: column;
    gap: 10px;
  }

  #volume-control {
    width: 100%;
    justify-content: center;
    max-width: 200px;
  }

  #volume-slider {
    width: 100px;
  }

  #search-dropdown {
    max-height: 250px;
  }  .dropdown-item {
    padding: 12px 10px;
  }

  .dropdown-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
  }

  .dropdown-info {
    margin-left: 12px;
  }

  .dropdown-title {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .dropdown-artist {
    font-size: 11px;
  }

  .dropdown-play-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
    margin-left: 10px;
  }
  /* Theme toggle in search bar for mobile */
  #theme-toggle {
    width: 38px;
    height: 38px;
    font-size: 16px;
    padding: 8px;
    margin-left: 8px;
    flex-shrink: 0;
  }

  #search-bar {
    width: 95%;
    margin: 15px auto;
    padding: 3px;
    max-width: none;
    position: relative;
  }

  #search-input {
    padding: 8px;
    font-size: 13px;
    min-width: 0;
    flex: 1;
  }

  #search-btn {
    padding: 8px 10px;
    font-size: 14px;
    flex-shrink: 0;
  }

  #search-dropdown {
    max-height: 250px;
    font-size: 13px;
  }

  /* Remove secondary layout card and make tight */
  #music-player {
    background: transparent;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
  }

  body {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
  }

  #content-container {
    gap: 15px;
    padding: 10px;
    height: calc(100vh - 120px);
    overflow: hidden;
  }

  #album-art {
    width: 180px;
    height: 180px;
    max-width: 75vw;
    max-height: 75vw;
  }

  #album-art-container {
    width: 180px;
    height: 180px;
    max-width: 75vw;
    max-height: 75vw;
    margin: 0 auto;
  }

  #song-info {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  #song-details {
    text-align: center;
    width: 100%;
  }

  #song-title {
    font-size: 20px;
    margin-bottom: 5px;
  }

  #song-artist {
    font-size: 16px;
  }

  #controls {
    gap: 15px;
    margin-bottom: 10px;
  }

  #controls button {
    padding: 12px;
    font-size: 18px;
  }

  #play-pause-btn {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  #album-art {
    width: 140px;
    height: 140px;
    max-width: 60vw;
    max-height: 60vw;
  }

  #album-art-container {
    width: 140px;
    height: 140px;
    max-width: 60vw;
    max-height: 60vw;
    margin: 0 auto;
  }

  #song-title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  #song-artist {
    font-size: 13px;
  }
  /* Smaller theme toggle for small mobile */
  #theme-toggle {
    width: 34px;
    height: 34px;
    font-size: 14px;
    padding: 6px;
    margin-left: 6px;
    flex-shrink: 0;
  }

  #search-input {
    padding: 6px 8px;
    font-size: 12px;
    min-width: 0;
  }

  #search-btn {
    padding: 6px 8px;
    font-size: 12px;
    flex-shrink: 0;
  }

  #search-bar {
    margin: 10px auto;
    width: 98%;
    padding: 2px;
    min-height: 36px;
  }

  #search-dropdown {
    max-height: 200px;
    font-size: 12px;
  }

  /* Ultra tight layout for small screens */
  #music-player {
    background: transparent;
    height: 100vh;
    padding: 5px;
    box-sizing: border-box;
    overflow: hidden;
  }
  #content-container {
    gap: 10px;
    padding: 5px;
    height: calc(100vh - 120px);
    padding-bottom: 30px;
  }

  #controls {
    gap: 10px;
    margin-bottom: 5px;
  }

  #controls button {
    padding: 10px;
    font-size: 16px;
  }

  #play-pause-btn {
    padding: 12px;
  }

  #player-options {
    gap: 8px;
  }

  #volume-control {
    max-width: 180px;
  }
  #footer {
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 5px 10px;
    margin-top: 0;
    font-size: 10px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
  }

  body {
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    margin: 0;
    padding: 0;
  }
}

/* Footer styling - same for all devices */
#footer {
  text-align: center;
  padding: 10px 20px;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

#footer p {
  margin: 0;
  font-weight: 300;
  line-height: 1.4;
}

.footer-link {
  color: #ff6b9d;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.2s ease;
  margin-left: 3px;
}

.footer-link:hover {
  color: #ffadd1;
  text-decoration: none;
}

/* Theme-specific footer styling */
#music-player.light-mode #footer {
  color: rgba(51, 51, 51, 0.5);
}

#music-player.light-mode .footer-link {
  color: #d63384;
}

#music-player.light-mode .footer-link:hover {
  color: #b02a5b;
}

#music-player.dark-mode #footer {
  color: rgba(255, 255, 255, 0.5);
}

#music-player.dark-mode .footer-link {
  color: #ff6b9d;
}

#music-player.dark-mode .footer-link:hover {
  color: #ffadd1;
}

/* Custom scrollbar for search dropdown */
#search-dropdown::-webkit-scrollbar {
  width: 6px;
}

#search-dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

#search-dropdown::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #d63384, #ff6b9d);
  border-radius: 3px;
}

#search-dropdown::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #b02a5b, #e85a8a);
}

/* Search dropdown empty state */
.dropdown-empty {
  padding: 24px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-style: italic;
}

.dropdown-empty i {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
  opacity: 0.3;
}

/* Search loading animation */
.dropdown-loading {
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.search-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(214, 51, 132, 0.3);
  border-top: 2px solid #d63384;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}