/* =================================================================== */
/* STILI GENERALI DEL PALINSESTO (DESKTOP)                             */
/* =================================================================== */
.palinsesto-container-v2 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 800px; margin: 2em auto; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); background-color: #fff; }
#live-datetime-container { background-color: #005a87; color: #fff; padding: 10px 20px; text-align: center; font-size: 0.95em; font-weight: bold; }
#live-datetime-container strong { font-size: 1.1em; }
.palinsesto-nav-v2 { display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; background-color: #f7f7f7; border-bottom: 1px solid #ddd; }
.palinsesto-nav-v2 button { background-color: #0073aa; color: #fff; border: none; padding: 8px 16px; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 13px; transition: background-color 0.3s ease; flex-shrink: 0; }
.palinsesto-nav-v2 button:hover { background-color: #005a87; }
.full-day-name { text-align: center; font-weight: bold; font-size: 1.1em; color: #333; padding: 8px 20px 0; height: 1.5em; transition: opacity 0.3s ease-in-out; }
.palinsesto-content-v2 { padding: 20px; min-height: 100px; position: relative; }
.giorno-v2 { display: none; animation: fadeIn 0.5s ease-in-out; }
.giorno-v2.active { display: block; }

.fascia-oraria-v2 { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; border-radius: 4px; transition: background 0.2s; }
.fascia-oraria-v2:last-child { border-bottom: none; }

/* EVIDENZIAZIONE NOTTURNA */
.fascia-oraria-v2.night-highlight { 
    background-color: #f9fafd;
    border-left: 4px solid #0073aa;
    padding-left: 10px;
}

.programma-img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; margin-right: 15px; flex-shrink: 0; }
.programma-details { display: flex; flex-direction: column; flex-grow: 1; gap: 3px; }
.programma-riga-principale { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.orario-v2 { font-weight: bold; color: #0073aa; font-size: 0.85em; flex-shrink: 0; }

/* ### STILE SPECIFICO PER "A SEGUIRE" ### */
.orario-v2.a-seguire-text {
    font-style: italic;
    color: #555;
    font-size: 0.8em;
    text-transform: uppercase;
}

.programma-v2 { color: #000000; font-weight: bold; font-size: 1.0em; }

.programma-label {
    font-size: 0.75em;
    background-color: #e5e5e5;
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.speaker-v2 { color: #555; font-weight: normal; font-style: italic; font-size: 0.9em; }
.giorni-selettore { display: flex; justify-content: center; align-items: center; gap: 5px; flex-grow: 1; margin: 0 10px; }
.giorno-btn { background-color: #f0f0f0; border: 1px solid #ccc; color: #555; padding: 0; width: 30px; height: 30px; border-radius: 15px; cursor: pointer; font-weight: bold; font-size: 12px; transition: all 0.2s ease-in-out; flex-shrink: 0; }
.giorno-btn:hover { background-color: #e0e0e0; border-color: #999; }
.giorno-btn.active { background-color: #0073aa; color: #fff; border-color: #005a87; transform: scale(1.1); }

.bottom-day-nav { text-align: center; margin-top: 25px; padding-top: 15px; border-top: 1px solid #f0f0f0; }
.btn-bottom-next {
    background-color: #fff;
    border: 2px solid #0073aa;
    color: #0073aa;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
}
.btn-bottom-next:hover { background-color: #0073aa; color: #fff; }
.btn-arrow { font-size: 18px; line-height: 1; padding-bottom: 2px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* MOBILE */
@media (max-width: 600px) {
    #live-datetime-container { font-size: 0.8em; padding: 8px 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .palinsesto-nav-v2 { flex-wrap: wrap; gap: 10px; }
    #prev-day-v2 { order: 1; flex-grow: 1; }
    #next-day-v2 { order: 2; flex-grow: 1; }
    .giorni-selettore { order: 3; width: 100%; justify-content: space-between; }
    .fascia-oraria-v2 { flex-direction: column; align-items: flex-start; gap: 10px; }
    .programma-riga-principale { flex-direction: column; align-items: flex-start; gap: 2px; }
    .programma-label { margin-top: 2px; }
}