/* Music Player Styles */
.music-player-container {
    margin: 8px 0;
    padding: 8px;
    background: rgba(42, 42, 42, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 350px;
    max-height: 200px;
    overflow: hidden;
}

.music-player {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.track-info {
    flex: 1;
}

.track-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.track-artist {
    font-size: 12px;
    color: #cccccc;
    margin: 0;
}

.track-cover-container {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.track-cover-container:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.track-cover {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.track-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
    font-size: 16px;
    color: white;
}

.track-cover-container:hover .track-cover-overlay {
    opacity: 1;
}

.audio-player {
    width: 100%;
    height: 32px;
    background: rgba(42, 42, 42, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-player::-webkit-media-controls-panel {
    background: rgba(42, 42, 42, 0.8);
    border-radius: 8px;
}

.streaming-links {
    margin-top: 4px;
}

.streaming-links p {
    font-size: 10px;
    color: #888888;
    margin: 0 0 4px 0;
}

.platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    background: rgba(42, 42, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #4CAF50;
    text-decoration: none;
    font-size: 9px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.platform-link:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.3);
    transform: translateY(-1px);
}

.no-links {
    font-size: 11px;
    color: #666666;
    font-style: italic;
}

/* Track Cover Modal Styles */
.track-cover-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.track-cover-modal.show {
    opacity: 1;
}

.track-cover-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.track-cover-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.track-cover-modal .modal-content img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    object-fit: contain;
}

.track-cover-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1;
    transition: background 0.3s ease;
}

.track-cover-modal .modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}


/* Mobile responsiveness */
@media (max-width: 768px) {
    .music-player-container {
        margin: 12px 0;
        padding: 12px;
    }
    
    .player-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .track-cover {
        width: 40px;
        height: 40px;
    }
    
    .platform-links {
        justify-content: center;
    }
    
    /* Mobile modal adjustments */
    .track-cover-modal .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .track-cover-modal .modal-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
}
