/* Section Styles */
.section-hero {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    position: relative;
}

.section-featured-video {
    background-color: #ffffff;
    position: relative;
}

.section-additional-videos {
    background-color: #f8f9fa;
    position: relative;
}

.section-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 1rem;
}

.separator-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 0 auto;
    max-width: 1200px;
}

/* Professional Video Player Styles */

/* Logo Link */
.logo-link {
    display: block;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0.5rem 0;
}

.language-selector .btn-link {
    color: #1a1a1a;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.language-selector .dropdown-menu {
    min-width: 5rem;
    padding: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.language-selector .dropdown-item {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: #1a1a1a;
}

.language-selector .dropdown-item:hover {
    background-color: #f8f9fa;
}

.header-separator {
    width: 1px;
    height: 1.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0 0.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    color: #666;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #2563eb;
}

/* Main Video Player */
.video-container {
    margin-bottom: .75rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16/9;
}

.video-info {
    padding: 0.75rem 0;
}

.video-title {
    color: #1a1a1a;
    font-weight: 500;
    font-size: 1.125rem;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.video-description {
    color: #4a5568;
    font-size: 0.9375rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    line-height: 1.5;
    margin: 0;
}

/* Thumbnail Video Player */
.video-thumbnail {
    margin-bottom: 1rem;
}

.video-thumb-wrapper {
    position: relative;
    display: block;
    width: 100%;
    background: #000;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.video-thumb-wrapper:hover {
    transform: scale(1.02);
}

.video-thumb-image, .featured-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    background: #f0f0f0;
}

.video-thumb-wrapper:hover .video-thumb-image {
    transform: scale(1.05);
}

/* Featured video preview */
.video-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    cursor: pointer;
    background: #000;
    transition: all 0.3s ease;
    overflow: hidden;
}

.video-preview.hidden {
    opacity: 0;
    pointer-events: none;
}

.featured-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-preview:hover .featured-video-thumb {
    transform: scale(1.05);
}

.preview-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4rem 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    transition: transform 0.3s ease;
}

.preview-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.preview-description {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    max-width: 800px;
}

.preview-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(37, 99, 235, 0.85);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.video-preview:hover .preview-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgb(37, 99, 235);
    opacity: 1;
}

@media (max-width: 768px) {
    .preview-content {
        padding: 3rem 1.5rem 1rem;
    }

    .preview-title {
        font-size: 1.25rem;
    }

    .preview-description {
        font-size: 0.9rem;
    }

    .preview-play-button {
        width: 60px;
        height: 60px;
    }

    .preview-play-button svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .preview-content {
        padding: 2rem 1rem 0.75rem;
    }

    .preview-title {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .preview-description {
        font-size: 0.875rem;
    }
}

/* Thumbnail loading states */
.thumbnail-loading {
    animation: thumbnail-pulse 1.5s ease-in-out infinite;
}

.thumbnail-loaded {
    animation: none;
}

@keyframes thumbnail-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

.video-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.video-thumb-wrapper:hover .video-thumb-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-icon {
    color: #fff;
    opacity: 0.9;
    transform: scale(1);
    transition: all 0.2s ease;
}

.video-thumb-wrapper:hover .play-icon {
    opacity: 1;
    transform: scale(1.1);
}

.video-thumb-info {
    padding: 0.5rem 0;
}

.video-thumb-title {
    color: #1a1a1a;
    font-weight: 400;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

/* Featured Video Section */
.featured-video {
    max-width: 1000px;
    margin: 0 auto 2rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Section Headers */
.video-section-title {
    color: #1a1a1a;
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Plyr Custom Styles */
.plyr {
    --plyr-color-main: #2563eb;
    font-family: inherit;
}

.plyr--video {
    aspect-ratio: 16/9;
}

/* Subtle player controls */
.plyr--video .plyr__control--overlaid {
    background: rgba(37, 99, 235, 0.85);
    padding: 1.25em;
    transition: all 0.2s ease;
    transform: translate(-50%, -50%);
}

.plyr--video .plyr__control--overlaid:hover {
    background: rgb(37, 99, 235);
    transform: translate(-50%, -50%) scale(1.1);
}

.plyr--full-ui input[type=range] {
    color: #2563eb;
}

.plyr__menu__container {
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .video-section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .header-separator {
        display: none;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }
    
    .featured-video {
        margin-bottom: 2.5rem;
    }
    
    .video-title {
        font-size: 1rem;
    }
    
    .video-thumb-title {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .featured-video {
        margin-bottom: 2rem;
    }
}