.audio-player-container {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, #065f46 0%, #022c22 100%);
    border-radius: 16px;
}

.audio-player-container audio {
    width: 100%;
    outline: none;
    border-radius: 10px;
}

.video-player-container {
    position: relative;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-player-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.document-viewer-container {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 10px;
}

.document-viewer-container embed {
    border-radius: 8px;
}

.media-card {
    position: relative;
    transition: all 0.3s ease;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
    pointer-events: none;
}

.quick-preview-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    color: #059669;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    cursor: pointer;
}

.media-card:hover .quick-preview-btn,
.group:hover .quick-preview-btn {
    opacity: 1;
}

.quick-preview-btn:hover {
    background-color: white;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.media-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 10;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@media (max-width: 768px) {
    .audio-player-container {
        padding: 15px;
    }
    .play-icon-overlay {
        font-size: 3rem;
    }
    .document-viewer-container embed {
        height: 400px;
    }
}
