/* Single Video Page Styles */
.single-video-hero-section {
    width: 100%;
    position: relative;
    background: var(--bg-black);
}

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

.single-video-hero-section .single-video-container iframe,
.single-video-hero-section .single-video-container video,
.single-video-hero-section .single-video-container embed,
.single-video-hero-section .single-video-container object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Info Container */
.video-info-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Video Meta Section */
.single-video-meta {
    margin-bottom: 1.5rem;
}

.video-meta-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.single-video-categories {
    margin-right: 1rem;
}

.category-link {
    text-decoration: none;
}

.category-badge {
    background-color: var(--bg-badge);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    color: var(--text-white);
}

.video-date .date-text {
    color: var(--text-muted);
}

.calendar-icon {
    margin-right: 0.25rem;
}

/* Video Title */
.single-video-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.single-video-description {
    font-size: 1.1rem;
    line-height: 1.6;
}

.single-video-description p {
    margin-bottom: 1.25rem;
}

.single-video-description h2,
.single-video-description h3,
.single-video-description h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Responsive adjustments for single video */
@media (max-width: 768px) {
    .single-video-title {
        font-size: 1.75rem;
    }
    
    .single-video-description {
        font-size: 1rem;
    }
    
    .video-meta-wrapper {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .single-video-categories {
        margin-bottom: 0.75rem;
        margin-right: 0 !important;
    }
}

/* Video Navigation Styles */
.video-navigation {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    margin-top: 2rem;
}

.nav-prev,
.nav-next {
    margin-bottom: 1rem;
}

.nav-next {
    text-align: right;
}

.video-navigation h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}

.video-navigation h2 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.video-navigation h2 a:hover {
    color: var(--hover-color);
    text-decoration: none;
}

.nav-icon-left,
.nav-icon-right {
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-icon-left {
    margin-right: 0.5rem;
}

.nav-icon-right {
    margin-left: 0.5rem;
}

.video-navigation h2 a:hover .nav-icon-left,
.video-navigation h2 a:hover .nav-icon-right {
    color: var(--hover-color);
}

/* Responsive adjustments for video navigation */
@media (max-width: 768px) {
    .video-navigation h2 {
        font-size: 1.1rem;
    }
    
    .nav-prev,
    .nav-next {
        text-align: left !important;
        margin-bottom: 1.5rem;
    }
    
    .nav-next:last-child {
        margin-bottom: 0;
    }
}

/* You Might Also Like Section */
.you-might-also-like {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    margin-top: 2rem;
}

.you-might-also-like .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.related-videos-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.related-videos-grid::-webkit-scrollbar {
    display: none;
}

.related-video-item {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
}

.related-video-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.related-video-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.related-video-thumbnail {
    position: relative;
    width: 100%;
    height: 157px;
    background: var(--bg-black);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.related-video-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-video-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.related-video-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-video-link:hover .related-video-title {
    color: var(--hover-color);
}

/* Responsive adjustments for related videos */
@media (max-width: 768px) {
    .you-might-also-like .section-title {
        font-size: 1.5rem;
    }
    
    .related-videos-grid {
        gap: 1rem;
    }
    
    .related-video-item {
        flex: 0 0 240px;
        min-width: 240px;
        max-width: 240px;
    }
    
    .related-video-thumbnail {
        height: 135px;
    }
    
    .related-video-title {
        font-size: 0.9rem;
    }
}