@font-face {
    font-family: 'TuskerGrotesk';
    src: url('./font/TuskerGrotesk-3600Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
::-webkit-scrollbar{
    display: none;
}
::selection{
    background-color: #e5a22e;
    color: #000;
}
.split{
    will-change: transform;
    color: #fff;
}
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: white;
}
.split{
    will-change: transform;
    color: #fff;
}


/* --------------- SEZIONE HERO (TOP) --------------- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Altezza completa per iniziare */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente il contenuto principale */
    align-items: center;
    padding-top: 80px; /* Spazio per la nav bar fissa */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('./assets/osb_hero.jpg');
    background-size: cover;
    background-position: center;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Gradiente from bottom to top nel nero */
    background: linear-gradient(to top, #121212 0%, rgba(18, 18, 18, 0.7) 40%, rgba(18, 18, 18, 0) 90%);
}

.hero-content {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
    position: relative; /* Per stare sopra la lista */
    z-index: 10;
}

.hero-title {
    font-size: 7vw; /* Titolo dinamico per sembrare grande */
    font-weight: 900;
    color: white;
    margin: 0;
    font-family: 'TuskerGrotesk', sans-serif;
    text-transform: uppercase;
}
.hero-title .highlight {
    color: #e5a22e; /* Colore di evidenziazione per il doppio colore */
}
.hero-description {
    font-size: 1.5vw;
    color: #fff;
    margin-top: 10px;
}

/* LISTA EPISODI NELLA SEZIONE HERO (Blocco visivo al centro-basso) */
.episodi-hero-list-wrapper {
    position: absolute;
    bottom: 5%; /* Posiziona in basso */
    width: 80%; /* Più largo come nello screen */
    max-width: 800px;
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px); /* Effetto Blur */
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
    overflow: hidden; /* Nasconde ciò che esce, importante per il fade */
}

.episodi-hero-list {
    position: relative;
    max-height: 250px; /* Limita l'altezza per far scorrere o sfumare */
    overflow-y: hidden; /* Nasconde la barra di scorrimento, forziamo la sfumatura */
}

/* Gradiente di Sfumatura in fondo alla lista Hero */
.list-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    /*background: linear-gradient(to top, rgba(18, 18, 18, 0.9) 10%, rgba(30, 30, 30, 0) 100%);*/
    pointer-events: none; /* Assicura che i link siano cliccabili sotto */
}


/* --------------- SEZIONE EPISODI COMPLETA (Il resto sotto Hero) --------------- */
.episodi-section {
    padding: 80px 50px;
    max-width: 1000px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}
.episodi-lista {
    border-top: 1px solid #333;
}


/* --------------- STILI RIGA (Comune a Hero e Lista Completa) --------------- */

.episodio-riga {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Linee più sottili per look pulito */
    cursor: pointer;
    transition: background-color 0.2s;
}

.episodio-riga:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.episodio-riga.in-riproduzione {
    background-color: #383838;
}

/* --------------- COLONNA SINISTRA: NUMERO <-> PLAY/PAUSA ICONA --------------- */
.col-left {
    position: relative; 
    width: 30px; 
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-right: 25px;
}

.numero-episodio {
    display: block;
    opacity: 1;
    transition: all 0.3s ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    font-weight: bold;
    font-size: 1.1em;
}

.icona-play, .icona-pausa {
    opacity: 0;
    transition: all 0.3s ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(100%); 

    font-size: 20px;
    color: white;
}

/* STATO HOVER (Fermo): Numero esce, Play entra */
.episodio-riga:hover .numero-episodio {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(-100%); 
}
.episodio-riga:hover .icona-play {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0); 
}

/* STATO IN RIPRODUZIONE (Mostra Pausa) */
.episodio-riga.in-riproduzione .numero-episodio,
.episodio-riga.in-riproduzione .icona-play {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(-100%); 
}

.episodio-riga.in-riproduzione .icona-pausa {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0); 
}
/* --------------------------------------------------------------------- */


.col-middle {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.col-middle img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 15px;
}

.col-middle .texti {
    display: flex;
    flex-direction: column;
}

.col-middle .titolo {
    font-weight: bold;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.col-middle .ospite {
    color: #aaaaaa;
    font-size: 0.9em;
}

.col-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100px;
    font-size: 0.9em;
    color: #aaaaaa;
}
.col-right .durata {
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}
/* --------------- FOOTER AVANZATO --------------- */
.footer-section {
    position: relative;
    padding-top: 86px;
    padding-bottom: 50px; 
    z-index: 1;
    overflow: hidden;
    min-height: 250px; 
}

.footer-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1440px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links a {
    color: white;
    font-size: 32px;
    margin: 0 15px;
    transition: color 0.2s;
}

.social-links a:nth-child(1):hover {
    color: #ff0000;
}
.social-links a:nth-child(2):hover {
    color: #1ed760;
}
.social-links a:nth-child(3):hover {
    color: #f04899;
}
.social-links a:nth-child(4):hover {
    color: #fa7a1f;
}
.social-links a:nth-child(5):hover{
    color:#24A1DE;
}
/* --------------- PLAYER FISSO --------------- */
.fixed-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #282828;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 5px 0;
    height: 162px;
    display: none;
}

.player-embed-area {
    width: 100%;
    height: 152px;
}


/* --------------- MEDIA QUERIES (Responsive < 1000px) --------------- */
@media (max-width: 1000px) {
    /* Layout */
    .header-nav, .episodi-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    .numero-episodio{
        font-size: 0.8em;
    }
    .icona-play, .icona-pausa{
        font-size: 0.8em;
    }
    .col-middle .titolo{
        font-size: 0.9em;
    }
    /* Hero */
    .hero-content {
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 14vw;
    }
    
    .hero-description {
        font-size: 4vw;
    }

    .episodi-hero-list-wrapper {
        width: 95%;
    }
    
    .col-middle {
        margin-left: 2px!important;
    }
    
    .col-right {
        width: 75px; 
        font-size: 0.7em;
    }
    
    .col-middle img {
        width: 27px;
        height: 27px;
        margin-right: 10px;
    }
    
    .col-middle .ospite {
        font-size: 0.7em;
    }
    
    .col-left {
        width: 25px;
        margin-right: 4px!important;
    }
    .menu-toggle {
        display: block; 
    }
    
    /* Nascondi i link desktop */
    .header-nav .nav-menu {
        display: none; 
    }
    .section-title {
        font-size: 26px;
    }
    .social-links a {
        font-size: 26px;
    }
    .hero-background {
        background-position: 30% center;
    }
}
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-num {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    border-radius: 4px;
}

.page-num.active {
    background: #e5a22e; /* Il tuo colore highlight */
    border-color: #e5a22e;
    color: black;
    font-weight: bold;
}

.page-num:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-num {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    border-radius: 4px;
}

.page-num.active {
    background: #e5a22e; /* Il tuo colore highlight */
    border-color: #e5a22e;
    color: black;
    font-weight: bold;
}

.page-num:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}