
    /* --- 1. KHUNG CHƠI GAME (MAIN WRAPPER) --- */
    .game-main-wrapper {
        background: #000;
        border: 5px solid #000;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 10px 10px 0px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }

    #game-area {
        width: 100%;
        height: 600px;
        background: #1a1a1a;
    }

    .game-header-bar {
        background: #2d3436; /* Màu xám than cực sang */
        padding: 15px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-top: 4px solid #000;
    }

    .game-title {
        color: #fff200 !important;
        font-family: 'Rajdhani', sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 24px;
        text-shadow: 2px 2px 0px #000;
        margin: 0;
    }

    /* --- 2. NÚT BẤM HÀNH ĐỘNG (LIKE/FULLSCREEN) --- */
    .btn-action {
        background: #fff;
        border: 3px solid #000;
        margin-left: 5px;
        margin-right: 5px;
        border-radius: 12px;
        padding: 8px 15px;
        box-shadow: 4px 4px 0px #000;
        transition: all 0.1s;
        cursor: pointer;
    }

    .btn-action:hover {
        background: #fff200;
        transform: translateY(-2px);
        box-shadow: 6px 6px 0px #000;
    }

    .btn-action:active {
        transform: translateY(2px);
        box-shadow: 0px 0px 0px #000;
    }

    /* --- 3. PHẦN MÔ TẢ (DESCRIPTION) --- */
    .description-card {
        background: #fff;
        border: 4px solid #000;
        border-radius: 15px;
        padding: 20px;
        box-shadow: 8px 8px 0px #000;
    }

    .game-desc-preview {
        max-height: 100px; /* Thu gọn mặc định */
        overflow: hidden;
        transition: max-height 0.5s ease;
        position: relative;
        line-height: 1.6;
        color: #2d3436;
    }

    .game-desc-preview.expanded {
        max-height: 2000px; /* Mở rộng tối đa */
    }

    .game-desc-toggle {
        background: #ff4757;
        color: #fff;
        border: 3px solid #000;
        padding: 5px 15px;
        border-radius: 8px;
        font-weight: bold;
        margin-top: 10px;
        box-shadow: 3px 3px 0px #000;
        cursor: pointer;
    }

    .cat-link {
        background: #eccc68;
        color: #000;
        padding: 3px 12px;
        border-radius: 20px;
        border: 2px solid #000;
        text-decoration: none;
        font-weight: bold;
        font-size: 13px;
    }

    /* --- 4. THANH TÌM KIẾM (SEARCH) --- */
    .search-input-group {
        display: flex;
        background: #fff;
        border: 4px solid #000;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 5px 5px 0px #000;
    }

    .search-input-group input {
        border: none;
        padding: 12px 15px;
        flex: 1;
        outline: none;
        font-weight: bold;
    }

    .search-input-group button {
        border: none;
        border-left: 4px solid #000;
        padding: 0 15px;
        color: #fff;
        cursor: pointer;
    }

    /* --- 5. GAME CHAT (UI HIỆN ĐẠI) --- */
    .game-chat {
        background: #f1f2f6;
        height: 400px;
        display: flex;
        flex-direction: column;
    }

    .chat-messages {
        flex: 1;
        padding: 15px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .chat-input-wrapper {
        padding: 15px;
        background: #fff;
        border-top: 3px solid #000;
    }

    #chat-username, #chat-text {
        border: 2px solid #000;
        border-radius: 8px;
        padding: 8px;
        margin-bottom: 8px;
        width: 100%;
        outline: none;
    }

    .btn-send-chat {
        background: #2ed573;
        color: #fff;
        border: 3px solid #000;
        padding: 8px 20px;
        border-radius: 8px;
        font-weight: bold;
        box-shadow: 3px 3px 0px #000;
        cursor: pointer;
    }

    .chat-notice {
        color: #2ed573;
        font-weight: bold;
        text-align: center;
        padding: 10px;
        background: #e8fdf0;
        border-radius: 8px;
    }
    .search-field-modern {
        padding: 5px;
        transform: rotate(-1deg); /* Nghiêng nhẹ 1 độ cho phá cách */
        transition: transform 0.3s ease;
    }

    .search-field-modern:focus-within {
        transform: rotate(0deg) scale(1.02); /* Thẳng lại và phóng to khi click vào */
    }

    /* 2. Nhóm Input: Khung viền đen đậm và bóng đổ cứng */
    .search-input-group {
        display: flex;
        background: #fff;
        border: 4px solid #000; /* Viền cực dày */
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 6px 6px 0px #000; /* Bóng đổ cứng kiểu Pop-art */
        position: relative;
    }

    /* 3. Ô nhập liệu (Input) */
    .search-input-group input {
        flex: 1;
        border: none;
        padding: 12px 18px;
        font-family: 'Arial Black', sans-serif;
        font-size: 15px;
        font-weight: 900;
        outline: none;
    }

    .search-input-group input::placeholder {
        color: #999;
        text-transform: uppercase;
        font-size: 13px;
    }

    /* 4. Nút tìm kiếm (Button) */
    .search-input-group button {
        background: #fff200; /* Màu vàng rực rỡ của Game */
        border: none;
        border-left: 4px solid #000; /* Ngăn cách bằng viền đen */
        padding: 0 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        color: #000;
    }

    /* Hiệu ứng khi di chuột vào nút Search */
    .search-input-group button:hover {
        background: #ff4757; /* Chuyển sang đỏ khi hover */
        color: #fff;
    }

    /* Hiệu ứng khi nhấn nút */
    .search-input-group button:active {
        background: #000;
        color: #fff200;
    }

    /* Icon Search */
    .search-input-group svg {
        transition: transform 0.2s;
        filter: drop-shadow(1px 1px 0px rgba(0,0,0,0.2));
    }

    .search-input-group button:hover svg {
        transform: scale(1.2) rotate(10deg);
    }

    .sidebar-section {
        overflow: visible !important; /* Quan trọng để tooltip không bị mất */
    }

    .pg-game {
        position: relative;
        margin-bottom: 10px;
        z-index: 1;
    }

    /* 2. Hiệu ứng phóng to ảnh khi hover */
    .pg-game a {
        display: block;
        position: relative;
        transition: all 0.3s ease;
        z-index: 1;
    }

    .pg-game a:hover {
        z-index: 100; /* Đưa game đang hover lên trên cùng các game khác */
    }


    .pg-game a:hover img {
        transform: scale(1.3) rotate(5deg); /* Phóng to mạnh hơn */
        border-color: #fff200;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    /* 3. HIỆN TÊN GAME: Hiện ngay giữa ảnh */
    .pg-game a::after {
        content: attr(data-title); /* Lấy tên từ thuộc tính data-title */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0); /* Mặc định ẩn ở giữa */
        background: rgba(0, 0, 0, 0.9); /* Nền đen mờ */
        color: #fff200; /* Chữ vàng */
        padding: 5px 10px;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        border-radius: 6px;
        border: 2px solid #fff200;
        text-align: center;
        width: 120%; /* Rộng hơn ảnh một chút để dễ đọc */
        white-space: normal; /* Cho phép xuống dòng nếu tên dài */
        z-index: 101;
        pointer-events: none; /* Không cản trở click */
        transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        opacity: 0;
        box-shadow: 5px 5px 0px #000;
    }

    /* Khi di chuột vào: Hiện tên game bùng nổ */
    .pg-game a:hover::after {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        top: 50%; /* Giữ cố định ở giữa ảnh */
    }

    /* Hiệu ứng vệt sáng chạy qua khi hover */
    .pg-game a::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
        transform: skewX(-25deg);
        z-index: 2;
        transition: 0.5s;
    }

    .pg-game a:hover::before {
        left: 150%;
    }

    /* 1. Khung tổng thể của Sidebar Chat */
    .sidebar-section.overflow-hidden {
        border: 4px solid #000;
        border-radius: 15px;
        background: #fff;
        box-shadow: 8px 8px 0px #000;
        margin-left: 5px;
        margin-top: 20px;
    }

    /* Tiêu đề Chat */
    .sidebar-section .section-title {
        font-family: 'Rajdhani', sans-serif;
        color: #fff;
        font-size: 22px;
        font-weight: 800;
        text-transform: uppercase;
    }
.awwww{
    color: #000 !important;
}
    /* 2. Khu vực hiển thị tin nhắn */
    .game-chat {
        background: #f8f9fa; /* Nền xám nhạt cho vùng chat */
        display: flex;
        flex-direction: column;
        border-radius: 15px;
    }

    .chat-messages {
        height: 300px;
        overflow-y: auto;
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        /* Tùy chỉnh thanh cuộn (Scrollbar) */
    }

    .chat-messages::-webkit-scrollbar {
        width: 8px;
    }
    .chat-messages::-webkit-scrollbar-track {
        background: #eee;
    }
    .chat-messages::-webkit-scrollbar-thumb {
        background: #000;
        border-radius: 10px;
    }

    /* 3. Từng dòng tin nhắn (Chat Item) */
    .chat-item {
        background: #fff;
        border: 2px solid #000;
        padding: 8px 12px;
        border-radius: 10px;
        box-shadow: 3px 3px 0px #000;
        max-width: 90%;
        animation: fadeInChat 0.3s ease-out;
    }

    @keyframes fadeInChat {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .chat-username {
        display: block;
        font-weight: 900;
        color: #ff4757; /* Màu đỏ cho tên user */
        font-size: 13px;
        margin-bottom: 2px;
        text-transform: capitalize;
    }

    .chat-text-content {
        color: #2d3436;
        font-size: 14px;
        line-height: 1.4;
        word-break: break-word;
    }

    /* 4. Khu vực nhập liệu (Input Wrapper) */
    .chat-input-wrapper {
        background: #fff;
        border-top: 4px solid #000 !important;
        padding: 15px;
    }

    #chat-username {
        border: 3px solid #000;
        border-radius: 8px;
        padding: 6px 12px;
        font-weight: bold;
        margin-bottom: 10px;
        outline: none;
        font-size: 13px;
    }

    #chat-username:focus {
        background: #fff200;
        color: #000;
    }

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

    #chat-text {
        border: 3px solid #000;
        border-radius: 8px;
        padding: 10px;
        font-size: 14px;
        outline: none;
        transition: 0.2s;
    }

    #chat-text:focus {
        border-color: #2ed573;
    }

    /* Nút gửi tin nhắn */
    .btn-send-chat {
        background: #2ed573;
        color: #000;
        border: 3px solid #000;
        border-radius: 8px;
        padding: 0 15px;
        font-weight: 900;
        text-transform: uppercase;
        box-shadow: 3px 3px 0px #000;
        cursor: pointer;
        transition: all 0.1s;
    }

    .btn-send-chat:hover {
        background: #fff200;
        transform: translateY(-2px);
        box-shadow: 4px 4px 0px #000;
    }

    .btn-send-chat:active {
        transform: translateY(2px);
        box-shadow: 0px 0px 0px #000;
    }

    /* Thông báo khi gửi thành công */
    .chat-notice {
        background: #e8fdf0;
        color: #2ed573;
        border: 2px dashed #2ed573;
        padding: 10px;
        border-radius: 8px;
        text-align: center;
        font-weight: bold;
        font-size: 13px;
    }

    /* Tin nhắn trống */
    .chat-empty {
        text-align: center;
        color: #999;
        font-style: italic;
        margin-top: 20px;
    }

    @media (max-width: 900px) {
.sidebar-section {
margin-top: 20px;
}

    #game-area{
        height: calc(100% - 65px);
    }
}