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

/* =========================
   ROOT
========================= */
:root{

    --primary:#00bfff;

    --secondary:#0066ff;

    --dark:#0f1117;

    --dark2:#171b27;

    --dark3:#11131b;

    --text:#ffffff;

    --text-secondary:#b8b8b8;

    --border:rgba(255,255,255,0.08);

    --shadow:
        0 15px 40px rgba(0,0,0,0.45);

}

/* =========================
   BASE
========================= */
html{
    scroll-behavior:smooth;
}

body{

    font-family:
        'Poppins',
        sans-serif;

    background:
        var(--dark);

    color:
        var(--text);

    overflow-x:hidden;

    position:relative;

    line-height:1.6;

    min-height:100vh;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

button,
input{
    font-family:inherit;
}

/* =========================
   SELECTION
========================= */
::selection{

    background:
        var(--primary);

    color:white;
}

/* =========================
   CONTAINER
========================= */
.container{

    width:90%;

    max-width:1300px;

    margin:auto;
}

/* =========================
   HEADER
========================= */
header{

    width:100%;

    background:
        rgba(15,17,23,0.96);

    backdrop-filter:
        blur(12px);

    border-bottom:
        1px solid rgba(255,255,255,0.05);

    position:sticky;

    top:0;

    z-index:999;

    transition:.3s;
}

.nav{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    padding:18px 0;
}

/* =========================
   LOGO
========================= */
.logo{

    font-size:32px;

    font-weight:700;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            var(--primary)
        );

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;

    letter-spacing:1px;

    user-select:none;
}



/* =========================
   HEADER LOGO IMAGE + BORDER
========================= */
.header-logo{

    display:flex;

    align-items:center;

    gap:14px;

    text-decoration:none;

    user-select:none;

    background:none;

    -webkit-text-fill-color:initial;
}

.header-logo-img{

    width:68px;

    height:68px;

    object-fit:contain;

    padding:8px;

    border-radius:18px;

    flex-shrink:0;

    background:#ffffff;

    border:
        3px solid rgba(0,191,255,0.95);

    box-shadow:
        0 0 0 5px rgba(255,255,255,0.14),
        0 0 0 8px rgba(0,191,255,0.14),
        0 0 28px rgba(0,191,255,0.55);

    filter:
        drop-shadow(0 0 12px rgba(0,191,255,0.42));

    transition:.3s ease;
}

.header-logo-text{

    display:inline-block;

    font-size:34px;

    font-weight:700;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            var(--primary)
        );

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;

    letter-spacing:1px;

    line-height:1;

    white-space:nowrap;
}

.header-logo:hover .header-logo-img{

    background:#ffffff;

    border-color:#ffffff;

    box-shadow:
        0 0 0 5px rgba(255,255,255,0.2),
        0 0 0 9px rgba(0,191,255,0.2),
        0 0 34px rgba(0,191,255,0.78);

    transform:
        scale(1.06);
}


/* =========================
   NAVIGATION
========================= */
nav ul{

    display:flex;

    align-items:center;

    gap:30px;

    list-style:none;
}

nav ul li a{

    text-decoration:none;

    color:white;

    font-size:15px;

    font-weight:500;

    position:relative;

    transition:.3s;
}

nav ul li a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-6px;

    width:0%;
    height:2px;

    background:
        var(--primary);

    transition:.3s;
}

nav ul li a:hover{

    color:
        var(--primary);
}

nav ul li a:hover::after{

    width:100%;
}

nav ul li a.active{

    color:
        var(--primary);
}

nav ul li a.active::after{

    width:100%;
}

/* =========================
   SEARCH BOX
========================= */
.search-box{

    position:relative;
}

.search-box input{

    width:260px;

    padding:13px 18px;

    border:1px solid transparent;

    outline:none;

    border-radius:14px;

    background:#1c2230;

    color:white;

    font-size:14px;

    transition:.3s;
}

.search-box input::placeholder{

    color:#999;
}

.search-box input:focus{

    border:
        1px solid var(--primary);

    box-shadow:
        0 0 20px rgba(0,191,255,0.25);
}

/* =========================
   REALTIME CLOCK
========================= */
.realtime-box{

    width:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:18px;

    padding:16px 20px;

    background:
        rgba(17,19,27,0.96);

    border-bottom:
        1px solid rgba(255,255,255,0.05);

    backdrop-filter:
        blur(12px);
}

.clock-item{

    display:flex;

    align-items:center;

    gap:10px;

    background:
        rgba(255,255,255,0.04);

    border:
        1px solid rgba(255,255,255,0.05);

    padding:12px 18px;

    border-radius:14px;

    transition:.3s;
}

.clock-item:hover{

    transform:
        translateY(-3px);

    border:
        1px solid rgba(0,191,255,0.35);

    box-shadow:
        0 0 20px rgba(0,191,255,0.15);
}

.clock-label{

    color:
        var(--primary);

    font-size:14px;

    font-weight:600;
}

#day,
#date,
#time{

    font-size:14px;

    font-weight:500;
}

#time{

    font-weight:700;

    letter-spacing:1px;
}

/* =========================
   HERO
========================= */
.hero{

    min-height:88vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    position:relative;

    overflow:hidden;

    background:
        linear-gradient(
            rgba(0,0,0,0.78),
            rgba(0,0,0,0.78)
        ),
        url('https://images.unsplash.com/photo-1493711662062-fa541adb3fc8?q=80&w=1600&auto=format&fit=crop');

    background-size:cover;

    background-position:center;

    background-attachment:fixed;
}

.overlay{

    position:absolute;

    inset:0;

    background:
        radial-gradient(
            circle at top,
            rgba(0,191,255,0.15),
            transparent 60%
        );
}

.hero-content{

    position:relative;

    z-index:2;

    max-width:900px;

    padding:20px;

    animation:
        fadeUp 1s ease;
}

.hero-content h1{

    font-size:72px;

    line-height:1.2;

    margin-bottom:20px;

    font-weight:700;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            var(--primary)
        );

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;
}

.hero-content p{

    font-size:18px;

    color:#d6d6d6;

    line-height:1.8;

    margin-bottom:35px;
}

/* =========================
   BUTTON
========================= */
.btn{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

    padding:15px 35px;

    border-radius:14px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    color:white;

    font-weight:600;

    border:none;

    cursor:pointer;

    box-shadow:
        0 10px 30px rgba(0,191,255,0.25);

    transition:.3s;
}

.btn:hover{

    transform:
        translateY(-4px);

    opacity:.92;
}

/* =========================
   SECTION TITLE
========================= */
.section-title{

    padding:80px 0 30px;
}

.section-title h2{

    font-size:42px;

    font-weight:700;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            var(--primary)
        );

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;
}


/* =========================
   VISITOR STATS
========================= */


/* =========================
   FILTER
========================= */
.filter-wrapper{

    display:flex;

    flex-wrap:wrap;

    gap:15px;

    margin-bottom:40px;
}

.filter-btn{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    padding:12px 24px;

    border-radius:14px;

    background:
        rgba(255,255,255,0.04);

    border:
        1px solid rgba(255,255,255,0.05);

    color:white;

    font-size:14px;

    font-weight:600;

    transition:.3s;
}

.filter-btn:hover{

    background:
        rgba(0,191,255,0.15);

    border:
        1px solid rgba(0,191,255,0.25);
}

.filter-btn.active{

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    box-shadow:
        0 10px 25px rgba(0,191,255,0.25);
}

/* =========================
   GRID
========================= */
.games-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(290px,1fr));

    gap:30px;

    padding-bottom:80px;
}

/* =========================
   LINK CARD
========================= */
.game-link{

    text-decoration:none;

    color:white;

    display:block;
}

/* =========================
   CARD
========================= */
.game-card{

    background:
        var(--dark2);

    border-radius:24px;

    overflow:hidden;

    border:
        1px solid var(--border);

    position:relative;

    transition:.4s ease;

    backdrop-filter:
        blur(12px);

    height:100%;
}

.game-card::before{

    content:"";

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            135deg,
            rgba(0,191,255,0.14),
            transparent
        );

    opacity:0;

    transition:.4s;

    z-index:1;
}

.game-card:hover::before{

    opacity:1;
}

.game-card:hover{

    transform:
        translateY(-10px);

    box-shadow:
        var(--shadow);
}

/* =========================
   IMAGE
========================= */
.game-image{

    position:relative;

    overflow:hidden;
}

.game-image img{

    width:100%;

    height:230px;

    object-fit:cover;

    transition:.5s;
}

.game-card:hover .game-image img{

    transform:
        scale(1.08);
}

.game-image::after{

    content:"";

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.65),
            transparent
        );

    opacity:0;

    transition:.3s;
}

.game-card:hover .game-image::after{

    opacity:1;
}

/* =========================
   CATEGORY BADGE
========================= */
.category-badge{

    position:absolute;

    top:15px;
    left:15px;

    z-index:2;

    padding:7px 14px;

    border-radius:30px;

    color:white;

    font-size:12px;

    font-weight:600;

    backdrop-filter:
        blur(10px);
}

.category-badge.game{

    background:
        rgba(255,61,0,0.95);
}

.category-badge.software{

    background:
        rgba(0,102,255,0.95);
}

/* =========================
   CONTENT
========================= */
.game-content{

    position:relative;

    z-index:2;

    padding:24px;
}

.genre{

    display:inline-block;

    padding:7px 14px;

    border-radius:30px;

    background:
        rgba(0,191,255,0.15);

    color:
        var(--primary);

    font-size:13px;

    font-weight:500;

    margin-bottom:18px;
}

.game-content h3{

    font-size:24px;

    margin-bottom:14px;

    font-weight:600;

    line-height:1.4;
}

.game-content p{

    font-size:14px;

    color:#b5b5b5;

    line-height:1.8;

    margin-bottom:25px;
}

.game-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    flex-wrap:wrap;
}

.size{

    color:
        var(--primary);

    font-weight:600;
}

.download-btn{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    padding:11px 22px;

    border:none;

    border-radius:12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    color:white;

    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.download-btn:hover{

    transform:
        scale(1.05);
}

.download-btn.disabled{

    background:#444;

    cursor:not-allowed;
}

/* =========================
   DETAIL PAGE
========================= */
.detail-hero{

    padding:70px 0 60px;
}

.detail-grid{

    display:grid;

    grid-template-columns:
        430px 1fr;

    gap:45px;

    align-items:start;
}

.detail-image{

    position:relative;
}

.detail-image img{

    width:100%;

    border-radius:26px;

    object-fit:cover;

    border:
        1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.45);
}

.detail-content{

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.03),
            rgba(255,255,255,0.02)
        );

    border:
        1px solid rgba(255,255,255,0.06);

    border-radius:26px;

    padding:40px;
}

.detail-content h1{

    font-size:46px;

    line-height:1.25;

    margin:
        18px 0 22px;

    font-weight:700;
}

.detail-short{

    color:#cfcfcf;

    line-height:1.9;

    margin-bottom:30px;

    font-size:15px;
}

.detail-meta{

    display:flex;

    flex-wrap:wrap;

    gap:14px;

    margin-bottom:25px;
}

.detail-meta span{

    background:
        rgba(255,255,255,0.05);

    border:
        1px solid rgba(255,255,255,0.06);

    padding:
        12px 18px;

    border-radius:14px;

    font-size:14px;

    color:#ddd;
}

.disabled-btn{

    opacity:.45;

    pointer-events:none;
}

/* =========================
   TABS
========================= */
.detail-tabs-section{

    padding-bottom:90px;
}

.tabs-nav{

    display:flex;

    flex-wrap:wrap;

    gap:15px;

    margin-bottom:35px;
}

.tab-btn{

    border:none;

    outline:none;

    cursor:pointer;

    padding:
        15px 26px;

    border-radius:14px;

    background:
        rgba(255,255,255,0.04);

    color:white;

    font-weight:600;

    transition:.3s;

    border:
        1px solid rgba(255,255,255,0.05);
}

.tab-btn:hover{

    background:
        rgba(0,191,255,0.18);

    border:
        1px solid rgba(0,191,255,0.25);
}

.tab-btn.active{

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    box-shadow:
        0 10px 25px rgba(0,191,255,0.25);
}

.tabs-content{

    background:
        var(--dark2);

    border-radius:26px;

    padding:40px;

    border:
        1px solid rgba(255,255,255,0.05);

    box-shadow:
        var(--shadow);
}

.tab-content{

    display:none;
}

.tab-content.active{

    display:block;
}

.tab-content h2{

    font-size:30px;

    margin-bottom:22px;
}

.detail-box{

    background:
        rgba(255,255,255,0.03);

    border:
        1px solid rgba(255,255,255,0.05);

    border-radius:18px;

    padding:28px;

    line-height:2;

    color:#d2d2d2;
}

/* =========================
   SCREENSHOT
========================= */
.screenshots-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(250px,1fr));

    gap:25px;
}

.screenshots-grid img{

    width:100%;

    border-radius:18px;

    border:
        1px solid rgba(255,255,255,0.06);

    transition:.4s;

    cursor:pointer;
}

.screenshots-grid img:hover{

    transform:
        scale(1.04);

    box-shadow:
        0 15px 35px rgba(0,0,0,0.4);
}

/* =========================
   NEWSLETTER
========================= */
.newsletter{

    padding-bottom:90px;
}

.newsletter-box{

    background:
        linear-gradient(
            135deg,
            rgba(0,191,255,0.12),
            rgba(0,102,255,0.08)
        );

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius:28px;

    padding:50px;

    text-align:center;

    backdrop-filter:blur(10px);
}

.newsletter-box h2{

    font-size:38px;

    margin-bottom:16px;
}

.newsletter-box p{

    color:#cfcfcf;

    max-width:700px;

    margin:auto auto 30px;

    line-height:1.8;
}

.newsletter-box form{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;
}

.newsletter-box input{

    width:380px;

    max-width:100%;

    padding:15px 18px;

    border:none;

    outline:none;

    border-radius:14px;

    background:#1c2230;

    color:white;
}

.newsletter-box button{

    padding:15px 28px;

    border:none;

    border-radius:14px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    color:white;

    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.newsletter-box button:hover{

    transform:translateY(-3px);
}

/* =========================
   EMPTY DATA
========================= */
.empty-data{

    grid-column:1/-1;

    text-align:center;

    padding:60px 20px;

    border-radius:24px;

    background:
        rgba(255,255,255,0.03);

    border:
        1px solid rgba(255,255,255,0.05);

    color:#bdbdbd;

    font-size:18px;
}

/* =========================
   FOOTER
========================= */
footer{

    background:
        var(--dark3);

    padding-top:70px;

    border-top:
        1px solid rgba(255,255,255,0.05);
}

.footer-content{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(240px,1fr));

    gap:40px;

    padding-bottom:50px;
}

.footer-content h3,
.footer-content h4{

    margin-bottom:18px;
}

.footer-content p{

    color:
        var(--text-secondary);

    line-height:1.8;
}

.footer-content ul{

    list-style:none;
}

.footer-content ul li{

    margin-bottom:12px;
}

.footer-content ul li a{

    text-decoration:none;

    color:
        var(--text-secondary);

    transition:.3s;
}

.footer-content ul li a:hover{

    color:
        var(--primary);

    padding-left:5px;
}

.copyright{

    text-align:center;

    padding:22px;

    border-top:
        1px solid rgba(255,255,255,0.05);

    color:#888;

    font-size:14px;
}

/* =========================
   SCROLLBAR
========================= */
::-webkit-scrollbar{

    width:10px;
}

::-webkit-scrollbar-track{

    background:
        var(--dark3);
}

::-webkit-scrollbar-thumb{

    background:
        var(--primary);

    border-radius:10px;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeUp{

    from{

        opacity:0;

        transform:
            translateY(50px);
    }

    to{

        opacity:1;

        transform:
            translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:992px){

    .nav{

        flex-direction:column;
    }

    nav ul{

        flex-wrap:wrap;

        justify-content:center;

        gap:20px;
    }

    .hero-content h1{

        font-size:52px;
    }

    .detail-grid{

        grid-template-columns:1fr;
    }

    .detail-content h1{

        font-size:38px;
    }

}

@media(max-width:768px){

    .hero{

        min-height:auto;

        padding:120px 20px;

        background-attachment:scroll;
    }

    .hero-content h1{

        font-size:40px;
    }

    .hero-content p{

        font-size:16px;
    }

    .section-title h2{

        font-size:32px;
    }

    .newsletter-box{

        padding:35px 25px;
    }

    .newsletter-box h2{

        font-size:30px;
    }

    .search-box{

        width:100%;
    }

    .search-box input{

        width:100%;
    }

    .detail-content{

        padding:28px;
    }

    .tabs-content{

        padding:28px;
    }

    .detail-content h1{

        font-size:30px;
    }

}

@media(max-width:480px){

    .hero-content h1{

        font-size:30px;
    }

    .btn{

        width:100%;
    }

    .download-btn{

        width:100%;
    }

    .game-footer{

        flex-direction:column;

        align-items:flex-start;
    }

    .newsletter-box form{

        flex-direction:column;
    }

    .newsletter-box button{

        width:100%;
    }

    .filter-wrapper{

        flex-direction:column;
    }

    .filter-btn{

        width:100%;
    }

    .tabs-nav{

        flex-direction:column;
    }

    .tab-btn{

        width:100%;
    }

    .detail-meta{

        flex-direction:column;
    }

    .detail-content h1{

        font-size:24px;
    }

}



/* =========================
   HEADER LOGO RESPONSIVE FIX
========================= */
@media(max-width:992px){

    .header-logo{
        gap:12px;
    }

    .header-logo-text{
        font-size:30px;
    }

    .header-logo-img{
        width:58px;
        height:58px;
        padding:7px;
        border-radius:16px;
        background:#ffffff;
    }

}

@media(max-width:480px){

    .header-logo{
        gap:10px;
    }

    .header-logo-text{
        font-size:24px;
    }

    .header-logo-img{
        width:50px;
        height:50px;
        padding:6px;
        border-radius:14px;
        background:#ffffff;
    }

}


/* =========================
   PAGINATION
========================= */
.pagination-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    padding:10px 0 80px;
}

.pagination-btn{
    width:44px;
    height:44px;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    border-radius:12px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.06);
    color:white;
    font-weight:600;
    transition:.3s;
}

.pagination-btn:hover,
.pagination-btn.active{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    box-shadow:0 10px 25px rgba(0,191,255,0.25);
    transform:translateY(-3px);
}

/* =========================
   DETAIL CATEGORY BADGE FIX
========================= */
.detail-content .category-badge{
    position:relative;
    top:auto;
    left:auto;
    display:inline-flex;
    width:max-content;
}

/* =========================
   COMMENT SECTION
========================= */
.comment-section{
    margin-top:0;
    margin-bottom:90px;
    background:var(--dark2);
    border:1px solid rgba(255,255,255,0.05);
    border-radius:26px;
    padding:40px;
    box-shadow:var(--shadow);
}

.comment-section h2{
    font-size:30px;
    margin-bottom:24px;
}

.comment-form{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-bottom:35px;
}

.comment-form input,
.comment-form textarea{
    width:100%;
    background:#1c2230;
    border:1px solid rgba(255,255,255,0.06);
    color:#fff;
    border-radius:14px;
    padding:15px 18px;
    outline:none;
    transition:.3s;
    font-family:inherit;
}

.comment-form textarea{
    min-height:130px;
    resize:vertical;
    line-height:1.7;
}

.comment-form input:focus,
.comment-form textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 20px rgba(0,191,255,0.18);
}

.comment-form button{
    width:max-content;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    border:none;
    padding:14px 24px;
    border-radius:14px;
    cursor:pointer;
    font-weight:600;
    transition:.3s;
    font-family:inherit;
}

.comment-form button:hover{
    transform:translateY(-3px);
    opacity:.92;
}

.comment-list{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.comment-item{
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.06);
    color:#ddd;
    padding:20px;
    border-radius:18px;
    margin-bottom:0;
    box-shadow:none;
}

.comment-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
    font-size:14px;
    margin-bottom:10px;
}

.comment-header strong{
    color:white;
    font-size:15px;
}

.comment-date{
    color:#888;
    font-size:12px;
}

.comment-body{
    font-size:14px;
    line-height:1.8;
    color:#cfcfcf;
}

.no-comment{
    color:#888;
    font-style:italic;
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.05);
    padding:18px;
    border-radius:14px;
}

/* =========================
   TOAST NOTIFICATION
========================= */
.toast{
    position:fixed;
    top:30px;
    right:-400px;
    padding:15px 25px;
    border-radius:12px;
    color:white;
    font-weight:500;
    z-index:99999;
    transition:.4s ease;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}

.toast.success{
    background:#00b894;
}

.toast.error{
    background:#ff4757;
}

.show-toast{
    right:30px;
}

/* =========================
   IMAGE PREVIEW MODAL
========================= */
.image-preview{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.92);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:999999;
    opacity:0;
    visibility:hidden;
    transition:.3s;
}

.image-preview img{
    max-width:90%;
    max-height:90vh;
    border-radius:20px;
    transform:scale(.8);
    transition:.3s;
}

.show-preview{
    opacity:1;
    visibility:visible;
}

.show-preview img{
    transform:scale(1);
}

.close-preview{
    position:absolute;
    top:25px;
    right:35px;
    color:white;
    font-size:42px;
    cursor:pointer;
    z-index:2;
}

/* =========================
   BACK TO TOP
========================= */
.back-to-top{
    position:fixed;
    right:20px;
    bottom:20px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:white;
    font-size:22px;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:999;
}

.back-to-top:hover{
    transform:translateY(-5px);
}

.show-top{
    opacity:1;
    visibility:visible;
}

/* =========================
   SCROLL ANIMATION
========================= */
.hidden{
    opacity:0;
    transform:translateY(40px);
    transition:all .7s ease;
}

.show{
    opacity:1;
    transform:translateY(0);
}

/* =========================
   PARTICLE EFFECT
========================= */
.particle{
    position:fixed;
    top:-10px;
    background:var(--primary);
    border-radius:50%;
    pointer-events:none;
    z-index:0;
    animation:particleMove linear infinite;
}

@keyframes particleMove{
    from{
        transform:translateY(0);
    }

    to{
        transform:translateY(110vh);
    }
}

/* =========================
   MOBILE EXTRA FIX
========================= */
@media(max-width:600px){

    .comment-section{
        padding:28px 20px;
        margin-bottom:70px;
    }

    .comment-section h2{
        font-size:24px;
    }

    .comment-form button{
        width:100%;
    }

    .toast{
        right:-100%;
        max-width:calc(100% - 40px);
    }

    .show-toast{
        right:20px;
    }

    .back-to-top{
        width:44px;
        height:44px;
        font-size:20px;
    }

    .close-preview{
        top:18px;
        right:24px;
        font-size:36px;
    }

}


/* =========================
   SORT, DOWNLOAD & RATING
========================= */
.sort-wrapper{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:-24px;
    margin-bottom:40px;
}

.sort-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 18px;
    border-radius:999px;
    background:#171b27;
    border:1px solid rgba(255,255,255,0.07);
    color:#dbeafe;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    transition:.3s;
}

.sort-btn:hover,
.sort-btn.active{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    transform:translateY(-2px);
}

.game-stats{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:18px;
}

.game-stats span{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:7px 10px;
    border-radius:999px;
    background:rgba(255,255,255,0.06);
    color:#e5e7eb;
    font-size:12px;
    font-weight:600;
}

.rating-section{
    margin-top:0;
    margin-bottom:35px;
    background:var(--dark2);
    border:1px solid rgba(255,255,255,0.05);
    border-radius:26px;
    padding:40px;
    box-shadow:var(--shadow);
}

.rating-section h2{
    font-size:30px;
    margin-bottom:22px;
}

.rating-box{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:25px;
    flex-wrap:wrap;
}

.rating-score strong{
    display:block;
    font-size:42px;
    color:#facc15;
    line-height:1;
    margin-bottom:8px;
}

.rating-score span{
    color:#94a3b8;
    font-size:14px;
}

.rating-form{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
}

.rating-options{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.rating-options label{
    cursor:pointer;
}

.rating-options input{
    display:none;
}

.rating-options span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 14px;
    border-radius:999px;
    background:#1c2230;
    color:#facc15;
    border:1px solid rgba(255,255,255,0.08);
    font-weight:700;
    transition:.3s;
}

.rating-options input:checked + span,
.rating-options span:hover{
    background:#facc15;
    color:#111827;
}

.rating-form .btn{
    border:none;
    cursor:pointer;
}

@media(max-width:768px){
    .sort-wrapper{
        margin-top:-20px;
    }

    .rating-section{
        padding:28px;
    }

    .rating-form{
        align-items:flex-start;
        flex-direction:column;
    }
}


/* =========================
   YOUTUBE VIDEO INSTALL NOTE
========================= */
.youtube-install-video{
    position:relative;
    width:100%;
    max-width:900px;
    aspect-ratio:16 / 9;
    margin:20px 0 10px;
    overflow:hidden;
    border-radius:18px;
    border:1px solid rgba(255,255,255,0.08);
    background:#000;
    box-shadow:0 18px 40px rgba(0,0,0,0.28);
}

.youtube-install-video iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
}

.youtube-install-link{
    display:inline-block;
    margin-bottom:18px;
    color:#38bdf8;
    font-weight:600;
    text-decoration:none;
}

.youtube-install-link:hover{
    text-decoration:underline;
}

/* =========================
   VIDEO YOUTUBE DI ATAS DOWNLOAD
========================= */
.detail-video-before-download{
    margin:10px 0 26px;
}

.detail-video-before-download .youtube-install-video{
    max-width:560px;
    margin:0 0 10px;
}

.detail-video-before-download .youtube-install-link{
    margin-bottom:0;
}

@media(max-width:768px){
    .detail-video-before-download .youtube-install-video{
        max-width:100%;
        border-radius:14px;
    }
}
