/* Play button styles for related cards */
.btn-play-small {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play-small:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.related-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.related-card:hover .card-img-overlay {
    opacity: 1;
}

/* Currently playing indicator */
.related-card.currently-playing {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.3);
}

.related-card.currently-playing .btn-play-small {
    background: var(--primary-color);
}


/* Digital Store Grid - Matching your working example */
.digital-store-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    opacity: 0.9;
}

.store-btn--spotify {
    background: #1DB954;
    color: white;
}

.store-btn--audiomack {
    background: #FF7A00;
    color: white;
}

.store-btn--apple_music, .store-btn--apple-music {
    background: #FA243C;
    color: white;
}

.store-btn--youtube {
    background: #FF0000;
    color: white;
}

.store-btn--tidal {
    background: #000000;
    color: white;
}

.store-btn--deezer {
    background: #FEAA2D;
    color: white;
}

.store-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.store-icon i {
    font-size: 18px;
}

.store-text {
    line-height: 1.2;
    text-align: left;
}

.store-text small {
    font-size: 10px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-text strong {
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .store-btn {
        padding: 6px 15px;
    }
    
    .store-text strong {
        font-size: 12px;
    }
    
    .store-text small {
        font-size: 9px;
    }
    
    .store-icon i {
        font-size: 14px;
    }
}

    .streaming-tabs {
        background: var(--card-bg);
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid var(--border-color);
        margin-top: 2rem;
    }
    
    .tab-buttons {
        display: flex;
        gap: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        overflow-x: auto;
    }
    
    .tab-btn {
        padding: 1rem 1.5rem;
        background: none;
        border: none;
        color: var(--text-secondary);
        cursor: pointer;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }
    
    .tab-btn:hover {
        background: rgba(255,255,255,0.05);
        color: var(--text-primary);
    }
    
    .tab-btn.active {
        color: var(--primary-color);
        border-bottom: 2px solid var(--primary-color);
    }
    
    .tab-content {
        display: none;
        padding: 1.5rem;
    }
    
    .tab-content.active {
        display: block;
    }
    
    .tab-content iframe {
        width: 100%;
        border: none;
    }
    
    @media (max-width: 768px) {
        .tab-btn {
            padding: 0.75rem 1rem;
            font-size: 0.85rem;
        }
        
        .tab-content {
            padding: 1rem;
        }
    }


/* File size styling */
.file-size {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 4px;
    font-weight: normal;
}

.btn-secondary .file-size {
    color: rgba(255, 255, 255, 0.7);
}

/* Modern Mini Player Design */
#globalAudioPlayer {
    background: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(10px);
    border-top: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem !important;
}

.mini-player {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Track Info Section */
.track-info {
    flex: 0 1 auto !important;
    min-width: 200px;
}

#currentTrackTitle {
    font-size: 1rem !important;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

#currentTrackArtist {
    font-size: 0.85rem !important;
    color: #b3b3b3;
}

/* Custom Audio Controls - Main Play Area */
.custom-audio-controls {
    flex: 2 !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
}

/* Play Button */
#playPauseBtn {
    background: #1db954 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    transition: transform 0.2s, background 0.2s;
}

#playPauseBtn:hover {
    transform: scale(1.05);
    background: #1ed760 !important;
}

/* Skip Buttons */
.custom-audio-controls button:not(#playPauseBtn) {
    background: transparent !important;
    color: #b3b3b3 !important;
    width: 32px !important;
    height: 32px !important;
    transition: color 0.2s;
}

.custom-audio-controls button:not(#playPauseBtn):hover {
    color: #fff !important;
    background: transparent !important;
    transform: none !important;
}

/* Time Display */
#currentTime, #duration {
    font-size: 0.85rem;
    font-weight: 500;
    color: #b3b3b3;
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

/* Progress Bar Container */
.progress-container {
    position: relative;
    cursor: pointer;
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

#progressBar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #1db954;
    border-radius: 2px;
    width: 0%;
    pointer-events: none;
}

.progress-container:hover {
    height: 4px;
}

.progress-container:hover #progressBar {
    background: #1ed760;
}

/* Right Controls */
.volume-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.volume-controls button {
    background: transparent !important;
    color: #b3b3b3 !important;
    width: 32px !important;
    height: 32px !important;
}

.volume-controls button:hover {
    color: #fff !important;
    background: transparent !important;
}

/* Playlist Toggle Button (floating) */
#playlistToggleBtn {
    background: #1db954 !important;
    bottom: 100px !important;
    right: 24px !important;
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#playlistToggleBtn:hover {
    transform: scale(1.05);
    background: #1ed760 !important;
}

/* Playlist Drawer */
.playlist-drawer {
    bottom: 100px !important;
    right: 24px !important;
    width: 380px !important;
    max-height: 500px !important;
    border-radius: 12px;
    background: rgba(24, 24, 24, 0.98) !important;
    backdrop-filter: blur(10px);
}

.playlist-header {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 1rem 1.25rem !important;
}

.playlist-header h3 {
    font-size: 1rem !important;
    font-weight: 600;
}

.playlist-item {
    padding: 12px 16px !important;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.playlist-item.active {
    background: rgba(29, 185, 84, 0.15) !important;
    border-left-color: #1db954 !important;
}

/* Improved Responsive Design */
@media (max-width: 768px) {
    .mini-player {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .track-info {
        min-width: 120px !important;
        flex: 1 !important;
    }
    
    .track-info #currentTrackTitle {
        font-size: 0.8rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .track-info #currentTrackArtist {
        font-size: 0.7rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    #playlistPosition {
        font-size: 0.6rem !important;
    }
    
    .custom-audio-controls {
        gap: 0.3rem !important;
        min-width: auto !important;
        flex: 2 !important;
    }
    
    .custom-audio-controls button {
        width: 28px !important;
        height: 28px !important;
    }
    
    #playPauseBtn {
        width: 36px !important;
        height: 36px !important;
    }
    
    #currentTime, #duration {
        font-size: 0.7rem !important;
        min-width: 30px !important;
    }
    
    .volume-controls {
        gap: 0.3rem;
    }
    
    .volume-controls button {
        width: 28px !important;
        height: 28px !important;
    }
    
    #volumeSlider {
        width: 50px !important;
    }
    
    #playlistToggleBtn {
        bottom: 85px !important;
        right: 16px !important;
        width: 42px;
        height: 42px;
    }
    
    .playlist-drawer {
        width: 300px !important;
        max-height: 450px !important;
        bottom: 85px !important;
        right: 16px !important;
    }
    
    .playlist-item {
        padding: 10px 12px !important;
    }
    
    .playlist-item-img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .playlist-item-title {
        font-size: 0.8rem !important;
    }
    
    .playlist-item-artist {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 550px) {
    .track-info {
        display: flex !important;
        flex-direction: column;
        min-width: 100px !important;
    }
    
    .track-info #currentTrackTitle {
        font-size: 0.75rem !important;
    }
    
    .track-info #currentTrackArtist {
        display: none;
    }
    
    .custom-audio-controls {
        flex: 3 !important;
    }
    
    .volume-controls button:first-child {
        display: inline-flex !important;
    }
    
    #volumeSlider {
        display: none !important;
    }
    
    .custom-audio-controls span:first-of-type {
        display: none;
    }
}

@media (max-width: 480px) {
    .mini-player {
        gap: 0.3rem;
    }
    
    .track-info {
        min-width: 80px !important;
    }
    
    .track-info #currentTrackTitle {
        font-size: 0.7rem !important;
    }
    
    #playlistPosition {
        display: none;
    }
    
    .custom-audio-controls span:last-of-type {
        display: none;
    }
    
    #currentTime {
        font-size: 0.65rem !important;
        min-width: 25px !important;
    }
}
/* Volume Slider Styling */
#volumeSlider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1db954;
    cursor: pointer;
    transition: transform 0.2s;
}

#volumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#volumeSlider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1db954;
    cursor: pointer;
    border: none;
}

@media (max-width: 768px) {
    #volumeSlider {
        width: 60px !important;
    }
}

@media (max-width: 550px) {
    #volumeSlider {
        display: none !important;
    }
}
/* Playlist Drawer Container */
.playlist-drawer {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-height: 500px;
    background: rgba(24, 24, 24, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Playlist Header */
.playlist-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.playlist-close {
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

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

/* Playlist Items Container */
.playlist-items {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

/* Custom Scrollbar */
.playlist-items::-webkit-scrollbar {
    width: 6px;
}

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

.playlist-items::-webkit-scrollbar-thumb {
    background: #1db954;
    border-radius: 3px;
}

.playlist-items::-webkit-scrollbar-thumb:hover {
    background: #1ed760;
}

/* Playlist Item */
.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.playlist-item.active {
    background: rgba(29, 185, 84, 0.15);
    border-left: 3px solid #1db954;
}

/* Playlist Item Image */
.playlist-item-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Playlist Item Info */
.playlist-item-info {
    flex: 1;
    min-width: 0;
}

.playlist-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.playlist-item-artist {
    font-size: 0.75rem;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Now Playing Indicator */
.now-playing {
    color: #1db954;
    font-size: 0.7rem;
    margin-left: 8px;
}

.now-playing i {
    font-size: 0.65rem;
    margin-right: 2px;
}

/* Playlist Toggle Button (Floating) */
#playlistToggleBtn {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: #1db954;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9998;
}

#playlistToggleBtn:hover {
    transform: scale(1.05);
    background: #1ed760;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .playlist-drawer {
        width: 320px;
        max-height: 450px;
        bottom: 85px;
        right: 16px;
    }
    
    .playlist-item {
        padding: 10px 12px;
    }
    
    .playlist-item-img {
        width: 35px;
        height: 35px;
    }
    
    .playlist-item-title {
        font-size: 0.85rem;
    }
    
    .playlist-item-artist {
        font-size: 0.7rem;
    }
    
    #playlistToggleBtn {
        bottom: 85px;
        right: 16px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .playlist-drawer {
        width: 280px;
        max-height: 400px;
        bottom: 75px;
        right: 12px;
    }
    
    .playlist-item {
        padding: 8px 10px;
    }
    
    .playlist-item-img {
        width: 30px;
        height: 30px;
    }
    
    .playlist-item-title {
        font-size: 0.8rem;
    }
    
    .playlist-item-artist {
        font-size: 0.65rem;
    }
    
    #playlistToggleBtn {
        bottom: 75px;
        right: 12px;
        width: 38px;
        height: 38px;
    }
}
.btn-streaming {
    position: relative;
    overflow: hidden;
}

.btn-streaming.playing {
    background: #1db954 !important;
    border-color: #1db954 !important;
}

.btn-streaming.playing i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.btn-streaming.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* All control buttons base style */
.custom-audio-controls button,
.volume-controls button {
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    color: #b3b3b3 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    font-size: 1.1rem !important;
}

/* Hover effect for all control buttons */
.custom-audio-controls button:hover,
.volume-controls button:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.05) !important;
}

/* Active/Click effect */
.custom-audio-controls button:active,
.volume-controls button:active {
    transform: scale(0.95) !important;
}

/* Play/Pause button special styling */
#playPauseBtn {
    background: #1db954 !important;
    color: white !important;
    width: 48px !important;
    height: 48px !important;
}

#playPauseBtn:hover {
    background: #1ed760 !important;
    transform: scale(1.05) !important;
}

/* Mute button specific */
#muteBtn {
    background: transparent !important;
}

/* Playlist toggle button (floating) */
#playlistToggleBtn {
    background: #1db954 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    position: fixed !important;
    bottom: 100px !important;
    right: 24px !important;
    z-index: 9998 !important;
}

#playlistToggleBtn:hover {
    background: #1ed760 !important;
    transform: scale(1.05) !important;
}

/* Volume Slider styling */
#volumeSlider {
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 2px !important;
    outline: none !important;
    cursor: pointer !important;
    width: 80px !important;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #1db954 !important;
    cursor: pointer !important;
    transition: transform 0.2s !important;
}

#volumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2) !important;
}

/* Remove inline style overrides */
.custom-audio-controls button[style],
.volume-controls button[style] {
    all: unset !important; /* This resets inline styles */
}

/* Then reapply correct styles */
.custom-audio-controls button,
.volume-controls button {
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    color: #b3b3b3 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    font-size: 1.1rem !important;
}

/* Fix the volume controls container */
.volume-controls {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-shrink: 0 !important;
}

/* Responsive adjustments for buttons */
@media (max-width: 768px) {
    .custom-audio-controls button,
    .volume-controls button {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }
    
    #playPauseBtn {
        width: 40px !important;
        height: 40px !important;
    }
    
    #playlistToggleBtn {
        width: 42px !important;
        height: 42px !important;
        bottom: 85px !important;
        right: 16px !important;
    }
    
    #volumeSlider {
        width: 60px !important;
    }
}

@media (max-width: 550px) {
    .volume-controls button:first-child {
        display: inline-flex !important;
    }
    
    #volumeSlider {
        display: none !important;
    }
}



@keyframes slideInUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.music-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.music-card { background: var(--bg-card); border-radius: var(--border-radius); overflow: hidden; transition: transform 0.3s ease; border: 1px solid #333; }
.music-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.music-card.currently-playing { border: 2px solid var(--primary-color); box-shadow: 0 0 15px rgba(29,185,84,0.3); }
.card-img-container { position: relative; overflow: hidden; height: 250px; }
.music-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.music-card:hover .music-image { transform: scale(1.05); }
.card-img-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,0.7)); display: flex; align-items: flex-end; padding: 1rem; opacity: 0; transition: opacity 0.3s ease; }
.music-card:hover .card-img-overlay { opacity: 1; }
.btn-play-small { background: var(--primary-color); border: none; border-radius: 50%; width: 45px; height: 45px; color: white; cursor: pointer; transition: transform 0.2s ease; display: flex; align-items: center; justify-content: center; }
.btn-play-small:hover { transform: scale(1.1); }
.music-content { padding: 1.5rem; }
.music-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.music-title a { color: var(--text-primary); text-decoration: none; }
.music-title a:hover { color: var(--primary-color); }
.music-artistes { color: var(--text-secondary); font-size: 0.9rem; }
.page-header { text-align: center; padding: 3rem 0 2rem; }
.page-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 1rem; background: linear-gradient(135deg, var(--primary-color), #25f); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-subtitle { font-size: 1.2rem; color: var(--text-secondary); }
.search-box-container { max-width: 600px; margin: 0 auto 2rem; }
.search-input-group-main { display: flex; background: var(--bg-card); border: 2px solid #404040; border-radius: 50px; overflow: hidden; }
.search-input-main { flex: 1; border: none; outline: none; padding: 1rem 1.5rem; background: transparent; color: var(--text-primary); }
.search-btn-main { background: var(--primary-color); border: none; padding: 1rem 2rem; color: white; cursor: pointer; }

@media (max-width: 768px) { .music-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } .card-img-container { height: 200px; } }
