    :root {
        --bg-body: #0b0e14;      /* Nền tối sâu */
        --bg-panel: #161b22;    /* Nền các khối nội dung */
        --accent: #00f2ff;      /* Màu xanh Cyan neon */
        --text-main: #e6edf3;   /* Chữ trắng xanh */
        --text-dim: #8b949e;    /* Chữ xám cho mô tả */
        --border-color: rgba(240, 246, 252, 0.1);
    }

    body {
        background-color: var(--bg-body) !important;
        color: var(--text-main);
        font-family: 'Roboto', sans-serif;
    }

    /* KHUNG CHỨA GAME (Sửa lỗi lệch Iframe) */
    .game-main-wrapper {
        background: #000;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    #game-area {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9; /* Giữ tỷ lệ chuẩn gaming */
        max-height: 70vh;
    }

    /* THANH THÔNG TIN (Sửa lỗi lệch Like/Fullscreen) */
    .game-header-bar {
        background: var(--bg-panel);
        padding: 15px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--border-color);
    }

    .game-title {
        font-family: 'Rajdhani', sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .action-group {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .vote-box {
        display: flex;
        border-radius: 8px;
        padding: 4px;
    }

    .btn-action {
        background: transparent;
        border: none;
        padding: 6px 10px;
        transition: 0.2s;
        border-radius: 6px;
        display: flex;
        align-items: center;
    }

    .btn-action:hover {
        background: rgba(255,255,255,0.1);
        transform: translateY(-2px);
    }

    /* MÔ TẢ VÀ CATEGORIES (Xử lý khoảng trắng thừa) */
    .description-card {
        background: var(--bg-panel);
        padding: 25px;
        border-radius: 12px;
        margin-top: 20px;
        border: 1px solid var(--border-color);
    }

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

    .tag-badge {
        display: inline-block;
        background: rgba(0, 242, 255, 0.1);
        color: var(--accent);
        border: 1px solid var(--accent);
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
        text-decoration: none;
        transition: 0.3s;
    }

    .tag-badge:hover {
        background: var(--accent);
        color: #000;
    }

    /* SIDEBAR (Sửa lỗi Grid popular games) */
    .sidebar-section {
        background: #0f172a;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 16px;
        border: 1px solid var(--border-color);
    }

    .section-title {
        font-family: 'Rajdhani', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 20px;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .section-title::before {
        content: '';
        width: 4px;
        height: 18px;
        background: var(--accent);
        border-radius: 2px;
    }

    /* Grid Game nhỏ */
    .pg-game a {
        position: relative;
        display: block;
        border-radius: 10px;
        overflow: hidden;
        aspect-ratio: 1 / 1;
        transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .pg-game a img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* .pg-game a::after {
        content: attr(data-title);
        position: absolute;
        bottom: 0; left: 0; right: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.9));
        color: #fff;
        font-size: 10px;
        padding: 8px 4px;
        text-align: center;
        opacity: 0;
        transition: 0.3s;
    }

    .pg-game a:hover {
        transform: scale(1.1);
        z-index: 2;
        box-shadow: 0 5px 15px rgba(0, 242, 255, 0.4);
    } */

    .pg-game a:hover::after {
        opacity: 1;
    }
     .slide a {
    position: relative;
    display: inline-block;
    border-radius: 16px;     /* BO GÓC ĐẶT Ở A */
    overflow: hidden;        /* CỰC KỲ QUAN TRỌNG */
}

/* reset margin ảnh để overlay khớp */
.slide img {
    max-width: 220px;
    max-height: 220px;
    display: block;
    margin: 0 !important;
    border-radius: 0;        /* bỏ bo góc ở img */
}
.nomaxwh{
    max-width: none !important;
    max-height: none !important;
}
        .text-gold {
            color: gold;
        }

        .text-success-new {
            color: #FFD700;
            text-decoration: underline;
        }

        @media (min-width:768px) {
            .px-md-5 {
                padding-right: 3rem !important;
                padding-left: 3rem !important
            }
        }

        
 /* wrapper preview */
.game-desc-preview {
    max-height: 320px;            /* desktop */
    overflow: hidden;
    color: #fff;
    position: relative;

    /* fade mượt, không che chữ */
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
    mask-image: linear-gradient(to bottom, #000 72%, transparent);

    transition: max-height 0.45s ease;
}

/* mobile */
@media (max-width: 768px) {
    .game-desc-preview {
        max-height: 220px;
    }
}

/* khi mở */
.game-desc-preview.expanded {
    max-height: 8000px;
    -webkit-mask-image: none;
    mask-image: none;
}

/* nút */
.game-desc-toggle {
    margin: 14px auto 0;
    display: block;

    padding: 8px 28px;
    border-radius: 999px;

    background: transparent;
    color: #fff;
    border: 1px solid rgb(255, 255, 255);

    font-size: 14px;
    cursor: pointer;
    transition: all .25s ease;
}

.game-desc-toggle:hover {
    background: #ff8c00;
    border-color: #ff8c00;
    color: #000;
}
 /* ===== TỔNG THỂ CHAT ===== */
        .game-chat {
            padding: 15px;
            height: 450px;
            display: flex;
            flex-direction: column;
        }

        /* ===== KHUNG TIN NHẮN ===== */
        .chat-messages {
            flex: 1;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            padding: 12px;
            overflow-y: auto;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        /* Tùy chỉnh thanh cuộn xịn hơn */
        .chat-messages::-webkit-scrollbar {
            width: 4px;
        }
        .chat-messages::-webkit-scrollbar-thumb {
            background: var(--accent, #00f2ff);
            border-radius: 10px;
        }

        /* TIN NHẮN CHI TIẾT */
        .chat-item {
            margin-bottom: 12px;
            padding: 8px 10px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 6px;
            border-left: 2px solid transparent;
            transition: 0.2s;
        }
        .chat-item:hover {
            background: rgba(255, 255, 255, 0.05);
            border-left-color: var(--accent, #00f2ff);
        }

        .chat-username {
            color: var(--accent, #00f2ff);
            font-weight: 700;
            font-size: 0.85rem;
            display: block;
            margin-bottom: 2px;
            font-family: 'Rajdhani', sans-serif;
        }

        .chat-text-content {
            color: #cbd5e1;
            font-size: 0.9rem;
            word-wrap: break-word;
        }

        .chat-empty {
            text-align: center;
            margin-top: 100px;
            color: #64748b;
            font-size: 0.9rem;
            font-style: italic;
        }

        /* ===== KHUNG NHẬP LIỆU (Sửa lỗi lệch) ===== */
        .chat-input-wrapper {
            margin-top: 15px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .chat-input-row {
            display: flex;
            gap: 8px;
        }

        .game-chat input {
            background: #1e293b;
            border: 1px solid rgba(255, 255, 255, 0.1);
            /* color: #fff; */
            border-radius: 6px;
            padding: 8px 12px;
            font-size: 0.85rem;
            transition: 0.3s;
        }

        .game-chat input:focus {
            outline: none;
            border-color: var(--accent, #00f2ff);
            box-shadow: 0 0 0 2px rgba(0, 242, 255, 0.1);
        }

        .btn-send-chat {
            background: var(--accent, #00f2ff);
            color: #000;
            border: none;
            border-radius: 6px;
            padding: 0 15px;
            font-weight: 700;
            font-family: 'Rajdhani', sans-serif;
            text-transform: uppercase;
            cursor: pointer;
            transition: 0.2s;
        }

        .btn-send-chat:hover {
            transform: scale(1.02);
            box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
        }

        .chat-notice {
            background: rgba(34, 197, 94, 0.1);
            color: #4ade80;
            padding: 8px;
            border-radius: 6px;
            font-size: 0.8rem;
            text-align: center;
            margin-top: 8px;
            border: 1px solid rgba(34, 197, 94, 0.2);
        }
        
    #custom-toast {
        position: fixed; top: 20px; right: 20px; z-index: 9999;
        padding: 12px 24px; border-radius: 8px; color: #fff; font-weight: 500;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3); transform: translateX(150%);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    #custom-toast.show { transform: translateX(0); }
    .toast-success { background: #10b981; border-left: 5px solid #047857; }
    .toast-info { background: #3b82f6; border-left: 5px solid #1d4ed8; }

    
    /* CONTAINER TÌM KIẾM */
.search-field-modern {
    width: 100%;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #1e293b; /* Nền tối hơn sidebar một chút */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2px;
    transition: all 0.3s ease;
}

/* HIỆU ỨNG KHI CLICK VÀO Ô TÌM KIẾM */
.search-input-group:focus-within {
    border-color: var(--accent, #00f2ff);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.15);
    background: #161b22;
}

/* Ô NHẬP LIỆU */
.search-input-group input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 15px;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
}

.search-input-group input:focus {
    outline: none;
}

.search-input-group input::placeholder {
    color: #64748b;
    transition: 0.3s;
}

.search-input-group:focus-within input::placeholder {
    opacity: 0.5;
    transform: translateX(5px);
}

/* NÚT ICON TÌM KIẾM */
.search-input-group button {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.search-input-group button:hover {
    color: var(--accent, #00f2ff);
}

.search-input-group:focus-within button {
    color: var(--accent, #00f2ff);
}
/* Thiết lập cho màn hình điện thoại (thường là dưới 768px) */
@media screen and (max-width: 900px) {
    .vote-box {
        display: none !important;
    }

    /* Nếu bạn muốn nút Full Screen căn giữa hoặc có khoảng cách đẹp hơn trên mobile */
    .action-group {
        display: flex;
        justify-content: end; /* Căn giữa nút còn lại */
        width: 100%;
    }
    .game-title {
        font-size: 13px;       /* Kích thước chữ nhỏ hơn */
        white-space: nowrap;   /* Giữ chữ trên 1 dòng nếu cần */
        overflow: hidden;      /* Ẩn nếu chữ quá dài */
        text-overflow: ellipsis; /* Hiện dấu ... nếu tiêu đề quá dài */
        max-width: 150px;      /* Giới hạn độ rộng của tiêu đề */
    }
    
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
    .sidebar-section{
        margin-top: 25px;
    }
    .game-main-wrapper{
        height: 70vh;
    }
}
.main-menu{
margin-right: 20px;
}

.ar
 {
    border: solid #64748b;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    margin-right: 4px;
}