/* ═══════════════════════════════════════════════════════════════════════════════
   MEDIA PLAYERS - Audio Features
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   BGM Player Codes - 1
   ───────────────────────────────────────────────────────────────────────────── */

/* BGM Player Styles */
.bgm-player {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bgm-track-info {
  text-align: center;
  margin-bottom: 15px;
}

.bgm-track-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bgm-track-artist {
  font-size: 14px;
  color: #666;
}

.bgm-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.bgm-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bgm-btn:hover {
  color: #8b5fbf;
  transform: scale(1.1);
}

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

.bgm-btn-play {
  background-color: rgba(139, 95, 191, 0.2);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 15px;
}

.bgm-btn-play:hover {
  background-color: rgba(139, 95, 191, 0.3);
}

.bgm-time-display {
  display: flex;
  justify-content: center;
  color: #666;
  font-size: 13px;
  margin-bottom: 10px;
}

/* Updated progress container to support hover circle */
.bgm-progress-container {
  height: 4px;
  background-color: #333;
  border-radius: 2px;
  overflow: visible;
  margin-bottom: 15px;
  cursor: pointer;
  position: relative;
}

.bgm-progress-container:hover {
  height: 6px;
}

.bgm-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #8b5fbf, #9d71d0);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Add progress circle that appears on hover */
.bgm-progress-circle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 10;
}

.bgm-progress-container:hover .bgm-progress-circle {
  opacity: 1;
}

.bgm-progress-container:hover .bgm-progress-bar {
  background: linear-gradient(90deg, #fff, #fff);
}

.bgm-btn-shuffle {
  position: relative;
}

.bgm-btn-shuffle.active {
  color: #8b5fbf;
}

.bgm-btn-shuffle.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: #8b5fbf;
  border-radius: 50%;
}

.bgm-equalizer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 20px;
  padding: 0 50px;
  margin-top: 15px;
  gap: 3px;
}

.bgm-equalizer-bar {
  width: 4px;
  background-color: #8b5fbf;
  border-radius: 2px;
  opacity: 0.6;
  transform-origin: bottom;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
  animation-name: none;
}

.bgm-equalizer.playing .bgm-equalizer-bar:nth-child(1) {
  height: 40%;
  animation-name: equalize;
  animation-delay: 0s;
}

.bgm-equalizer.playing .bgm-equalizer-bar:nth-child(2) {
  height: 60%;
  animation-name: equalize;
  animation-delay: 0.1s;
}

.bgm-equalizer.playing .bgm-equalizer-bar:nth-child(3) {
  height: 80%;
  animation-name: equalize;
  animation-delay: 0.2s;
}

.bgm-equalizer.playing .bgm-equalizer-bar:nth-child(4) {
  height: 70%;
  animation-name: equalize;
  animation-delay: 0.15s;
}

.bgm-equalizer.playing .bgm-equalizer-bar:nth-child(5) {
  height: 30%;
  animation-name: equalize;
  animation-delay: 0.05s;
}

.bgm-equalizer.playing .bgm-equalizer-bar:nth-child(6) {
  height: 50%;
  animation-name: equalize;
  animation-delay: 0.25s;
}

@keyframes equalize {
  0% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.5);
  }
  100% {
    transform: scaleY(1);
  }
}

/* Dark theme adjustments */
.theme-dark .bgm-player {
  background-color: rgba(255, 255, 255, 0.05);
}

.theme-dark .bgm-track-artist {
  color: #aaa;
}

.theme-dark .bgm-time-display {
  color: #aaa;
}

.theme-dark .bgm-progress-container {
  background-color: rgba(255, 255, 255, 0.2);
}

/* BGM Album Art Section */
.bgm-album-art-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bgm-album-art-container {
  flex-shrink: 0;
}

.bgm-album-art {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 2px solid rgba(139, 95, 191, 0.3);
}

.bgm-album-art:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border-color: rgba(139, 95, 191, 0.5);
}

.bgm-album-art.spinning {
  animation: bgmAlbumSpin 10s linear infinite;
}

@keyframes bgmAlbumSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.bgm-album-art-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: rgba(139, 95, 191, 0.6);
  border: 2px solid rgba(139, 95, 191, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.bgm-track-display {
  flex: 1;
  min-width: 0;
}

.bgm-current-track {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bgm-current-artist {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Track List Section */
.bgm-track-list-section {
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.track-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.track-list-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.track-search-container {
  position: relative;
  max-width: 250px;
  flex: 1;
  margin-left: 20px;
}

.track-search-input {
  width: 100%;
  padding: 8px 12px 8px 35px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
}

.track-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.track-search-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(139, 95, 191, 0.6);
  box-shadow: 0 0 0 2px rgba(139, 95, 191, 0.2);
}

.track-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-search-clear:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

.track-search-clear svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-list-container {
  position: relative;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
}

/* Custom scrollbar for track list */
.track-list-container::-webkit-scrollbar {
  width: 6px;
}

.track-list-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.track-list-container::-webkit-scrollbar-thumb {
  background: rgba(139, 95, 191, 0.4);
  border-radius: 3px;
}

.track-list-container::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 95, 191, 0.6);
}

.track-list-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  text-align: center;
}

.track-list {
  display: none;
}

.track-list.show {
  display: block;
}

.track-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 2px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: transparent;
}

.track-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.track-item.active {
  background: rgba(139, 95, 191, 0.15);
  border-left: 3px solid #8b5fbf;
}

.track-item.active::before {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #8b5fbf;
  border-radius: 50%;
  animation: nowPlayingPulse 2s infinite;
}

@keyframes nowPlayingPulse {
  0%,
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.2);
  }
}

.track-item.playing {
  background: rgba(139, 95, 191, 0.2);
}

.track-item.playing .track-item-title {
  color: #8b5fbf;
}

.track-number {
  min-width: 25px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  font-weight: 500;
}

.track-item.active .track-number {
  color: #8b5fbf;
}

/* Track Album Art Styles */
.track-album-art {
  width: 40px;
  height: 40px;
  margin-left: 12px;
  margin-right: 8px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.track-art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.track-item:hover .track-art-image {
  transform: scale(1.05);
}

.track-art-placeholder {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.track-item.active .track-album-art {
  box-shadow: 0 0 0 2px #8b5fbf;
}

.track-item.playing .track-art-image {
  animation: albumPulse 2s infinite ease-in-out;
}

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

.track-item-info {
  flex: 1;
  min-width: 0;
  margin-left: 0; /* Removed margin since album art provides spacing */
}

.track-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.track-item-artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.track-item:hover .track-item-actions {
  opacity: 1;
}

.track-item.active .track-item-actions {
  opacity: 1;
}

.track-action-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-action-btn:hover {
  color: #8b5fbf;
  background: rgba(139, 95, 191, 0.1);
}

.track-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Playing indicator */
.track-playing-indicator {
  display: none;
  width: 14px;
  height: 14px;
  margin-right: 8px;
}

.track-item.playing .track-playing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-item.playing .track-number {
  display: none;
}

.track-playing-bars {
  display: flex;
  align-items: end;
  height: 12px;
  gap: 1px;
}

.track-playing-bar {
  width: 2px;
  background: #8b5fbf;
  border-radius: 1px;
  animation: playingBars 1.5s infinite ease-in-out;
}

.track-playing-bar:nth-child(1) {
  height: 60%;
  animation-delay: 0s;
}

.track-playing-bar:nth-child(2) {
  height: 100%;
  animation-delay: 0.3s;
}

.track-playing-bar:nth-child(3) {
  height: 40%;
  animation-delay: 0.6s;
}

.track-playing-bar:nth-child(4) {
  height: 80%;
  animation-delay: 0.9s;
}

@keyframes playingBars {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.3);
  }
}

/* Search highlighting */
.track-item-title .highlight,
.track-item-artist .highlight {
  background: rgba(255, 255, 0, 0.3);
  color: #ffff00;
  padding: 1px 2px;
  border-radius: 2px;
}

/* No results state */
.track-list-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.track-list-no-results svg {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Dark theme adjustments */
.theme-dark .bgm-track-list-section {
  background: rgba(255, 255, 255, 0.05);
}

.theme-dark .track-search-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.theme-dark .track-search-input:focus {
  background: rgba(255, 255, 255, 0.12);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .track-list-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .track-search-container {
    max-width: none;
    margin-left: 0;
  }

  .track-list-container {
    max-height: 250px;
  }
  .track-item {
    padding: 10px 12px;
  }

  .track-album-art {
    width: 36px;
    height: 36px;
    margin-left: 8px;
    margin-right: 6px;
  }

  .track-item-title {
    font-size: 13px;
  }

  .track-item-artist {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .bgm-track-list-section {
    padding: 15px;
  }

  .track-list-title {
    font-size: 16px;
  }

  .track-search-input {
    font-size: 13px;
    padding: 7px 10px 7px 30px;
  }

  .track-search-icon {
    left: 10px;
    width: 14px;
    height: 14px;
  }

  .track-list-container {
    max-height: 200px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Mini Music Player Codes - 2
   ───────────────────────────────────────────────────────────────────────────── */

/* Mini Music Player Modal */
.mini-music-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.mini-music-modal.show {
  display: flex;
}

.mini-music-content {
  background: #1a1a1a;
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: miniModalFadeIn 0.3s ease;
  color: #fff;
}

@keyframes miniModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.mini-music-header {
  padding: 20px 25px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #333;
}

.mini-music-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.mini-music-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.3s ease;
}

.mini-music-close:hover {
  color: #fff;
}

.mini-music-body {
  padding: 20px 25px;
}

.mini-track-info {
  text-align: center;
  margin-bottom: 20px;
}

.mini-track-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.mini-track-artist {
  font-size: 14px;
  color: #999;
}

.mini-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.mini-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-btn-prev,
.mini-btn-next {
  width: 44px;
  height: 44px;
}

.mini-btn-play {
  width: 56px;
  height: 56px;
  background: #8b5fbf;
}

.mini-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.mini-btn-play:hover {
  background: #9d71d0;
}

.mini-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.mini-settings-label {
  font-size: 14px;
  color: #ddd;
}

.mini-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.mini-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mini-slider-toggle {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  transition: 0.4s;
  border-radius: 24px;
}

.mini-slider-toggle:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .mini-slider-toggle {
  background-color: #8b5fbf;
}

input:checked + .mini-slider-toggle:before {
  transform: translateX(20px);
}

.mini-select {
  background-color: #252525;
  border: 1px solid #444;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  min-width: 140px;
}

.mini-select:focus {
  outline: none;
  border-color: #8b5fbf;
}

.mini-volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-volume-slider {
  width: 100px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #444;
  outline: none;
  border-radius: 3px;
}

.mini-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8b5fbf;
  cursor: pointer;
}

.mini-volume-percentage {
  min-width: 35px;
  font-size: 14px;
  color: #8b5fbf;
  font-weight: 600;
  text-align: center;
}

.mini-progress-container {
  width: 100%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin-top: 20px;
  overflow: visible;
  position: relative;
  cursor: pointer;
}

.mini-progress-container:hover {
  height: 6px;
}

.mini-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #8b5fbf, #9d71d0);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Spotify-like hover circle */
.mini-progress-circle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 10;
}

.mini-progress-container:hover .mini-progress-circle {
  opacity: 1;
}

.mini-progress-container:hover .mini-progress-bar {
  background: linear-gradient(90deg, #fff, #fff);
}

.mini-music-footer {
  padding: 15px 25px 20px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.mini-close-btn {
  background-color: #333;
  color: #ddd;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  order: 1;
}

.mini-close-btn:hover {
  background-color: #444;
  color: #fff;
}

.mini-settings-btn {
  background: #8b5fbf;
  color: #fff;
  border: 1px solid #8b5fbf;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  order: 2;
}

.mini-settings-btn:hover {
  background: #9d71d0;
  border-color: #9d71d0;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(139, 95, 191, 0.3);
}

/* Mini Music Player Modal - Updated Design */
.mini-music-player-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mini-music-player-modal.show {
  display: flex;
}

.mini-music-player-content {
  background: linear-gradient(145deg, #1e1e1e 0%, #252525 50%, #1a1a1a 100%);
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  animation: modalFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #fff;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.mini-player-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.mini-player-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.mini-player-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  font-size: 20px;
  color: #ccc;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Album Art Section - Updated for matching reference image */
.mini-player-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.mini-album-art-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.mini-album-art {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(139, 95, 191, 0.3);
}

.mini-album-art-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(139, 95, 191, 0.6);
  border: 2px solid rgba(139, 95, 191, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Track Info - Simplified */
.mini-player-info {
  text-align: center;
  margin-bottom: 24px;
  width: 100%;
}

.mini-track-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 5px;
}

.mini-track-artist {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 5px;
}

/* Controls - More compact */
.mini-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  width: 100%;
}

.mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  position: relative;
  z-index: 5;
  padding: 0;
}

.mini-btn-play {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  background: #8b5fbf;
  border-color: rgba(139, 95, 191, 0.3);
  box-shadow: 0 4px 16px rgba(139, 95, 191, 0.4);
}

.mini-btn:hover {
  transform: scale(1.05);
}

.mini-btn-play:hover {
  background: #9d71d0;
}

/* Progress bar - Simplified */
.mini-player-progress-container {
  width: 100%;
  margin-bottom: 12px;
}

.mini-player-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: visible;
  margin-bottom: 8px;
  width: 100%;
  z-index: 5;
}

.mini-progress-bar {
  height: 100%;
  background: #8b5fbf;
  border-radius: 3px;
  transition: width 0.3s ease;
  pointer-events: none;
}

.mini-progress-circle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 6;
}

.mini-player-progress:hover .mini-progress-circle {
  opacity: 1;
}

.mini-player-time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  width: 100%;
}

/* Volume control - Simplified */
.mini-player-volume {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-volume-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  min-width: 80px;
}

.mini-volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 24px;
}

.mini-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  flex: 1;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.mini-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mini-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#mini-volume-display {
  min-width: 40px;
  font-size: 14px;
  color: #8b5fbf;
  text-align: right;
}

/* Footer simplified */
.mini-player-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, 0.1);
}

.mini-close-btn,
.mini-settings-btn {
  padding: 8px 16px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
}

/* Animation for spinning album art */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.mini-album-art.spinning {
  animation: spin 20s linear infinite;
}

/* Responsive improvements */
@media (min-width: 768px) {
  .mini-album-art,
  .mini-album-art-placeholder {
    width: 220px;
    height: 220px;
  }

  .mini-track-title {
    font-size: 20px;
  }

  .mini-track-artist {
    font-size: 16px;
  }
}

/* Landscape mode optimizations based on reference image */
@media (orientation: landscape) {
  .mini-player-body.landscape-mode {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 16px;
    padding: 16px;
    align-items: center;
  }

  .landscape-mode .mini-album-art-container {
    grid-row: span 2;
  }

  .landscape-mode .mini-player-info {
    text-align: left;
    padding-right: 16px;
  }

  .landscape-mode .mini-player-controls {
    justify-content: flex-start;
    margin-top: 0;
  }

  .landscape-mode .mini-player-progress-container,
  .landscape-mode .mini-player-volume {
    grid-column: span 2;
    width: 100%;
  }

  .landscape-mode .mini-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .landscape-mode .mini-btn-play {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

/* Mobile phones in landscape - further refinements */
@media (max-width: 767px) and (orientation: landscape) {
  .mini-music-player-content {
    max-height: 85vh;
    overflow-y: auto;
    margin: 10px auto;
  }

  .mini-player-body {
    padding: 12px;
  }

  .mini-album-art-container {
    margin-bottom: 0;
  }

  .mini-album-art,
  .mini-album-art-placeholder {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
  }

  .mini-player-controls {
    gap: 12px;
  }

  .mini-volume-slider {
    min-width: 80px;
  }
}

/* Make sure footer buttons are properly sized and spaced */
.mini-player-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, 0.1);
}

.mini-close-btn,
.mini-settings-btn {
  padding: 8px 16px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
}

/* Fix Music Player Controls for All Device Orientations */

/* Fix control sizing and interaction issues */
.mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  position: relative;
  z-index: 5;
  padding: 0;
}

.mini-btn-play {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  background: #8b5fbf;
  border-color: rgba(139, 95, 191, 0.3);
  box-shadow: 0 4px 16px rgba(139, 95, 191, 0.4);
}

/* Fix slider interaction and visibility */
.mini-player-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: visible;
  margin-bottom: 8px;
  width: 100%;
  z-index: 5;
}

.mini-progress-bar {
  height: 100%;
  background: #8b5fbf;
  border-radius: 3px;
  transition: width 0.3s ease;
  pointer-events: none;
}

.mini-progress-circle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 6;
}

/* Fix typo in selector - was using underscore instead of dash */
.mini-player-progress:hover .mini-progress-circle {
  opacity: 1;
}

/* Fix volume slider issues */
.mini-player-volume {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 24px;
}

.mini-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  flex: 1;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.mini-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mini-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#mini-volume-display {
  min-width: 40px;
  font-size: 14px;
  color: #8b5fbf;
  text-align: right;
}

/* Improved landscape orientation layout */
@media (orientation: landscape) {
  .mini-player-body.landscape-mode {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 16px;
    padding: 16px;
    align-items: center;
  }

  .landscape-mode .mini-album-art-container {
    grid-row: span 2;
  }

  .landscape-mode .mini-player-info {
    text-align: left;
    padding-right: 16px;
  }

  .landscape-mode .mini-player-controls {
    justify-content: flex-start;
    margin-top: 0;
  }

  .landscape-mode .mini-player-progress-container,
  .landscape-mode .mini-player-volume {
    grid-column: span 2;
    width: 100%;
  }

  .landscape-mode .mini-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .landscape-mode .mini-btn-play {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

/* Mobile phones in landscape - further refinements */
@media (max-width: 767px) and (orientation: landscape) {
  .mini-music-player-content {
    max-height: 85vh;
    overflow-y: auto;
    margin: 10px auto;
  }

  .mini-player-body {
    padding: 12px;
  }

  .mini-album-art-container {
    margin-bottom: 0;
  }

  .mini-album-art,
  .mini-album-art-placeholder {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
  }

  .mini-player-controls {
    gap: 12px;
  }

  .mini-volume-slider {
    min-width: 80px;
  }
}

/* Make sure footer buttons are properly sized and spaced */
.mini-player-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, 0.1);
}

.mini-close-btn,
.mini-settings-btn {
  padding: 8px 16px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
}

/* Fix Music Player Controls for All Device Orientations */

/* Fix control sizing and interaction issues */
.mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  position: relative;
  z-index: 5;
  padding: 0;
}

.mini-btn-play {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  background: #8b5fbf;
  border-color: rgba(139, 95, 191, 0.3);
  box-shadow: 0 4px 16px rgba(139, 95, 191, 0.4);
}

/* Fix slider interaction and visibility */
.mini-player-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: visible;
  margin-bottom: 8px;
  width: 100%;
  z-index: 5;
}

.mini-progress-bar {
  height: 100%;
  background: #8b5fbf;
  border-radius: 3px;
  transition: width 0.3s ease;
  pointer-events: none;
}

.mini-progress-circle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 6;
}

/* Fix typo in selector - was using underscore instead of dash */
.mini-player-progress:hover .mini-progress-circle {
  opacity: 1;
}

/* Fix volume slider issues */
.mini-player-volume {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 24px;
}

.mini-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  flex: 1;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.mini-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mini-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#mini-volume-display {
  min-width: 40px;
  font-size: 14px;
  color: #8b5fbf;
  text-align: right;
}

/* Improved landscape orientation layout */
@media (orientation: landscape) {
  .mini-player-body.landscape-mode {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 16px;
    padding: 16px;
    align-items: center;
  }

  .landscape-mode .mini-album-art-container {
    grid-row: span 2;
  }

  .landscape-mode .mini-player-info {
    text-align: left;
    padding-right: 16px;
  }

  .landscape-mode .mini-player-controls {
    justify-content: flex-start;
    margin-top: 0;
  }

  .landscape-mode .mini-player-progress-container,
  .landscape-mode .mini-player-volume {
    grid-column: span 2;
    width: 100%;
  }

  .landscape-mode .mini-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .landscape-mode .mini-btn-play {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

/* Mobile phones in landscape - further refinements */
@media (max-width: 767px) and (orientation: landscape) {
  .mini-music-player-content {
    max-height: 85vh;
    overflow-y: auto;
    margin: 10px auto;
  }

  .mini-player-body {
    padding: 12px;
  }

  .mini-album-art-container {
    margin-bottom: 0;
  }

  .mini-album-art,
  .mini-album-art-placeholder {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
  }

  .mini-player-controls {
    gap: 12px;
  }

  .mini-volume-slider {
    min-width: 80px;
  }
}

/* Make sure footer buttons are properly sized and spaced */
.mini-player-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, 0.1);
}

.mini-close-btn,
.mini-settings-btn {
  padding: 8px 16px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
}

/* Fix Music Player Controls for All Device Orientations */

/* Fix control sizing and interaction issues */
.mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  position: relative;
  z-index: 5;
  padding: 0;
}

.mini-btn-play {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  background: #8b5fbf;
  border-color: rgba(139, 95, 191, 0.3);
  box-shadow: 0 4px 16px rgba(139, 95, 191, 0.4);
}

/* Fix slider interaction and visibility */
.mini-player-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: visible;
  margin-bottom: 8px;
  width: 100%;
  z-index: 5;
}

.mini-progress-bar {
  height: 100%;
  background: #8b5fbf;
  border-radius: 3px;
  transition: width 0.3s ease;
  pointer-events: none;
}

.mini-progress-circle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 6;
}

/* Fix typo in selector - was using underscore instead of dash */
.mini-player-progress:hover .mini-progress-circle {
  opacity: 1;
}

/* Fix volume slider issues */
.mini-player-volume {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 24px;
}

.mini-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  flex: 1;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.mini-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mini-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#mini-volume-display {
  min-width: 40px;
  font-size: 14px;
  color: #8b5fbf;
  text-align: right;
}

/* Improved landscape orientation layout */
@media (orientation: landscape) {
  .mini-player-body.landscape-mode {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 16px;
    padding: 16px;
    align-items: center;
  }

  .landscape-mode .mini-album-art-container {
    grid-row: span 2;
  }

  .landscape-mode .mini-player-info {
    text-align: left;
    padding-right: 16px;
  }

  .landscape-mode .mini-player-controls {
    justify-content: flex-start;
    margin-top: 0;
  }

  .landscape-mode .mini-player-progress-container,
  .landscape-mode .mini-player-volume {
    grid-column: span 2;
    width: 100%;
  }

  .landscape-mode .mini-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .landscape-mode .mini-btn-play {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

/* Mobile phones in landscape - further refinements */
@media (max-width: 767px) and (orientation: landscape) {
  .mini-music-player-content {
    max-height: 85vh;
    overflow-y: auto;
    margin: 10px auto;
  }

  .mini-player-body {
    padding: 12px;
  }

  .mini-album-art-container {
    margin-bottom: 0;
  }

  .mini-album-art,
  .mini-album-art-placeholder {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
  }

  .mini-player-controls {
    gap: 12px;
  }

  .mini-volume-slider {
    min-width: 80px;
  }
}

/* Make sure footer buttons are properly sized and spaced */
.mini-player-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, 0.1);
}

.mini-close-btn,
.mini-settings-btn {
  padding: 8px 16px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
}

/* Fix Music Player Controls for All Device Orientations */

/* Fix control sizing and interaction issues */
.mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  position: relative;
  z-index: 5;
  padding: 0;
}

.mini-btn-play {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  background: #8b5fbf;
  border-color: rgba(139, 95, 191, 0.3);
  box-shadow: 0 4px 16px rgba(139, 95, 191, 0.4);
}

/* Fix slider interaction and visibility */
.mini-player-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: visible;
  margin-bottom: 8px;
  width: 100%;
  z-index: 5;
}

.mini-progress-bar {
  height: 100%;
  background: #8b5fbf;
  border-radius: 3px;
  transition: width 0.3s ease;
  pointer-events: none;
}

.mini-progress-circle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 6;
}

/* Fix typo in selector - was using underscore instead of dash */
.mini-player-progress:hover .mini-progress-circle {
  opacity: 1;
}

/* Fix volume slider issues */
.mini-player-volume {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 24px;
}

.mini-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  flex: 1;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.mini-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mini-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#mini-volume-display {
  min-width: 40px;
  font-size: 14px;
  color: #8b5fbf;
  text-align: right;
}

/* Improved landscape orientation layout */
@media (orientation: landscape) {
  .mini-player-body.landscape-mode {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 16px;
    padding: 16px;
    align-items: center;
  }

  .landscape-mode .mini-album-art-container {
    grid-row: span 2;
  }

  .landscape-mode .mini-player-info {
    text-align: left;
    padding-right: 16px;
  }

  .landscape-mode .mini-player-controls {
    justify-content: flex-start;
    margin-top: 0;
  }

  .landscape-mode .mini-player-progress-container,
  .landscape-mode .mini-player-volume {
    grid-column: span 2;
    width: 100%;
  }

  .landscape-mode .mini-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .landscape-mode .mini-btn-play {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

/* Mobile phones in landscape - further refinements */
@media (max-width: 767px) and (orientation: landscape) {
  .mini-music-player-content {
    max-height: 85vh;
    overflow-y: auto;
    margin: 10px auto;
  }

  .mini-player-body {
    padding: 12px;
  }

  .mini-album-art-container {
    margin-bottom: 0;
  }

  .mini-album-art,
  .mini-album-art-placeholder {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
  }

  .mini-player-controls {
    gap: 12px;
  }

  .mini-volume-slider {
    min-width: 80px;
  }
}

/* Make sure footer buttons are properly sized and spaced */
.mini-player-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, 0.1);
}

.mini-close-btn,
.mini-settings-btn {
  padding: 8px 16px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
}

/* Fix Music Player Controls for All Device Orientations */

/* Fix control sizing and interaction issues */
.mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  position: relative;
  z-index: 5;
  padding: 0;
}

.mini-btn-play {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  background: #8b5fbf;
  border-color: rgba(139, 95, 191, 0.3);
  box-shadow: 0 4px 16px rgba(139, 95, 191, 0.4);
}

/* Fix slider interaction and visibility */
.mini-player-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: visible;
  margin-bottom: 8px;
  width: 100%;
  z-index: 5;
}

.mini-progress-bar {
  height: 100%;
  background: #8b5fbf;
  border-radius: 3px;
  transition: width 0.3s ease;
  pointer-events: none;
}

.mini-progress-circle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 6;
}

/* Fix typo in selector - was using underscore instead of dash */
.mini-player-progress:hover .mini-progress-circle {
  opacity: 1;
}

/* Fix volume slider issues */
.mini-player-volume {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 24px;
}

.mini-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  flex: 1;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.mini-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mini-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#mini-volume-display {
  min-width: 40px;
  font-size: 14px;
  color: #8b5fbf;
  text-align: right;
}

/* Improved landscape orientation layout */
@media (orientation: landscape) {
  .mini-player-body.landscape-mode {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 16px;
    padding: 16px;
    align-items: center;
  }

  .landscape-mode .mini-album-art-container {
    grid-row: span 2;
  }

  .landscape-mode .mini-player-info {
    text-align: left;
    padding-right: 16px;
  }

  .landscape-mode .mini-player-controls {
    justify-content: flex-start;
    margin-top: 0;
  }

  .landscape-mode .mini-player-progress-container,
  .landscape-mode .mini-player-volume {
    grid-column: span 2;
    width: 100%;
  }

  .landscape-mode .mini-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .landscape-mode .mini-btn-play {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

/* Mobile phones in landscape - further refinements */
@media (max-width: 767px) and (orientation: landscape) {
  .mini-music-player-content {
    max-height: 85vh;
    overflow-y: auto;
    margin: 10px auto;
  }

  .mini-player-body {
    padding: 12px;
  }

  .mini-album-art-container {
    margin-bottom: 0;
  }

  .mini-album-art,
  .mini-album-art-placeholder {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
  }

  .mini-player-controls {
    gap: 12px;
  }

  .mini-volume-slider {
    min-width: 80px;
  }
}

/* Make sure footer buttons are properly sized and spaced */
.mini-player-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, 0.1);
}

.mini-close-btn,
.mini-settings-btn {
  padding: 8px 16px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
}

/* Fix Music Player Controls for All Device Orientations */

/* Fix control sizing and interaction issues */
.mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  position: relative;
  z-index: 5;
  padding: 0;
}

.mini-btn-play {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  background: #8b5fbf;
  border-color: rgba(139, 95, 191, 0.3);
  box-shadow: 0 4px 16px rgba(139, 95, 191, 0.4);
}

/* Fix slider interaction and visibility */
.mini-player-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: visible;
  margin-bottom: 8px;
  width: 100%;
  z-index: 5;
}

.mini-progress-bar {
  height: 100%;
  background: #8b5fbf;
  border-radius: 3px;
  transition: width 0.3s ease;
  pointer-events: none;
}

.mini-progress-circle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 6;
}

/* Fix typo in selector - was using underscore instead of dash */
.mini-player-progress:hover .mini-progress-circle {
  opacity: 1;
}

/* Fix volume slider issues */
.mini-player-volume {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 24px;
}

.mini-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  flex: 1;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.mini-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mini-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#mini-volume-display {
  min-width: 40px;
  font-size: 14px;
  color: #8b5fbf;
  text-align: right;
}

/* Improved landscape orientation layout */
@media (orientation: landscape) {
  .mini-player-body.landscape-mode {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 16px;
    padding: 16px;
    align-items: center;
  }

  .landscape-mode .mini-album-art-container {
    grid-row: span 2;
  }

  .landscape-mode .mini-player-info {
    text-align: left;
    padding-right: 16px;
  }

  .landscape-mode .mini-player-controls {
    justify-content: flex-start;
    margin-top: 0;
  }

  .landscape-mode .mini-player-progress-container,
  .landscape-mode .mini-player-volume {
    grid-column: span 2;
    width: 100%;
  }

  .landscape-mode .mini-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .landscape-mode .mini-btn-play {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

/* Mobile phones in landscape - further refinements */
@media (max-width: 767px) and (orientation: landscape) {
  .mini-music-player-content {
    max-height: 85vh;
    overflow-y: auto;
    margin: 10px auto;
  }

  .mini-player-body {
    padding: 12px;
  }

  .mini-album-art-container {
    margin-bottom: 0;
  }

  .mini-album-art,
  .mini-album-art-placeholder {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
  }

  .mini-player-controls {
    gap: 12px;
  }

  .mini-volume-slider {
    min-width: 80px;
  }
}

/* Make sure footer buttons are properly sized and spaced */
.mini-player-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, 0.1);
}

.mini-close-btn,
.mini-settings-btn {
  padding: 8px 16px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
}

/* Fix Music Player Controls for All Device Orientations */

/* Fix control sizing and interaction issues */
.mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  position: relative;
  z-index: 5;
  padding: 0;
}

.mini-btn-play {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  background: #8b5fbf;
  border-color: rgba(139, 95, 191, 0.3);
  box-shadow: 0 4px 16px rgba(139, 95, 191, 0.4);
}

/* Fix slider interaction and visibility */
.mini-player-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: visible;
  margin-bottom: 8px;
  width: 100%;
  z-index: 5;
}

.mini-progress-bar {
  height: 100%;
  background: #8b5fbf;
  border-radius: 3px;
  transition: width 0.3s ease;
  pointer-events: none;
}

.mini-progress-circle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 6;
}

/* Fix typo in selector - was using underscore instead of dash */
.mini-player-progress:hover .mini-progress-circle {
  opacity: 1;
}

/* Fix volume slider issues */
.mini-player-volume {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 24px;
}

.mini-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  flex: 1;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.mini-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mini-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#mini-volume-display {
  min-width: 40px;
  font-size: 14px;
  color: #8b5fbf;
  text-align: right;
}

/* Improved landscape orientation layout */
@media (orientation: landscape) {
  .mini-player-body.landscape-mode {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 16px;
    padding: 16px;
    align-items: center;
  }

  .landscape-mode .mini-album-art-container {
    grid-row: span 2;
  }

  .landscape-mode .mini-player-info {
    text-align: left;
    padding-right: 16px;
  }

  .landscape-mode .mini-player-controls {
    justify-content: flex-start;
    margin-top: 0;
  }

  .landscape-mode .mini-player-progress-container,
  .landscape-mode .mini-player-volume {
    grid-column: span 2;
    width: 100%;
  }

  .landscape-mode .mini-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .landscape-mode .mini-btn-play {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

/* Mobile phones in landscape - further refinements */
@media (max-width: 767px) and (orientation: landscape) {
  .mini-music-player-content {
    max-height: 85vh;
    overflow-y: auto;
    margin: 10px auto;
  }

  .mini-player-body {
    padding: 12px;
  }

  .mini-album-art-container {
    margin-bottom: 0;
  }

  .mini-album-art,
  .mini-album-art-placeholder {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
  }

  .mini-player-controls {
    gap: 12px;
  }

  .mini-volume-slider {
    min-width: 80px;
  }
}

/* Make sure footer buttons are properly sized and spaced */
.mini-player-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, 0.1);
}

.mini-close-btn,
.mini-settings-btn {
  padding: 8px 16px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
}

/* Fix Music Player Controls for All Device Orientations */

/* Fix control sizing and interaction issues */
.mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  position: relative;
  z-index: 5;
  padding: 0;
}

.mini-btn-play {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  background: #8b5fbf;
  border-color: rgba(139, 95, 191, 0.3);
  box-shadow: 0 4px 16px rgba(139, 95, 191, 0.4);
}

/* Fix slider interaction and visibility */
.mini-player-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: visible;
  margin-bottom: 8px;
  width: 100%;
  z-index: 5;
}

.mini-progress-bar {
  height: 100%;
  background: #8b5fbf;
  border-radius: 3px;
  transition: width 0.3s ease;
  pointer-events: none;
}

.mini-progress-circle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 6;
}

/* Fix typo in selector - was using underscore instead of dash */
.mini-player-progress:hover .mini-progress-circle {
  opacity: 1;
}

/* Fix volume slider issues */
.mini-player-volume {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 24px;
}

.mini-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  flex: 1;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.mini-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mini-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #8b5fbf;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#mini-volume-display {
  min-width: 40px;
  font-size: 14px;
  color: #8b5fbf;
  text-align: right;
}

/* Improved landscape orientation layout */
@media (orientation: landscape) {
  .mini-player-body.landscape-mode {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 16px;
    padding: 16px;
    align-items: center;
  }

  .landscape-mode .mini-album-art-container {
    grid-row: span 2;
  }

  .landscape-mode .mini-player-info {
    text-align: left;
    padding-right: 16px;
  }

  .landscape-mode .mini-player-controls {
    justify-content: flex-start;
    margin-top: 0;
  }

  .landscape-mode .mini-player-progress-container,
  .landscape-mode .mini-player-volume {
    grid-column: span 2;
    width: 100%;
  }

  .landscape-mode .mini-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }
}
