* {
    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 8.75fr 180px 0.25fr;
    grid-template-areas:
    '. statcard  heroes .'
    '. graph  graph .'
    '. matches  matches .'
    '. maps maps .';
    row-gap: 20px;
    column-gap: 20px;
    margin: 0;
    padding: 16px 0;
}
.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;
}

.page-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.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;
}

.table-search {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin: 12px 0;
}

.table-search label {
    color: #c7d2ff;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.table-search input {
    min-width: 240px;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0f1427;
    color: #ffffff;
    border-radius: 0;
}

.table-search input:focus {
    outline: none;
    border-color: #00ff8c;
    box-shadow: 0 0 0 3px rgba(0, 255, 140, 0.12);
}

.player-table-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow-x: auto;
}


.section-header h2 {
    color: #00ff8c;
    font-size: 1.25rem;
    margin: 0;
}

.section-meta {
    color: #c7d2ff;
    font-size: 0.95rem;
}


.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);
}

.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;
}

.matches-table tbody tr:hover {
    background: #2a2f4a;
}

.matches-table tbody tr:hover .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;
}

.matchup-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.team-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 700;
}

.team-pill:hover {
    background: rgba(0, 255, 140, 0.12);
}

.team-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
}

.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;
}

.score-badge.is-win {
    background: rgba(0, 255, 140, 0.16);
    color: #7dffb0;
}

.score-badge.is-loss {
    background: rgba(231, 76, 60, 0.18);
    color: #ffb1aa;
}

.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);
}

.link-pill:hover {
    background: rgba(0, 255, 140, 0.14);
}

.table-empty {
    text-align: center;
    color: #a9b8d4;
    padding: 30px 18px;
}

.match-icon {
    max-height: 30px;
    max-width: 30px;
    border-radius: 0;
    object-fit: cover;
}


.stats-table {
    width: 100%;
    min-width: 940px;
    border-collapse: collapse;
    overflow: hidden;
    background: #12172d;
}

.stats-table th,
.stats-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5e7ff;
    text-align: left;
}

.stats-table th {
    cursor: pointer;
    position: relative;
    user-select: none;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.stats-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.stats-table tbody tr:last-child td {
    border-bottom: none;
}

.team-icon-cell {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.role-cell {
    width: 48px;
    text-align: center !important;
}

.role-icon-cell {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.team-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
}

.sortable {
    display: table-cell;
    vertical-align: middle;
    padding: 0;
}

.sortable > span {
    margin-left: 6px;
}

.sort-arrow {
    color: #00ff8c;
    font-size: 0.8em;
}

.player-link {
    color: #00ff8c;
    text-decoration: none;
}

.player-link:hover {
    text-decoration: underline;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.page-button {
    padding: 10px 16px;
    border: 1px solid rgba(0, 255, 140, 0.5);
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    border-radius: 0;
}

.page-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.page-info {
    color: #c7d2ff;
}

.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: 30px;
    align-items: flex-start;
    border: none;
    grid-area: statcard;
    position: relative;
}


.player-header-filter {
    position: absolute;
    top: 16px;
    right: 16px;
    left: auto;
    width: auto;
    z-index: 5;
}

.player-header-filter.is-collapsed {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    overflow: visible;
}

.profile-header > #filterPanel.player-header-filter.is-collapsed {
    position: absolute;
    top: 16px;
    right: 16px;
    left: auto;
    margin: 0;
}

.player-header-filter .filter-toggle {
    white-space: nowrap;
}

.player-header-filter.is-collapsed .filter-toggle {
    width: auto;
    min-width: 96px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
}

      

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.player-info > div:first-child {
    margin-bottom: 20px;
}

.stats-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.player-name-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.role-icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    object-fit: cover;
    background: #1a1f3a;
}

.player-name {
    font-size: 2.5em;
    font-weight: bold;
    color: #00ff8c;
    margin-bottom: 10px;
}

.player-title {
    font-size: 1.2em;
    color: #00ff8c;
    margin-bottom: 20px;
}

        .team-info {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .team-logo {
            height: 40px;
            border-radius: 0;
            object-fit: cover;
            background: #1a1f3a;
        }

        .team-logo-container {
    position: relative;
    display: inline-block;
}

.owwc-team-logo-container {
    position: relative;
    display: inline-block;
}

.owwc-team-logo-container.is-hidden {
    display: none;
}

.owwc-team-logo {
    height: 40px;
    width: auto;
    border-radius: 0;
    object-fit: contain;
    background: #1a1f3a;
}

.owwc-team-logo-container:hover .team-name {
    display: block;
}

.team-name {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1f3a;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 0;
    font-size: 1em;
    white-space: nowrap;
    margin: 0;
    margin-bottom: 8px;
    display: none;
    border: none;
    z-index: 10;
    font-weight: 600;
}

.team-logo-container:hover .team-name {
    display: block;
}

.stats-card {
    background: #1a1f3a;
    border: none;
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stats-card .stat-label {
    color: #ffffff;
}

.stats-card .stat-value {
    color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 60px;
    justify-content: flex-start;
}

.stat-label {
    font-size: 0.75em;
    opacity: 0.9;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.stat-value {
    font-size: 1.5em;
    font-weight: bold;
}


.stats-graph-section {
    background: #1a1f3a;
    border-radius: 0;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 30px;
    border: none;
    gap: 20px;
    grid-area: graph;
}

.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.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-header h2 {
    color: #00ff8c;
    font-size: 1.5em;
    margin: 0;
}

.stat-selector {
    display: flex;
    gap: 10px;
}

.stat-dropdown {
    padding: 10px 16px;
    background: #0a0e27;
    color: #ffffff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: capitalize;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stat-dropdown:hover {
    background: #84af8f;
    color: #0a0e27;
}

.stat-dropdown:focus {
    outline: none;
    background: #84af8f;
    color: #0a0e27;
}

.stat-dropdown option {
    background: #1a1f3a;
    color: #84af8f;
}

.graph-container {
    position: relative;
    height: 350px;
    width: 100%;
    margin-top: 15px;
}

.heroes-section {
    display: flex-reverse;
    gap: 40px;
    background: #1a1f3a;
    border-radius: 0;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    align-items: flex-start;
    border: none;
    grid-area:heroes;
}

.heroes-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.heroes-label h2{
    color: #00ff8c;
    font-size: 1.5em;
    margin: 0;
}

.heroes-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
} 

.hero-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100px;
    height: 100px;
}

.hero-card:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #2a2f4a;
}

.hero-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    color: white;
    padding: 4px;
    font-size: 0.7em;
    font-weight: bold;
    display: none;
}

.hero-card:hover .hero-name {
    display: block;
}

/* map collapse styles remain from earlier changes */

.map-graph-section {
    background: #1a1f3a;
    border-radius: 0;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 30px;
    border: none;
    gap: 20px;
    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: 12px;
}

.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: 10px;
}

.map-result-bar-group {
    display: grid;
    grid-template-columns: 1fr 3rem;
    align-items: center;
    gap: 10px;
    position: relative;
}

.map-result-bar-name {
    position: absolute;
    top: -26px;
    left: 0;
    color: #ffffff;
    font-size: 0.9rem;
    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: 18px;
    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;
}

.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.graph-header h2 {
    color: #00ff8c;
    font-size: 1.5em;
    margin: 0;
}

.graph-container {
    position: relative;
    height: 350px;
    width: 100%;
    margin-top: 15px;
}

.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;
    width: min(920px, calc(100vw - 48px));
    margin: 0 auto;
    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;
}

.filter-panel.is-open .filter-panel-content {
    display: block;
    margin-top: 14px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.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;
    border: 1px solid transparent;
}

.filter-option:hover {
    background: rgba(255,255,255,0.1);
}

.filter-option.is-active {
    background: rgba(0,255,65,0.18);
    border-color: rgba(0,255,65,0.35);
}

.filter-option input {
    accent-color: #00ff8c;
}

.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;
}

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .topbar-brand {
        justify-content: center;
    }

    .topbar-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        position: static;
    }

    .player-header-filter {
        position: static;
        width: 100%;
        margin-bottom: 12px;
    }

    .player-header-filter.is-collapsed .filter-toggle {
        width: 100%;
    }

    .filter-panel.is-open {
        inset: 42px 12px auto 12px;
        width: calc(100vw - 24px);
        padding: 16px;
    }

    .player-image-section {
        flex: 0 0 auto;
    }

    .player-name {
        font-size: 2em;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .heroes-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .matches-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .matches-table {
        font-size: 0.85em;
    }

    .matches-table th,
    .matches-table td {
        padding: 8px;
    }

    .stats-graph-section {
        padding: 20px;
    }

    .graph-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .graph-container {
        height: 250px;
    }
}

