/* ==========================================================================
   PHẦN 1: CẤU HÌNH GIAO DIỆN (VARIABLES)
   ========================================================================== */
:root {
    /* MÀU SẮC CHỦ ĐẠO: Vàng Gold & Đen Huyền Bí */
    --primary-color: #FFD700;
    --primary-dark: #C5A000;
    --primary-glow: rgba(255, 215, 0, 0.4);

    --accent-color: #00E5FF;
    /* Xanh Cyan cho các điểm nhấn công nghệ */
    --danger-color: #FF3D00;
    /* Đỏ cho các cảnh báo/luật cấm */

    --bg-body: #050505;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --bg-panel: rgba(18, 18, 24, 0.95);
    --bg-card: #0F0F12;

    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;
    --text-gold: #FFD700;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-highlight: 1px solid var(--primary-color);

    /* FONT FAMILY */
    --font-heading: 'Saira', sans-serif;
    --font-body: 'Be Vietnam Pro', sans-serif;

    /* HIỆU ỨNG */
    --transition-speed: 0.3s;
    --box-shadow-glow: 0 0 20px rgba(255, 215, 0, 0.15);
}

/* RESET CSS CƠ BẢN */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    text-decoration: none !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('https://lienquan.garena.vn/wp-content/uploads/2024/05/d29813c1e81bd9584113bc1443d1b7505fc525672c8c01.jpg');
    /* FULL HD LEAGUE BACKGROUND */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* LỚP PHỦ TỐI ĐỂ DỄ ĐỌC CHỮ - PREMIUM GRADIENT */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5, 5, 8, 0.4) 0%, rgba(5, 5, 8, 0.9) 100%);
    z-index: -1;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--danger-color);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--danger-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* TYPOGRAPHY UTILS */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-gold {
    color: var(--text-gold) !important;
}

.text-cyan {
    color: var(--accent-color) !important;
}

.text-red {
    color: var(--danger-color) !important;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* SCROLLBAR CUSTOM */
::-webkit-scrollbar {
    width: 8px;
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* CONTAINER CHUẨN */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* BUTTON STYLE */
.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #000;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 16px;
    padding: 18px 45px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-main:hover::before {
    left: 100%;
}

.btn-main:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
    color: #000;
}

/* ==========================================================================
   PHẦN 2: ANIMATION (HIỆU ỨNG ĐỘNG)
   ========================================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes textScan {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* GALLERY SECTION */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover::after {
    opacity: 1;
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

/* ==========================================================================
   PHẦN 3: NAVIGATION (MENU)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: 0.3s;
}

.navbar.scrolled {
    height: 60px;
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-color);
}

/* ==========================================================================
   PHẦN 4: HERO SECTION (BANNER CHÍNH)
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
    overflow: hidden;
    background-image: url('assets/hero_bg_new.jpg');
    background-size: cover;
    background-position: center bottom;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 8, 0.2) 0%, rgba(5, 5, 8, 0.6) 60%, var(--bg-body) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 1000px;
    animation: fadeInUp 1s ease-out;
    margin-top: auto;
    padding-bottom: 100px;
}

.tagline {
    color: var(--accent-color);
    font-size: 18px;
    letter-spacing: 5px;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: clamp(32px, 6vw, 70px);
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    z-index: 2;
    position: relative;
}

.hero-title span {
    display: block;
    font-size: 0.4em;
    letter-spacing: 10px;
    margin-top: 5px;
    color: var(--primary-color);
}

.countdown-box {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    perspective: 1000px;
}

.timer-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 20px;
    min-width: 120px;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    position: relative;
}

.timer-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.timer-item:hover {
    transform: translateY(-5px) rotateX(10deg);
    border-color: var(--primary-color);
}

.timer-num {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    text-shadow: 0 0 15px var(--primary-glow);
}

.timer-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 2px;
    margin-top: 10px;
    display: block;
}

/* ==========================================================================
   PHẦN 5: THÔNG TIN CHI TIẾT (GIỮ NGUYÊN NỘI DUNG)
   ========================================================================== */
.section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 48px;
    color: #fff;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--primary-color);
    letter-spacing: 2px;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: rgba(15, 15, 18, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-glow);
}

.info-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.info-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.info-card p {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 10px;
}

.highlight-text {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

/* ==========================================================================
   PHẦN 6: ĐỘI TUYỂN (CÓ ẢNH THẬT)
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.team-card {
    height: 400px;
    background: #000;
    position: relative;
    border: 1px solid #333;
    overflow: hidden;
    cursor: pointer;
    transition: 0.4s;
}

.team-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.team-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    transition: transform 0.6s;
    filter: grayscale(100%) brightness(0.6);
}

.team-card:hover .team-bg {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1);
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, #000, transparent);
}

.team-seed {
    background: var(--primary-color);
    color: #000;
    font-weight: bold;
    font-size: 12px;
    padding: 3px 8px;
    display: inline-block;
    margin-bottom: 5px;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

/* ==========================================================================
   PHẦN 7: SƠ ĐỒ ĐẤU (BRACKET - CÓ ĐƯỜNG NỐI)
   ========================================================================== */
.bracket-wrapper {
    overflow-x: auto;
    padding: 80px 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://lienquan.garena.vn/wp-content/uploads/2024/05/62cda115a78344fc4fa5154881c9da255c25f64ee32a71.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.bracket {
    display: flex;
    justify-content: center;
    gap: 60px;
    min-width: 900px;
    padding: 0 40px;
}

.round {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.round-title {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-weight: bold;
}

.match {
    width: 300px;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid #333;
    border-radius: 12px;
    position: relative;
    padding: 10px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    transition: 0.3s;
}

.match:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.team-row.winner .team-input {
    color: #FFD700;
}

.team-row.winner .score-input {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Đường nối Bracket */
.match::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #444;
}

.match.final::after {
    display: none;
}

.match:nth-child(1)::before {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    width: 2px;
    height: 100%;
    /* Sẽ chỉnh bằng CSS cụ thể */
    background: #444;
    height: 130px;
    transform: translateY(50%);
}

.match.final::before {
    display: none;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    transition: 0.3s;
}

.team-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 180px;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 16px;
    text-transform: uppercase;
}

.score-input {
    width: 40px;
    height: 40px;
    background: #0a0a0a;
    border: 1px solid #333;
    color: #fff;
    text-align: center;
    font-weight: 900;
    font-size: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match.final {
    border: 3px solid #FFD700;
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

/* ==========================================================================
   PHẦN 8: LUẬT LỆ & GIẢI THƯỞNG (ĐẦY ĐỦ NỘI DUNG)
   ========================================================================== */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.rule-box {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.rule-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.rule-list {
    list-style: none;
}

.rule-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: #ddd;
}

.rule-list li::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.rule-list li.warn {
    color: #fff;
}

.rule-list li.warn::before {
    content: '\f071';
    color: var(--danger-color);
}

.special-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 61, 0, 0.1);
    border: 1px solid var(--danger-color);
    color: #fff;
    border-radius: 4px;
}

.prize-flex {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    margin-top: 60px;
}

.prize-item {
    background: linear-gradient(180deg, #1a1a20 0%, #0a0a0c 100%);
    border: 1px solid #333;
    width: 300px;
    text-align: center;
    padding: 30px;
    position: relative;
    transition: 0.3s;
}

.prize-item.first {
    transform: scale(1.15);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    z-index: 2;
}

.prize-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

.prize-cash {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin: 10px 0;
}

.prize-item.first .prize-cash {
    color: var(--primary-color);
}

/* ==========================================================================
   PHẦN 9: FOOTER & ADMIN
   ========================================================================== */
footer {
    background: #000;
    padding: 60px 0 30px;
    border-top: 1px solid #222;
    text-align: center;
    margin-top: 50px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--primary-color);
    color: #000;
}

/* ADMIN MODAL */
#admin-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--danger-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(255, 61, 0, 0.5);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #111;
    padding: 40px;
    width: 600px;
    border: 1px solid var(--primary-color);
}

.admin-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-input {
    width: 100%;
    padding: 10px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
}

/* ==========================================================================
   PHẦN 9: FOOTER (LIÊN HỆ & THÔNG TIN)
   ========================================================================== */
.footer {
    padding: 100px 0 40px;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 35px;
    text-transform: uppercase;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer h4::before {
    content: '';
    width: 30px;
    height: 3px;
    background: var(--primary-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;
    transition: 0.3s;
    font-size: 16px;
    font-weight: 500;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    color: #888;
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-contact b {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    text-align: center;
    color: #444;
    font-size: 14px;
    letter-spacing: 1px;
}

.socials {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: 0.33s;
    font-size: 18px;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

#admin-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #ff4500;
    /* Orange-red like the button in screenshot */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
    z-index: 1001;
    font-size: 24px;
    transition: 0.3s;
}

#admin-trigger:hover {
    transform: scale(1.1) rotate(45deg);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ==========================================================================
   PHẦN 10: RESPONSIVE DESIGN (TƯƠNG THÍCH DI ĐỘNG)
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(5, 5, 8, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
        margin: 0;
        padding: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .nav-links a {
        font-size: 24px;
        font-weight: 800;
    }

    .hide-mobile {
        display: none !important;
    }

    .hero {
        min-height: 600px;
        height: 100vh;
        background-position: center;
    }

    .hero-content {
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-title {
        font-size: 36px !important;
        margin-bottom: 15px;
    }

    .hero-title span {
        letter-spacing: 3px !important;
        font-size: 0.7em !important;
        margin-top: 5px;
    }

    .tagline {
        font-size: 14px;
        letter-spacing: 3px;
        margin-bottom: 10px;
    }

    .countdown-box {
        gap: 10px;
        margin-bottom: 30px;
    }

    .timer-item {
        min-width: 70px;
        padding: 10px 5px;
    }

    .timer-num {
        font-size: 26px;
    }

    .timer-label {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }

    .btn-main {
        padding: 15px 25px;
        font-size: 14px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px;
    }

    .bracket-wrapper {
        padding: 40px 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .prize-flex {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .prize-item {
        width: 100%;
        max-width: 280px;
    }

    .prize-item.first {
        transform: scale(1.05);
        order: -1;
    }

    .hero-title {
        font-size: 28px !important;
    }

    .hero-title span {
        letter-spacing: 2px !important;
    }

    .hero-content {
        padding-bottom: 25px;
    }

    .timer-item {
        min-width: 60px;
        padding: 8px 3px;
    }

    .timer-num {
        font-size: 22px;
    }

    .btn-main {
        padding: 12px 20px;
        font-size: 13px;
    }

    .modal-box {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .admin-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Fix Bracket Horizontal Scroll */
.bracket-wrapper {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
}

.bracket-wrapper::-webkit-scrollbar {
    height: 4px;
}

.bracket-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}