.sdla-player {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    width: 100%;
    justify-content: center;
}

.sdla-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.sdla-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #000;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.sdla-btn:hover {
    background: #333;
    transform: scale(1.05);
}

.sdla-btn:active {
    transform: scale(0.95);
}

.sdla-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sdla-btn svg {
    pointer-events: none;
}

/* Bottone Play leggermente più grande */
.sdla-play-btn {
    width: 44px;
    height: 44px;
}

/* Progress Bar Container */
.sdla-progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 200px;
}

.sdla-progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sdla-progress-bar:hover {
    height: 8px;
    margin-top: -1px;
}

.sdla-progress-fill {
    height: 100%;
    background: #000;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* Time Display */
.sdla-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.sdla-current-time,
.sdla-duration {
    min-width: 35px;
}

/* Stato loading */
.sdla-player.loading .sdla-btn {
    opacity: 0.6;
    cursor: wait;
}

/* Responsive */
@media (max-width: 480px) {
    .sdla-controls {
        gap: 6px;
    }
    
    .sdla-btn {
        width: 36px;
        height: 36px;
    }
    
    .sdla-play-btn {
        width: 40px;
        height: 40px;
    }
    
    .sdla-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .sdla-play-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Layout quando ci sono molti controlli */
@media (max-width: 360px) {
    .sdla-player {
        gap: 12px;
    }
}

/* Animazione click sulla progress bar */
.sdla-progress-bar:active .sdla-progress-fill {
    transition: none;
}

/* Focus accessibilità */
.sdla-btn:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.sdla-progress-bar:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}
