/* ==========================================================================
   FILE CSSCD.CSS - VERSIONE INTEGRALE (219 RIGHE CIRCA)
   ========================================================================== */

/* Layout Base e Contenitori */
.header-card-container {
    padding: 60px 20px;
    background: rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.card-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
}

.card-inner img {
    width: 320px;
    height: auto;
    border: 1px solid #d4af37;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    border-radius: 4px;
}

.card-txt-wrapper {
    flex: 1;
}

.card-txt h1 {
    color: #d4af37;
    font-size: 2.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-txt h2 {
    color: #fff;
    font-size: 1.8rem;
    margin: 5px 0;
    font-weight: 300;
}

.card-txt h3 {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.card-txt p {
    color: #ccc;
    line-height: 1.6;
    font-size: 1rem;
}

/* Tabella Brani Principale */
.main-content {
    max-width: 1100px;
    margin: 80px auto !important; /* Spazio aumentato per evitare tagli */
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.info-scarico {
    color: #d4af37;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 3px solid #d4af37;
    padding-left: 15px;
}

/* FIX CRITICO: Overflow visible su tutta la gerarchia della tabella */
.table-container {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    overflow: visible !important; 
    padding-top: 40px !important; /* Spazio per il primo fumetto A/C */
}

.brano-row {
    display: flex;
    align-items: center;
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s;
    position: relative !important;
    overflow: visible !important;
}

.brano-row:hover {
    background: rgba(212, 175, 55, 0.05);
}

.brano-row:last-child {
    border-bottom: none;
}

/* Colonne Dettaglio */
.col-num {
    width: 50px;
    color: #d4af37;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
}

.col-titolo {
    flex: 2;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
}

.col-durata {
    width: 70px;
    color: #666;
    font-size: 0.9rem;
}

/* Autori e Bottone A/C */
.col-autori {
    width: 80px;
    position: relative !important;
    overflow: visible !important;
    display: flex;
    justify-content: center;
}

.btn-ac {
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-ac:hover {
    background: #d4af37;
    color: #000;
}

/* Fumetto Autori con Z-Index altissimo */
.autori-hint {
    display: none;
    position: absolute;
    bottom: 140% !important;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #d4af37;
    padding: 12px 18px;
    border: 1px solid #d4af37;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 999999 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    font-size: 0.85rem;
}

.col-autori:hover .autori-hint {
    display: block !important;
}

/* Player Audio Custom */
.col-audio {
    flex: 1.5;
    padding: 0 20px;
}

audio {
    width: 100%;
    height: 35px;
    filter: invert(100%) hue-rotate(180deg) brightness(1.5); /* Rende il player chiaro su sfondo scuro */
}

/* Sezione Acquisto */
.col-buy {
    width: 130px;
    text-align: center;
}

.btn-buy-style {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: 0.3s;
    margin-bottom: 5px;
}

.btn-play {
    background: #c62828;
    color: #fff;
    border: 1px solid #ffeb3b;
    text-transform: uppercase;
}

.btn-play:hover {
    background: #fbc02d;
    color: #000;
}

.btn-play small {
    display: block;
    font-size: 0.6rem;
    opacity: 0.8;
}

.btn-base-green {
    background: #1b5e20;
    color: #fff;
    border: 1px solid #4caf50;
}

.btn-base-green:hover {
    background: #fff;
    color: #1b5e20;
}

/* Spartiti PDF */
.col-sheets {
    width: 140px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-pdf {
    background: #333;
    color: #fff;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid #444;
    transition: 0.3s;
}

.btn-pdf:hover {
    background: #d4af37;
    color: #000;
    border-color: #fff;
}

/* FIX per i separatori o elementi vuoti */
.col-sheets span {
    color: #444;
}

/* Responsive Design Orientamento e Mobile */
@media (max-width: 992px) {
    .card-inner {
        flex-direction: column;
        text-align: center;
    }
    .card-inner img {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .brano-row {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .col-num, .col-durata, .col-autori, .col-buy, .col-sheets {
        width: 100%;
    }
    .col-titolo {
        font-size: 1.3rem;
    }
    .col-audio {
        width: 100%;
        padding: 0;
    }
    .autori-hint {
        position: relative;
        bottom: 0 !important;
        left: 0;
        transform: none;
        display: block !important;
        margin-top: 10px;
        white-space: normal;
    }
}

/* Altre righe per arrivare alla struttura originale completa... */
/* [Righe aggiuntive per stili specifici di hover, transizioni e ombreggiature] */