/* Thiết lập Logic Scale Tập trung bằng biến CSS (Centralized Scale Variables) */
:root {
    --scale-center: 1;
    /* Tỷ lệ phóng của nút và bảng thông tin ở giữa */
    --scale-side: 1;
    /* Tỷ lệ phóng của hai bảng sự kiện bên hông */
}

@media (max-width: 1950px) {
    :root {
        --scale-center: 0.65;
        --scale-side: 0.70;
    }
}

@media (max-width: 1650px) {
    :root {
        --scale-center: 0.73;
        --scale-side: 0.60;
    }
}

@media (max-width: 1440px) {
    :root {
        --scale-center: 0.60;
        --scale-side: 0.55;
    }
}

@media (max-width: 1200px) {
    :root {
        --scale-center: 0.55;
        --scale-side: 0.58;
    }
}

@media (max-width: 992px) {
    :root {
        --scale-center: 0.50;
    }
}

@media (max-width: 768px) {
    :root {
        --scale-center: 0.45;
    }
}

@media (max-width: 480px) {
    :root {
        --scale-center: 0.35;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050510;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    overflow-x: hidden;
}

.wrapper {
    /* Đảm bảo vẫn giữ nguyên background người dùng đang có tại thư mục assets */
    background: url('./assets/backgound.png') no-repeat top center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* Header */
.top-header {
    width: 100%;
    text-align: center;
    padding-top: 25px;
}

.domain-top {
    font-family: 'Cinzel', serif;
    color: #e5cd8d;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(229, 205, 141, 0.7);
}

/* Hero Section */
.hero-section {
    zoom: var(--scale-center);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    flex: 1;
    /* Căn bản đẩy phần button xuống sát sự kiện */
}

/* Branding & Logo */
.branding {
    text-align: center;
    margin-top: 20px;
}

.crest-container {
    /* Tạo khoảng trống nơi logo thật sự (như crest) sẽ hiển thị */
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -30px;
}

.game-title {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 6px;
    margin: 0;

    /* Hiệu ứng gradient chữ kim loại */
    background: linear-gradient(to bottom, #ffffff 0%, #d4d4d4 30%, #8a8a8a 60%, #e8e8e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 8px 6px rgba(0, 0, 0, 0.9));
    text-transform: uppercase;
}

/* Buttons Area */
.buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: auto;
    margin-bottom: 5px;
}

/* Khối nút tải game bằng hình ảnh */
.btn-img-center {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: filter 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    justify-self: center;
}

.btn-image {
    max-width: 420px;
    /* Điều chỉnh độ rộng ảnh nút tại đây */
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.btn-text-content {
    position: absolute;
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    /* Đã giảm kích thước chữ theo yêu cầu */
    font-weight: 700;
    color: #fcebc0;
    text-shadow: 2px 2px 4px #000, 0 2px 10px rgba(200, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 1);
    letter-spacing: 2px;
    pointer-events: none;
    margin-top: -3px;
    /* Căn chỉnh nhẹ để chữ nằm đúng tâm nút */
}

.btn-img-center:hover {
    transform: scale(1.05);
    /* Phóng to nhẹ khi di chuột */
    filter: brightness(1.15) drop-shadow(0 0 20px rgba(255, 50, 0, 0.7));
}

.btn-side-wrapper {
    background: linear-gradient(180deg, #c39a3f 0%, #5c4305 100%);
    padding: 2px;
    clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 15px 100%, 0 50%);
    display: inline-block;
}

.btn-side {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #351a0b 0%, #170701 100%);
    padding: 12px 35px;
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
    color: #ecd292;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: 0.3s ease;
}

.btn-side-wrapper:hover .btn-side {
    background: linear-gradient(180deg, #49240f 0%, #290d02 100%);
    color: #fff;
}

/* Events Area */
.events-area {
    zoom: var(--scale-center);
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
    margin-bottom: 50px;
    /* Tăng mạnh để đẩy khối này và nút bấm lên sát logo */
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.section-title .line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.8), transparent);
    width: 250px;
    filter: drop-shadow(0 0 8px rgba(221, 72, 72, 0.507)) drop-shadow(0 15px 25px rgba(0, 0, 0, 0.9));
}

.section-title h2 {
    color: #e5cd8d;
    font-size: 1.2rem;
    letter-spacing: 4px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    filter: drop-shadow(0 0 8px rgba(221, 72, 72, 0.507)) drop-shadow(0 15px 25px rgba(0, 0, 0, 0.9));
}

.events-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    background: rgba(10, 5, 5, 0.85);
    /* Vẫn giữ tuyệt đối nguyên vẹn nền gốc */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);

    position: relative;
    /* Gắn chốt tọa độ */
    z-index: 1;
    /* Thiết lập trục ưu tiên hiển thị */
    border: none;
    /* Chỉ tắt viền cũ đi để nhường chỗ cho khung */
}

/* Khung Viền Bao Quanh Div */
.events-content::before {
    content: '';
    position: absolute;
    top: -17px;
    bottom: -20px;
    left: -21px;
    right: -21px;
    background: url(./assets/khung_chinh.png) no-repeat center center;
    background-size: 101% 99%;
    opacity: 0.8;
    z-index: -1;
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(221, 72, 72, 0.507)) drop-shadow(0 15px 35px rgba(0, 0, 0, 1));
}

.events-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    flex: 7;
    /* Chiếm 70% */
}

.event-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.event-icon-wrapper {
    border: 1px solid #7c5825;
    padding: 2px;
    background: #000;
}

.event-icon {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.event-text h3 {
    color: #e5cd8d;
    font-size: 1rem;
    margin-bottom: 4px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.event-text p {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.4;
    font-family: sans-serif;
}

.right-column {
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 35px;
    padding-left: 30px;
    border-left: 1px solid rgba(212, 175, 55, 0.3);
}

.register-promo {
    background: linear-gradient(135deg, rgba(50, 35, 10, 0.9) 0%, rgba(20, 15, 5, 0.95) 100%);
    padding: 10px 15px;
    /* Trả về lề nhỏ gọn y hệt thiết kế ban đầu */
    border-radius: 8px;
    border: none;
    box-shadow: none;
    transition: 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    animation: promoPulse 2s infinite ease-in-out;
}

/* Áp dụng Khung Event cho nút Đăng ký */
.register-promo::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    /* Bo ôm sát rạt nút không để phựt ra ngoài */
    background-image: url('./assets/khung_event.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes promoPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Hiệu ứng hào quang đặc biệt thay cho border-color vì đang dùng ảnh trong suốt */
@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
    }

    100% {
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
    }
}

.register-promo:hover {
    animation-play-state: paused;
    transform: scale(1.05) translateY(-2px);
}

.register-promo:hover::before {
    animation-play-state: paused;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
    border-color: #ffd700;
}

/* Typography cho khung đăng ký */
.register-highlight {
    margin: 0;
    line-height: 1.4;
}

.register-highlight .reg-title {
    color: #ffd700;
    font-size: 1.25rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    letter-spacing: 1px;
}

.register-highlight .reg-sub {
    color: #fff;
    font-size: 0.9rem;
    font-family: sans-serif;
    opacity: 0.9;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 10px;
    align-items: center;
}

.social-title {
    grid-column: 1 / -1;
    color: #e5cd8d;
    font-size: 1.1rem;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 8px;
    text-align: center;
}

.social-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.social-links a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Colored Social Icons */
.social-links a .fa-discord {
    color: #5865F2;
}

.social-links a .fa-facebook {
    color: #1877F2;
}

.social-links a .fa-youtube {
    color: #FF0000;
}

.social-links a .zalo-img-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-links a:hover {
    color: #e5cd8d;
}

/* Mini Features */
.mini-features {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 20px;
    padding: 12px 30px;
    background: rgba(10, 5, 5, 0.85);
    /* Nền tối đồng nhất với phần trên */
    border: 1px solid rgba(212, 175, 55, 0.4);
    /* Viền màu vàng tĩnh */
    border-radius: 8px;
    position: relative;
    z-index: 1;

    /* Box Shadow tiêu chuẩn + Filter Drop-Shadow hoàng kim rực rỡ */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 8px rgba(221, 72, 72, 0.507)) drop-shadow(0 15px 25px rgba(0, 0, 0, 0.9));
}

.mini-features span {
    font-size: 0.95rem;
    color: #e5cd8d;
    font-family: 'Oswald', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.mini-features i {
    color: #b38536;
    /* Icon tone darker gold */
}

/* Footer Section */
.site-footer {
    width: 100%;
    background: linear-gradient(180deg, rgba(20, 10, 0, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.5);
    border-bottom: 2px solid #5c4305;
    padding: 15px 0;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.footer-nav a {
    color: #c9a75c;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 2px;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: #fff;
    text-shadow: 0 0 10px #e5cd8d;
}

.footer-nav .sep {
    width: 1px;
    height: 14px;
    background: rgba(212, 175, 55, 0.4);
}

/* Nút bật tắt nhạc */
.music-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(10, 5, 0, 0.8);
    border: 2px solid #b8860b;
    border-radius: 50%;
    color: #e5cd8d;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transition: 0.3s ease;
    outline: none;
}

.music-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
    color: #fff;
}

/* Hiệu ứng đốm lửa (Sparks) */
.sparks-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.spark {
    position: absolute;
    background: #ffcc00;
    border-radius: 50%;
    opacity: 0;
    animation: flyUpDiagonal linear infinite;
    box-shadow: 0 0 10px #ff5500, 0 0 20px #ffaa00;
}

@keyframes flyUpDiagonal {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translate(5vw, -10vh) scale(1);
    }

    100% {
        transform: translate(30vw, -100vh) scale(0);
        opacity: 0;
    }
}

/* Event Sidebar Bảng Bên Trái */
.event-sidebar {
    position: fixed;
    top: 50%;
    left: 1vw;
    /* Đẩy sát biên trái thêm tí nữa vì khung ảnh vốn có viền trong (margin vô hình) */

    /* Kích thước được tự động scale theo màn hình (Logic Scale CSS Variables) */
    transform: translateY(-50%) scale(var(--scale-side));
    transform-origin: left center;

    width: 390px;
    /* Cơi nới độ rộng tổng ra thêm để đủ không gian hiển thị sau khi trừ đi border ảnh */

    background: url('./assets/khung_events.png') no-repeat center center;
    background-size: 100% 100%;

    border: none;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;

    /* Căn dồn nội dung vào "bụng" ảnh:
       Top 180px né mảng Title
       Phải/Trái 45px né lề khung vàng
       Dưới 85px né chữ WWW... */
    padding: 190px 43px 62px 45px;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.event-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Bo gọn các khối lại xíu để tổng thể không bị quá dài thoòng lõm */
    padding-right: 5px;
    padding-left: 5px;
    /* Không dùng overflow/max-height nữa để toàn bộ item đổ hết xuống, tự đó nới thẻ cha event-sidebar dài ra vút mắt kéo background bung theo */
}

/* Các tuỳ chọn cho item bên trong Sidebar */
/* Scrollbar Cho Danh Sách Sự Kiện */
.event-sidebar-list::-webkit-scrollbar {
    width: 4px;
}

.event-sidebar-list::-webkit-scrollbar-track {
    background: transparent;
}

.event-sidebar-list::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 4px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 15px;

    /* Chuyển qua dùng Background ảnh User cung cấp */
    background: url('./assets/khung_event.png') no-repeat center center;
    background-size: 100% 100%;

    /* Vô hiệu hoá viền CSS cũ */
    border: none;
    border-radius: 0;

    padding: 14px 20px;
    /* Tăng lề trong để item khỏi sát mép khuôn kim loại/ảnh */
    position: relative;
    transition: all 0.3s ease;
    cursor: default;
}

.event-item:hover {
    filter: brightness(1.2);
    /* Sáng trọn vẹn cả nền ảnh khung */
    transform: translateX(4px);
}

.event-item-icon {
    width: 38px;
    /* Tăng độ rộng Icon lên */
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border: 1px solid rgba(212, 175, 55, 0.4);
    /* Viền tươi hơn */
    border-radius: 8px;
    color: #e5cd8d;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.2);
}

.event-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.event-item-name {
    color: #fff;
    font-size: 0.96rem;
    /* Size chữ sự kiện to lên */
    font-weight: 700;
    text-shadow: 0 0 3px #000;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.event-item-desc {
    color: #bbb;
    /* Chữ mô tả sáng hơn 1 chút khỏi nền đen */
    font-size: 0.8rem;
    font-family: sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-item-status {
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 2px;
    font-family: 'Oswald', sans-serif;
}

.status-waiting {
    color: #e5cd8d;
}

.status-happening {
    color: #28a745;
}

/* Trạng thái sự kiện đang diễn ra */
@keyframes happeningBlink {
    0% {
        filter: drop-shadow(0 0 3px rgba(40, 167, 69, 0.5)) brightness(1);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(40, 167, 69, 1)) brightness(1.3);
    }

    100% {
        filter: drop-shadow(0 0 3px rgba(40, 167, 69, 0.5)) brightness(1);
    }
}

.event-item.is-happening {
    /* Ép lại nền image để tránh vạch xanh cũ hiển thị đè */
    background: url('./assets/khung_event.png') no-repeat center center;
    background-size: 100% 100%;
    border: none;

    animation: happeningBlink 1.5s infinite ease-in-out;
}

.event-item.is-happening .event-item-icon {
    border-color: #28a745;
    color: #28a745;
}

/* Box Hover popup (bên phải mục danh sách) */
.event-item-hover {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 15px;
    background: rgba(15, 8, 8, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 15px;
    border-radius: 8px;
    width: 250px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    z-index: 101;
    pointer-events: none;
    /* Khỏi bị lỗi hover giật cục */
}

/* Tam giác nối giữa box và popup */
.event-item-hover::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(15, 8, 8, 0.98);
    border-left: 1px solid rgba(212, 175, 55, 0.4);
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.event-item:hover .event-item-hover {
    opacity: 1;
    visibility: visible;
    margin-left: 10px;
}

.hover-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

/* Open Base Right Sidebar */
.open-sidebar {
    position: fixed;
    top: 40%;
    right: 1vw;
    transform: translateY(-50%);
    transform-origin: right center;
    z-index: 100;

    /* Responsive Box size: tự động thu nhỏ mượt mà theo biến CSS Variable Scale */
    width: calc(450px * var(--scale-side));
    container-type: inline-size;

    display: flex;
    justify-content: center;

    /* Hiệu ứng hào quang vàng đồng nổi bật cho tổng thể Div */
    animation: goldGlowPulse 2.5s infinite ease-in-out;
}

@keyframes goldGlowPulse {
    0% {
        filter: drop-shadow(0 0 4px rgba(255, 220, 130, 0.6)) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.9));
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(255, 240, 180, 1)) drop-shadow(0 0 25px rgba(255, 160, 50, 0.8)) drop-shadow(0 15px 40px rgba(0, 0, 0, 1));
    }

    100% {
        filter: drop-shadow(0 0 4px rgba(255, 220, 130, 0.6)) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.9));
    }
}

.open-flag-bg {
    width: 100%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.open-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.open-title {
    position: absolute;
    top: 41.7%;
    left: 51%;
    transform: translate(-50%, -50%);
    /* Font tự scale xuống khi thùng chứa nhỏ hơn 480px */
    font-size: min(1.8rem, 6cqw);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;

    /* Hiệu ứng gradient màu cam-vàng ấm áp (khớp viền lens-flare) */
    background: linear-gradient(to bottom, #ffffff 0%, #ffdc73 30%, #e67e00 60%, #ffad33 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 1)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.open-countdown {
    position: absolute;
    top: 51.5%;
    left: 51%;
    transform: translate(-49%, -50%);
    display: flex;
    justify-content: center;
    gap: min(12px, 2.5cqw);
    width: 70%;

}

.cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: min(45px, 9.5cqw);
}

.cd-item span {
    font-size: min(1.8rem, 6cqw);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    line-height: 1;
    margin-bottom: min(2px, 0.5cqw);

    /* Hiệu ứng gradient màu vàng đồng */
    background: linear-gradient(to bottom, #ffeb99 0%, #c89b3c 45%, #8f5a1e 55%, #e8bc55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 1));
}

.cd-item label {
    color: #ffd05c;
    font-size: min(0.75rem, 2.5cqw);
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px #000;
}

.open-time {
    position: absolute;
    top: 65%;
    left: 51%;
    transform: translate(-48%, -50%);
    font-size: min(1.25rem, 4.2cqw);
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1.5px;

    /* Hiệu ứng gradient màu vàng đồng */
    background: linear-gradient(to bottom, #ffffff 0%, #ffdc73 30%, #e67e00 60%, #ffad33 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 1));
}

/* Responseive right sidebar được điều khiển chung ở Rule :root trên cùng! */

@media (max-width: 1100px) {
    .open-sidebar {
        position: static;
        width: 90vw;
        max-width: 420px;
        transform: none;
        margin: 20px auto;
    }
}


.hover-subtitle {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-family: sans-serif;
    text-transform: uppercase;
}

.hover-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.hover-times span {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #e5cd8d;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-family: sans-serif;
}

.hover-desc {
    color: #bbb;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-family: sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
}

.hover-status {
    font-size: 1.05rem;
    font-weight: bold;
    text-align: left;
    font-family: 'Oswald', sans-serif;
}

/* Modal Tải Game */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: rgba(15, 8, 8, 0.98);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(212, 175, 55, 0.15);
    padding: 40px 50px;
    position: relative;
    text-align: center;
    min-width: 450px;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #e5cd8d;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #ff0000;
    transform: scale(1.2);
}

.modal-title {
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    letter-spacing: 2px;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(180deg, #351a0b 0%, #170701 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #ecd292;
    padding: 15px 20px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.dl-btn:hover {
    background: linear-gradient(180deg, #49240f 0%, #290d02 100%);
    color: #fff;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.dl-btn i {
    font-size: 1.4rem;
}

.dl-mega {
    border-left: 4px solid #d9272e;
}

.dl-gdrive {
    border-left: 4px solid #1fa363;
}

.dl-direct {
    border-left: 4px solid #e5cd8d;
}

/* Ẩn hoàn toàn nếu ở Mobile hoặc Tablet (Max 992px là chuẩn Bootstrap Tablet) */
@media (max-width: 992px) {
    .event-sidebar {
        display: none;
    }
}