* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --theme-accent-a: #00ff8c;
    --theme-accent-b: #00ff8c;
    --theme-accent-c: #00ff8c;
    --theme-accent-gradient: linear-gradient(135deg, rgba(0, 255, 140, 0.94), rgba(0, 255, 140, 0.9));
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    min-height: 100vh;
    padding: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #14182d;
    padding: 12px 20px;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 4px solid var(--theme-accent-a);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-home-link,
.topbar-home-link:hover {
    text-decoration: none;
    color: inherit;
}

.topbar-logo {
    width: 40px;
    height: 40px;
    background: var(--theme-accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0e27;
    font-weight: 700;
    font-size: 0.85em;
}

.topbar-site-name {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: #14182d;
    color: var(--theme-accent-a);
    text-decoration: none;
    font-weight: 600;
}

.topbar-link:hover {
    background: #1f2539;
    color: var(--theme-accent-b);
}

a {
    color: var(--theme-accent-a);
    text-decoration: none;
}

a:hover {
    color: var(--theme-accent-b);
    text-decoration: underline;
}

.container {
    display: grid;
    grid-template-columns: 0.25fr 4.875fr 4.875fr 0.25fr;
    grid-template-areas:
        ". statcard tournaments ."
        ". matches matches ."
        ". bans bans ."
        ". maps maps .";
    row-gap: 24px;
    column-gap: 24px;
    margin: 0;
    padding: 16px 0;
    align-items: stretch;
}
.site-footer {
    background: #14182d;
    border-top: 4px solid #00ff8c;
    padding: 16px 20px;
    margin-top: 16px;
    color: #ffffff;
    width: 100%;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    background: #00ff8c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0e27;
    font-weight: 700;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}
.profile-header {
    display: flex;
    gap: 20px;
    background: #1a1f3a;
    border-radius: 0;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
    align-items: flex-start;
    grid-area: statcard;
}


.profile-header { display: flex; align-items: flex-start; gap: 24px; }
.profile-header .team-info { flex: 1; }

/* ensure profile (statcard) and roster stretch to same row height */
.profile-header, .roster-section { align-self: stretch; }

      

.team-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.team-info > div:first-child {
    margin-bottom: 20px;
}

.roster-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.team-name-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

.team-name-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.team-name {
    font-size: 2.5em;
    font-weight: bold;
    color: #00ff8c;
    margin: 0;
    text-align: center;
}


.team-icon {
    height: 40px;
    border-radius: 0;
    object-fit: cover;
    background: #1a1f3a;
}

.team-icon-container {
    position: relative;
    display: inline-block;
}
.roster-section {
    background: #1a1f3a;
    border-radius: 0;
    padding: 30px;
    margin-top: 0;
    grid-area: roster;
}

.roster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}


.roster-header h2 {
    color: #00ff8c;
    font-size: 1.5em;
    margin: 0;
}

.player-list-intro {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.player-list-intro h1,
.player-list-intro p {
    color: #ffffff;
}

.team-list-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.teams-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.teams-tab {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(20, 24, 45, 0.7);
    color: #c7d2ff;
    font-weight: 700;
    padding: 10px 14px;
    cursor: pointer;
}

.teams-tab:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.teams-tab.is-active {
    background: #00ff8c;
    color: #0a0e27;
    border-color: #00ff8c;
}

.region-group {
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.region-box-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.region-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    padding: 8px;
}

.region-heading {
    display: flex;
    flex-direction: column;
}

.region-heading h2 {
    color: #c7d2ff;
    font-size: 1.75rem;
    margin: 0;
}

.region-heading span {
    color: #a7b2ff;
    font-size: 0.95rem;
}

.region-emea {
    background: rgba(0, 196, 196, 0.1);
    border-color: rgba(0, 196, 196, 0.35);
}

.region-na {
    background: rgba(130, 59, 242, 0.1);
    border-color: rgba(130, 59, 242, 0.35);
}

.region-americas {
    background: rgba(126, 64, 236, 0.1);
    border-color: rgba(126, 64, 236, 0.35);
}

.region-asia {
    background: rgba(245, 0, 0, 0.1);
    border-color: rgba(245, 0, 0, 0.35);
}

.region-china {
    background: rgba(255, 197, 36, 0.1);
    border-color: rgba(255, 197, 36, 0.35);
}

.region-eastasia {
    background: rgba(245, 0, 0, 0.1);
    border-color: rgba(245, 0, 0, 0.35);
}

.region-inactive {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(199, 199, 199, 0.2);
}

.region-default {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.team-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    justify-items: center;
}

.team-box {
    width: 100%;
    max-width: 360px;
    min-width: 300px;
    background: #1a1f3a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.team-box.region-emea {
    background: rgba(0, 196, 196, 0.12);
    border-color: rgba(0, 196, 196, 0.35);
}

.team-box.region-na {
    background: rgba(130, 59, 242, 0.12);
    border-color: rgba(130, 59, 242, 0.35);
}

.team-box.region-americas {
    background: rgba(126, 64, 236, 0.12);
    border-color: rgba(126, 64, 236, 0.35);
}

.team-box.region-asia {
    background: rgba(245, 0, 0, 0.12);
    border-color: rgba(245, 0, 0, 0.35);
}

.team-box.region-china {
    background: rgba(255, 197, 36, 0.12);
    border-color: rgba(255, 197, 36, 0.35);
}

.team-box.region-eastasia {
    background: rgba(245, 0, 0, 0.12);
    border-color: rgba(245, 0, 0, 0.35);
}

.team-box.region-default {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.team-box.region-inactive {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(199, 199, 199, 0.3);
}

.team-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.team-box-header img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    padding: 6px;
}

.team-box-title {
    color: #00ff8c;
    font-size: 1.1rem;
    font-weight: 700;
}

.team-box-subtitle {
    color: #c7d2ff;
    font-size: 0.9rem;
    font-weight: 700;
}

.team-roster {
    width: 100%;
    border-collapse: collapse;
}

.team-roster th,
.team-roster td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5e7ff;
    text-align: left;
}

.team-roster th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a7b2ff;
}

.team-roster .role-cell {
    width: 56px;
    text-align: center;
}

.roster-role-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
}

.team-roster .related-team-cell {
    width: 64px;
    text-align: center;
}

.related-team-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
}

.related-team-link[aria-disabled="true"] {
    pointer-events: none;
}

.related-team-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
}

.related-team-empty,
.related-team-text {
    color: #a7b2ff;
    font-size: 0.9rem;
}

.team-roster a {
    color: #00ff8c;
    text-decoration: none;
}

.team-roster a:hover {
    text-decoration: underline;
}

.team-box-empty {
    color: #a7b2ff;
    font-size: 0.92rem;
    padding: 8px 0;
}

.roster-toggle {
    width: 100%;
    margin: 4px 0 10px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 24, 45, 0.7);
    color: #c7d2ff;
    font-weight: 600;
    cursor: pointer;
}

.roster-toggle:hover {
    background: rgba(0, 255, 140, 0.2);
    color: #ffffff;
}

.team-roster-content.is-hidden {
    display: none;
}

.roster-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.roster-table thead {
    background: #2a2f4a;
    border-bottom: 2px solid #84af8f;
    text-align: left;
}

.roster-table th {
    padding: 12px;
    text-align: left;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.icon-column {
    width: 50px;
    text-align: center !important;
}

.roster-table td {
    text-align: left;
    padding: 12px;
    color: #ffffff;
    border-bottom: 1px solid #2a2f4a;
    font-size: 0.95em;
}

.roster-icon {
            max-height: 30px;
            max-width: 30px;
            border-radius: 0;
            object-fit: cover;
            background: #1a1f3a;
        }

.roster-table tbody tr:hover {
    background: #2a2f4a;
}

.roster-table tbody tr:hover .roster-icon {
    background: #2a2f4a;
}

.roster-table tfoot {
    border-top: 2px solid #84af8f;
    background: #2a2f4a;
    font-weight: 600;
}

.roster-table tfoot td {
    padding: 12px;
    color: #ffffff;
    border-bottom: none;
}


/* recent matches table */
.recent-section {
    margin-top: 26px;
    grid-area: matches;
}


.match-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.match-section-header h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    letter-spacing: -0.03em;
    color: #00ff8c;
}

.table-shell {
    overflow: hidden;
    background: #1a1f3a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.tournaments-section {
    background: #1a1f3a;
    border-radius: 0;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: none;
    grid-area: tournaments;
}

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h2 { color: #00ff8c; font-size: 1.5em; margin: 0; }

.tournaments-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.tournaments-table thead { background: #2a2f4a; border-bottom: 2px solid #84af8f; text-align: left; }
.tournaments-table th { padding: 12px; text-align: left; color: #ffffff; font-weight: 600; text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.5px; }
.tournaments-table td { text-align: left; padding: 12px; color: #ffffff; border-bottom: 1px solid #2a2f4a; font-size: 0.95em; }
.tournaments-table tbody tr.gold { background: rgba(255, 215, 0, 0.12); border-left: 6px solid #ffd700; }
.tournaments-table tbody tr.silver { background: rgba(192, 192, 192, 0.12); border-left: 6px solid #c0c0c0; }
.tournaments-table tbody tr.bronze { background: rgba(205, 127, 50, 0.12); border-left: 6px solid #cd7f32; }
.tournaments-table tbody tr:hover { background: rgba(42, 47, 74, 0.9); }
.tournaments-table tbody tr:hover td { color: #ffffff; }
.tournaments-table tfoot { border-top: 2px solid #84af8f; background: #2a2f4a; font-weight: 600; }
.tournaments-table tfoot td { padding: 12px; color: #ffffff; border-bottom: none; }

.table-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0; }
.page-btn { background: #2a2f4a; color: #ffffff; border: 1px solid #84af8f; border-radius: 4px; padding: 4px 12px; font-size: 1.1em; cursor: pointer; transition: background 0.2s; }
.page-btn:hover:not(:disabled) { background: #3a3f6a; }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-info { color: #84af8f; font-size: 0.9em; min-width: 60px; text-align: center; }

.matches-table { width: 100%; border-collapse: collapse; }
.matches-table thead { background: #2a2f4a; border-bottom: 2px solid #84af8f; text-align: left; }
.matches-table th { padding: 12px; text-align: left; color: #ffffff; font-weight: 600; text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.5px; }
.matches-table td { text-align: left; padding: 12px; color: #ffffff; border-bottom: 1px solid #2a2f4a; font-size: 0.95em; }
.match-icon { max-height: 30px; max-width: 30px; border-radius: 0; object-fit: cover; }
.matches-table tbody tr:hover { background: #2a2f4a; }
.matches-table tbody tr:hover .recent-team-pill { background: #2a2f4a; }
.matches-table tfoot { border-top: 2px solid #84af8f; background: #2a2f4a; font-weight: 600; }
.matches-table tfoot td { padding: 12px; color: #ffffff; border-bottom: none; }

.recent-matchup-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.recent-team-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 700;
}

.recent-team-pill:hover {
    background: rgba(0, 255, 140, 0.12);
}

.recent-team-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    border-radius: 6px;
}

.recent-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 255, 140, 0.12);
    color: #dffdf0;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.recent-score-badge.is-win {
    background: rgba(0, 255, 140, 0.16);
    color: #7dffb0;
}

.recent-score-badge.is-loss {
    background: rgba(231, 76, 60, 0.18);
    color: #ffb1aa;
}

.recent-link-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-link-pill:hover {
    background: rgba(0, 255, 140, 0.14);
}

.recent-table-empty {
    text-align: center;
    color: #a9b8d4;
    padding: 30px 18px;
}

.recent-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.recent-page-button {
    padding: 10px 16px;
    border: 1px solid rgba(0, 255, 140, 0.5);
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    border-radius: 0;
}

.recent-page-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.recent-page-info {
    color: #c7d2ff;
}

.filter-panel {
    background: #1a1f3a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.filter-panel.is-collapsed .filter-panel-content {
    display: none;
}

.filter-toggle {
    width: 100%;
    background: #14182d;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
}

.filter-panel.is-open {
    position: fixed;
    inset: 48px 24px auto 24px;
    max-height: calc(100vh - 72px);
    z-index: 1000;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    overflow: auto;
    padding: 20px;
}

.tournaments-section > .filter-panel {
    margin-bottom: 14px;
}

.filter-panel.is-open .filter-panel-content {
    display: block;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.filter-header h2 {
    color: #00ff8c;
    font-size: 1.2em;
    margin: 0;
}

.filter-mode-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-mode-label {
    color: #c7d2ff;
    font-size: 0.95rem;
}

.filter-mode-select {
    background: #14182d;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 8px 10px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    cursor: pointer;
    user-select: none;
}

.filter-option.is-active {
    background: rgba(0,255,65,0.18);
    border: 1px solid rgba(0,255,65,0.35);
}

.filter-option input {
    accent-color: #00ff8c;
}

.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.graph-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.compare-view-toggle {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.compare-view-button {
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #c7d2ff;
    cursor: pointer;
    font-weight: 600;
}

.compare-view-button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.compare-view-button.is-active {
    background: #00ff8c;
    color: #0a0e27;
}

.graph-collapse-toggle {
    background: #14182d;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
}

.graph-collapse-toggle:hover {
    background: #1f2539;
}

.graph-header h2 {
    color: #00ff8c;
    font-size: 1.5em;
    margin: 0;
}


.graph-container { position: relative; height: 350px; width: 100%; margin-top: 15px; }

.ban-graph-section {
    background: #1a1f3a;
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 0;
    border: none;
    gap: 12px;
    grid-area: bans;
}

.ban-graph-section.is-collapsed .ban-results-chart {
    display: none;
}

.ban-graph-section.is-collapsed .graph-header {
    margin-bottom: 0;
}

.ban-results-chart {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.ban-pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.ban-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.ban-pill img,
.ban-pill-role {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #0f1427;
    flex-shrink: 0;
}

.ban-pill img {
    object-fit: cover;
}

.ban-pill img.ban-pill-role-icon {
    object-fit: contain;
    padding: 4px;
}

.ban-pill-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7dffb0;
    font-weight: 800;
}

.ban-pill-content span {
    color: #ffffff;
    font-weight: 600;
    display: block;
}

.ban-pill-content strong {
    color: #00ff8c;
    display: block;
    font-size: 0.95rem;
}

.ban-pill-content small {
    color: #a7b2ff;
    font-size: 0.8rem;
}

.hero-bar-row {
    display: grid;
    gap: 8px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.hero-label span {
    color: #ffffff;
    font-weight: 700;
}

.hero-bars {
    display: grid;
    gap: 6px;
}

.hero-bar-group {
    display: grid;
    grid-template-columns: 1fr 2.5rem;
    align-items: center;
    gap: 8px;
    position: relative;
}

.hero-bar-team-name {
    position: absolute;
    top: -22px;
    left: 0;
    color: #ffffff;
    font-size: 0.82rem;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: #1a1f3a;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    transform: translateY(4px);
}

.hero-bar-group:hover .hero-bar-team-name {
    opacity: 1;
    transform: translateY(0);
}

.hero-bar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    height: 12px;
    position: relative;
    overflow: hidden;
}

.hero-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.hero-bar-value {
    color: #ffffff;
    font-weight: 700;
    min-width: 2.5rem;
    text-align: right;
}

.hero-icon {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 8px;
}

.map-graph-section {
    background: #1a1f3a;
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 0;
    border: none;
    gap: 12px;
    grid-area: maps;
}

.map-graph-section.is-collapsed .map-results-chart {
    display: none;
}

.map-graph-section.is-collapsed .graph-header {
    margin-bottom: 0;
}

.map-results-chart {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.map-pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.map-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.map-pill.has-map-background {
    background: center / cover no-repeat var(--map-pill-bg-image);
}

.map-pill.has-map-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 14, 39, 0.9) 0%, rgba(10, 14, 39, 0.72) 55%, rgba(10, 14, 39, 0.85) 100%);
}

.map-pill-badge {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #0f1427;
    color: #7dffb0;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-pill-icon {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #0f1427;
    object-fit: contain;
    padding: 4px;
    flex-shrink: 0;
}

.map-pill-content span {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-weight: 600;
    display: block;
}

.map-pill-content strong {
    position: relative;
    z-index: 1;
    color: #00ff8c;
    display: block;
    font-size: 0.95rem;
}

.map-pill-content small {
    position: relative;
    z-index: 1;
    color: #a7b2ff;
    font-size: 0.8rem;
}

.map-result-row {
    display: grid;
    gap: 8px;
}

.map-result-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.map-result-label span {
    color: #ffffff;
    font-weight: 700;
}

.comparison-subtext {
    color: #a7b2ff;
    font-size: 0.85rem;
}

.map-result-bars {
    display: grid;
    gap: 6px;
}

.map-result-bar-group {
    display: grid;
    grid-template-columns: 1fr 2.5rem;
    align-items: center;
    gap: 8px;
    position: relative;
}

.map-result-bar-name {
    position: absolute;
    top: -22px;
    left: 0;
    color: #ffffff;
    font-size: 0.82rem;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: #1a1f3a;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    transform: translateY(4px);
}

.map-result-bar-group:hover .map-result-bar-name {
    opacity: 1;
    transform: translateY(0);
}

.map-result-bar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    height: 12px;
    position: relative;
    overflow: hidden;
}

.map-result-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.map-result-bar-value {
    color: #ffffff;
    font-weight: 700;
    min-width: 2.5rem;
    text-align: right;
}

.empty-chart-message {
    color: #c7d2ff;
}

@media (max-width: 768px) {
    .profile-header { flex-direction: column; align-items: center; }
    .team-name { font-size: 2em; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .heroes-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .roster-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .roster-table { font-size: 0.85em; }
    .roster-table th, .roster-table td { padding: 8px; }
    .stats-graph-section { padding: 20px; }
    .graph-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .graph-container { height: 250px; }
}
