.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
}
.tournament-card {
    position: relative;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    overflow: hidden;
    display: block;
    cursor: pointer;
}
.tournament-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
}
.bracket-chips {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}
.bracket-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.bracket-chip:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 149, 255, 0.4);
    transform: translateY(-1px);
}
.card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
}
.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tournament-card h3 {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.tournament-card .meta {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.tournament-card .badge {
    align-self: flex-start;
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-blue);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* SEARCH BOX CLASS */
.search-container {
    max-width: 1350px;
    margin: 0 auto 20px auto;
    width: 100%;
    padding: 0 0px;
}
.search-box {
    position: relative;
    width: 100%;
}
.search-box input {
    width: 100%;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 20px 12px 45px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}
.search-box input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 149, 255, 0.25);
    background: rgba(20, 20, 22, 0.95);
}
.search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}
.search-box input:focus + .search-icon {
    color: var(--accent-blue);
}
.filters-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.filter-group label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.filter-group select {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 35px;
}
.filter-group select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 149, 255, 0.2);
    background: rgba(20, 20, 22, 0.95);
}

/* OVERRIDE MIRROR.CSS FOR SCROLLING */
body {
    overflow-y: auto !important;
    height: auto !important;
}
.mirror-container {
    height: auto !important;
}

/* PREMIUM GAME FILTER CHIPS */
.game-filter-container {
    margin-top: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.section-label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.game-chips-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.game-chip {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}
.game-chip:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}
.game-chip.active {
    color: white !important;
    transform: translateY(-2px);
}

/* Ultimate (Gold) */
.game-chip[data-game="game/ultimate"]:hover,
.game-chip[data-game="game/ultimate"].active {
    border-color: #ffae00;
    box-shadow: 0 0 15px rgba(255, 174, 0, 0.3);
    background: rgba(255, 174, 0, 0.1);
}
/* Tekken (Cyan) */
.game-chip[data-game="game/tekken-8"]:hover,
.game-chip[data-game="game/tekken-8"].active {
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    background: rgba(0, 210, 255, 0.1);
}
/* Street Fighter (Pink) */
.game-chip[data-game="game/street-fighter-6"]:hover,
.game-chip[data-game="game/street-fighter-6"].active {
    border-color: #ff3366;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.3);
    background: rgba(255, 51, 102, 0.1);
}
/* Melee (Green) */
.game-chip[data-game="game/melee"]:hover,
.game-chip[data-game="game/melee"].active {
    border-color: #39ff14;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
    background: rgba(57, 255, 20, 0.1);
}
/* All Games (Blue) */
.game-chip[data-game="all"]:hover,
.game-chip[data-game="all"].active {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 149, 255, 0.3);
    background: rgba(0, 149, 255, 0.1);
}
/* Default other games (Purple) */
.game-chip.other-game:hover,
.game-chip.other-game.active {
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.1);
}

/* NAVIGATION TABS */
.navigation-row {
    max-width: 1350px;
    margin: 0 auto 20px auto;
    width: 100%;
    display: flex;
    gap: 15px;
    padding: 0 20px;
    box-sizing: border-box;
}
.nav-tab {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    text-decoration: none;
    padding: 10px 20px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.nav-tab:hover {
    color: white;
    border-bottom-color: rgba(0, 242, 255, 0.3);
}
.nav-tab.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

/* PREMIUM PULSING LIVE DOT & BADGE STYLING */
.tournament-card .badge.entrants {
    background: rgba(10, 132, 255, 0.2) !important;
    color: #0084ff !important;
    border: 1px solid rgba(10, 132, 255, 0.4) !important;
    font-weight: 900 !important;
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0, 132, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tournament-card .badge.live {
    background: rgba(255, 45, 85, 0.15) !important;
    color: #ff2d55 !important;
    border: 1px solid rgba(255, 45, 85, 0.3) !important;
    font-weight: 900 !important;
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(255, 45, 85, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tournament-card .badge.upcoming {
    background: rgba(255, 159, 10, 0.15) !important;
    color: #ff9f0a !important;
    border: 1px solid rgba(255, 159, 10, 0.3) !important;
    font-weight: 900 !important;
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ff2d55;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.7);
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 45, 85, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 45, 85, 0);
    }
}

/* INTERACTIVE LOCATION PIN STYLING */
.location a {
    transition: all 0.2s ease !important;
}
.location a:hover {
    color: var(--accent-blue) !important;
}
.location a:hover .loc-text {
    text-decoration: underline;
    color: white !important;
}
