/* General Styles */
.audio-player {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 5px 15px;
    border-radius: 10px;
    max-width: 500px;
    margin: auto;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    border: 1px solid #e5e5e5;
    height: 110px;
  }
  
  /* Thumbnail */
  .player-thumbnail {
      flex-shrink: 0;
      width: 70px;
      height: 70px;
      border-radius: 50%;
      overflow: hidden;
      margin-right: 15px;
  }
  
  /* Default Thumbnail */
  .player-thumbnail img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      transition: transform 0.4s ease-in-out; /* Smooth growth/shrink effect */
  }
  
  /* When Playing: Grow + Spin */
  .spin {
      animation: spin 4s linear infinite;
      transform: scale(1.2); /* Expand effect */
  }
  
  /* When Paused: Shrink & Stop Spinning (Without Resetting) */
  .pause-spin {
      animation: none !important; /* Stop animation */
      transform: scale(1) rotate(var(--paused-angle, 0deg)) !important; /* Keep last rotation */
  }
  
  /* Keyframes for Continuous Spinning */
  @keyframes spin {
      from {
          transform: scale(1.2) rotate(0deg);
      }
      to {
          transform: scale(1.2) rotate(360deg);
      }
  }
  
  /* Player Info */
  .player-info {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
  }
  
  /* Header for song details & metadata */
  .song-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 5px;
  }
  
  /* Song Details */
  .song-details {
      flex-grow: 1;
  }
  
  .song-title {
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
  }
  
  .artist-name {
      font-size: 11px;
      opacity: 0.7;
      margin: 2px 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 220px;
  }
  
  /* Song Meta (Year & Genre on the right) */
  .song-meta {
      text-align: right;
  }
  
  .song-year,
  .song-genre {
      font-size: 11px;
      opacity: 0.7;
      margin: 0;
  }
  
  .song-year {
      margin: 10px 0 0;
  }
  
  /* Controls */
  .player-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 35px;
      margin-top: -15px;
      z-index: 3;
  }
  
  .player-controls button {
      background: none;
      border: none;
      color: #000;
      font-size: 14px;
      cursor: pointer;
      transition: transform 0.2s ease;
  }
  
  .player-controls button:hover {
      transform: scale(1.1);
  }
  
  #play-pause {
      font-size: 16px;
  }
  
  /* Progress Bar */
  .progress-container {
      width: 100%;
      margin-top: -5px;
  }
  
  #progress-bar {
      width: 100%;
      height: 3px;
      background: #ddd;
      outline: none;
      border-radius: 3px;
      cursor: pointer;
  }
  
  /* Volume Control */
  .volume-control {
      display: flex;
      align-items: center;
      gap: 5px;
      margin-top: -3px;
      padding: 10px 10px 10px 0;
  }
  
  .volume-control i {
      font-size: 12px;
      opacity: 0.8;
  }
  
  #volume-bar {
      width: 50px;
      cursor: pointer;
  }
  
  /* Time Display (Below Progress Bar) */
  .time-display {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      opacity: 0.7;
      margin-top: 7px;
  }
  
  @media (max-width: 768px) {
      #volume-bar {
          display: none; /* Hide volume slider on mobile */
      }
  }