@font-face {
    font-family: "MPLUS";
    src: url("../Fonts/MPLUSRounded1c-ExtraBold.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

:root {
    --bg-color: #212830;
    --text-light: #ffffff;
    --text-muted: #b8bec5;
    --accent-green: #4BCD79;
    --sidebar-bg: #1a1f26;
    --button-bg: #2f363d;
    --button-hover: #243934;
    --button-text: #979a9e;
    --button-hover-text: #41ce5c;
    --button-hover-border: #3bb054;
    --border-color: #3a4654;
    --section-bg: #2a3440;
    --badge-bg: #363d49;
    --game-bg: #1e2730;
    --bg-dark: #1b2838;
    --bg-secondary: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    user-select: none;
    caret-color: transparent;
}

.main-content {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}



#page-wrapper {
    opacity: 1;
    transition: opacity 1.5s ease;
}

#page-wrapper.page-exit-animation {
    opacity: 0;
}


/* Menu Toggle Button */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background: var(--button-bg);
    border: none;
    color: var(--text-light);
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.menu-toggle:hover {
    background: var(--button-hover);
    transform: scale(1.05);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1200;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-family: "MPLUS", sans-serif;
    color: var(--accent-green);
    font-size: 1.5rem;
}

.sidebar-header h3 i {
    margin-right: 10px;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: opacity 0.3s;
}

.close-btn:hover {
    opacity: 0.7;
}

/* Navigation Buttons in Sidebar */
.nav-buttons {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--button-bg);
    color: var(--button-text);
    border: 1px solid transparent;
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.nav-btn i {
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--button-hover);
    color: var(--button-hover-text);
    border: 1px solid var(--button-hover-border);
    transform: translateX(5px);
}

.nav-btn.active {
    background: var(--button-hover);
    color: var(--button-hover-text);
    border: 1px solid var(--button-hover-border);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    padding: 100px 20px 180px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Game Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.game-title {
    font-family: "MPLUS", sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent-green);
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(75, 205, 121, 0.3);
}

.download-btn-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: var(--accent-green);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(75, 205, 121, 0.3);
}

.download-btn-header:hover {
    background: var(--button-hover-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 205, 121, 0.4);
}

.download-btn-header i {
    font-size: 1.2rem;
}

/* Media Carousel */
.media-carousel {
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: var(--game-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    cursor: grab;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.carousel-slide.featured img,
.carousel-slide.featured video {
    object-fit: cover;
}

/* Carousel Navigation */
/* .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(47, 54, 61, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10;
} */

/* .carousel-nav:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    transform: translateY(-50%) scale(1.1);
}

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

.carousel-nav.next {
    right: 20px;
} */

/* Thumbnail Strip */
.thumbnail-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-green) var(--game-bg);
}

.thumbnail-strip::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: var(--game-bg);
    border-radius: 4px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 4px;
}

.thumbnail {
    flex-shrink: 0;
    width: 150px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 1;
    border-color: var(--text-light);
}

.thumbnail.active {
    opacity: 1;
    border-color: transparent; /* hide the border */
    outline: 2px solid var(--accent-green);

}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}

/* Game Info Section */
.game-info {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.info-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.description-box,
.details-box {
    background: var(--game-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.details-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    color: var(--text-light);
    font-size: 1.05rem;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--badge-bg);
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 0 0 #00000027;
}

.tag:hover {
    background: var(--button-hover);
    color: var(--accent-green);
    transform: translateY(-2px);
}

/* Sidebar Card */
.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--game-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.sidebar-card h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.sidebar-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .info-main {
        order: 1;
    }

    .info-sidebar {
        order: 2;
    }
}

@media (max-width: 992px) {
    .main-content {
        padding: 80px 20px 150px;
    }
    
    .carousel-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    

    .main-content {
        padding: 80px 15px 150px;
    }

    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .download-btn-header {
        width: 100%;
        justify-content: center;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
    
    .thumbnail {
        width: 120px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 70px 15px 130px;
    }
    
    .game-title {
        font-size: 1.8rem;
    }
    
    .carousel-container {
        height: 250px;
    }
    
    .description-box,
    .details-box,
    .sidebar-card {
        padding: 20px;
    }
    
    .tag {
        font-size: 0.85rem;
        padding: 5px 12px;
    }
}






/* ================================
   Steam-style layout
================================ */
.steam-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.steam-layout .media-carousel {
    flex: 1.2;
}

.steam-layout .game-info {
    flex: 0.8;
    display: flex;
    flex-direction: column;
}

/* responsive stack */
@media (max-width: 992px) {
    .steam-layout {
        flex-direction: column;
    }

    .steam-layout .media-carousel,
    .steam-layout .game-info {
        width: 100%;
    }
}

/* ================================
   Carousel container
================================ */
.steam-layout .media-carousel .carousel-container {
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 992px) {
    .steam-layout .media-carousel .carousel-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .steam-layout .media-carousel .carousel-container {
        height: 250px;
    }
}



/* ================================
   Thumbnail strip (HORIZONTAL ONLY)
================================ */

/* wrapper around the strip */
.steam-layout .thumbnail-strip-wrapper {
    position: relative; /* container for fade overlay */
}


/* strip itself */
.steam-layout .thumbnail-strip {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    max-width: calc(150px * 5 + 12px * 3);
    overflow-x: auto;
    overflow-y: hidden;
     padding: 10px 0px 6px 5px; /* left 10px, right 10px spacing */
}

/* scrollbar */
.steam-layout .thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}

.steam-layout .thumbnail-strip::-webkit-scrollbar-track {
    background: var(--game-bg);
}

.steam-layout .thumbnail-strip::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 4px;
}

/* thumbnails */
.steam-layout .thumbnail {
    flex: 0 0 150px;
    height: 90px;
}
/* Steam-style fade edge */
.steam-layout .thumbnail-strip-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to left, var(--bg-color) 10%, transparent 100%);
    z-index: 5;
}


/* ================================
   Mobile tweak
================================ */
@media (max-width: 768px) {
    .steam-layout .thumbnail {
        flex: 0 0 120px;
        height: 70px;
    }

    .steam-layout .thumbnail-strip {
        max-width: 100%;
    }
}


/* Desktop-first styles (keep your existing ones) */
.about-image {
    position: relative;
    top: -25px;                  
    left: -25px;                 
    width: calc(100% + 50px);    
    margin-bottom: -5px;         
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .about-image {
        position: relative;
        top: 0;             /* remove negative offset */
        left: 0;            /* remove negative offset */
        width: 100%;        /* make it fit container */
        margin-bottom: 10px;/* small spacing below */
    }

    .about-image img {
        width: 100%;
        height: auto;
        object-fit: contain; /* prevents cropping/stretching */
    }
}





/* modern minimalistic volume control */
.video-volume-control {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 30, 30, 0.6);
    padding: 6px 12px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 20;
    opacity: 0; /* start hidden */
    pointer-events: none; /* prevent hover until visible */
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.video-volume-control.visible {
    opacity: 1;
    pointer-events: auto;
}

.video-volume-control:hover {
    transform: scale(1.05);
}

/* slider track with highlight */
.video-volume-control input[type="range"] {
    width: 120px;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}

/* Chrome/Safari track */
.video-volume-control input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 4px;
    background: linear-gradient(
        to right,
        var(--accent-green) 0%,
        var(--accent-green) var(--volume-percentage, 50%),
        rgba(255,255,255,0.3) var(--volume-percentage, 50%),
        rgba(255,255,255,0.3) 100%
    );
}

/* Chrome/Safari thumb */
.video-volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-green);
    border-radius: 50%;
    border: none;
    margin-top: -4px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-volume-control input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    background: #7fff9e;
}

/* Firefox track & thumb */
.video-volume-control input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.3);
}
.video-volume-control input[type="range"]::-moz-range-progress {
    background: var(--accent-green);
    height: 6px;
    border-radius: 4px;
}
.video-volume-control input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-green);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* icon style */
.video-volume-control i {
    font-size: 18px;
    color: #d4d4d4;
    transition: color 0.2s ease;
}
.video-volume-control:hover i {
    color: var(--accent-green);
}




.play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 20%;
    cursor: pointer;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.play-pause-btn.visible {
    opacity: 1;
}

.play-pause-btn i {
    font-size: 30px;
    color: #fff;
    pointer-events: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.play-pause-btn:hover i {
    color: var(--accent-green);
    transform: scale(1.2);
}

.video-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    pointer-events: none;
}

.spin-icon {
    font-size: 2.5rem;
    color: #4BCD79; /* bright green */
    display: inline-block; /* make transform/animation work */
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




       /* ============================= */
        /* Scrollbar – modern slick */
        /* ============================= */

        /* Required base */
        *::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        /* Track */
        *::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.05);
            border-radius: 10px;
        }

        /* Thumb */
        *::-webkit-scrollbar-thumb {
            background: rgba(75,205,121,0.25);
            border-radius: 10px;
            transition: background 0.3s ease;
        }

        /* Hover glow */
        *::-webkit-scrollbar-thumb:hover {
            background: rgba(75,205,121,0.9);
        }

        * {
            scrollbar-width: thin;
            scrollbar-color: rgba(75,205,121,0.6) rgba(255,255,255,0.05);
        }