.musica-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
    perspective: 2000px;
}

.musica-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    transform-style: preserve-3d;
    transform-origin: center;
    transition: transform 0.6s ease;
}

.musica-item:hover {
    transform: rotateY(60deg);
}

.musica-item a {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.cd-front, .cd-spine {
    position: absolute;
    height: 100%;
    backface-visibility: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cd-front {
    width: 100%;
    background: white;
    z-index: 2;
}

.cd-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cd-spine {
    width: 35px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    transform: rotateY(-90deg);
    transform-origin: right center;
    left: -35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 20px;
    line-height: 1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Tablet - 2 colonne */
@media (max-width: 1024px) {
    .musica-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cd-spine {
        font-size: 12px;
    }
}

/* Mobile - 1 colonna */
@media (max-width: 768px) {
    .musica-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 15px 0;
    }
    
    .musica-item:hover {
        transform: rotateY(15deg);
    }
    
    .cd-spine {
        font-size: 11px;
        padding: 8px;
    }
}