/* Game Slider with Lightbox */

.custom-game-slider-root {
    width: 100%;
}

/* --- Theater viewport --- */
.cgs-theater-viewport {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    position: relative;
    overflow: hidden;
    border: 2px solid #1a1a24;
}

.theater-slide-frame {
    width: 100%;
    height: 100%;
}

.theater-media-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.row .col .swiper-slide .theater-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0;
}

.theater-media-wrap iframe {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- Fullscreen button --- */
.hud-icon-btn {
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
    position: absolute;
    bottom: 0;
    right: 10px;
    z-index: 1;
}
.hud-icon-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Thumbnail strip (6 per row on desktop) --- */
.cgs-navigation-deck-wrapper {
    position: relative;
    margin-top: 15px;
}

.cgs-thumbnails-strip-track {
    width: 100%;
    overflow: hidden;
}

.thumbnail-card-node {
    width: calc((100% - (5 * 10px)) / 6) !important;
    cursor: pointer;
}

.thumbnail-aspect-limiter {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #1a1a24;
    overflow: hidden;
    border: 1px solid #232331;
}

.row .col .swiper-slide .thumbnail-aspect-limiter img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.25s ease;
    filter: brightness(0.4) grayscale(20%);
    margin-bottom: 0;
}

.thumbnail-video-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.6);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
    z-index: 3;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.4);
}

.thumbnail-focus-tracer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    z-index: 4;
    transition: all 0.25s ease;
    pointer-events: none;
}

/* --- Active / hover state --- */
.thumbnail-card-node:hover .thumbnail-aspect-limiter img,
.thumbnail-card-node.swiper-slide-thumb-active .thumbnail-aspect-limiter img {
    filter: brightness(1.0) grayscale(0%);
}
.thumbnail-card-node.swiper-slide-thumb-active .thumbnail-focus-tracer {
    border-color: #ffffff;
}

/* --- Strip arrows --- */
.cgs-arrow-prev, .cgs-arrow-next {
    color: #77778a !important;
    transition: color 0.2s ease;
}
.cgs-arrow-prev:hover, .cgs-arrow-next:hover {
    color: #ffffff !important;
}

/* --- Fullscreen --- */
.custom-game-slider-root:fullscreen {
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.custom-game-slider-root:fullscreen .cgs-theater-viewport {
    flex: 1;
}

/* --- Responsive --- */
@media only screen and (max-width: 991px) {
    .thumbnail-card-node {
        width: calc((100% - (3 * 10px)) / 4) !important;
    }
}

@media only screen and (max-width: 600px) {
    .cgs-navigation-deck-wrapper { padding: 0; margin-top: 10px; }
    .cgs-arrow-prev, .cgs-arrow-next, .hud-icon-btn { display: none !important; }

    .thumbnail-card-node {
        width: 85px !important;
    }
    .thumbnail-focus-tracer {
        border-width: 2px;
    }
}
