.gobattleleaderboards {
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tournament-bracket {
    max-width: 1200px;
    margin: 0 auto;
}

.round-section {
    margin-bottom: 40px;
}

.round-title {
    text-align: center;
    font-size: 18px;
    font-family: "Metropolis Bold";
    color: #3471db;
    letter-spacing: 1px;
    background-color: #f1faff;
    margin-bottom: 0px;
    width: 250px;
    padding: 10px;
    margin: auto;
    border-radius: 25px 25px 0px 0px;
}

.matchups-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    background-color: #f1faff;
    border-radius: 25px;
    padding: 15px;
}

.matchup {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.matchup-title {
    font-family: "Metropolis Bold";
    font-size: 18px;
    color: #4b4a4a;
    text-align: center;
    margin: 0;
    padding: 15px;
    background-color: #f1faff;
}

.matchup-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.header-row {
    background-color: #f1faff;
    color: white;
}

.header-row th:first-child {
    border-top-left-radius: 25px;
}

.header-row th:last-child {
    border-top-right-radius: 25px;
}

.team-header,
.score-header {
    padding: 15px 20px;
    font-size: 16px;
    text-align: left;
    border: none;
    color: white;
    background-color: #3471db;
}

.score-header {
    text-align: center;
    width: 100px;
}

.team-row {
    background-color: #aed0f4;
}

.team-row:hover {
    background-color: #d1e7fd;
}

.team-row:nth-child(even) {
    background-color: #f1faff;
}

.team-row:nth-child(even):hover {
    background-color: #eeeeee;
}

.team-name {
    padding: 15px 20px;
    border: none;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #4a90e2;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.team-info span {
    font-family: "Metropolis Bold";
    color: #4b4a4a;
    font-size: 14px;
}

.team-score {
    padding: 15px 20px;
    text-align: center;
    color: #666;
    width: 100px;
    border: none;
}

/* YMCA teams get Y logo */
.team-row:has(.team-info span:contains("YMCA")) .team-logo {
    background-color: #0066cc;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><text x="12" y="16" text-anchor="middle" font-family="Arial" font-weight="bold" font-size="14">Y</text></svg>');
}

/* Hawks team gets a different logo */
.team-row:has(.team-info span:contains("Hawks")) .team-logo {
    background-color: #8b4513;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
}

.dark .round-title {
    color: #1784fe;
}
.dark .team-rank,
.dark .team-info span,
.dark .matchup-title {
    color: white;
}
.dark .matchup {
    border-radius: 0;
}

.dark .team-header {
    background-color: #1784fe;
}
.dark .round-title,
.dark .matchups-container,
.dark .matchup-title,
.dark .matchup-table {
    background-color: #1f2121;
}

.dark .team-row {
    background-color: #013d82;
}

.dark .team-row:nth-child(even) {
    background-color: #303239;
}

@media (max-width: 768px) {
    .matchups-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .round-title {
        font-size: 24px;
    }

    .matchup-title {
        font-size: 16px;
        padding: 12px;
    }

    .team-header,
    .score-header,
    .team-name,
    .team-score {
        padding: 12px 15px;
    }

    .team-info span {
        font-size: 13px;
    }
}
