/**
 * ONS TV KANAAL - Front-end Styles
 * Gebaseerd op design systeem uit /home/onstvkanaal-design/
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: #050816;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* Header */
.otk-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(5, 8, 22, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.otk-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.w-full {
    width: 100%;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

.justify-end {
    justify-content: flex-end;
}

.flex-1 {
    flex: 1;
}

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

/* Logo */
.otk-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: transparent;
}

.otk-logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
    mix-blend-mode: normal;
}

.otk-logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2));
}

/* Navigation Links */
.otk-nav-link {
    color: #c3c7d5;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: color 0.2s;
    white-space: nowrap;
    padding: 4px 8px;
}

.otk-nav-link:hover,
.otk-nav-link--active {
    color: #ffffff;
}

/* Navigation Submenu - Klassiek horizontaal menu */
.main-nav {
    position: relative;
    z-index: 500;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-item {
    position: relative; /* Nodig voor absolute submenu */
    list-style: none;
}

.nav-item > a {
    display: inline-block;
    padding: 16px 8px;
}

/* Submenu standaard verbergen */
.nav-submenu {
    display: none;
    position: absolute;
    top: 100%; /* Direct onder het hoofditem, geen gat */
    left: 0;
    min-width: 220px;
    background: rgba(5, 8, 22, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Toon submenu bij hover op de hele li, niet op alleen de link */
.nav-item.has-children:hover > .nav-submenu {
    display: block;
}

/* Submenu list items */
.nav-submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Submenu links styling */
.nav-submenu-link {
    display: block;
    padding: 8px 16px;
    color: #c3c7d5;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    text-transform: none; /* Submenu items niet uppercase */
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-submenu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Mobile Menu */
.hidden {
    display: none;
}

/* BASIS: Desktop eerst - Desktop menu zichtbaar, mobile verstopt */
.nav-desktop {
    display: none; /* Standaard verborgen, wordt getoond op desktop */
}

/* Main nav styling */
.main-nav {
    display: block;
}

.nav-mobile-toggle {
    display: none; /* Standaard verborgen, wordt getoond op mobiel */
}

.nav-mobile {
    display: none; /* Standaard verborgen, wordt getoond op mobiel wanneer open */
}

/* Desktop: vanaf 1024px */
@media (min-width: 1024px) {
    .lg\:flex {
        display: flex;
    }
    
    .lg\:hidden {
        display: none;
    }
    
    /* Desktop menu tonen */
    .nav-desktop {
        display: block;
    }
    
    /* Mobile menu button en mobile menu verbergen op desktop */
    .nav-mobile-toggle,
    .nav-mobile {
        display: none !important;
    }
}

/* Mobile: tot en met 1023px breed */
@media (max-width: 1023px) {
    /* Desktop menu verbergen op mobiel */
    .nav-desktop,
    .lg\:flex {
        display: none !important;
    }
    
    /* Mobile menu button tonen op mobiel */
    .nav-mobile-toggle {
        display: inline-flex !important;
        cursor: pointer;
    }
    
    /* Mobile menu is standaard verborgen (via .hidden class) */
    /* Wordt getoond wanneer .hidden class wordt verwijderd door JS */
    .nav-mobile.is-open,
    .nav-mobile:not(.hidden) {
        display: block !important;
    }
}

.p-2 {
    padding: 8px;
}

.text-gray-300 {
    color: #d1d5db;
}

.w-6 {
    width: 24px;
}

.h-6 {
    height: 24px;
}

.border-t {
    border-top: 1px solid;
}

.border-white\/8 {
    border-color: rgba(255, 255, 255, 0.08);
}

.mt-4 {
    margin-top: 16px;
}

.pb-4 {
    padding-bottom: 16px;
}

.pt-4 {
    padding-top: 16px;
}

.block {
    display: block;
}

.py-2 {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Footer */
.otk-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
}

.otk-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: 0.875rem;
    color: #c3c7d5;
}

.otk-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.otk-footer-contact-line {
    margin: 0;
    line-height: 1.5;
}

.otk-footer-center {
    text-align: center;
}

.otk-footer-center p {
    margin: 0;
    line-height: 1.5;
}

.otk-footer-credits {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #8f93a3;
}

.otk-footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.otk-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c3c7d5;
    text-decoration: none;
    transition: all 0.2s ease;
}

.otk-social-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
}

.otk-social-icon svg {
    width: 20px;
    height: 20px;
}

.otk-footer-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.otk-footer-link:hover {
    color: #ffffff;
}

/* Desktop Footer Layout */
@media (min-width: 768px) {
    .otk-footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .otk-footer-contact {
        flex: 0 0 auto;
        min-width: 200px;
    }
    
    .otk-footer-center {
        flex: 1;
        text-align: center;
        padding: 0 24px;
    }
    
    .otk-footer-social {
        flex: 0 0 auto;
        justify-content: flex-end;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Slider Buttons */
.btn-primary {
    border-radius: 999px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    background: linear-gradient(120deg, #ff4b3a, #ff7b3a);
    color: #fff;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 75, 58, 0.4);
}

/* Slider Buttons - Secondary (Zwart) */
.btn-secondary {
    border-radius: 999px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    background: #050816;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #111628;
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    border-radius: 999px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    background: #050816;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #111628;
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Legacy button styles (fallback) */
.btn-primary-old {
    background: linear-gradient(135deg, #ff2f6a, #ff7a3c);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 47, 106, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 47, 106, 0.4);
}

/* Slider */
.page-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    position: relative;
}

.slide {
    position: relative;
    width: 100%;
    min-height: 500px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.slide-content {
    position: relative;
    text-align: center;
    color: #ffffff;
    z-index: 2;
    padding: 40px 20px;
    max-width: 800px;
}

.slide-content h1.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content p.slide-subtitle {
    font-size: 1.375rem;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    opacity: 0.95;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-content .slide-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.slide-content .btn {
    margin-top: 8px;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.2);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Responsive Slider */
@media (max-width: 768px) {
    .slide {
        min-height: 400px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
}

/* Blog Styles */
.blog-list {
    margin-top: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.blog-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(31, 41, 55, 1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(129, 140, 248, 0.5);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 20px;
}

.blog-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.blog-category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-card-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.blog-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: #a5b4fc;
}

.blog-card-excerpt {
    color: #c3c7d5;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: #9ca3af;
}

.blog-card-date {
    color: #9ca3af;
}

.blog-card-type {
    color: #ff2f6a;
}

/* Blog Detail */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #ffffff;
}

.post-date {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.post-content {
    color: #e5e7eb;
    line-height: 1.8;
    font-size: 1rem;
}

.post-content h2,
.post-content h3 {
    color: #ffffff;
    margin-top: 32px;
    margin-bottom: 16px;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* Events Styles */
.events-list {
    margin-top: 40px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.event-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(31, 41, 55, 1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(129, 140, 248, 0.5);
}

.event-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-card-content {
    padding: 20px;
}

.event-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.event-category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.event-card-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.event-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.event-card-title a:hover {
    color: #fb923c;
}

.event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 12px;
}

.event-card-date,
.event-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-card-excerpt {
    color: #c3c7d5;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Videos Styles */
.videos-list {
    margin-top: 40px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.video-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(31, 41, 55, 1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(239, 68, 68, 0.5);
}

.video-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
    position: relative;
}

.video-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-card-image img {
    transform: scale(1.05);
}

.video-card-image::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    pointer-events: none;
}

.video-card-content {
    padding: 20px;
}

.video-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.video-category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.video-card-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.video-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.video-card-title a:hover {
    color: #fca5a5;
}

.video-card-excerpt {
    color: #c3c7d5;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Video Player - Cast Button Styling */
.cast-btn {
    position: absolute;
    bottom: 20px;
    right: 65px; /* Links van fullscreen button (Plyr heeft ~50px breedte) */
    width: 40px;
    height: 40px;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cast-btn:hover {
    background: rgba(66, 133, 244, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.cast-btn svg {
    width: 20px;
    height: 20px;
}

/* Zorg dat Plyr controls niet overlappen met cast button */
#videoPlayerContainer {
    position: relative;
}

/* Responsive: op kleinere schermen cast button kleiner en hoger */
@media (max-width: 768px) {
    .cast-btn {
        bottom: 15px;
        right: 60px;
        width: 36px;
        height: 36px;
    }
    
    .cast-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Extra kleine schermen (mobiel portrait) */
@media (max-width: 480px) {
    .cast-btn {
        bottom: 10px;
        right: 55px;
        width: 32px;
        height: 32px;
    }
    
    .cast-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Video Modal Styling */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.video-modal {
    position: relative;
    max-width: 1100px;
    width: 100%;
    max-height: calc(100vh - 40px); /* Laat altijd een rand zien */
    background: #0f172a;
    border-radius: 24px;
    overflow-y: auto; /* Scroll binnen modal als content te lang is */
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10000;
}

/* Video Player Wrapper - zorgt dat video netjes gecentreerd is */
.video-player-wrapper {
    width: 100%;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Video element styling - belangrijk: max-height beperkt de grootte */
.video-player-wrapper video,
.video-player-wrapper .video-player-element,
.video-player-wrapper iframe {
    display: block;
    max-width: 100% !important;
    max-height: 60vh !important; /* Niet hoger dan 60% van viewport hoogte */
    width: 100%;
    height: auto !important;
    object-fit: contain; /* Hele video zichtbaar, niet afgesneden */
    border-radius: 12px;
}

/* Override max-height wanneer in fullscreen */
.video-player-wrapper:fullscreen video,
.video-player-wrapper:-webkit-full-screen video,
.video-player-wrapper:-moz-full-screen video,
.video-player-wrapper:-ms-fullscreen video,
.video-modal:fullscreen .video-player-wrapper video,
.video-modal:-webkit-full-screen .video-player-wrapper video,
.video-modal:-moz-full-screen .video-player-wrapper video,
.video-modal:-ms-fullscreen .video-player-wrapper video {
    max-height: 100vh !important;
    height: 100vh !important;
}

/* Plyr player aanpassingen voor modal */
.video-player-wrapper .plyr {
    max-height: 60vh;
}

.video-player-wrapper .plyr__video-wrapper {
    max-height: 60vh;
}

.video-player-wrapper .plyr__video {
    max-height: 60vh;
    height: auto !important;
}

/* Responsive: op kleinere schermen video nog iets kleiner */
@media (max-width: 768px) {
    .video-modal {
        max-width: 95%;
        padding: 20px;
        max-height: calc(100vh - 20px);
    }
    
    .video-player-wrapper video,
    .video-player-wrapper .video-player-element,
    .video-player-wrapper iframe,
    .video-player-wrapper .plyr {
        max-height: 50vh !important; /* Op mobiel iets kleiner */
    }
}

@media (max-width: 480px) {
    .video-modal {
        padding: 16px;
        border-radius: 16px;
    }
    
    .video-player-wrapper video,
    .video-player-wrapper .video-player-element,
    .video-player-wrapper iframe,
    .video-player-wrapper .plyr {
        max-height: 45vh !important; /* Op kleine schermen nog kleiner */
    }
}

/* Fullscreen Video Fix - Video vult hele scherm */
video:fullscreen,
video:-webkit-full-screen,
video:-moz-full-screen,
video:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: cover !important;
    background-color: black !important;
}

/* Wrapper en container fix voor fullscreen - ZORGT DAT ALLE CONTAINERS FULLSCREEN GAAN */
.video-player-wrapper:fullscreen,
.video-player-wrapper:-webkit-full-screen,
.video-player-wrapper:-moz-full-screen,
.video-player-wrapper:-ms-fullscreen,
.video-modal:fullscreen,
.video-modal:-webkit-full-screen,
.video-modal:-moz-full-screen,
.video-modal:-ms-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background: black !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.video-player-wrapper:fullscreen video,
.video-player-wrapper:-webkit-full-screen video,
.video-player-wrapper:-moz-full-screen video,
.video-player-wrapper:-ms-fullscreen video,
.video-modal:fullscreen video,
.video-modal:-webkit-full-screen video,
.video-modal:-moz-full-screen video,
.video-modal:-ms-fullscreen video {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: cover !important;
    background-color: black !important;
    border-radius: 0 !important;
}

/* Plyr.js Fullscreen Fix - Zeer specifieke selectors met hoge prioriteit */
.plyr--fullscreen-active,
.plyr--fullscreen-active.plyr {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background-color: black !important;
    z-index: 999999 !important;
}

.plyr--fullscreen-active .plyr__video-wrapper,
.plyr--fullscreen-active.plyr .plyr__video-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background-color: black !important;
}

.plyr--fullscreen-active .plyr__video-wrapper video,
.plyr--fullscreen-active.plyr .plyr__video-wrapper video,
.plyr--fullscreen-active video,
.plyr--fullscreen-active.plyr video {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: cover !important;
    background-color: black !important;
}

.plyr--fullscreen-active .plyr__video,
.plyr--fullscreen-active.plyr .plyr__video {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: cover !important;
}

/* Responsive */
@media (max-width: 768px) {
    .otk-logo-image {
        height: 50px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .blog-grid,
    .events-grid,
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-post h1 {
        font-size: 2rem;
    }
}

@media (min-width: 1280px) {
    .otk-logo-image {
        height: 70px;
    }
    
    .otk-nav-link {
        font-size: 0.75rem;
        letter-spacing: 0.06em;
    }
}

@media (min-width: 1536px) {
    .otk-nav-link {
        font-size: 0.8rem;
        letter-spacing: 0.08em;
    }
}

/* ============================================
   VOLLEDIGE FULLSCREEN PLAYER FIX
   Overschrijft ALLE max-height beperkingen
   ============================================ */

/* Volledige fullscreen player voor /tvkijken - Forceer 100% hoogte */
.video-modal-overlay:fullscreen,
.video-modal-overlay:-webkit-full-screen,
.video-modal-overlay:-moz-full-screen,
.video-modal-overlay:-ms-fullscreen,
#videoOverlay:fullscreen,
#videoOverlay:-webkit-full-screen,
#videoOverlay:-moz-full-screen,
#videoOverlay:-ms-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    z-index: 99999 !important;
}

.video-modal:fullscreen,
.video-modal:-webkit-full-screen,
.video-modal:-moz-full-screen,
.video-modal:-ms-fullscreen,
#videoModal:fullscreen,
#videoModal:-webkit-full-screen,
#videoModal:-moz-full-screen,
#videoModal:-ms-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
}

/* Video element zelf - OVERSCHRIJFT ALLE max-height regels */
.video-modal-overlay:fullscreen video,
.video-modal-overlay:-webkit-full-screen video,
.video-modal-overlay:-moz-full-screen video,
.video-modal-overlay:-ms-fullscreen video,
.video-modal:fullscreen video,
.video-modal:-webkit-full-screen video,
.video-modal:-moz-full-screen video,
.video-modal:-ms-fullscreen video,
#videoOverlay:fullscreen video,
#videoOverlay:-webkit-full-screen video,
#videoOverlay:-moz-full-screen video,
#videoOverlay:-ms-fullscreen video,
#videoModal:fullscreen video,
#videoModal:-webkit-full-screen video,
#videoModal:-moz-full-screen video,
#videoModal:-ms-fullscreen video,
#videoPlayer:fullscreen,
#videoPlayer:-webkit-full-screen,
#videoPlayer:-moz-full-screen,
#videoPlayer:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    border: 0 !important;
    object-fit: cover !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    background: #000 !important;
    border-radius: 0 !important;
}

/* Video wrapper in fullscreen */
.video-player-wrapper:fullscreen,
.video-player-wrapper:-webkit-full-screen,
.video-player-wrapper:-moz-full-screen,
.video-player-wrapper:-ms-fullscreen,
#videoPlayerContainer:fullscreen,
#videoPlayerContainer:-webkit-full-screen,
#videoPlayerContainer:-moz-full-screen,
#videoPlayerContainer:-ms-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    z-index: 99999 !important;
}

.video-player-wrapper:fullscreen video,
.video-player-wrapper:-webkit-full-screen video,
.video-player-wrapper:-moz-full-screen video,
.video-player-wrapper:-ms-fullscreen video,
#videoPlayerContainer:fullscreen video,
#videoPlayerContainer:-webkit-full-screen video,
#videoPlayerContainer:-moz-full-screen video,
#videoPlayerContainer:-ms-fullscreen video {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    border: 0 !important;
    object-fit: cover !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    background: #000 !important;
    border-radius: 0 !important;
}

/* Plyr.js in fullscreen - overschrijf alle beperkingen */
.plyr--fullscreen-active .video-player-wrapper video,
.plyr--fullscreen-active #videoPlayerContainer video,
.plyr--fullscreen-active #videoPlayer,
.plyr--fullscreen-active .plyr__video-wrapper video {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    background: #000 !important;
}

