/* 
 * WeGreen - Movie & Drama Templates Styles
 * Modern, responsive design for movie and drama templates
 */

:root {
    --wgt-primary: #217346;
    --wgt-primary-dark: #19593a;
    --wgt-secondary: #23282d;
    --wgt-text: #333;
    --wgt-text-light: #767676;
    --wgt-light-gray: #f5f5f5;
    --wgt-border: #e1e1e1;
    --wgt-star-active: #f5c518;
    --wgt-star-inactive: #ddd;
    --wgt-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --wgt-section-spacing: 3rem;
}



/* Hero Section */
.wgt-movie-hero,
.wgt-drama-hero {
    position: relative;
    padding: 0;
    margin-bottom: 0;
    color: #fff;
    overflow: hidden;
    background-color: #1f1f1f;
    width: 100%;
}

.wgt-movie-hero__backdrop,
.wgt-drama-hero__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    transform: scale(1.05);
    z-index: -2;
    opacity: 0.5;
}

.wgt-movie-hero__overlay,
.wgt-drama-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(31,31,31,0.95) 30%, rgba(31,31,31,0.8));
    z-index: -1;
}

.wgt-movie-hero__content,
.wgt-drama-hero__content {
    display: flex;
    align-items: normal;
    gap: 2rem;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 1000px;
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.wgt-movie-hero__poster,
.wgt-drama-hero__poster {
    flex: 0 0 265px;
    width: 265px;
    aspect-ratio: 2 / 3;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wgt-movie-hero__poster img,
.wgt-drama-hero__poster img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 4px;
    object-fit: inherit;
}

.wgt-movie-hero__info,
.wgt-drama-hero__info {
    background: transparent;
    color: #fff;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border-left: none;
    border-top: none;
    border-bottom: none;
    backdrop-filter: none;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
    width: 100%;
    overflow: hidden;
    word-wrap: break-word;
}

.wgt-movie-hero__title,
.wgt-drama-hero__title {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wgt-movie-hero__meta,
.wgt-drama-hero__meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    align-items: center;
    margin: 1rem 0;
}

.wgt-movie-meta__item,
.wgt-drama-meta__item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wgt-movie-meta__label,
.wgt-drama-meta__label {
    font-weight: 600;
    color: #FFD700;
    margin-right: 0.25rem;
}

.wgt-movie-meta__value,
.wgt-drama-meta__value {
    color: #fff;
    font-weight: 400;
    opacity: 0.92;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Play Trailer Button */
.wgt-play-trailer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.6);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wgt-play-trailer svg {
    width: 24px;
    height: 24px;
}

.wgt-play-trailer span {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.wgt-movie-hero__poster:hover .wgt-play-trailer,
.wgt-drama-hero__poster:hover .wgt-play-trailer {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Rating */
.wgt-movie-hero__rating,
.wgt-drama-hero__rating {
    display: flex;
    align-items: center;
    background: rgba(31, 31, 31, 0.5);
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-box {
    display: flex;
    align-items: center;
}

.ratebox {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    font-weight: bold;
}

.singlerate {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.rate-star {
    display: flex;
    align-items: center;
    color: #FFD700;
}

.rate-detail {
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
}

.avg-rating {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.total-votes {
    font-size: 1rem;
    color: #b0b0b0;
    margin-top: 2px;
}

.rate-this {
    display: flex;
    align-items: center;
    position: relative;
}

.rate-this:before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.rate-this-button {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rate-this-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.rate-this-button svg {
    margin-right: 5px;
    color: #FFD700;
    width: 16px;
    height: 16px;
}

/* Story */
.wgt-movie-hero__story,
.wgt-drama-hero__story {
    margin: 0;
    max-height: none;
    overflow: visible;
    position: relative;
}

.wgt-movie-hero__story p,
.wgt-drama-hero__story p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
}

/* Action buttons */
.wgt-movie-hero__actions,
.wgt-drama-hero__actions {
    margin-top: 1.5rem;
}

.wgt-movie-action-buttons,
.wgt-drama-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wgt-button {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wgt-button:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.wgt-button--primary {
    background: #217346;
}

.wgt-button--primary:hover {
    background: #19593a;
    color: #fff;
}

/* Main Content Layout */
.wgt-movie-content,
.wgt-drama-content {

}

/* Section Styles */
.wgt-movie-section,
.wgt-drama-section {
    margin-bottom: var(--wgt-section-spacing);
    padding-bottom: var(--wgt-section-spacing);
    border-bottom: 1px solid var(--wgt-border);
}

.wgt-movie-section:last-child,
.wgt-drama-section:last-child {
    border-bottom: none;
}

.wgt-title-section {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wgt-secondary);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--wgt-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2%;
}

.wgt-section-view-all {
    font-size: 0.9rem;
    color: var(--wgt-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.wgt-section-view-all:hover {
    color: var(--wgt-primary-dark);
}

.wgt-section-view-all:after {
    content: "→";
    margin-left: 5px;
    font-size: 1.1em;
}

/* Details */
.wgt-movie-details__content,
.wgt-drama-details__content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--wgt-text);
}

.wgt-movie-details__meta,
.wgt-drama-details__meta {
    margin-top: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    border: 1px solid #ececec;
    overflow: hidden;
}

.wgt-movie-details__item,
.wgt-drama-details__item {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid #ececec;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.wgt-movie-details__item:nth-child(even),
.wgt-drama-details__item:nth-child(even) {
    background-color: rgba(0,0,0,0.015);
}

.wgt-movie-details__item:last-child,
.wgt-drama-details__item:last-child {
    border-bottom: none;
}

.wgt-movie-details__label,
.wgt-drama-details__label {
    flex: 0 0 140px;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 1rem;
    line-height: 1.4;
}

.wgt-movie-details__value,
.wgt-drama-details__value {
    flex: 1;
    color: #222;
    font-weight: 400;
    line-height: 1.4;
    word-break: break-word;
}

.wgt-movie-details__value a,
.wgt-drama-details__value a {
    color: #197236;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.wgt-movie-details__value a:hover,
.wgt-drama-details__value a:hover {
    color: #217346;
    text-decoration: underline;
}

/* Cast */
.wgt-movie-cast__grid,
.wgt-drama-cast__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns on desktop */
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.wgt-cast-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--wgt-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.wgt-cast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.wgt-cast-card__image {
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.wgt-cast-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wgt-cast-card:hover .wgt-cast-card__image img {
    transform: scale(1.05);
}

.wgt-cast-card__info {
    padding: 0.5rem;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wgt-cast-card__name {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
     margin-bottom: 0 !important;
}

.wgt-cast-card__name a {
    color: var(--wgt-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.wgt-cast-card__name a:hover {
    color: var(--wgt-primary);
}

.wgt-cast-card__role {
    font-size: 0.9rem;
    color: var(--wgt-text-light);
    font-style: italic;
}

.wgt-movie-cast__more,
.wgt-drama-cast__more,
.wgt-movie-gallery__more,
.wgt-drama-gallery__more {
    text-align: center;
    margin-top: 1rem;
}

/* Gallery */
.wgt-gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
}

.wgt-gallery-item {
    flex: 0 0 280px;
    height: 180px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--wgt-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    scroll-snap-align: start;
    background-color: #f0f0f0; /* Background color for empty spaces */
}

.wgt-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.wgt-gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the image covers the container while maintaining aspect ratio */
    object-position: top center; /* Show top of image by default to display faces */
    transition: transform 0.3s ease;
}

.wgt-gallery-item:hover img {
    transform: scale(1.05);
}

/* Videos */
.wgt-movie-videos__grid,
.wgt-drama-videos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.wgt-movie-videos__more,
.wgt-drama-videos__more {
    text-align: center;
    margin-top: 30px;
}

.wgt-video-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--wgt-shadow);
    background: #fff;
}

.wgt-video-card__player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.wgt-video-card__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wgt-video-card__info {
    padding: 0.75rem 1rem;
}

.wgt-video-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--wgt-secondary);
}

/* Episodes for Drama */
.wgt-drama-episodes__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wgt-episode-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--wgt-shadow);
    transition: transform 0.2s ease;
}

.wgt-episode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wgt-episode-card__image {
    height: 100%;
    width: 100%;
    background: #f0f0f0;
}

.wgt-episode-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wgt-episode-card__content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wgt-episode-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wgt-episode-card__number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wgt-primary);
    text-transform: uppercase;
}

.wgt-episode-card__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--wgt-secondary);
}

.wgt-episode-card__air-date {
    font-size: 0.9rem;
    color: var(--wgt-text-light);
}

.wgt-episode-card__description {
    color: var(--wgt-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.wgt-episode-card__description p {
    margin: 0;
}

/* Streaming Platforms */
.wgt-streaming-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.wgt-streaming-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    max-width: 100px;
    transition: transform 0.2s ease;
}

.wgt-streaming-platform:hover {
    transform: translateY(-5px);
}

.wgt-streaming-platform__icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--wgt-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.wgt-streaming-platform__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wgt-streaming-platform__name {
    font-size: 0.85rem;
    color: var(--wgt-text);
    text-align: center;
    font-weight: 500;
}

/* Movie/Drama Related Section - Redesigned to match celebrity-known-for */
.wgt-movie-related,
.wgt-drama-related {
    margin: 40px 0 30px 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.wgt-related-title {
    position: relative;
    z-index: 1;
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: none;
    display: inline-block;
}

.wgt-related-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #197236;
}

/* Related posts horizontal scrolling grid */
.wgt-related-posts__grid {
    position: relative;
    z-index: 1;
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.wgt-related-posts__grid::-webkit-scrollbar {
    height: 5px;
}

.wgt-related-posts__grid::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.wgt-related-posts__grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.wgt-related-post-card {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    scroll-snap-align: start;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wgt-related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #197236;
}

.wgt-related-post-card__image {
    width: 100%;
    height: 260px;
    position: relative;
    overflow: hidden;
}

.wgt-related-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wgt-related-post-card:hover .wgt-related-post-card__image img {
    transform: scale(1.05);
}

.wgt-related-post-card__info {
    padding: 0.5rem;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.wgt-related-post-card:hover .wgt-related-post-card__info {
    background: #f9f9f9;
}

.wgt-related-post-card__title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: #333;
}

.wgt-related-post-card__meta {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.5rem;
}

/* Navigation arrows for the slider */
.wgt-related-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
}

.wgt-related-nav:hover {
    background: rgba(0,0,0,0.2);
}

.wgt-related-prev {
    left: 10px;
}

.wgt-related-next {
    right: 10px;
}

/* Responsive Styles */
@media (min-width: 1201px) {
    .wgt-movie-hero__content,
    .wgt-drama-hero__content {
        max-width: 1200px;
        padding: 2.5rem 1rem;
    }
    
    .wgt-movie-hero__poster,
    .wgt-drama-hero__poster {
        flex: 0 0 265px;
        width: 265px;
    }
}

@media (max-width: 1200px) {
    .wgt-movie-hero__content,
    .wgt-drama-hero__content {
        max-width: 950px;
        padding: 1.5rem 1rem;
    }
    
    .wgt-movie-hero__poster,
    .wgt-drama-hero__poster {
        display: none;
    }
    
    .wgt-movie-hero__info,
    .wgt-drama-hero__info {
        width: 100%;
    }
    
    .wgt-movie-hero__title,
    .wgt-drama-hero__title {
        font-size: 2.4rem;
    }
    
    .wgt-movie-hero__meta,
    .wgt-drama-hero__meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .wgt-movie-meta__item,
    .wgt-drama-meta__item {
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .wgt-movie-hero__content,
    .wgt-drama-hero__content {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }
    
    .wgt-movie-hero__title,
    .wgt-drama-hero__title {
        font-size: 2rem;
    }
    
    .wgt-movie-hero__meta,
    .wgt-drama-hero__meta {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 1.5rem;
        width: 100%;
        margin: 0.75rem 0;
    }
    
    .wgt-movie-meta__item,
    .wgt-drama-meta__item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        overflow: hidden;
        padding-right: 0.5rem;
        box-sizing: border-box;
    }
    
    .wgt-movie-meta__label,
    .wgt-drama-meta__label {
        margin-right: 0;
        width: 100%;
    }
    
    .wgt-movie-meta__value,
    .wgt-drama-meta__value {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
    
    .wgt-movie-hero__rating,
    .wgt-drama-hero__rating {
        flex-direction: row;
        gap: 1rem;
        padding: 10px;
        justify-content: space-between;
        align-items: center;
    }
    
    .rate-star svg {
        width: 30px;
        height: 30px;
    }
    
    #avg-rating {
        font-size: 1.5rem;
    }
    
    .singlerate .rate-detail {
        font-size: 1.5rem;
        margin-left: 8px;
    }
    
    .total-votes {
        font-size: 0.7rem;
    }
    
    .rate-this:before {
        display: none;
    }
    
    .rate-this-button {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .rate-this-button svg {
        width: 14px;
        height: 14px;
    }
    
    .wgt-movie-action-buttons,
    .wgt-drama-action-buttons {
        justify-content: center;
    }
    
    .wgt-movie-related,
    .wgt-drama-related {
        margin: 30px 0 20px 0;
    }
    
    .wgt-related-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .wgt-related-posts__grid {
        gap: 1rem;
        padding: 0.25rem 0;
    }
    
    .wgt-related-post-card {
        flex: 0 0 140px;
    }
    
    .wgt-related-post-card__image {
        height: 180px;
    }
    
    .wgt-related-post-card__title {
        font-size: 0.9rem;
        padding: 0.75rem 0.5rem;
    }
    
    .wgt-related-nav {
        width: 35px;
        height: 35px;
    }
    
    /* Cast grid mobile styling */
    .wgt-movie-cast__grid,
    .wgt-drama-cast__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .wgt-cast-card:nth-child(n+4) {
        display: none; /* Hide items after the first 3 on mobile */
    }
}

@media (max-width: 480px) {
    .wgt-movie-hero__rating,
    .wgt-drama-hero__rating {
        padding: 8px;
    }
    
    .rate-star svg {
        width: 24px;
        height: 24px;
    }
    
    #avg-rating {
        font-size: 1.3rem;
    }
    
    .singlerate .rate-detail {
        font-size: 1.3rem;
        margin-left: 6px;
    }
    
    .total-votes {
        font-size: 0.65rem;
    }
    
    .rate-this-button {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .rate-this-button svg {
        width: 12px;
        height: 12px;
        margin-right: 4px;
    }
    
    .wgt-movie-meta__item,
    .wgt-drama-meta__item {
        gap: 0.1rem;
    }
    
    .wgt-movie-meta__label,
    .wgt-drama-meta__label {
        font-size: 0.75rem;
    }
    
    .wgt-movie-meta__value,
    .wgt-drama-meta__value {
        font-size: 0.8rem;
    }
    
    .wgt-movie-details__meta,
    .wgt-drama-details__meta {
        margin-top: 0.75rem;
    }
    
    .wgt-movie-details__item,
    .wgt-drama-details__item {
        padding: 0.7rem 0.85rem;
        margin-bottom: 0.5rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    }
    
    .wgt-movie-details__label,
    .wgt-drama-details__label {
        flex: 0 0 80px;
        font-size: 0.8rem;
        color: #777;
        margin-right: 0.5rem;
    }
    
    .wgt-movie-details__value,
    .wgt-drama-details__value {
        font-size: 0.9rem;
        font-weight: 500;
        word-break: break-word;
    }
    
    .wgt-movie-related,
    .wgt-drama-related {
        margin: 25px 0 15px 0;
    }
    
    .wgt-related-posts__grid {
        gap: 0.75rem;
    }
    
    .wgt-related-post-card {
        flex: 0 0 120px;
    }
    
    .wgt-related-post-card__image {
        height: 150px;
    }
    
    .wgt-related-post-card__title {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

@media (max-width: 575px) {
    .wgt-title-section,
    .wgt-related-title {
        font-size: 1.5rem;
    }
    
    .wgt-movie-hero__title,
    .wgt-drama-hero__title {
        font-size: 1.8rem;
    }
    
    .wgt-movie-meta__item,
    .wgt-drama-meta__item {
        font-size: 0.85rem;
    }
    
    .wgt-movie-hero__story p,
    .wgt-drama-hero__story p {
        font-size: 0.9rem;
    }
    
    .wgt-movie-hero__info,
    .wgt-drama-hero__info {
        padding: 0;
        gap: 0.8rem;
    }
    
    .wgt-movie-details__item,
    .wgt-drama-details__item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .wgt-movie-cast__grid,
    .wgt-drama-cast__grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .wgt-cast-card__info {
        padding: 0.5rem;
    }
    
    .wgt-cast-card__name {
        font-size: 0.85rem;
    }
    
    .wgt-cast-card__role {
        font-size: 0.75rem;
    }
    
    .wgt-gallery-item {
        flex: 0 0 160px;
        height: 100px;
    }
    
    .wgt-streaming-platforms {
        justify-content: center;
    }
    
    .wgt-related-posts__grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .wgt-movie-hero__info,
    .wgt-drama-hero__info {
        padding: 0.75rem 0.25rem;
        border-radius: 8px;
        font-size: 0.97rem;
        gap: 0.8rem;
    }
    
    .wgt-movie-details__meta,
    .wgt-drama-details__meta {
        border-radius: 8px;
        background: transparent;
        box-shadow: none;
        border: none;
        margin-top: 1rem;
    }
    
    .wgt-movie-details__item,
    .wgt-drama-details__item {
        display: flex;
        flex-direction: row;
        align-items: center;
        background: #f8f9fa;
        margin-bottom: 0.75rem;
        border-radius: 8px;
        border: 1px solid #ececec;
        padding: 0.75rem 1rem;
    }
    
    .wgt-movie-details__item:nth-child(even),
    .wgt-drama-details__item:nth-child(even) {
        background-color: #f8f9fa;
    }
    
    .wgt-movie-details__label,
    .wgt-drama-details__label {
        flex: 0 0 100px;
        margin-right: 0.75rem;
        font-size: 0.85rem;
        color: #666;
        font-weight: 600;
    }
    
    .wgt-movie-details__value,
    .wgt-drama-details__value {
        flex: 1;
        font-size: 0.95rem;
        line-height: 1.4;
        color: #222;
    }
}

/* --- Ultra-Clean, Professional FAQ Section --- */
.wgt-faqs-section {
  margin: 1.5rem 0 1.5rem 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: none;
  padding: 1.2rem 0.5rem 1.2rem 0.5rem;
}
.wgt-faqs-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #232323;
  margin-bottom: 1.2rem;
  text-align: left;
  letter-spacing: -0.5px;
}
.wgt-faqs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wgt-faq-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 1.1rem;
  box-shadow: 0 1.5px 6px rgba(30,30,30,0.03);
  border: 1px solid #ededed;
  overflow: hidden;
  transition: background 0.13s, box-shadow 0.13s, border 0.13s;
  position: relative;
}
.wgt-faq-item:last-child {
  margin-bottom: 0;
}
.wgt-faq-item.active, .wgt-faq-item:focus-within, .wgt-faq-item:hover {
  background: #f8f8f8;
  box-shadow: 0 4px 16px rgba(30,30,30,0.06);
  border-color: #d2d2d2;
}
.wgt-faq-question {
  cursor: pointer;
  font-size: 1.13rem;
  font-weight: 700;
  color: #232323;
  padding: 1.1rem 2.2rem 1.1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  transition: background 0.12s, color 0.12s;
  position: relative;
}
.wgt-faq-chevron {
  display: inline-block;
  margin-left: 1em;
  transition: transform 0.25s cubic-bezier(.4,2,.6,1), color 0.18s;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  color: #b0b0b0;
}
.wgt-faq-item.active .wgt-faq-chevron {
  transform: rotate(180deg);
  color: #232323;
}
.wgt-faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 2.2rem 0 1rem;
  color: #232323;
  font-size: 1.05rem;
  line-height: 1.7;
  background: transparent;
  transition: max-height 0.35s cubic-bezier(.4,2,.6,1), opacity 0.22s, padding-bottom 0.18s;
  font-weight: 400;
}
.wgt-faq-item.active .wgt-faq-answer {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 1.1rem;
}
@media (max-width: 767px) {
  .wgt-faqs-section {
    padding: 0.7rem 0.1rem 0.7rem 0.1rem;
    border-radius: 8px;
  }
  .wgt-faqs-title {
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
  }
  .wgt-faq-question {
    font-size: 1.01rem;
    padding: 0.9rem 1.2rem 0.9rem 0.7rem;
  }
  .wgt-faq-answer {
    font-size: 0.98rem;
    padding: 0 1.2rem 0.8rem 0.7rem;
    }
}

@media (max-width: 400px) {
    .wgt-movie-hero__meta,
    .wgt-drama-hero__meta {
        gap: 0.5rem 1rem;
    }
    
    .wgt-movie-meta__item,
    .wgt-drama-meta__item {
        padding-right: 0;
    }
    
    .wgt-movie-meta__label,
    .wgt-drama-meta__label {
        font-size: 0.7rem;
    }
    
    .wgt-movie-meta__value,
    .wgt-drama-meta__value {
        font-size: 0.75rem;
    }
    
    .wgt-movie-hero__title,
    .wgt-drama-hero__title {
        font-size: 1.6rem;
    }

    .wgt-movie-details__item,
    .wgt-drama-details__item {
        padding: 0.6rem 0.75rem;
    }
    
    .wgt-movie-details__label,
    .wgt-drama-details__label {
        flex: 0 0 70px;
        font-size: 0.75rem;
    }
    
    .wgt-movie-details__value,
    .wgt-drama-details__value {
        font-size: 0.85rem;
    }
}

@media (max-width: 991px) {
    .wgt-movie-related,
    .wgt-drama-related {
        margin: 35px 0 25px 0;
    }
    
    .wgt-related-post-card {
        flex: 0 0 180px;
    }
    
    .wgt-related-post-card__image {
        height: 220px;
    }
}

/* Hero Trailer Section */
.wgt-movie-hero__trailer,
.wgt-drama-hero__trailer {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.wgt-movie-hero__trailer .youtube-lazy,
.wgt-drama-hero__trailer .youtube-lazy {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    cursor: pointer;
}

.wgt-movie-hero__trailer .youtube-image-lazy,
.wgt-drama-hero__trailer .youtube-image-lazy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wgt-movie-hero__trailer .play-button,
.wgt-drama-hero__trailer .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wgt-movie-hero__trailer .play-button svg,
.wgt-drama-hero__trailer .play-button svg {
    width: 36px;
    height: 36px;
    margin-left: 4px; /* Center the play icon */
}

.wgt-movie-hero__trailer .youtube-lazy:hover .play-button,
.wgt-drama-hero__trailer .youtube-lazy:hover .play-button {
    background: rgba(0,0,0,0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.wgt-movie-hero__trailer iframe,
.wgt-drama-hero__trailer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .wgt-movie-hero__trailer,
    .wgt-drama-hero__trailer {
        margin-bottom: 1.5rem;
    }
    
    .wgt-movie-hero__trailer .play-button,
    .wgt-drama-hero__trailer .play-button {
        width: 60px;
        height: 60px;
    }
    
    .wgt-movie-hero__trailer .play-button svg,
    .wgt-drama-hero__trailer .play-button svg {
        width: 28px;
        height: 28px;
    }
}

.wgt-movie-cast__more,
.wgt-drama-cast__more {
    text-align: center;
    margin-top: 30px;
}

.wgt-button.wgt-button--outline {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    color: #196236;
    border: 2px solid #196236;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wgt-button.wgt-button--outline:hover {
    background-color: #196236;
    color: white;
} 

/* Episode Item Styles */
.wgt-drama-episodes .episode-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #196236;
}

.wgt-drama-episodes .episode-title {
    font-size: 18px;
    font-weight: 600;
    color: #196236;
    margin: 0 0 8px 0;
}

.wgt-drama-episodes .episode-date {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
}

.wgt-drama-episodes .episode-date strong {
    color: #333;
}

.wgt-drama-episodes .episode-storyline {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Responsive episode styles */
@media (max-width: 768px) {
    .wgt-drama-episodes .episode-item {
        margin-bottom: 15px;
        padding: 12px;
    }
    
    .wgt-drama-episodes .episode-title {
        font-size: 16px;
    }
    
    .wgt-drama-episodes .episode-date,
    .wgt-drama-episodes .episode-storyline {
        font-size: 14px;
    }
} 

/* Modern Episodes Preview Section */
.wgt-episodes-preview {
    margin: 2.5rem 0;
    padding: 0 0.5rem;
}



.wgt-episodes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 100%;
}

.wgt-episode-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    display: block;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.wgt-episode-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.wgt-episode-content {
    width: 100%;
}

.wgt-episode-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.wgt-episode-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.wgt-episode-badge--upcoming {
    background: #065f46;
    color: #ffffff;
}

.wgt-episode-badge--current {
    background: #b45309;
    color: #ffffff;
}

.wgt-episode-badge--previous {
    background: #1f2937;
    color: #ffffff;
}

.wgt-episode-badge--last-episode {
    background: #991b1b;
    color: #ffffff;
}

.wgt-episode-meta {
    margin-bottom: 0.75rem;
}

.wgt-episode-date {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.wgt-episode-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    flex: 1;
}

.wgt-episode-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design */


@media (max-width: 768px) {
    .wgt-episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .wgt-episode-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .wgt-episode-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .wgt-episode-card {
        padding: 0.75rem;
    }
    
    .wgt-episode-header {
        gap: 0.25rem;
    }
    
    .wgt-episode-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .wgt-episode-badge {
        font-size: 0.55rem;
        padding: 3px 6px;
    }
    
    .wgt-episode-badge--last-episode {
        background: #991b1b;
        color: #ffffff;
    }
}

/* Integration with existing drama sections */
.wgt-drama-episodes.wgt-episodes-preview {
    border-bottom: none;
    padding-bottom: 0;
}

 