.wpchords-wrapper {
    margin: 20px 0;
}

.wpchords-controls {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
    border: 1px solid #e9ecef;
}

.accordi-btn {
    padding: 8px 12px;
    background: #4a6fa5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}

.notation-toggle {
    width: 100px;
}

.transpose-down,
.transpose-up,
.font-decrease,
.font-increase {
    width: 40px;
}

.accordi-btn:hover {
    background: #3a5a80;
    transform: translateY(-1px);
}

.transpose-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
    height: 36px;
}

.current-key {
    font-weight: bold;
    font-size: 15px;
    color: #d54e21;
    min-width: 30px;
    text-align: center;
    padding: 2px 6px;
    flex-shrink: 0;
}

.font-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    height: 36px;
}

.wpchords-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    transition: font-size 0.2s ease;
}

.song-line {
    position: relative;
    margin-bottom: 0px; /* ridotto da 8 a 0 */
    min-height: 0px; /* ridotto da 40 a 0 */
}

.chord-line {
    position: relative;
    height: 22px;
    margin-bottom: 2px;
}

.text-line {
    min-height: 20px;
    white-space: pre-wrap;
    line-height: 1.3;
    font-size: 1em;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chord {
    position: absolute;
    color: #d54e21;
    font-weight: bold;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.95);
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid #ffd6c8;
    z-index: 2;
    white-space: nowrap;
    transform: translateX(-50%);
    top: 0;
    pointer-events: none;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .wpchords-controls {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px;
        gap: 8px;
        justify-content: flex-start;
    }
    
    .accordi-btn {
        padding: 6px 10px;
        font-size: 13px;
        height: 32px;
    }
    
    .notation-toggle {
        width: 90px;
    }
    
    .transpose-down,
    .transpose-up,
    .font-decrease,
    .font-increase {
        width: 35px;
    }
    
    .current-key {
        font-size: 14px;
        min-width: 25px;
        padding: 2px 4px;
    }
    
    .transpose-controls {
        gap: 6px;
        padding: 3px 6px;
        height: 32px;
    }
    
    .font-controls {
        gap: 6px;
        height: 32px;
    }
    
    .wpchords-controls::-webkit-scrollbar {
        display: none;
    }
    
    .wpchords-controls {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .song-line {
        margin-bottom: 0px; /* ridotto da 6 a 0 */
    }
    
    .chord-line {
        height: 20px;
    }
}

/* Schermi molto piccoli */
@media (max-width: 480px) {
    .wpchords-controls {
        gap: 6px;
    }
    
    .accordi-btn {
        padding: 5px 8px;
        font-size: 12px;
        height: 30px;
    }
    
    .notation-toggle {
        width: 85px;
    }
    
    .transpose-down,
    .transpose-up,
    .font-decrease,
    .font-increase {
        width: 32px;
    }
    
    .current-key {
        font-size: 13px;
        min-width: 22px;
    }
}

/* Loading state */
.wpchords-container.loading {
    opacity: 0.7;
    pointer-events: none;
}