/* TV Show Hero Section */
.tvshow-details-hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.tvshow-details-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
}

.tvshow-details-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
}

.tvshow-details-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tvshow-details-content-inner {
    max-height: 90%;
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: #BACD4D rgba(0, 0, 0, 0.2);
}

.tvshow-details-content-inner::-webkit-scrollbar {
    width: 6px;
}

.tvshow-details-content-inner::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.tvshow-details-content-inner::-webkit-scrollbar-thumb {
    background-color: #BACD4D;
    border-radius: 10px;
}

.tvshow-details-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tvshow-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
    align-items: center;
}

.tvshow-details-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
}

.tvshow-details-year {
    color: #ffffff;
    font-weight: 500;
}

.tvshow-details-rating {
    color: #BACD4D !important;
    font-weight: 600;
}

.tvshow-details-duration {
    color: #e0e0e0;
}

.tvshow-details-genre {
    color: #b0b0b0;
    font-style: italic;
}

.tvshow-details-description-container {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #BACD4D rgba(0, 0, 0, 0.2);
}

.tvshow-details-description-container::-webkit-scrollbar {
    width: 6px;
}

.tvshow-details-description-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.tvshow-details-description-container::-webkit-scrollbar-thumb {
    background-color: #BACD4D;
    border-radius: 10px;
}

.tvshow-details-description {
    max-width: 700px;
    line-height: 1.6;
    color: #e0e0e0;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    padding-right: 10px;
}

.tvshow-details-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #BACD4D;
    text-decoration: none;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(186, 205, 77, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.tvshow-details-watch-btn:hover {
    background: #a8bb45;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(186, 205, 77, 0.4);
}

.tvshow-details-watch-btn::before {
    content: "▶";
    font-size: 0.8em;
}










/* Additional TV Show Posters Section */
.additional-tvshow-posters {
    padding: 40px 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Reuse the same grid styles from movie posters */
.posters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.poster-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    aspect-ratio: 2/3;
    position: relative;
}

.poster-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(186, 205, 77, 0.3);
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.poster-card:hover .poster-image {
    transform: scale(1.03);
}










/* Section Styling */
.movie-section {
    padding: 60px 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Section Header with Season Navigation */
.movie-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding: 0 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.movie-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    position: relative;
}

.movie-section-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #BACD4D;
    border-radius: 2px;
}

/* Season Navigation */
.season-pagination {
    display: flex;
    gap: 12px;
    align-items: center;
}

.season-pagination-label {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-right: 10px;
    font-weight: 500;
}

.season-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.season-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.season-link.active {
    background: #BACD4D;
    border-color: #e50914;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

/* Episodes Section */
.movie-recommendations {
    background: transparent;
}

.movie-recommendations-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 50px 30px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.movie-recommendations-slider::-webkit-scrollbar {
    display: none;
}

.episode-item {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.episode-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(229, 9, 20, 0.5);
}

.episode-thumbnail {
    position: relative;
    width: 100%;
    height: 280px;
    /* Increased height for poster-like appearance */
    overflow: hidden;
}

.episode-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.episode-item:hover .episode-thumbnail img {
    transform: scale(1.05);
}

.episode-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.episode-item:hover .episode-play-overlay {
    opacity: 1;
}

.episode-play-btn {
    width: 60px;
    height: 60px;
    background: #BACD4D;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.episode-play-btn:hover {
    background: #BACD4D;
    transform: scale(1.1);
}

.episode-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.episode-number {
    color: #BACD4D;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.episode-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    line-height: 1.3;
}

.episode-description {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    flex-grow: 1;
}

.episode-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.episode-duration {
    color: #888;
    font-size: 0.85rem;
}

.episode-rating {
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Cast and Crew Slider */
.movie-cast-crew {
    background: transparent;
}

.movie-cast-crew-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 0 50px 30px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.movie-cast-crew-slider::-webkit-scrollbar {
    display: none;
}

.movie-cast-crew-card {
    flex: 0 0 180px;
    text-align: center;
    transition: transform 0.3s ease;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.movie-cast-crew-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
}

.movie-cast-crew-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.movie-cast-crew-card:hover .movie-cast-crew-img {
    border-color: #BACD4D;
    transform: scale(1.05);
}

.movie-cast-crew-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    font-size: 1.1rem;
}

.movie-cast-crew-role {
    color: #b0b0b0;
    font-size: 0.95rem;
    font-style: italic;
}

/* Square Navigation Buttons */
.slider-scroll-btn,
.grid-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-scroll-btn:hover,
.grid-scroll-btn:hover {
    background: #BACD4D;
    border-color: #e50914;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

.slider-scroll-btn-left,
.grid-scroll-btn-left {
    left: 15px;
}

.slider-scroll-btn-right,
.grid-scroll-btn-right {
    right: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .movie-details-overlay {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
    }


    /* Additional TV Show Posters Section */
    .posters-grid {
        grid-template-columns: repeat(3, 1fr);
    }


}

@media (max-width: 768px) {
    .tvshow-details-hero {
        height: 70vh;
    }
    
    .tvshow-details-content {
        padding: 0 30px;
    }
    
    .tvshow-details-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .tvshow-details-meta {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .tvshow-details-meta span {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    .tvshow-details-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .tvshow-details-watch-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .tvshow-details-overlay {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.7) 100%);
    }




    /* Additional TV Show Posters Section */
    .posters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .additional-tvshow-posters {
        padding: 30px 0;
    }



    .movie-section {
        padding: 40px 0;
    }

    .movie-section-header {
        padding: 0 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .movie-section-title {
        font-size: 1.8rem;
    }

    .season-pagination {
        flex-wrap: wrap;
    }

    .season-link {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .movie-recommendations-slider,
    .movie-cast-crew-slider {
        padding: 0 25px 30px;
    }

    .episode-item {
        flex: 0 0 250px;
    }

    .episode-thumbnail {
        height: 250px;
    }

    .movie-cast-crew-card {
        flex: 0 0 150px;
    }

    .movie-cast-crew-img {
        width: 110px;
        height: 110px;
    }

    .slider-scroll-btn,
    .grid-scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .tvshow-details-hero {
        height: 65vh;
        min-height: 400px;
    }
    
    .tvshow-details-content {
        padding: 0 20px;
    }
    
    .tvshow-details-title {
        font-size: 1.6rem;
    }
    
    .tvshow-details-meta {
        gap: 8px;
    }
    
    .tvshow-details-meta span {
        font-size: 0.8rem;
    }
    
    .tvshow-details-description-container {
        max-height: 120px;
    }
    
    .tvshow-details-watch-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }



    /* Additional TV Show Posters Section */
    .posters-grid {
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }



    .episode-item {
        flex: 0 0 220px;
    }

    .episode-thumbnail {
        height: 220px;
    }

    .episode-content {
        padding: 15px;
    }

    .movie-cast-crew-card {
        flex: 0 0 130px;
        padding: 15px;
    }

    .movie-cast-crew-img {
        width: 100px;
        height: 100px;
    }
}