/* Block Container */
.video-highlights-block {
    position: relative;
}

.video-highlights-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e1e1e;
    padding: 0 20px;
}

/* Loading State */
.video-highlights-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

/* Carousel Container */
.video-highlights-container {
    position: relative;
}

.video-highlights-swiper {
    width: 100%;
}

/* Horizontal Scroll Grid */
.video-highlights-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.video-highlights-grid::-webkit-scrollbar {
    display: none;
}

/* Individual Card */
.video-highlight-card {
    flex: 0 0 332px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 220px;
}

/* Hide league and date elements */
.highlight-league,
.highlight-date {
    display: none;
}

/* Video Wrapper - Full Card */
.highlight-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.highlight-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.highlight-video-wrapper:hover .highlight-thumbnail {
    transform: scale(1.1);
}

/* Overlay Gradient */
.highlight-video-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Title Inside Image */
.highlight-title {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: #fff;
    z-index: 2;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: 0.3s all ease;
}
.highlight-title:hover{
    color: #F1B92E;
}
/* Play Icon */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.2s ease;
}

.play-icon svg {
    width: 47px;
    height: 47px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.highlight-video-wrapper:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: -87px;
    border: 1.5px solid #D5D7DA;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: #fff;
    border-color: #000000;
}

.carousel-nav.prev {
    right: 57px;
}

.carousel-nav.next {
    right: 0;
}

.carousel-nav svg {
    width: 20px;
    height: 20px;
}
.carousel-nav svg path {
    stroke: #717680;
}
.carousel-nav:hover svg path {
    stroke: #000000;
}




.highlight-link {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 10px;
    text-align: center;
    background: rgba(241, 185, 46, 0.95);
    color: #0D1B2A;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    z-index: 2;
    transition: background 0.3s ease;
}

.highlight-link:hover {
    background: #F1B92E;
    color: #0D1B2A;
}

/* No Highlights Message */
.no-highlights {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Editor Preview Styles */
.video-highlights-block-editor {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    background: #fff;
}

.video-highlights-preview h3 {
    margin-top: 0;
    color: #1e1e1e;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.carousel-nav{
		top: -76px;
	}
}
@media (max-width: 768px) {
	.video-highlights-container {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 16px;
    }
	.carousel-nav{
		position: static !important;
		top: unset !important;
	}
	.carousel-nav-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .video-highlight-card {
        flex: 0 0 250px;
        height: 188px;
    }
    
    .video-highlights-title {
        font-size: 24px;
    }
    
    .highlight-title {
        font-size: 14px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    
    .play-icon svg {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .video-highlights-block {
        padding: 16px 0 0;
    }
    
    .video-highlight-card {
        flex: 0 0 220px;
        height: 188px;
    }
    
    .highlight-title {
        font-size: 13px;
    }
    
    .play-icon svg {
        width: 35px;
        height: 35px;
    }
}

/* ───────────────────────────────────────────────
   Video Modal Popup Styles
─────────────────────────────────────────────── */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 92%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 70px rgba(0,0,0,0.7);
}

.video-modal-close {
    position: absolute;
    top: -45px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 12px;
    z-index: 10;
}

.video-modal-body {
    width: 100%;
    height: 100%;
}

@media (max-width: 640px) {
    .video-modal-content {
        width: 96%;
    }
    .video-modal-close {
        top: -36px;
        font-size: 40px;
    }
}