/* style.css */
.tvshows-youtube-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero-section {
    margin-bottom: 40px;
}

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

.hero-section .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.other-episodes {
    margin-top: 40px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.video-item {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
	background-color: #fff;
}

.video-item img {
    width: 100%;
    height: auto;
}

.video-item h4 {
    margin: 10px 0;
}

.video-item p {
    font-size: 0.9em;
    color: #666;
}

.video-item a {
    display: inline-block;
    background-color: #0073aa;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 10px;
}

.video-item a:hover {
    background-color: #005177;
}

/* Modal styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    background: #000;
}

.close-modal {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

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

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

/* Updated video item styles */
.video-item {
    position: relative;
    transition: transform 0.2s ease-in-out;
}

.video-item:hover {
    transform: translateY(-5px);
}

.watch-button {
    display: inline-block;
    background: linear-gradient(135deg,rgb(110,179,88) 0%,rgb(110,179,88) 21%,rgb(196,199,85) 100%);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.watch-button:hover {
    background-color: #005177;
}



.video-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.video-thumbnail-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.video-thumbnail-wrapper:hover img {
    transform: scale(1.05);
}


/* Loading spinner */
.loading-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: linear-gradient(135deg,rgb(110,179,88) 0%,rgb(110,179,88) 21%,rgb(196,199,85) 100%);
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.page-link:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.page-link.active {
    background: linear-gradient(135deg,rgb(110,179,88) 0%,rgb(110,179,88) 21%,rgb(196,199,85) 100%);
    border-color: none;
    color: white;
    cursor: default;
}

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(0, 115, 170, 0.2);
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive styles */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .pagination {
        gap: 4px;
    }

    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* General container styling */
.tvshows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.tvshow-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.tvshow-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Thumbnail styling */
.tvshow-item img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
}

/* Title styling */
.tvshow-item h3 {
    font-size: 1.2em;
    margin: 15px 10px 5px;
    color: #333;
}

/* Excerpt styling */
.tvshow-item p {
    margin: 10px;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5em;
}

/* Read more button styling */
.tvshow-item .read-more {
    display: inline-block;
    margin: 15px 10px 20px;
    padding: 8px 12px;
    background: linear-gradient(135deg,rgb(110,179,88) 0%,rgb(110,179,88) 21%,rgb(196,199,85) 100%);
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.tvshow-item .read-more:hover {
    background: linear-gradient(135deg,rgb(110,179,88) 0%,rgb(110,179,88) 21%,rgb(196,199,85) 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tvshows-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .tvshows-grid {
        grid-template-columns: 1fr;
    }

    .tvshow-item h3 {
        font-size: 1em;
    }
    
    .tvshow-item p {
        font-size: 0.85em;
    }

    .tvshow-item .read-more {
        font-size: 0.85em;
        padding: 6px 10px;
    }
}

.single-tvshow .wp-block-post-meta,
.single-tvshow .wp-block-entry-meta,
.single-tvshow .wp-block-posted-on,
.single-tvshow .wp-block-byline,
.single-tvshow .wp-block-post-author,
.single-tvshow .wp-block-post-date,
.single-tvshow .wp-block-entry-footer,
.single-tvshow .wp-block-post-meta-wrapper,
.single-tvshow .wp-block-author-bio,
.single-tvshow time.wp-block-post-entry-date,
.single-tvshow .wp-block-post-author-name,
.single-tvshow p.has-text-color.has-small-font-size,
.single-tvshow .wp-block-post-featured-image {
    display: none !important;
}