/* Gamevers Coming Soon Section */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Barlow:wght@400;600;700&family=Bebas+Neue&display=swap');

/* Force ID-like specificity with class repetition or root scoping */
.coming-soon-container {
    align-items: center;
    background-position: 100% 0;
    background-repeat: no-repeat;
    background-size: contain;
    display: flex;
    justify-content: center;
    padding: 60px;
    will-change: background-position;
    /* Optimization for Parallax */
}

/* Reset Box Sizing for all children */
.coming-soon-container * {
    box-sizing: border-box;
}

/* Bottom Left: Additional Character Art */
.coming-soon-container .character-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 250px;
    height: 250px;
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: contain;
    z-index: 0;
    /* Behind main character and contents */
    pointer-events: none;
}

/* Specific sizing when 1 or 2 games are shown */
.coming-soon-container .listing-items:has(> .item:nth-last-child(-n+2):first-child)~.character-bottom-left,
.coming-soon-container:has(> .games > .listing-items > .item:nth-last-child(-n+2):first-child) .character-bottom-left {
    width: 45em;
    height: 18em;
}

/* Hide when exactly 4 games are shown */
.coming-soon-container .listing-items:has(> .item:nth-child(4):last-child)~.character-bottom-left,
.coming-soon-container:has(> .games > .listing-items > .item:nth-child(4):last-child) .character-bottom-left {
    display: none;
}



/* Left: Character Art */
.coming-soon-container .character {
    width: 380px;
    /* Fallback */
    flex: 0 0 380px;
    /* Exact base width */
    height: 590px;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: cover;
    position: relative;
    margin-left: 45px;
    margin-right: 0;
    flex-shrink: 0;
    z-index: 2;
    will-change: transform;
    /* Optimization for Parallax */
}

/* Character Glow Effect from IG */
.coming-soon-container .character::after {
    display: block;
    position: absolute;
    content: "";
    bottom: 10em;
    left: 9em;
    width: 10em;
    height: 10em;
    z-index: -1;
    background-image: radial-gradient(rgb(0 204 255 / 22%) -20%, transparent 70%);
    pointer-events: none;
}

/* Right: Contents */
.coming-soon-container .games {
    max-width: 790px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Headline styles removed to inherit theme defaults */
.coming-soon-container .headline {
    margin-bottom: 30px;
    width: 100%;
    text-align: right;
}

/* Listing Grid */
.coming-soon-container .listing-items {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    justify-content: flex-end;
}

/* Card Item */
.coming-soon-container .item {
    width: calc(50% - 15px);
    /* Ensure precise 2-column split */
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    position: relative;
    /* Anchor for absolute badge */
    /* Reset margins */
}

/* Cover Image Wrapper (Visual Container) */
.coming-soon-container .card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    /* Standard widescreen ratio */
}

/* NEW: Media Clipper (Handles Radius & Overflow) */
.coming-soon-container .card-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Clip video overflow */
    border-radius: 10px;
    /* Rounded corners here */
    z-index: 0;
}

/* Cover Image */
.coming-soon-container .cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    box-shadow: none;
    background: #000;
}

.coming-soon-container .cover:hover {
    transform: none;
    box-shadow: none;
}

.coming-soon-container .picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
    transition: opacity 0.3s ease-out;
    /* Fade out speed */
    background: #000;
}

/* Immediate Reappear on Hover Out (Default State) */
.coming-soon-container .card-visual:not(.video-playing) .picture {
    transition: opacity 0s !important;
    /* Immediate */
    opacity: 1;
}

/* Video Frame */
.coming-soon-container .gv-video-frame {
    position: absolute;
    width: 270% !important;
    /* Matches gv-sp Zoom Crop */
    height: 270% !important;
    top: -100% !important;
    left: -100% !important;
    z-index: 2;
    /* On top of image */
    pointer-events: none;
    background: #000;
    opacity: 0;
    /* HIDDEN BY DEFAULT (Fixes Black Screen) */
    transition: opacity 0.4s ease-out;
}

.coming-soon-container .gv-video-frame iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Playing State (Applied by JS to card-visual) */
.coming-soon-container .card-visual.video-playing .picture {
    opacity: 0;
}

.coming-soon-container .card-visual.video-playing .gv-video-frame {
    opacity: 1;
    /* Fade in container (with black bg + video) */
}

/* Product Label (New/Hot/etc) */
.coming-soon-container .gv-label {
    position: absolute;
    top: 1em;
    right: 1em;
    color: #fff;
    font-size: 0.67rem;
    padding: 0.3em 1em 0.1em 1em;
    border-radius: 0.3em;
    box-shadow: 0 0.2em 0.9em rgba(0, 0, 0, 0.3);
    z-index: 20;
    pointer-events: none;
    line-height: 1.2;
    letter-spacing: 0.07em;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Specific Label Colors (if needed, usually handled by inline style or generic classes) */
.coming-soon-container .gv-label.hot {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Discount Badge */
.coming-soon-container .discount {
    position: absolute;
    bottom: -0.3em;
    left: -0.2em;
    top: auto;
    background: linear-gradient(135deg, #ff3c4d 0%, #ff9300 100%);
    color: #fff;
    font-family: 'Barlow',
        sans-serif;
    font-weight: 800;
    text-shadow: 0 0.1em 1em rgba(0, 0, 0, 0.5);
    padding: 0.4em 0.8em;
    border-radius: 2em 6em 2em 2em;
    font-size: 1rem;
    line-height: 1;
    box-shadow: 0 0.2em 0.8em rgba(255, 95, 109, 0.4);
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.3s ease,
        transform 0.3s ease;
    /* Transition for hiding */
}

/* HOVER EFFECTS */

/* 1. Grow Image Container */
.coming-soon-container .card-visual:hover .card-media {
    transform: scale(1.05);
    /* Grow a bit */
    z-index: 5;
    /* Pop over */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    /* Add depth */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

/* 2. Hide Discount & Label (ONLY if video exists) */
.coming-soon-container .card-visual.has-video:hover .discount,
.coming-soon-container .card-visual.has-video:hover .gv-label {
    opacity: 0;
    transform: translateY(10px);
    /* Slide down */
}

/* 3. Move Badges to match scale (ONLY if NO video) */
.coming-soon-container .card-visual:not(.has-video):hover .gv-label {
    transform: translate(5px, -5px) scale(1.05);
    /* Move out and grow slightly to match */
}

.coming-soon-container .card-visual:not(.has-video):hover .discount {
    transform: translate(-5px, 5px) scale(1.05);
}

/* Ensure smooth return for card-media */
.coming-soon-container .card-media {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

/* Shine Effect */
.coming-soon-container .discount::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: gv-top-shine 3s infinite;
}

@keyframes gv-top-shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Information Block */
.coming-soon-container .information {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    align-items: center;
}

.coming-soon-container .text {
    flex: 1;
    margin-right: 15px;
    min-width: 0;
    /* Flexbox text-overflow fix */
}

.coming-soon-container .name .title {
    font-family: 'Barlow', sans-serif !important;
    color: #fff !important;
    display: block;
    line-height: 1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coming-soon-container .sub {
    font-family: 'Barlow', sans-serif !important;
    font-size: 13px !important;
    color: #aaa !important;
    display: block;
    line-height: 1;
}

/* Price */
.coming-soon-container .price {
    font-family: 'Barlow', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #fff !important;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1 !important;
}

.coming-soon-container .price del {
    font-size: 12px !important;
    color: #999 !important;
    font-weight: 400 !important;
    text-decoration: line-through;
    opacity: 0.8;
    margin-bottom: 2px;
    display: block;
}

.coming-soon-container .price ins {
    text-decoration: none;
    color: #fff !important;
    background: transparent;
    display: block;
}

/* Responsive Character Scaling (Exact IG Breakpoints) */
@media (max-width: 1675px) {
    .coming-soon-container .character-bottom-left {
        display: none;
    }
}

@media (max-width: 1290px) {
    .coming-soon-container:has(> .games > .listing-items > .item:nth-last-child(-n+2):first-child) .character-bottom-left {
        width: 40em;
        height: 15em;
    }
}

@media (max-width: 1260px) {
    .coming-soon-container .character {
        margin: -10px 0px -10px 20px;
    }
}

@media (max-width: 1100px) {
    .coming-soon-container .character {
        flex: 0 0 336px;
        height: 551px;
    }

    .coming-soon-container .character-bottom-left {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 1000px) {
    .coming-soon-container .character {
        flex: 0 0 287px;
        height: 471px;
    }

    .coming-soon-container .character-bottom-left {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 900px) {
    .coming-soon-container .character {
        flex: 0 0 240px;
        height: 394px;
    }

    .coming-soon-container .character::after {
        bottom: 40px !important;
        height: 240px !important;
        left: -90px !important;
        width: 260px !important;
    }

    .coming-soon-container .character-bottom-left {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 750px) {
    .coming-soon-container .character {
        flex: 0 0 174px;
        height: 284px;
    }

    .coming-soon-container .character-bottom-left {
        display: none;
    }
}

@media (max-width: 600px) {
    .coming-soon-container .character {
        flex: 0 0 134px;
        height: 220px;
    }
}

@media (max-width: 500px) {
    .coming-soon-container .character {
        display: none;
    }

    .coming-soon-container {
        height: auto;
        /* Allow container to shrink if character is gone */
        padding-bottom: 30px;
    }
}

/* Original Responsive Block (Adjusted) */
@media (max-width: 1024px) {
    .coming-soon-container {
        height: auto;
    }

    .coming-soon-container .games {
        width: 100%;
        padding: 20px 0;
    }
}

@media (max-width: 600px) {
    .coming-soon-container .item {
        width: 100%;
    }

    .coming-soon-container {
        padding: 0 20px;
    }
}


/* Countdown Timer - Overlay */
.gv-countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0.8em;
    /* font-family: 'Barlow Condensed', sans-serif; */
    color: #fff;
    font-size: 1.3em;
    /* font-weight: 700; */
    z-index: 15;
    pointer-events: none;
    transition: opacity 0.3s ease, margin-top 0.3s ease;
    background: rgb(0 0 0 / 10%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    /* box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); */
    padding: 0.6em 0.8em;
    border-radius: 0.6em;
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); */
}

.coming-soon-container .card-visual:hover .gv-countdown {
    opacity: 0;
    margin-top: 10px;
    /* Slide down slightly while fading */
}

.gv-cd-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    /* Stack value and label for tall look */
    align-items: center;
    gap: 0;
    line-height: 0.9;
}

.gv-cd-val {
    color: #fff;
    font-family: 'Bebas Neue', cursive;
    /* User Request */
    font-weight: 400;
    /* Bebas only has 400 usually, but it looks bold */
    font-size: 1.5em;
    /* Adjusted for Bebas */
    letter-spacing: 1px;
}

.gv-cd-label {
    font-size: 0.4em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    font-family: 'Barlow', sans-serif;
    /* Normal font for label */
    font-weight: 600;
}