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

@font-face { font-family: "Montserrat-Regular";  src: url("Montserrat-Regular.ttf"); }
@font-face { font-family: "Montserrat-Bold";     src: url("Montserrat-Bold.otf"); }
@font-face { font-family: "Montserrat-SemiBold"; src: url("Montserrat-SemiBold.otf"); }

:root {
    /* Base surfaces (light) */
    --bg:           #f1f4fb;
    --bg-2:         #ffffff;
    --surface:      #ffffff;
    --surface-2:    #f5f8fd;
    --surface-3:    #eaf0f9;
    --surface-hi:   rgba(0, 184, 212, 0.06);

    /* Borders */
    --border:       rgba(0, 184, 212, 0.30);
    --border-2:     rgba(15, 23, 42, 0.10);
    --border-3:     rgba(15, 23, 42, 0.06);
    --border-neon:  rgba(0, 184, 212, 0.55);

    /* Text */
    --text:         #0d1424;
    --text-2:       #475168;
    --text-3:       #6b7592;
    --text-4:       #94a0bb;

    /* Accents (slightly deeper for contrast on white) */
    --accent:       #00b8d4;        /* electric cyan-teal — primary */
    --accent-2:     #84c100;        /* lime — secondary */
    --accent-3:     #e91e7c;        /* magenta — tertiary */
    --gold:         #f59e0b;        /* rating yellow */
    --red:          #e11d48;
    --green:        #16a34a;

    /* Gradients */
    --grad-1:       linear-gradient(135deg, #00b8d4 0%, #e91e7c 100%);
    --grad-2:       linear-gradient(135deg, #84c100 0%, #00b8d4 100%);
    --grad-3:       linear-gradient(135deg, #f59e0b 0%, #e91e7c 100%);
    --grad-card:    linear-gradient(160deg, rgba(0, 184, 212, 0.92) 0%, rgba(233, 30, 124, 0.92) 100%);
    --grad-surface: linear-gradient(160deg, #ffffff 0%, #f5f8fd 60%, #eaf0f9 100%);

    /* Shadows / glows */
    --shadow-sm:    0 1px 2px rgba(13, 20, 36, 0.06);
    --shadow-md:    0 10px 30px rgba(13, 20, 36, 0.08), 0 2px 8px rgba(13, 20, 36, 0.05);
    --shadow-lg:    0 16px 44px rgba(0, 184, 212, 0.22), 0 6px 16px rgba(13, 20, 36, 0.10);
    --glow-cyan:    0 0 0 1px rgba(0, 184, 212, 0.35), 0 12px 36px rgba(0, 184, 212, 0.22);
    --glow-pink:    0 0 0 1px rgba(233, 30, 124, 0.35), 0 12px 36px rgba(233, 30, 124, 0.22);

    /* Radii */
    --radius-sm:    8px;
    --radius:       14px;
    --radius-lg:    22px;
    --radius-xl:    28px;
    --radius-card:  18px 6px 18px 6px;  /* asymmetric arcade-card shape */
}

html, body {
    width: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    font-family: Montserrat-SemiBold, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    color: var(--text);
}

body {
    position: relative;
    min-height: 100vh;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(70% 50% at 12% -6%,  rgba(0, 184, 212, 0.14),  transparent 60%),
        radial-gradient(60% 45% at 100% 5%,  rgba(233, 30, 124, 0.12), transparent 60%),
        radial-gradient(50% 40% at 50% 100%, rgba(132, 193, 0, 0.08),  transparent 60%),
        linear-gradient(180deg, #f1f4fb 0%, #ffffff 100%);
    background-attachment: fixed;
}

body.act { overflow: hidden; }

a { text-decoration: none; background: transparent; color: inherit; -webkit-tap-highlight-color: rgba(0,0,0,0); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { text-transform: capitalize; font-family: Montserrat-Bold; color: var(--text); }
button { border: 0; outline: 0; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: rgba(0,0,0,0); }
img { border: 0; display: block; max-width: 100%; }
input, textarea { font-size: 14px; outline: none; font-family: inherit; color: var(--text); }
input[type=submit] { appearance: none;-webkit-appearance: none; }
div, i { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }

::selection { background: var(--accent); color: #ffffff; }

::-webkit-scrollbar          { width: 10px; height: 10px; }
::-webkit-scrollbar-track    { background: #e6ebf4; }
::-webkit-scrollbar-thumb    { background: linear-gradient(180deg, var(--accent), var(--accent-3)); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Hide scrollbars on mobile (side + bottom) + kill horizontal overflow.
   overflow-x: clip stops sideways scroll WITHOUT breaking position: sticky. */
@media (max-width: 767px) {
    html, body { scrollbar-width: none; -ms-overflow-style: none; max-width: 100%; overflow-x: clip; }
    ::-webkit-scrollbar { width: 0; height: 0; display: none; }
}

.container {
    max-width: 1240px;
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   Ad blocks
   ========================================================= */
.ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.ad > p {
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: Montserrat-Regular;
    position: relative;
    padding: 0 14px;
}
.ad > p::before, .ad > p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18px;
    height: 1px;
    background: var(--border-2);
}
.ad > p::before { right: 100%; }
.ad > p::after  { left: 100%; }
/* Only style real GPT ad divs (id="div-gpt-*"). The Quizvana placeholder box
   (<div class="p-4">) is left UNstyled — no white box, no fixed size, no clip —
   exactly like the reference, so the banner renders at its natural size. */
.ad > div[id^="div-gpt-"] {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Mobile: cap ad slot/iframe WIDTH to the viewport so a wide creative can't
   cause a horizontal scrollbar. Width only — height is never clipped. */
@media (max-width: 767px) {
    .ad,
    [id^="div-gpt-ad"],
    [id*="google_ads_iframe"] { max-width: 100% !important; overflow: hidden !important; }
    .ad iframe,
    [id*="google_ads_iframe"] iframe { max-width: 100% !important; }
}

/* =========================================================
   Layui rate (stars) — preserve icon font glyphs
   ========================================================= */
.layui-rate { padding: 0; margin-bottom: 4px; }
.layui-icon-rate         { color: rgba(15, 23, 42, 0.18) !important; }
.layui-icon-rate-solid   { color: var(--gold) !important; }
.layui-icon-rate-solid:before, .layui-icon-rate:before {
    content: "\E7CF" !important;
    font-family: "iconfont" !important;
}

/* =========================================================
   Header — sticky bright glass bar
   ========================================================= */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border-2);
    box-shadow: 0 6px 24px rgba(13, 20, 36, 0.06);
}
header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-3) 70%, transparent);
    opacity: 0.75;
    pointer-events: none;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    gap: 18px;
}
header .container .headL {
    display: flex;
    align-items: center;
}
header .container .headL .logo {
    width: 160px;
    height: 46px;
    display: block;
    flex-shrink: 0;
    position: relative;
}
header .container .headL .logo > img {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(0, 184, 212, 0.35)) drop-shadow(0 0 22px rgba(233, 30, 124, 0.18));
}
header .container .headL > nav {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 36px;
    gap: 4px;
}
header .container .headL > nav > a {
    transition: all 0.25s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 12px 4px 12px 4px;
    color: var(--text-2);
    font-family: Montserrat-Bold;
    font-size: 12.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid transparent;
}
header .container .headL > nav > a .iconfont {
    font-size: 16px;
    color: inherit;
}
header .container .headL > nav > a + a { margin-left: 2px; }
@media (min-width: 1181px) {
    header .container .headL > nav > a:not(.active):hover {
        color: var(--accent) !important;
        background: rgba(0, 184, 212, 0.08);
        border-color: var(--border);
    }
    header .container .headL > nav > a:not(.active):hover .iconfont { color: var(--accent); }
}
header .container .headL > nav > a.active {
    color: #ffffff !important;
    background: var(--grad-1);
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(0, 184, 212, 0.30), 0 8px 22px rgba(0, 184, 212, 0.32);
}
header .container .headL > nav > a.active .iconfont { color: #ffffff; }

header .container .cate {
    display: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px 4px 12px 4px;
    background: rgba(0, 184, 212, 0.10);
    border: 1px solid var(--border);
    color: var(--accent);
}
header .container .cate .iconfont { font-size: 20px; color: var(--accent); }

header .container .searchBtn {
    position: relative;
    width: 340px;
    height: 42px;
    transition: all 0.3s ease;
}
header .container .searchBtn > input {
    width: 100%;
    height: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 12px 4px 12px 4px;
    color: var(--text);
    font-size: 13px;
    padding: 0 54px 0 16px;
    font-family: Montserrat-Regular;
    transition: 0.25s;
    -webkit-text-fill-color: var(--text);
}
header .container .searchBtn > input::placeholder { color: var(--text-3); }
header .container .searchBtn > input:focus {
    border-color: var(--accent);
    background: rgba(0, 184, 212, 0.06);
    box-shadow: 0 0 0 4px rgba(0, 184, 212, 0.14);
}
header .container .searchBtn > button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 38px;
    height: 34px;
    background: var(--grad-1);
    border-radius: 10px 2px 10px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
header .container .searchBtn > button .iconfont { font-size: 16px; color: #ffffff; }
header .container .searchBtn > button:hover { transform: scale(1.05); box-shadow: 0 6px 18px rgba(0, 184, 212, 0.40); }

header .container .searchBtn::before {
    display: none;
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    top: 70px;
    left: 0;
    background: rgba(13, 20, 36, 0.55);
}
header .container .searchBtn.act > input  { border-color: var(--accent); }
header .container .searchBtn.act > button { background: var(--accent-3); }
header .container .searchBtn.active {
    display: flex;
    width: 100%;
    z-index: 999;
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    top: 70px;
    left: 0;
    height: 75px;
    padding: 17px 16px;
    box-shadow: 0 8px 24px rgba(13, 20, 36, 0.10);
    border-bottom: 1px solid var(--border);
}
header .container .searchBtn.active > input  { border: 1px solid var(--accent); }
header .container .searchBtn.active > button { right: 17px; top: 19px; }
header .container .searchBtn.active::before  { display: block; }

@media (max-width: 1024px) {
    header .container { height: 62px; }
    header .container .headL .logo { width: 140px; height: 40px; }
    header .container .headL > nav { display: none; }
    header .container .searchBtn { display: none; }
    header .container .cate { display: flex; }
}

header.act .container > nav { display: none; }
header.act .container .searchBtn { width: calc(100% - 200px); }

/* =========================================================
   Main wrapper + section titles
   ========================================================= */
.main { min-height: 800px; padding-top: 18px; padding-bottom: 32px; }
.main .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 14px;
    border-bottom: 1px solid var(--border-2);
    position: relative;
}
.main .title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 110px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.main .title > h2 {
    font-size: 20px;
    position: relative;
    padding-left: 20px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.main .title > h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 22px;
    background: var(--grad-1);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 184, 212, 0.55);
}
.main .title > a {
    color: var(--text-3);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 8px 2px 8px 2px;
    border: 1px solid var(--border-2);
    transition: 0.25s;
}
@media (min-width: 1181px) {
    .main .title > a:hover {
        color: var(--accent);
        border-color: var(--accent);
        background: rgba(0, 184, 212, 0.08);
    }
}

/* =========================================================
   Game grid (home + new/hot/list/kids)
   ========================================================= */
.main .gameBox { margin-top: 8px; }
.main .gameBox > h2 {
    font-size: 22px;
    padding: 22px 0 16px 20px;
    color: var(--text);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.main .gameBox > h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 4px;
    width: 6px;
    height: 26px;
    background: var(--grad-1);
    border-radius: 3px;
    box-shadow: 0 0 14px rgba(0, 184, 212, 0.55);
}
.main .gameBox .gameList {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
    margin-top: 14px;
}
.main .gameBox .gameList > li { margin: 0; width: auto; }
.main .gameBox .gameList > li > a {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--surface);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-sm), 0 6px 18px rgba(13, 20, 36, 0.06);
    transition: all 0.3s ease;
}
.main .gameBox .gameList > li > a .thumb {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}
.main .gameBox .gameList > li > a .thumb > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease, filter 0.4s ease;
    filter: saturate(1.05);
}
.main .gameBox .gameList > li > a > dl {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(180deg, transparent 45%, rgba(13, 20, 36, 0.88) 100%);
    border-radius: inherit;
    opacity: 1;
    transition: background 0.3s ease;
}
.main .gameBox .gameList > li > a > dl > dt {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    color: #fff;
    font-size: 12px;
    text-align: left;
    line-height: 1.3;
    font-family: Montserrat-Bold;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.3px;
}
.main .gameBox .gameList > li > a > dl > dd {
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--grad-1);
    box-shadow: 0 6px 14px rgba(0, 184, 212, 0.40);
    border-radius: 10px 2px 10px 2px;
    transition: transform 0.3s ease;
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
}
.main .gameBox .gameList > li > a > dl > dd .iconfont {
    font-size: 14px;
    color: #ffffff;
}
@media (min-width: 1181px) {
    .main .gameBox .gameList > li > a:hover {
        transform: translateY(-4px);
        border-color: var(--accent);
        box-shadow: var(--shadow-lg);
    }
    .main .gameBox .gameList > li > a:hover .thumb > img { transform: scale(1.1); filter: saturate(1.2); }
    .main .gameBox .gameList > li > a:hover > dl > dd { opacity: 1; transform: rotate(-6deg) scale(1.05); }
}
@media (max-width: 1180px) {
    .main .gameBox .gameList { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 767px) {
    .main .gameBox .gameList { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .main .gameBox .gameList > li > a > dl > dt { font-size: 11px; }
}

/* =========================================================
   Category cards — vertical (image-top, info-bottom)
   ========================================================= */
.main .cateList { margin-top: 12px; }
.main .cateList .categorieslist {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 22px;
}
.main .cateList .categorieslist > li { margin: 0; width: auto; }
.main .cateList .categorieslist > li > a {
    border-radius: var(--radius-card);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid var(--border-2);
    background: var(--surface);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.main .cateList .categorieslist > li > a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0, 184, 212, 0.10), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}
.main .cateList .categorieslist > li > a > * { position: relative; z-index: 1; }
.main .cateList .categorieslist > li > a .thumb {
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-2);
}
.main .cateList .categorieslist > li > a .thumb > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: saturate(1.05);
}
.main .cateList .categorieslist > li > a > dl {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--surface);
}
.main .cateList .categorieslist > li > a > dl > dt {
    font-size: 13px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-family: Montserrat-Bold;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    flex: 1;
    transition: 0.25s;
}
.main .cateList .categorieslist > li > a > dl > dd {
    width: 30px;
    height: 30px;
    background: var(--grad-1);
    border-radius: 10px 2px 10px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 184, 212, 0.32);
    transition: transform 0.3s;
}
.main .cateList .categorieslist > li > a > dl > dd .iconfont {
    font-size: 13px;
    color: #ffffff;
}
@media (min-width: 1181px) {
    .main .cateList .categorieslist > li > a:hover {
        transform: translateY(-4px);
        border-color: var(--accent);
        box-shadow: var(--shadow-lg);
    }
    .main .cateList .categorieslist > li > a:hover::before { opacity: 1; }
    .main .cateList .categorieslist > li > a:hover .thumb > img { transform: scale(1.08); filter: saturate(1.25); }
    .main .cateList .categorieslist > li > a:hover > dl > dt { color: var(--accent); }
    .main .cateList .categorieslist > li > a:hover > dl > dd { transform: rotate(-8deg) scale(1.08); box-shadow: 0 8px 22px rgba(0, 184, 212, 0.45); }
}
@media (max-width: 1180px) {
    .main .cateList .categorieslist { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
    .main .cateList .categorieslist { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 380px) {
    .main .cateList .categorieslist { grid-template-columns: 1fr; }
}

/* =========================================================
   Content panel + content lists (some pages)
   ========================================================= */
.main .conBox {
    margin-top: 22px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-md);
    position: relative;
}
.main .conBox::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    width: 64px;
    height: 2px;
    background: var(--grad-1);
    box-shadow: 0 0 14px rgba(0, 184, 212, 0.55);
}
.main .conBox > h2 {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-2);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.main .conBox .contList {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 18px;
    margin-top: 22px;
}
.main .conBox .contList > li { margin: 0; width: auto; }
.main .conBox .contList > li > a { display: block; }
.main .conBox .contList > li > a .thumb {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-2);
    background: var(--surface-2);
}
.main .conBox .contList > li > a .thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
    transition: transform 0.45s;
}
.main .conBox .contList > li > a > dl { margin-top: 10px; }
.main .conBox .contList > li > a > dl > dt {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    color: var(--text);
    font-size: 13px;
}
.main .conBox .contList > li > a > dl > dd {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-3);
}
.main .conBox .contList > li > a > dl > dd .iconfont { font-size: 12px; color: var(--gold); }
@media (min-width: 1181px) {
    .main .conBox .contList > li > a:hover > dl > dt { color: var(--accent); }
    .main .conBox .contList > li > a:hover .thumb { border-color: var(--accent); }
    .main .conBox .contList > li > a:hover .thumb > img { transform: scale(1.07); }
}
@media (max-width: 1180px) { .main .conBox .contList { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 767px)  { .main .conBox .contList { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

/* =========================================================
   Search results panel (in-page)
   ========================================================= */
.main .searmain {
    margin-top: 22px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    position: relative;
}
.main .searmain::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    width: 64px;
    height: 2px;
    background: var(--grad-1);
    box-shadow: 0 0 14px rgba(0, 184, 212, 0.55);
}
.main .searmain .searchResult {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
    margin-top: 14px;
}
.main .searmain .searchResult > li { margin: 0; width: auto; }
.main .searmain .searchResult > li > a {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-2);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: 0.25s;
}
.main .searmain .searchResult > li > a .thumb {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}
.main .searmain .searchResult > li > a .thumb > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s;
}
.main .searmain .searchResult > li > a > p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(0);
    transition: transform 0.3s ease, background 0.3s ease;
    padding: 8px 10px;
    background: linear-gradient(180deg, transparent, rgba(13, 20, 36, 0.92));
    text-align: center;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    font-family: Montserrat-Bold;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
@media (min-width: 1181px) {
    .main .searmain .searchResult > li > a:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
    .main .searmain .searchResult > li > a:hover .thumb > img { transform: scale(1.06); }
}
@media (max-width: 1180px) { .main .searmain .searchResult { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 767px)  { .main .searmain .searchResult { grid-template-columns: repeat(3, 1fr); } }

.main .searmain .searchBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 800px;
    max-width: 100%;
    height: 54px;
    position: relative;
}
.main .searmain .searchBtn > input {
    border: 1px solid var(--border-2);
    border-radius: 14px 4px 14px 4px;
    width: 100%;
    height: 54px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 13px;
    padding: 0 120px 0 18px;
    font-family: Montserrat-Regular;
    transition: 0.25s;
}
.main .searmain .searchBtn > input::placeholder { color: var(--text-3); }
.main .searmain .searchBtn > input:focus {
    border-color: var(--accent);
    background: rgba(0, 184, 212, 0.06);
    box-shadow: 0 0 0 4px rgba(0, 184, 212, 0.14);
}
.main .searmain .searchBtn > button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 100px;
    height: 44px;
    background: var(--grad-1);
    border-radius: 12px 2px 12px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.main .searmain .searchBtn > button .iconfont { font-size: 18px; color: #ffffff; }
.main .searmain .searchBtn > button:hover { box-shadow: 0 6px 22px rgba(0, 184, 212, 0.45); }

.main .searmain .nosearch {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main .searmain .nosearch > img {
    width: 200px;
    height: 200px;
    opacity: 0.85;
    filter: drop-shadow(0 8px 24px rgba(0, 184, 212, 0.22));
}
.main .searmain .nosearch > h3 {
    margin: 30px 0;
    color: var(--text-2);
    font-size: 18px;
}

/* =========================================================
   Similar games panel
   ========================================================= */
.main .similar {
    margin-top: 22px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    position: relative;
}
.main .similar > h2 {
    font-size: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-2);
    position: relative;
    padding-left: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.main .similar > h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 6px;
    height: 20px;
    background: var(--grad-1);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 184, 212, 0.55);
}
.main .similar .gameList {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
}
.main .similar .gameList > li { margin: 0; width: auto; }
.main .similar .gameList > li > a {
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border-3);
    border-radius: 14px 4px 14px 4px;
    overflow: hidden;
    transition: 0.25s;
}
.main .similar .gameList > li > a .thumb {
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.main .similar .gameList > li > a .thumb::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 1px;
    background: var(--border-2);
}
.main .similar .gameList > li > a .thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.main .similar .gameList > li > a > dl {
    flex: 1;
    padding: 8px 14px;
    min-width: 0;
}
.main .similar .gameList > li > a > dl > dt {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text);
    font-size: 13px;
}
.main .similar .gameList > li > a > dl > dd {
    color: var(--text-3);
    font-size: 12px;
    margin-top: 4px;
    font-family: Montserrat-Regular;
}
.main .similar .gameList > li > a > dl > dd .iconfont { font-size: 12px; color: var(--gold); }
@media (min-width: 1181px) {
    .main .similar .gameList > li > a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 184, 212, 0.20); }
    .main .similar .gameList > li > a:hover > dl > dt { color: var(--accent); }
}
@media (max-width: 1024px) {
    .main .similar .gameList { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .main .similar .gameList { grid-template-columns: 1fr; }
}

/* =========================================================
   Game detail — top info card
   ========================================================= */
.main .gameInfo {
    display: flex;
    justify-content: space-between;
    background: var(--grad-surface);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    margin-top: 78px;
    padding: 26px;
    gap: 24px;
    position: relative;
}
.main .gameInfo::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 184, 212, 0.20), transparent 60%);
    pointer-events: none;
    filter: blur(20px);
}
.main .gameInfo::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(233, 30, 124, 0.16), transparent 60%);
    pointer-events: none;
    filter: blur(20px);
}
.main .gameInfo > * { position: relative; z-index: 1; }
.main .gameInfo .infoL {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 22px;
}
.main .gameInfo .infoL .gametop {
    flex: 1;
    min-width: 0;
    max-width: 400px;
    width: auto;
}
.main .gameInfo .infoL .gametop .nameBox {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 128px;
    min-height: 90px;
}
.main .gameInfo .infoL .gametop .nameBox .thumb {
    position: absolute;
    top: -64px;
    left: 0;
    width: 112px;
    height: 112px;
    border-radius: 18px 4px 18px 4px;
    overflow: hidden;
    border: 2px solid var(--surface);
    box-shadow:
        0 12px 30px rgba(13, 20, 36, 0.16),
        0 0 0 2px rgba(0, 184, 212, 0.50),
        0 0 28px rgba(0, 184, 212, 0.28);
}
.main .gameInfo .infoL .gametop .nameBox .thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.main .gameInfo .infoL .gametop .nameBox > dl > dt {
    font-size: 22px;
    line-height: 1.2;
    color: var(--text);
    background: var(--grad-1);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Montserrat-Bold;
}
.main .gameInfo .infoL .gametop .nameBox > dl > dd {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text);
    font-family: Montserrat-Bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.45);
}
.main .gameInfo .infoL .gametop .nameBox > dl > dd .iconfont { font-size: 14px; color: var(--gold); }
.main .gameInfo .infoL .gametop .developer {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.main .gameInfo .infoL .gametop .developer > li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border-3);
    border-radius: 12px 4px 12px 4px;
    padding: 12px 14px;
    transition: 0.25s;
}
.main .gameInfo .infoL .gametop .developer > li:hover {
    border-color: var(--accent);
    background: rgba(0, 184, 212, 0.06);
}
.main .gameInfo .infoL .gametop .developer > li > p {
    width: auto;
    display: flex;
    align-items: center;
}
.main .gameInfo .infoL .gametop .developer > li > p .iconfont {
    font-size: 16px;
    margin-right: 8px;
    color: var(--accent);
}
.main .gameInfo .infoL .gametop .developer > li > p > span {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: Montserrat-Regular;
}
.main .gameInfo .infoL .gametop .developer > li > small {
    text-align: left;
    flex: 1;
    color: var(--text);
    font-size: 13px;
    font-family: Montserrat-Bold;
    word-break: break-word;
}
.main .gameInfo .infoL .ad { margin: 0; align-self: flex-start; }
.main .gameInfo .infoL .ad > p { margin-top: 0; }

.main .gameInfo .gameico {
    width: 365px;
    height: 305px;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}
.main .gameInfo .gameico > li { margin: 0; }
.main .gameInfo .gameico > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    background: var(--surface-2);
    border-radius: 10px 2px 10px 2px;
    border: 1px solid var(--border-3);
    transition: 0.2s;
}
.main .gameInfo .gameico > li > a > img {
    width: 30px;
    height: 30px;
    border-radius: 8px 2px 8px 2px;
    object-fit: cover;
}
.main .gameInfo .gameico > li > a > p {
    font-size: 11px;
    color: var(--text-2);
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Montserrat-Bold;
}
.main .gameInfo .gameico > li > a:hover {
    border-color: var(--accent);
    background: rgba(0, 184, 212, 0.08);
    transform: translateY(-1px);
}
.main .gameInfo .gameico > li > a:hover > p { color: var(--accent); }

@media (max-width: 1024px) {
    .main .gameInfo { flex-direction: column; }
    .main .gameInfo .infoL { width: 100%; }
    .main .gameInfo .gameico { width: 100%; height: auto; margin-top: 6px; }
}
@media (max-width: 767px) {
    .main .gameInfo { padding: 20px; }
    .main .gameInfo .infoL { flex-direction: column; }
    .main .gameInfo .infoL .gametop .nameBox { padding-left: 0; padding-top: 72px; }
    .main .gameInfo .infoL .gametop .nameBox .thumb { top: -64px; width: 100px; height: 100px; }
    .main .gameInfo .infoL .gametop .developer { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .main { min-height: 900px; }
}

/* =========================================================
   Extension grid (kid-games / list/* pages)
   ========================================================= */
.extensionBox {
    max-width: 1780px;
    min-height: 850px;
    width: calc(100% - 32px);
    margin: 0 auto;
    padding-top: 18px;
}
.extensionBox .extension {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 14px;
    margin-top: 12px;
}
.extensionBox .extension > li { margin: 0; width: auto; }
.extensionBox .extension > li > a {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--surface);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-sm), 0 6px 18px rgba(13, 20, 36, 0.06);
    transition: 0.3s;
}
.extensionBox .extension > li > a .thumb {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}
.extensionBox .extension > li > a .thumb > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease, filter 0.4s ease;
    filter: saturate(1.05);
}
.extensionBox .extension > li > a > dl {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(180deg, transparent 45%, rgba(13, 20, 36, 0.88) 100%);
    opacity: 1;
    transition: 0.3s;
}
.extensionBox .extension > li > a > dl > dt {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    color: #fff;
    font-size: 12px;
    text-align: left;
    font-family: Montserrat-Bold;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.3px;
}
.extensionBox .extension > li > a > dl > dd {
    position: absolute;
    top: 8px;
    right: 8px;
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--grad-1);
    box-shadow: 0 6px 14px rgba(0, 184, 212, 0.35);
    border-radius: 10px 2px 10px 2px;
    opacity: 0;
    transition: 0.3s;
}
.extensionBox .extension > li > a > dl > dd .iconfont { font-size: 14px; color: #ffffff; }
@media (min-width: 1181px) {
    .extensionBox .extension > li > a:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
    .extensionBox .extension > li > a:hover > dl > dd { opacity: 1; transform: rotate(-6deg) scale(1.05); }
    .extensionBox .extension > li > a:hover .thumb > img { transform: scale(1.1); filter: saturate(1.2); }
}
@media (max-width: 1366px) { .extensionBox .extension { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 1024px) { .extensionBox .extension { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 767px)  {
    .extensionBox .extension { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .extensionBox .extension > li > a > dl > dt { font-size: 11px; }
}
@media (max-width: 1024px) { .extensionBox { min-height: 1000px; } }

/* =========================================================
   404 / Error page
   ========================================================= */
.errorBox {
    min-height: 760px;
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.errorBox::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 184, 212, 0.16), transparent 60%);
    filter: blur(20px);
    pointer-events: none;
}
.errorBox::after {
    content: "";
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(233, 30, 124, 0.16), transparent 60%);
    filter: blur(20px);
    pointer-events: none;
}
.errorBox > * { position: relative; z-index: 1; }
.errorBox > img {
    width: 200px;
    height: 200px;
    opacity: 0.9;
    filter: drop-shadow(0 12px 32px rgba(0, 184, 212, 0.30));
}
.errorBox > h3 {
    font-size: 72px;
    margin-top: 22px;
    background: var(--grad-1);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 6px;
}
.errorBox > p { margin-top: 14px; color: var(--text-2); }
.errorBox div { margin-top: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.errorBox div > a {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 24px;
    background: var(--grad-1);
    border-radius: 12px 4px 12px 4px;
    color: #ffffff;
    font-family: Montserrat-Bold;
    transition: 0.25s;
    box-shadow: 0 6px 20px rgba(0, 184, 212, 0.35);
}
.errorBox div > a:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 184, 212, 0.45); }
.errorBox div > a .iconfont { font-size: 16px; }
@media (max-width: 1024px) { .errorBox { min-height: 700px; } }

/* =========================================================
   About / Company pages
   ========================================================= */
.companyBox { min-height: 760px; margin-top: 22px; padding-bottom: 32px; }
.companyBox .company {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.companyBox .company::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    width: 80px;
    height: 2px;
    background: var(--grad-1);
    box-shadow: 0 0 14px rgba(0, 184, 212, 0.55);
}
.companyBox .company h2 {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-2);
    font-size: 22px;
    position: relative;
    padding-left: 20px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.companyBox .company h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 22px;
    background: var(--grad-1);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 184, 212, 0.55);
}
.companyBox .company h3 {
    font-size: 17px;
    margin: 24px 0 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.companyBox .company p {
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.7;
    color: var(--text-2);
    font-family: Montserrat-Regular;
}
.companyBox .company form { margin-top: 20px; }
.companyBox .company form .formItem {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    position: relative;
}
.companyBox .company form .formItem input,
.companyBox .company form .formItem #comcom {
    width: 100%;
    height: 52px;
    background: var(--surface-2);
    border-radius: 12px 4px 12px 4px;
    border: 1px solid var(--border-2);
    padding: 0 16px;
    color: var(--text);
    outline: none;
    font-family: Montserrat-Regular;
    transition: 0.25s;
}
.companyBox .company form .formItem #comcom {
    height: auto;
    padding: 14px 16px;
    resize: vertical;
    min-height: 130px;
    line-height: 1.5;
}
.companyBox .company form .formItem input::placeholder,
.companyBox .company form .formItem #comcom::placeholder { color: var(--text-3); }
.companyBox .company form .formItem input:focus,
.companyBox .company form .formItem #comcom:focus {
    border-color: var(--accent);
    background: rgba(0, 184, 212, 0.06);
    box-shadow: 0 0 0 4px rgba(0, 184, 212, 0.14);
}
.companyBox .company form input[type=submit] {
    width: 160px;
    height: 50px;
    border: 0;
    outline: 0;
    border-radius: 14px 4px 14px 4px;
    background: var(--grad-1);
    color: #ffffff;
    cursor: pointer;
    transition: 0.25s;
    font-family: Montserrat-Bold;
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(0, 184, 212, 0.35);
}
.companyBox .company form input[type=submit]:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 184, 212, 0.45); }
@media (max-width: 1024px) { .companyBox { min-height: 800px; } }

/* =========================================================
   Game detail — left/right layout
   ========================================================= */
.detail { display: flex; justify-content: space-between; gap: 24px; }
.detail .left { flex: 1; min-width: 0; }
.detail .right { width: 340px; flex-shrink: 0; }

.detail .left .module {
    margin: 22px 0;
    background: var(--surface);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 26px;
    position: relative;
}
.detail .left .module::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    width: 50px;
    height: 2px;
    background: var(--grad-1);
    box-shadow: 0 0 12px rgba(0, 184, 212, 0.55);
}
.detail .left .module > h2 {
    font-size: 18px;
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border-2);
    position: relative;
    padding-left: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.detail .left .module > h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 6px;
    height: 20px;
    background: var(--grad-1);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 184, 212, 0.55);
}
.detail .left .module .des {
    margin-top: 16px;
    max-height: 260px;
    min-height: 80px;
    overflow: hidden;
    position: relative;
    line-height: 1.8;
    color: var(--text-2);
    font-size: 14px;
    font-family: Montserrat-Regular !important;
}
.detail .left .module .des > p,
.detail .left .module .des > span,
.detail .left .module .des > p > span,
.detail .left .module .des > span > span {
    color: var(--text-2) !important;
    font-size: 14px !important;
    font-family: Montserrat-Regular !important;
    line-height: 1.8 !important;
    background: transparent !important;
}
.detail .left .module .showAll { max-height: 4000px; }
.detail .left .module .moreB {
    margin-top: 14px;
    position: relative;
}
.detail .left .module .moreB .moreShow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    width: 220px;
    height: 38px;
    background: rgba(0, 184, 212, 0.06);
    border-radius: 12px 4px 12px 4px;
    border: 1px solid var(--border);
    margin: 0 auto;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: Montserrat-Bold;
    transition: 0.25s;
    cursor: pointer;
}
.detail .left .module .moreB .moreShow::before { content: "Show More"; font-size: 12px; }
.detail .left .module .moreB .moreShow:hover { background: var(--accent); color: #ffffff; border-color: var(--accent); box-shadow: 0 6px 18px rgba(0, 184, 212, 0.40); }
.detail .left .module .moreB .moreShow::after {
    content: "";
    width: 100%;
    height: 70px;
    position: absolute;
    top: -70px;
    left: 0;
    background: linear-gradient(180deg, transparent, var(--surface));
    pointer-events: none;
}
.detail .left .module .moreB .lessShow::before { display: block; content: "Show Less"; }
.detail .left .module .moreB .lessShow::after { display: none; }

.detail .left .getGame {
    background: var(--surface);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 26px;
    margin: 22px 0;
    position: relative;
}
.detail .left .getGame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    width: 50px;
    height: 2px;
    background: var(--grad-1);
    box-shadow: 0 0 12px rgba(0, 184, 212, 0.55);
}
.detail .left .getGame > h2 {
    font-size: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-2);
    position: relative;
    padding-left: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.detail .left .getGame > h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 6px;
    height: 20px;
    background: var(--grad-1);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 184, 212, 0.55);
}
.detail .left .getGame > nav {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.detail .left .getGame > nav > a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    transition: 0.3s;
    height: 48px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 14px 4px 14px 4px;
    position: relative;
    overflow: hidden;
}
.detail .left .getGame > nav > a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-1);
    opacity: 0;
    transition: 0.3s;
}
.detail .left .getGame > nav > a > p { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.detail .left .getGame > nav > a > p .iconfont { font-size: 20px; color: var(--accent); transition: 0.3s; }
.detail .left .getGame > nav > a > p > span { font-size: 14px; color: var(--text); font-family: Montserrat-Bold; text-transform: uppercase; letter-spacing: 0.6px; transition: 0.3s; }
@media (min-width: 1181px) {
    .detail .left .getGame > nav > a:hover {
        border-color: transparent;
        box-shadow: 0 8px 24px rgba(0, 184, 212, 0.35);
    }
    .detail .left .getGame > nav > a:hover::before { opacity: 1; }
    .detail .left .getGame > nav > a:hover > p .iconfont,
    .detail .left .getGame > nav > a:hover > p > span { color: #ffffff; }
}
.detail .left .getGame .ver {
    margin-top: 18px;
    font-size: 12px;
    color: var(--text-3);
    font-family: Montserrat-Regular;
    line-height: 1.6;
    padding: 12px 14px;
    background: var(--surface-2);
    border-radius: 10px;
    border-left: 2px solid var(--accent);
}
@media (max-width: 767px) {
    .detail .left .getGame > nav { flex-direction: column; gap: 12px; }
    .detail .left .getGame > nav > a { width: 100%; flex: none; height: auto; min-height: 60px; }
}

.detail .left .swiper_con { margin-top: 22px; position: relative; }
.detail .left .swiper_con .preview { margin-top: 10px; position: relative; }
.detail .left .swiper_con .preview .swiper-wrapper .swiper-slide {
    width: auto;
    height: 240px;
    overflow: hidden;
    border-radius: 14px 4px 14px 4px;
    border: 1px solid var(--border-2);
    box-shadow: 0 0 0 1px rgba(0, 184, 212, 0.10), 0 8px 22px rgba(13, 20, 36, 0.08);
}
.detail .left .swiper_con .preview .swiper-wrapper .swiper-slide > img { height: 100%; width: auto; }
.detail .left .swiper_con .sw_btn {
    width: 100%;
    position: absolute;
    top: calc(50% - 18px);
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    z-index: 5;
    pointer-events: none;
}
.detail .left .swiper_con .sw_btn .swiper-button-p1,
.detail .left .swiper_con .sw_btn .swiper-button-n1 {
    width: 42px;
    height: 42px;
    background: var(--grad-1);
    box-shadow: 0 8px 22px rgba(13, 20, 36, 0.18), 0 0 16px rgba(0, 184, 212, 0.35);
    border-radius: 12px 4px 12px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s;
    pointer-events: auto;
}
.detail .left .swiper_con .sw_btn .swiper-button-p1:hover,
.detail .left .swiper_con .sw_btn .swiper-button-n1:hover { transform: scale(1.1); box-shadow: 0 10px 24px rgba(0, 184, 212, 0.50); }
.detail .left .swiper_con .sw_btn .swiper-button-p1 > .iconfont,
.detail .left .swiper_con .sw_btn .swiper-button-n1 > .iconfont { color: #ffffff; font-size: 16px; }

.detail .left .similar .gameList { grid-template-columns: repeat(3, 1fr); }
.detail .left .similar .gameList > li > a { background: var(--surface-2); }
.detail .left .similar .gameList > li > a .thumb { border-radius: 0; }
@media (max-width: 1024px) { .detail .left .similar .gameList { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .detail .left .similar .gameList { grid-template-columns: 1fr; } }

/* Comments */
.detail .left .comment {
    padding: 26px;
    margin-top: 22px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    position: relative;
}
.detail .left .comment::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    width: 50px;
    height: 2px;
    background: var(--grad-1);
    box-shadow: 0 0 12px rgba(0, 184, 212, 0.55);
}
.detail .left .comment > h2 {
    font-size: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-2);
    position: relative;
    padding-left: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.detail .left .comment > h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 6px;
    height: 20px;
    background: var(--grad-1);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 184, 212, 0.55);
}
.detail .left .comment .forBox {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 14px;
}
.detail .left .comment .forBox > p {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-1);
    border-radius: 14px 4px 14px 4px;
    box-shadow: 0 6px 18px rgba(0, 184, 212, 0.35);
}
.detail .left .comment .forBox > p .iconfont { font-size: 22px; color: #ffffff; }
.detail .left .comment .forBox form { flex: 1; min-width: 0; }
.detail .left .comment .forBox form .layui-form .layui-form-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    justify-content: space-between;
}
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox { width: 100%; }
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox .layui-input,
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox input {
    width: 100%;
    height: 44px;
    background: var(--surface-2) !important;
    border-radius: 12px 4px 12px 4px;
    border: 1px solid var(--border-2);
    color: var(--text) !important;
    margin-bottom: 12px;
    outline: none;
    font-family: Montserrat-Regular;
    padding: 0 14px;
    transition: 0.25s;
}
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox input::placeholder { color: var(--text-3); }
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox input:hover,
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox .layui-input:hover { border-color: var(--border) !important; }
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox input:focus,
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox .layui-input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(0, 184, 212, 0.16); }
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox .layui-textarea,
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox #comcom {
    width: 100%;
    resize: vertical;
    outline: none;
    font-family: Montserrat-Regular;
    color: var(--text) !important;
    background: var(--surface-2) !important;
    border-radius: 12px 4px 12px 4px;
    border: 1px solid var(--border-2);
    min-height: 100px !important;
    padding: 12px 14px;
    transition: 0.25s;
}
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox #comcom::placeholder { color: var(--text-3); }
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox #comcom:hover,
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox .layui-textarea:hover { border-color: var(--border) !important; }
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox #comcom:focus,
.detail .left .comment .forBox form .layui-form .layui-form-item .putBox .layui-textarea:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(0, 184, 212, 0.16); }
.detail .left .comment .forBox form .layui-form .layui-form-item .rateS {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 12px;
}
.detail .left .comment .forBox form .layui-form .layui-form-item .rateS .rateName {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail .left .comment .forBox form .layui-form .layui-form-item .rateS .rateName > span { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.6px; }
.detail .left .comment .forBox form .layui-form .layui-form-item .rateS .layui-rate { padding: 0; margin-bottom: 0; display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: center; }
.detail .left .comment .forBox form .layui-form .layui-form-item .rateS .layui-rate li { display: inline-block; float: none; vertical-align: middle; }
.detail .left .comment .forBox form .layui-form .layui-form-item .rateS .layui-rate .layui-icon { font-size: 16px; margin-right: 4px; }
.detail .left .comment .forBox form .layui-form .layui-form-item .rateS > button {
    width: 120px;
    height: 44px;
    background: var(--grad-1);
    border-radius: 12px 2px 12px 2px;
    color: #ffffff;
    border: 0;
    font-family: Montserrat-Bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.25s;
}
.detail .left .comment .forBox form .layui-form .layui-form-item .rateS > button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 184, 212, 0.45); }
@media (max-width: 767px) {
    .detail .left .comment .forBox form .layui-form .layui-form-item .rateS { flex-direction: column; align-items: stretch; }
    .detail .left .comment .forBox form .layui-form .layui-form-item .rateS > button { width: 100%; }
}

.detail .left .comment .comment_list { border-top: 1px solid var(--border-2); margin-top: 22px; }
.detail .left .comment .comment_list > li {
    margin-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-3);
    display: flex;
    gap: 12px;
}
.detail .left .comment .comment_list > li .girl {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px 4px 14px 4px;
    background: var(--grad-2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(132, 193, 0, 0.30);
}
.detail .left .comment .comment_list > li .girl .iconfont { font-size: 22px; color: #ffffff; }
.detail .left .comment .comment_list > li .girl .iconfont::before          { content: "\E767"; }
.detail .left .comment .comment_list > li:nth-child(2n) .girl              { background: var(--grad-1); box-shadow: 0 6px 18px rgba(0, 184, 212, 0.30); }
.detail .left .comment .comment_list > li:nth-child(2n) .girl .iconfont::before { content: "\E768"; }
.detail .left .comment .comment_list > li:nth-child(3n) .girl              { background: var(--grad-3); box-shadow: 0 6px 18px rgba(233, 30, 124, 0.30); }
.detail .left .comment .comment_list > li:nth-child(3n) .girl .iconfont::before { content: "\E769"; }
.detail .left .comment .comment_list > li:nth-child(4n) .girl              { background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent-2) 100%); box-shadow: 0 6px 18px rgba(233, 30, 124, 0.30); }
.detail .left .comment .comment_list > li:nth-child(4n) .girl .iconfont::before { content: "\E76A"; }
.detail .left .comment .comment_list > li .boxc {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.detail .left .comment .comment_list > li .boxc > dl { flex: 1; min-width: 0; }
.detail .left .comment .comment_list > li .boxc > dl .layui-rate { padding: 0; }
.detail .left .comment .comment_list > li .boxc > dl .layui-rate .layui-icon { font-size: 12px; }
.detail .left .comment .comment_list > li .boxc > dl > dt { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--text); font-family: Montserrat-Bold; }
.detail .left .comment .comment_list > li .boxc > dl > dt .rateBox {
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    padding: 3px 12px 2px;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.detail .left .comment .comment_list > li .boxc > dl > dd { margin-top: 8px; font-family: Montserrat-Regular; color: var(--text-2); line-height: 1.6; }
.detail .left .comment .comment_list > li .boxc > dl > dd > small { font-size: 12px; color: var(--text-3); }
.detail .left .comment .comment_list > li .boxc > dl > dd.starD { display: flex; align-items: center; justify-content: space-between; }
.detail .left .comment .comment_list > li .boxc > dl > dd.starD > p { font-size: 12px; font-family: Montserrat-Regular; color: var(--text-3); }
.detail .left .comment .comment_list > li .boxc > dl > dd.starD .addZ .Like { color: var(--text-3); }
.detail .left .comment .comment_list > li .boxc > dl > dd.starD .addZ .iconfont { font-size: 16px; color: var(--text-3); margin-right: 6px; }
.detail .left .comment .comment_list > li .boxc > dl > dd.starD .addZ.active .Like,
.detail .left .comment .comment_list > li .boxc > dl > dd.starD .addZ.active .iconfont { color: var(--accent); }
.detail .left .comment .comment_list > li .boxc > nav { display: flex; align-items: center; gap: 10px; }
.detail .left .comment .comment_list > li .boxc > nav > a {
    border-radius: 999px;
    border: 1px solid var(--border-2);
    width: 80px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-3);
    transition: 0.25s;
    background: var(--surface-2);
}
.detail .left .comment .comment_list > li .boxc > nav > a .iconfont { font-size: 18px; color: var(--text-3); }
.detail .left .comment .comment_list > li .boxc > nav > a > span { font-size: 12px; color: var(--text-3); }
.detail .left .comment .comment_list > li .boxc > nav > a:hover,
.detail .left .comment .comment_list > li .boxc > nav > a.active {
    border-color: var(--accent);
    background: rgba(0, 184, 212, 0.10);
    color: var(--accent);
}
.detail .left .comment .comment_list > li .boxc > nav > a:hover .iconfont,
.detail .left .comment .comment_list > li .boxc > nav > a:hover > span,
.detail .left .comment .comment_list > li .boxc > nav > a.active .iconfont,
.detail .left .comment .comment_list > li .boxc > nav > a.active > span { color: var(--accent); }
.detail .left .comment .nocoment {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
}
.detail .left .comment .nocoment img {
    width: 160px;
    height: 160px;
    opacity: 0.78;
    filter: drop-shadow(0 6px 20px rgba(0, 184, 212, 0.18));
}
.detail .left .comment .nocoment > p { font-size: 14px; margin-top: 10px; color: var(--text-3); }

/* Game player video */
.detail .left .video {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-md);
}
.detail .left .video .playName { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail .left .video .playName .box { display: flex; align-items: center; gap: 14px; }
.detail .left .video .playName .box .thumb {
    width: 66px;
    height: 66px;
    border-radius: 14px 4px 14px 4px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 184, 212, 0.25), 0 6px 18px rgba(0, 184, 212, 0.20);
}
.detail .left .video .playName .box .thumb > img { width: 100%; height: 100%; object-fit: cover; }
.detail .left .video .playName .box > dl > dt { font-size: 22px; color: var(--text); font-family: Montserrat-Bold; }
.detail .left .video .playName .box > dl > dd { margin-top: 6px; color: var(--text-3); font-size: 13px; }
.detail .left .video .playName .choice { display: flex; align-items: center; gap: 18px; }
.detail .left .video .playName .choice > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-3);
    transition: 0.25s;
}
.detail .left .video .playName .choice > a .iconfont { font-size: 20px; color: var(--text-3); transition: 0.25s; }
.detail .left .video .playName .choice > a > span { font-size: 12px; color: var(--text-3); transition: 0.25s; }
.detail .left .video .playName .choice > a:hover .iconfont,
.detail .left .video .playName .choice > a.active .iconfont,
.detail .left .video .playName .choice > a:hover > span,
.detail .left .video .playName .choice > a.active > span {
    color: var(--accent);
}
@media (max-width: 767px) {
    .detail .left .video .playName .choice .addR,
    .detail .left .video .playName .choice .addZ { display: none; }
}
.detail .left .video .videoGame {
    margin-top: 16px;
    width: 100%;
    height: 530px;
    position: relative;
    overflow: hidden;
    border-radius: 14px 4px 14px 4px;
    background: #000;
    border: 1px solid var(--border);
    box-shadow: 0 0 0 1px rgba(0, 184, 212, 0.18), 0 12px 32px rgba(13, 20, 36, 0.18);
}
.detail .left .video .videoGame .iframe_img { position: absolute; inset: 0; width: 100%; height: 100%; }
.detail .left .video .videoGame .iframe_img .bbc {
    padding-top: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    inset: 0;
    background-color: rgba(13, 20, 36, 0.55);
}
.detail .left .video .videoGame .iframe_img .bbc .thumb {
    width: 140px;
    height: 140px;
    border: 2px solid rgba(0, 184, 212, 0.55);
    border-radius: 18px 4px 18px 4px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 184, 212, 0.35);
}
.detail .left .video .videoGame .iframe_img .bbc .thumb > img { width: 100%; height: 100%; object-fit: cover; }
.detail .left .video .videoGame .iframe_img .bbc > a {
    margin-top: 24px;
    display: block;
    width: 180px;
    height: 54px;
    line-height: 54px;
    background: var(--grad-1);
    border-radius: 14px 4px 14px 4px;
    text-align: center;
    font-size: 18px;
    color: #ffffff;
    font-family: Montserrat-Bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 12px 36px rgba(0, 184, 212, 0.50), 0 0 0 1px rgba(0, 184, 212, 0.30);
    transition: 0.25s;
}
.detail .left .video .videoGame .iframe_img .bbc > a:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 184, 212, 0.60); }
.detail .left .video .videoGame .iframe_img .bgc {
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    position: absolute;
    top: -10px;
    left: -10px;
    object-fit: cover;
    filter: blur(14px) brightness(0.55);
}
.detail .left .video .videoGame .iframe_img.active { display: none; }
.detail .left .video .videoGame iframe {
    display: block;
    width: 1px;
    min-width: 100%;
    height: 1px;
    min-height: 100%;
    border: 0;
    overflow: hidden;
    z-index: 5;
}
.detail .left .video .videoGame .back {
    display: none;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    position: fixed;
    top: 14px;
    left: 14px;
    border-radius: 14px 4px 14px 4px;
    background: var(--grad-1);
    z-index: 9999;
    box-shadow: 0 8px 28px rgba(13, 20, 36, 0.30), 0 0 18px rgba(0, 184, 212, 0.45);
}
.detail .left .video .videoGame .back .iconfont { font-size: 18px; color: #ffffff; }
.detail .left .video .videoGame.active { display: block; }
.detail .left .video .videoGame.active iframe { position: fixed; background: #000; top: 0; left: 0; width: 100%; height: 100%; z-index: 9990; }
.detail .left .video .videoGame.active .back { display: flex; }

.detail .left .hotgame,
.detail .left .moreOnline {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    margin: 22px 0 0;
    box-shadow: var(--shadow-md);
    position: relative;
}
.detail .left .hotgame::before,
.detail .left .moreOnline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    width: 50px;
    height: 2px;
    background: var(--grad-1);
    box-shadow: 0 0 12px rgba(0, 184, 212, 0.55);
}
.detail .left .hotgame > h2,
.detail .left .moreOnline > h2 {
    font-size: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-2);
    position: relative;
    padding-left: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.detail .left .hotgame > h2::before,
.detail .left .moreOnline > h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 6px;
    height: 20px;
    background: var(--grad-1);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 184, 212, 0.55);
}
.detail .left .hotgame .bestList,
.detail .left .moreOnline .onlineBox {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.detail .left .hotgame .bestList > li,
.detail .left .moreOnline .onlineBox > li { margin: 0; width: auto; }
.detail .left .hotgame .bestList > li > a,
.detail .left .moreOnline .onlineBox > li > a { display: block; }
.detail .left .hotgame .bestList > li > a .thumb,
.detail .left .moreOnline .onlineBox > li > a .thumb {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 14px 4px 14px 4px;
    border: 1px solid var(--border-2);
}
.detail .left .hotgame .bestList > li > a .thumb > img,
.detail .left .moreOnline .onlineBox > li > a .thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.45s;
}
.detail .left .hotgame .bestList > li > a > dl { margin-top: 10px; }
.detail .left .hotgame .bestList > li > a > dl > dt {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 13px;
    color: var(--text);
}
.detail .left .hotgame .bestList > li > a > dl > dd { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.detail .left .hotgame .bestList > li > a > dl > dd .iconfont { font-size: 12px; color: var(--gold); }
.detail .left .moreOnline .onlineBox > li > a > p {
    margin-top: 10px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 13px;
    color: var(--text);
}
.detail .left .moreOnline .onlineBox > li > a .playe {
    transition: 0.3s;
    width: 78px;
    height: 30px;
    margin: 10px auto 0;
    background: var(--grad-1);
    border-radius: 10px 2px 10px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    gap: 5px;
    font-family: Montserrat-Bold;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.detail .left .moreOnline .onlineBox > li > a .playe .iconfont { color: #ffffff; font-size: 12px; }
@media (min-width: 1181px) {
    .detail .left .hotgame .bestList > li > a:hover > dl > dt { color: var(--accent); }
    .detail .left .hotgame .bestList > li > a:hover .thumb { border-color: var(--accent); }
    .detail .left .hotgame .bestList > li > a:hover .thumb > img { transform: scale(1.06); }
    .detail .left .moreOnline .onlineBox > li > a:hover > p { color: var(--accent); }
    .detail .left .moreOnline .onlineBox > li > a:hover .playe { box-shadow: 0 8px 22px rgba(0, 184, 212, 0.45); transform: translateY(-2px); }
    .detail .left .moreOnline .onlineBox > li > a:hover .thumb { border-color: var(--accent); }
    .detail .left .moreOnline .onlineBox > li > a:hover .thumb > img { transform: scale(1.06); }
}
@media (max-width: 767px) {
    .detail .left .hotgame .bestList,
    .detail .left .moreOnline .onlineBox { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .detail .left .hotgame .bestList > li:nth-child(n+7),
    .detail .left .moreOnline .onlineBox > li:nth-child(n+7) { display: none; }
}

/* Right column */
.detail .right > h2,
.detail .right .similar > h2 {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-2);
}
.detail .right .similar {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    position: relative;
}
.detail .right .similar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    width: 44px;
    height: 2px;
    background: var(--grad-1);
    box-shadow: 0 0 12px rgba(0, 184, 212, 0.55);
}
.detail .right .similar > h2 {
    font-size: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-2);
    position: relative;
    padding-left: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.detail .right .similar > h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 6px;
    height: 20px;
    background: var(--grad-1);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 184, 212, 0.55);
}
.detail .right .similar .searchResult {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}
.detail .right .similar .searchResult > li { margin: 0; width: auto; }
.detail .right .similar .searchResult > li > a {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px 4px 12px 4px;
    border: 1px solid var(--border-2);
    background: var(--surface-2);
    transition: 0.25s;
}
.detail .right .similar .searchResult > li > a .thumb {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}
.detail .right .similar .searchResult > li > a .thumb > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.detail .right .similar .searchResult > li > a > p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(0);
    transition: transform 0.3s;
    padding: 6px 8px;
    background: linear-gradient(180deg, transparent, rgba(13, 20, 36, 0.92));
    text-align: center;
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
    font-family: Montserrat-Bold;
}
@media (min-width: 1181px) {
    .detail .right .similar .searchResult > li > a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 184, 212, 0.22); }
    .detail .right .similar .searchResult > li > a:hover .thumb > img { transform: scale(1.06); }
}
.detail .right .ad1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-md);
}
.detail .right .ad1 > p {
    font-size: 10px;
    color: var(--text-3);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.detail .right .ad1 > div[id^="div-gpt-"] {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
@media (max-width: 1181px) {
    .detail { flex-direction: column; }
    .detail .right { display: none; width: 100%; }
    .detail .left { width: 100%; }
}

/* =========================================================
   Footer
   ========================================================= */
footer {
    margin-top: 50px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(245, 248, 253, 0.9) 100%);
    border-top: 1px solid var(--border-2);
    position: relative;
}
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-3) 70%, transparent);
    opacity: 0.75;
}
footer .container {
    position: relative;
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}
footer .container img { height: 40px; opacity: 0.95; filter: drop-shadow(0 0 12px rgba(0, 184, 212, 0.30)); }
footer .container > nav {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: center;
}
footer .container > nav > a {
    color: var(--text-2);
    transition: 0.25s;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: Montserrat-Bold;
    position: relative;
    padding: 4px 2px;
}
footer .container > nav > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: 0.25s;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(0, 184, 212, 0.45);
}
@media (min-width: 1181px) {
    footer .container > nav > a:hover { color: var(--accent); }
    footer .container > nav > a:hover::after { width: 100%; }
}
@media (max-width: 767px) {
    footer .container { gap: 18px; padding: 26px 0; }
    footer .container > nav { gap: 18px; }
}

.exfot .container { max-width: 1780px; width: calc(100% - 32px); margin: 0 auto; }

/* =========================================================
   Mobile slide-in category menu
   ========================================================= */
.black_bac {
    display: none;
    width: 100%;
    height: calc(100% - 70px);
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 99;
    background: rgba(13, 20, 36, 0.55);
}

.categoryBox {
    z-index: 200;
    position: fixed;
    inset: 0;
    background: rgba(13, 20, 36, 0.45);
    backdrop-filter: blur(6px);
    display: none;
}
.categoryBox .box {
    position: absolute;
    height: 100%;
    top: 0;
    right: 0;
    overflow-y: auto;
    width: 300px;
    padding: 26px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(13, 20, 36, 0.16), -1px 0 0 0 rgba(0, 184, 212, 0.25);
}
.categoryBox .box .close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
}
.categoryBox .box .close .iconfont {
    font-size: 22px;
    color: var(--text);
    padding: 6px;
    border-radius: 10px 2px 10px 2px;
    transition: 0.25s;
    border: 1px solid transparent;
}
.categoryBox .box .close:hover .iconfont { background: rgba(0, 184, 212, 0.10); color: var(--accent); border-color: var(--border); }
.categoryBox .box .searchBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    position: relative;
    margin-top: 24px;
}
.categoryBox .box .searchBtn > input {
    border-radius: 12px 4px 12px 4px;
    width: 100%;
    height: 42px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 13px;
    padding: 0 54px 0 14px;
    border: 1px solid var(--border-2);
    font-family: Montserrat-Regular;
}
.categoryBox .box .searchBtn > input::placeholder { color: var(--text-3); }
.categoryBox .box .searchBtn > input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(0, 184, 212, 0.16); }
.categoryBox .box .searchBtn > button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 38px;
    height: 34px;
    background: var(--grad-1);
    border-radius: 10px 2px 10px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
}
.categoryBox .box .searchBtn > button .iconfont { font-size: 16px; color: #ffffff; }
.categoryBox .box > nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 26px;
}
.categoryBox .box > nav > a {
    margin: 0;
    color: var(--text) !important;
    font-size: 12px;
    font-family: Montserrat-Bold;
    padding: 12px 14px;
    border-radius: 12px 2px 12px 2px;
    transition: 0.25s;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.categoryBox .box > nav > a .iconfont {
    color: var(--accent);
    font-size: 18px;
    margin: 0;
}
.categoryBox .box > nav > a:hover,
.categoryBox .box > nav > a.active {
    background: rgba(0, 184, 212, 0.10);
    border-color: var(--border);
    color: var(--accent) !important;
}
.categoryBox.act { display: block; }

/* =========================================================
   Install / "Coming soon" modal (apkBox)
   ========================================================= */
#apkBox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 20, 36, 0.55);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
#apkBox .dBox {
    width: 480px;
    max-width: calc(100% - 32px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 38px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 28px 80px rgba(13, 20, 36, 0.25), 0 0 0 1px rgba(0, 184, 212, 0.30), 0 0 50px rgba(0, 184, 212, 0.18);
    position: relative;
    overflow: hidden;
}
#apkBox .dBox::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 184, 212, 0.18), transparent 60%);
    pointer-events: none;
    filter: blur(20px);
}
#apkBox .dBox > * { position: relative; z-index: 1; }
#apkBox .dBox > h2 {
    font-size: 18px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 28px;
    text-align: center;
    text-transform: none;
    line-height: 1.55;
}
#apkBox .dBox > h2 > span {
    font-size: 18px;
    color: var(--accent);
    font-weight: 700;
}
#apkBox .dBox .Btn { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
#apkBox .dBox .Btn > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 140px;
    height: 46px;
    padding: 0 20px;
    background: transparent;
    color: var(--text);
    border-radius: 12px 4px 12px 4px;
    border: 1px solid var(--border);
    transition: 0.25s;
    font-family: Montserrat-Bold;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#apkBox .dBox .Btn > a:hover { background: rgba(0, 184, 212, 0.08); color: var(--accent); border-color: var(--accent); }
#apkBox .dBox .Btn > a + a {
    background: var(--grad-1);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 22px rgba(0, 184, 212, 0.40);
}
#apkBox .dBox .Btn > a + a:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 184, 212, 0.50); color: var(--text); }
#apkBox.active { display: flex; }

.error { color: var(--red); font-size: 12px; margin-top: 4px; display: block; }

/* =========================================================
   404 page overrides (page404.html inline styles get superseded)
   ========================================================= */
.page404-wrap {
    padding: 38px 24px 50px !important;
    border-radius: var(--radius-lg) !important;
    background: var(--surface) !important;
    border: 1px solid var(--border-2) !important;
    box-shadow: var(--shadow-md) !important;
    position: relative;
    overflow: hidden;
}
.page404-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 2px;
    background: var(--grad-1);
    box-shadow: 0 0 14px rgba(0, 184, 212, 0.55);
}
.page404.errorBox { margin-top: 0; min-height: 540px; background: transparent; border: 0; box-shadow: none; }
.page404.errorBox::before, .page404.errorBox::after { display: none; }
.page404 .error404-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}
.page404 .error404-actions a {
    margin-left: 0 !important;
    width: auto !important;
    min-width: 150px;
    padding: 0 22px !important;
    gap: 8px;
    font-family: Montserrat-Bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.25s;
    background: var(--grad-1) !important;
    color: #ffffff !important;
    border: 0;
    border-radius: 14px 4px 14px 4px !important;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0, 184, 212, 0.35);
}
.page404 .error404-actions a .iconfont { font-size: 16px; color: #ffffff; }
.page404 .error404-actions a.btn-outline {
    background: transparent !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none;
}
.page404 .error404-actions a.btn-outline .iconfont { color: var(--accent); }
@media (min-width: 1181px) {
    .page404 .error404-actions a:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 184, 212, 0.45); }
    .page404 .error404-actions a.btn-outline:hover {
        background: rgba(0, 184, 212, 0.08) !important;
        color: var(--accent) !important;
        border-color: var(--accent) !important;
    }
}
.page404-lead {
    max-width: 480px;
    text-align: center;
    line-height: 1.65;
    color: var(--text-2) !important;
    font-family: Montserrat-Regular, sans-serif;
    margin-top: 16px;
}

/* =========================================================
   Search results page (overrides for shared classes loaded via search-results.css)
   See search-results.css for full implementation.
   ========================================================= */

/* Hide Quizvana's auto-injected "Advertisement" label — the site shows its own .ad > p label */
div[id$="_wrapper"] > div > span {
    display: none !important;
}
