:root {
    /* Plyr main accent (orange) */
    --plyr-color-main: #f97316;
}

.hls-video-grid-wrapper {
    position: relative;
}

.hls-video-grid {
    display: grid;
    gap: 16px;
}

/* Desktop columns */
.hls-cols-d-2 .hls-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hls-cols-d-3 .hls-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hls-cols-d-4 .hls-video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hls-cols-d-5 .hls-video-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Mobile columns */
@media (max-width: 767px) {
    .hls-cols-m-1 .hls-video-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .hls-cols-m-2 .hls-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hls-video-card {
    position: relative;
    cursor: pointer;
}

.hls-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Poster image + placeholder + video preview share same sizing */
.hls-thumb img,
.hls-thumb-placeholder,
.hls-thumb-video-wrapper,
.hls-thumb-video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    background: #111827;
}

.hls-thumb-placeholder {
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Overlay */
.hls-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hls-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 999px;
    border: 2px solid #fff;
    font-size: 44px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
}

.hls-video-card:hover .hls-thumb-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transform: scale(1.02);
}

.hls-card-title {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
}

/* Lightbox */
.hls-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.hls-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.hls-lightbox-inner {
    position: absolute;
    inset: 40px 16px;
    max-width: 1200px;
    margin: 0 auto;
    background: #020617;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 0;
}

@media (max-width: 991px) {
    .hls-lightbox-inner {
        inset: 24px 8px;
        grid-template-columns: minmax(0, 1fr);
        max-width: 100%;
    }
}

.hls-lightbox-video {
    position: relative;
    background: #000;
}

.hls-lightbox-video .plyr--video {
    border-radius: 0;
    height: 100%;
}

.hls-lightbox-content {
    padding: 24px;
    overflow-y: auto;
}

.hls-lightbox-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
    color: #f9fafb;
}

.hls-lightbox-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #e5e7eb;
}

/* Navigation buttons */
.hls-lightbox-close,
.hls-lightbox-prev,
.hls-lightbox-next {
    position: absolute;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    border: none;
    color: #e5e7eb;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hls-lightbox-close {
    top: 12px;
    right: 12px;
    font-size: 20px;
    line-height: 1;
}

.hls-lightbox-prev,
.hls-lightbox-next {
    top: 60%;
    transform: translateY(-50%);
    font-size: 18px;
}

.hls-lightbox-prev {
    left: 12px;
}

.hls-lightbox-next {
    right: 12px;
}

/* Slider */
.hls-lightbox-slider {
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
}

.hls-lightbox-slide {
    display: none;
    width: 100%;
    height: 100%;
	padding: 30px;
}

.hls-lightbox-slide.hls-slide-active {
    display: block;
}
.hls-lightbox-slider h3 {
	margin-bottom: 20px;
}

/* Body lock when lightbox open */
body.hls-lightbox-open {
    overflow: hidden;
}
