/* Audio Player */
.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: 112px;
}

/* Thumbnail */
.player-thumbnail {
    flex-shrink: 0;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50%;
    margin-right: 15px;
    margin-top: -20px !important;
}

/* Default Thumbnail */
.player-thumbnail img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 0.4s ease-in-out; /* Smooth growth/shrink effect */
    overflow: hidden !important;
}

/* 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.1) rotate(0deg);
    }
    to {
        transform: scale(1.1) 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-top: -15px !important;
}

/* Song Details */
.song-details {
    flex-grow: 1;
}

.song-title {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    font-family: Arial !important;
}

.artist-name {
    font-size: 11px;
    opacity: 0.7;
    margin-top: -7px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    font-family: Arial !important;
    font-weight: 500 !important;
}

/* Song Meta (Year & Genre on the right) */
.song-meta {
    text-align: right;
    margin-top: 10px;
}

.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: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 3px;
    margin-bottom: 10px
}

.player-controls button:hover {
    transform: scale(1.1);
}

#play-pause {
    font-size: 16px;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    margin-top: 5px !important;
}

#progress-bar {
    width: 100%;
    background: #ddd;
    outline: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: -18px;
    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 */
    }
}

  /* Audio Player 2 */
.audio-player2 {
    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: 112px;
}

/* Thumbnail */
.player-thumbnail2 {
    flex-shrink: 0;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50%;
    margin-right: 15px;
    margin-top: -20px !important;
}

/* Default Thumbnail */
.player-thumbnail2 img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 0.4s ease-in-out; /* Smooth growth/shrink effect */
    overflow: hidden !important;
}

/* When Playing: Grow + Spin */
.spin2 {
    animation: spin2 4s linear infinite;
    transform: scale(1.2); /* Expand effect */
}

/* When Paused: Shrink & Stop Spinning (Without Resetting) */
.pause-spin2 {
    animation: none !important; /* Stop animation */
    transform: scale(1) rotate(var(--paused-angle, 0deg)) !important; /* Keep last rotation */
}

/* Keyframes for Continuous Spinning */
@keyframes spin2 {
    from {
        transform: scale(1.1) rotate(0deg);
    }
    to {
        transform: scale(1.1) rotate(360deg);
    }
}

/* Player Info */
.player-info2 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header for song details & metadata */
.song-header2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -15px !important;
}

/* Song Details */
.song-details2 {
    flex-grow: 1;
}

.song-title2 {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    font-family: Arial !important;
}

.artist-name2 {
    font-size: 11px;
    opacity: 0.7;
    margin-top: -7px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    font-family: Arial !important;
    font-weight: 500 !important;
}

/* Song Meta (Year & Genre on the right) */
.song-meta2 {
    text-align: right;
    margin-top: 10px;
}

.song-year2,
.song-genre2 {
    font-size: 11px;
    opacity: 0.7;
    margin: 0;
}

.song-year2 {
    margin: 10px 0 0;
}

/* Controls */
.player-controls2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    margin-top: -15px;
    z-index: 3;
}

.player-controls2 button {
    background: none;
    border: none;
    color: #000;
    font-size: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 3px;
    margin-bottom: 10px
}

.player-controls2 button:hover {
    transform: scale(1.1);
}

#play-pause2 {
    font-size: 16px;
}

/* Progress Bar */
.progress-container2 {
    width: 100%;
    margin-top: 5px !important;
}

#progress-bar2 {
    width: 100%;
    background: #ddd;
    outline: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Volume Control */
.volume-control2 {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: -18px;
    padding: 10px 10px 10px 0;
}

.volume-control2 i {
    font-size: 12px;
    opacity: 0.8;
}

#volume-bar2 {
    width: 50px;
    cursor: pointer;
}

/* Time Display (Below Progress Bar) */
.time-display2 {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.7;
    margin-top: -7px;
}

@media (max-width: 768px) {
    #volume-bar2 {
        display: none; /* Hide volume slider on mobile */
    }
}

.myxl-head {
    color: #fff !important;
    padding: 6px 6px 6px 6px;
    text-transform: uppercase;
    border-radius: 4px;
    background-color: #3396ff;
    text-decoration: none;
    float: left;
    position: relative; /* Ensures proper alignment for the icon */
  }
  
  .myxl-head::after {
    content: "\f019"; /* Unicode for Font Awesome download icon */
    font-family: "Font Awesome 5 Free"; /* Specify the Font Awesome font */
    font-weight: 900; /* Use solid style icons */
    margin-left: 8px; /* Add spacing between text and icon */
    display: inline-block;
    vertical-align: middle;
  }

  .gb-btn {
    display: flex;
    justify-content: center; /* Centers items horizontally */
    align-items: center;
}