/* =================================================================== */
/* ==  SPECIFIC & SCOPED STYLES FOR SPOTLIGHT: SERIE "EXTR@"          == */
/* =================================================================== */
/*
 * NOTE: Every style rule is prefixed with `#extra-spotlight`.
 * This ensures these styles ONLY apply to this specific component
 * and will not "leak" or conflict with other playlists or elements
 * on the same page.
*/

/* --- 1. Design Tokens (Global, no prefix needed) --- */
:root {
    /*
     * The JavaScript file dynamically sets the colors below on the main element.
     * These are fallbacks in case the JS fails or for development.
    */
    --extra-bg-color: #fdfaf6;
    --extra-text-color: #3d3d3d;
    --extra-accent-color: #ff7e5f;

    /* Spacing & Sizing */
    --extra-card-padding: 3rem;
    --extra-wrapper-gap: 3rem;

    /* Typography */
    --extra-font-heading: 'Roboto Slab', 'Georgia', serif;
    --extra-font-body: 'Poppins', 'Helvetica Neue', sans-serif;

    /* Borders & Shadows */
    --extra-radius-md: 10px;
    --extra-radius-lg: 16px;
    --extra-shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --extra-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --extra-transition: all 0.3s ease-in-out;
}


/* --- 2. Main Card Container (Already specific) --- */
.spotlight-card-full#extra-spotlight {
    background-color: var(--extra-bg-color);
    color: var(--extra-text-color);
    border-radius: var(--extra-radius-lg);
    box-shadow: var(--extra-shadow-md);
    padding: var(--extra-card-padding);
    margin-top: 3rem;
    overflow: hidden;
    transition: var(--extra-transition);
}


/* --- 3. Layout Wrapper --- */
#extra-spotlight .extra-wrapper {
    display: flex;
    gap: var(--extra-wrapper-gap);
    align-items: flex-start;
}


/* --- 4. Left Column: Series Details --- */
#extra-spotlight .extra-details-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
#extra-spotlight > div > div.extra-column {
   padding: 2rem;
}

#extra-spotlight #extra-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--extra-radius-md);
    margin-bottom: 2rem;
    box-shadow: var(--extra-shadow-lg);
    transition: var(--extra-transition);
}

#extra-spotlight #extra-image:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

#extra-spotlight #extra-title {
    font-family: var(--extra-font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#extra-spotlight #extra-summary {
    font-family: var(--extra-font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 45ch;
    opacity: 0.9;
}

#extra-spotlight #extra-fb-link {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--extra-font-body);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: var(--extra-shadow-md);
    transition: var(--extra-transition);
}

#extra-spotlight #extra-fb-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--extra-shadow-lg);
    filter: brightness(1.1);
}


/* --- 5. Right Column: Player and Playlist --- */
#extra-spotlight .extra-player-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* 5.1 - Video Player */
#extra-spotlight .featured-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: auto;
    overflow: hidden;
    border-radius: var(--extra-radius-md);
    margin-bottom: 1.5rem;
    background-color: #000;
    box-shadow: var(--extra-shadow-lg);
    margin: auto;

}

#extra-spotlight #extra-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 5.2 - Playlist */
#extra-spotlight #extra-playlist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem;
    padding-right: 0.8rem;
}

#extra-spotlight .playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--extra-radius-md);
    cursor: pointer;
    border-left: 5px solid transparent;
    transition: var(--extra-transition);
    background-color: rgba(0, 0, 0, 0.02);
    margin-right: 1rem;
}

#extra-spotlight .playlist-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

#extra-spotlight .playlist-item.active-video {
    /* border-color is set by JS */
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

#extra-spotlight .ep-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--extra-font-body);
}

#extra-spotlight .playlist-item-title {
    font-family: var(--extra-font-body);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    text-align: left;
    flex-grow: 1;
    color: #3d3d3d;

}

#extra-spotlight .playlist-item.active-video .playlist-item-title {
    font-weight: 700;
    color:#3d3d3d;
}

/* 5.3 - Custom Scrollbar */
#extra-spotlight #extra-playlist::-webkit-scrollbar {
    width: 8px;
    margin-left: 1rem;
}
#extra-spotlight #extra-playlist::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}
#extra-spotlight #extra-playlist::-webkit-scrollbar-thumb {
    background-color: var(--extra-accent-color);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}
#extra-spotlight #extra-playlist {
    scrollbar-width: thin;
    scrollbar-color: var(--extra-accent-color) rgba(0, 0, 0, 0.05);
    max-width: 130%;
    max-height: auto;
    padding: 0;
    margin-top: 2rem;
    overflow-x: hidden;
padding-bottom: 0;
margin-bottom: 0;
}


/* --- 6. Responsive Design --- */
@media (max-width: 992px) {
    #extra-spotlight .extra-wrapper {
        flex-direction: column;
        align-items: center;
    }
    #extra-spotlight .extra-details-column, 
    #extra-spotlight .extra-player-column {
        width: 100%;
        max-width: 600px;
    }
    #extra-spotlight .extra-details-column {
        order: 2; /* Details below player */
    }
    #extra-spotlight .extra-player-column {
        order: 1; /* Player above details */
    }
}

@media (max-width: 576px) {
    .spotlight-card-full#extra-spotlight {
        --extra-card-padding: 1.5rem;
    }
    #extra-spotlight #extra-title {
        font-size: 2rem;
    }
    #extra-spotlight #extra-summary {
        font-size: 1rem;
    }
    #extra-spotlight #extra-fb-link {
        padding: 12px 24px;
        font-size: 0.8rem;
        width: 100%;
    }
    #extra-spotlight #extra-playlist {
        max-height: 200px;
    }
}