html {
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #3a3a3a;
    font-family: Arial, sans-serif;
}
#header-bar {
    height: 64px;
    width: 100%;
    background-color: #1e1e1e;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    font-size: larger;
}
.header-inner {
    max-width: 1260px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 100%;
}
#pcmt-logo {
    height: 48px;
    width: auto;
    padding: 8px 0;
}
.header-content {
    display: flex;
    align-items: center;
    gap: 0;
    margin-right: 0;
    height: 100%;
}
#link-title {
    gap: 25px;
    margin-left: 15px;
}
#link-title p {
    color: white;
    margin: 0;
}
#link-title a {
    display: flex;
    align-items: center;
}
.header-buffer {
    width: 50px;
    align-self: stretch;
    background-color: #1e1e1e;
    border-left: 1px solid #333;
}
.header-link {
    color: #aaa;
    text-decoration: none;
    cursor: pointer;
    padding: 0 25px;
    display: flex;
    align-items: center;
    height: 100%;
    border-left: 1px solid #333;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom-color 0.2s;
    font-size: 15px;
}
.header-link:last-child {
    border-right: 1px solid #333;
}
.header-link:hover {
    color: white;
    border-bottom-color: #6dc5c7;
}
.header-link.active {
    color: #6dc5c7;
    border-bottom-color: #6dc5c7;
}

/* homepage */

.home-box {
    position: relative;
    display: flex;
    min-height: 400px;
    margin: 20px 0;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(to right, #272727, #282828);
    border-radius: 15px;
}
#about-text {
    position: relative;
    z-index: 1;
    width: 600px;
    max-width: 80%;
    margin-left: 100px;
    padding: 25px;
    color: whitesmoke;
    background: grey;
    border-radius: 15px;
    overflow: hidden;
}
@media (max-width: 900px) {
    #about-text {
        margin-left: auto;
        margin-right: auto;
    }
}
#what-pcmt {
    font-size: 200%;
    color: #6dc5c7;
}
#about-logo {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: auto;
    opacity: 0.3;
}
.home-box-nc {
    position: relative;
    display: flex;
    min-height: 400px;
    margin: 20px 0;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
#video {
    border: 2px solid transparent;
    border-radius: 15px;
    width: 650px;
    max-width: 80%;
    aspect-ratio: 16/9;
    margin-left: 100px;
    position: relative;
    overflow: hidden;
    background:
            linear-gradient(
                    135deg,
                    #6dc5c7,
                    #926acc
            ) border-box;
}
#video video {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    display: block;
    position: relative;
    object-fit: cover;
}
@media (max-width: 1000px) {
    #video {
        margin-left: auto;
        margin-right: auto;
    }
}
#quote {
    width: 500px;
    max-width: 35%;
    margin-right: 75px;
    color: whitesmoke;
    font-style: italic;
    font-size: 24px;
    font-family: Georgia, serif;
    line-height: 1.6;
}
.quote-text {
    margin-bottom: 10px;
}
.quote-author {
    text-align: right;
    font-size: 18px;
}
#how-to-play-text {
    position: relative;
    z-index: 1;
    width: 600px;
    max-width: 80%;
    margin-left: 100px;
    padding: 30px;
    color: whitesmoke;
    border-radius: 15px;
    overflow: hidden;
}
@media (max-width: 900px) {
    #how-to-play-text {
        margin-left: auto;
        margin-right: auto;
    }
}
.section-title {
    font-size: 200%;
    color: #6dc5c7;
}
.steps-list {
    line-height: 1.8;
    padding-left: 20px;
}
.steps-list li {
    margin-bottom: 15px;
}
.plat-chat-link {
    color: #6dc5c7;
    text-decoration: none;
}
.disclaimer {
    margin-top: 20px;
    font-size: 14px;
    font-style: italic;
}
.pc-logo {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: auto;
    transition: opacity 0.3s;
}
#latest-video {
    margin-left: 100px;
}
.video-title {
    font-size: 200%;
    color: #6dc5c7;
    margin-bottom: 20px;
}
#latest-video iframe {
    border-radius: 15px;
}
#bronze-babble-text {
    width: 500px;
    max-width: 80%;
    margin-right: 100px;
    padding: 30px;
    color: whitesmoke;
    background: grey;
    border-radius: 15px;
}

/* teams page */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.page-title-bar {
    margin: 30px 0 0;
    padding: 30px 40px;
    background: linear-gradient(to right, #272727, #282828);
    border-radius: 15px;
}
.page-title {
    font-size: 250%;
    color: #6dc5c7;
    margin: 0;
}
.season-container {
    margin: 20px 0;
}
.season-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(to right, #272727, #282828);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.season-toggle:hover {
    background: linear-gradient(to right, #2f2f2f, #303030);
}
.season-label {
    font-size: 150%;
    font-weight: bold;
    color: whitesmoke;
}
.ongoing-tag {
    color: #cc4444;
    font-size: 60%;
    font-weight: 600;
}
.toggle-icon {
    font-size: 24px;
    color: #6dc5c7;
    transition: transform 0.3s;
}
.season-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 10px;
}
.season-content.open {
    max-height: 2000px;
    padding: 20px 10px;
}
.teams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.team-card {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: #6dc5c7;
}
.team-card.expanded {
    border-color: #6dc5c7;
}
.team-expand {
    grid-column: 1 / -1;
    background: #2a2a2a;
    border: 1px solid #6dc5c7;
    border-radius: 10px;
    padding: 20px 25px;
    margin: -5px 0 5px;
    display: none;
}
.team-expand.open {
    display: block;
}
.team-expand-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
}
.team-expand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.team-expand-name {
    color: whitesmoke;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}
.team-expand-abbr {
    color: #777;
    font-size: 13px;
}
.team-expand-roster {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.team-expand-player {
    background: #333;
    color: #ccc;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
}
.team-expand-link {
    color: #6dc5c7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.team-expand-link:hover {
    text-decoration: underline;
}
.team-link {
    color: inherit;
    text-decoration: none;
}
.team-link:hover {
    text-decoration: underline;
    color: #6dc5c7;
}
.team-logo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6dc5c7, #926acc);
    opacity: 0.4;
}
.team-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.team-name {
    color: whitesmoke;
    font-size: 18px;
    margin: 0;
    text-align: center;
}

/* matches page */

.matches-columns {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}
.matches-col {
    flex: 1;
    min-width: 0;
}
.matches-col-title {
    color: #6dc5c7;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
}
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.matches-empty {
    color: #666;
    font-size: 14px;
    padding: 20px 0;
}
.matches-loading {
    color: #777;
    font-size: 14px;
    padding: 20px 0;
}
.match-card {
    display: block;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #3a3a3a;
    transition: border-color 0.2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.match-card:hover {
    border-color: #555;
}
.match-meta {
    color: #777;
    font-size: 12px;
    margin-bottom: 8px;
}
.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.match-team:last-child {
    justify-content: flex-end;
}
.match-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}
.match-team-name {
    color: #ccc;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-team-abbr {
    color: #777;
    font-size: 12px;
    flex-shrink: 0;
}
.match-winner .match-team-name {
    color: whitesmoke;
    font-weight: 600;
}
.match-score {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
}
.score-win {
    color: #5cb85c;
}
.score-loss {
    color: #888;
}
.score-separator {
    color: #555;
}
.match-vs {
    color: #555;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    padding: 0 6px;
}
.match-maps {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.match-map-tag {
    background: #333;
    color: #aaa;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}
.match-map-score {
    color: #ccc;
    font-weight: 600;
}
@media (max-width: 700px) {
    .matches-columns {
        flex-direction: column;
    }
}

/* ===== Match Detail Page ===== */

.md-header {
    background: linear-gradient(to right, #272727, #282828);
    border-radius: 15px;
    padding: 30px 40px;
    margin: 30px 0 0;
    text-align: center;
}
.md-stage-tag {
    color: #888;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.md-teams-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.md-team {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.md-team-left {
    justify-content: flex-end;
}
.md-team-right {
    justify-content: flex-start;
}
.md-team-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.md-team-left .md-team-info {
    align-items: flex-end;
    text-align: right;
}
.md-team-right .md-team-info {
    align-items: flex-start;
    text-align: left;
}
.md-team-name {
    color: #ccc;
    font-size: 20px;
    font-weight: 600;
}
.md-winner .md-team-name {
    color: whitesmoke;
}
.md-team-abbr {
    color: #666;
    font-size: 13px;
}
.md-score-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 30px;
    flex-shrink: 0;
}
.md-score {
    font-size: 36px;
    font-weight: 700;
}
.md-score-win {
    color: #5cb85c;
}
.md-score-loss {
    color: #666;
}
.md-score-sep {
    color: #555;
    font-size: 28px;
    font-weight: 400;
}
.md-map-scores {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.md-map-pill {
    background: #1e1e1e;
    border-radius: 6px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.md-map-pill-name {
    color: #aaa;
    font-size: 13px;
}
.md-map-pill-score {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    gap: 3px;
}
.md-pill-win {
    color: #5cb85c;
}
.md-pill-loss {
    color: #888;
}
.md-pill-sep {
    color: #555;
}

/* veto */

.md-veto {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
    padding: 14px 20px;
}
.md-veto-item {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}
.md-veto-ban {
    background: rgba(204, 68, 68, 0.15);
    color: #cc6666;
    border: 1px solid rgba(204, 68, 68, 0.25);
}
.md-veto-pick {
    background: rgba(92, 184, 92, 0.15);
    color: #7dcc7d;
    border: 1px solid rgba(92, 184, 92, 0.25);
}
.md-veto-decider {
    background: rgba(109, 197, 199, 0.15);
    color: #6dc5c7;
    border: 1px solid rgba(109, 197, 199, 0.25);
}

/* map tabs */

.md-map-tabs {
    display: flex;
    border-bottom: 1px solid #333;
    margin-top: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.md-map-tabs::-webkit-scrollbar {
    display: none;
}
.md-map-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: #777;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: color 0.2s;
}
.md-map-tab:hover {
    color: white;
}
.md-map-tab.active {
    color: #6dc5c7;
    border-bottom-color: #6dc5c7;
}

/* map sections */

.md-map-section {
    margin: 20px 0;
}
.md-map-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}
.md-map-section-name {
    color: #6dc5c7;
    font-size: 18px;
    font-weight: 600;
}
.md-map-section-score {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    gap: 4px;
}

/* team stats blocks */

.md-team-stats {
    background: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    border-left: 3px solid #555;
}
.md-team-stats-win {
    border-left-color: #5cb85c;
}
.md-team-stats-loss {
    border-left-color: #cc4444;
}
.md-team-stats-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.2);
}
.md-team-stats-name {
    color: whitesmoke;
    font-size: 15px;
    font-weight: 600;
}
.md-team-stats-abbr {
    color: #666;
    font-size: 12px;
}

/* stats table */

.md-stats-scroll {
    overflow-x: auto;
}
.md-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #ccc;
    table-layout: fixed;
}
.md-stats-table thead th {
    text-align: center;
    padding: 8px 10px;
    color: #888;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #333;
    white-space: nowrap;
    overflow: hidden;
}
.md-stats-table thead th.md-col-player {
    text-align: left;
}
.md-stats-table tbody td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.md-stats-table tbody td.md-col-player {
    text-align: left;
    color: whitesmoke;
    font-weight: 500;
}
.md-stats-table tbody td.md-col-rating {
    color: #6dc5c7;
    font-weight: 600;
}
.md-stats-table tbody tr:hover {
    background: rgba(109, 197, 199, 0.04);
}
.md-stats-table tbody tr:last-child td {
    border-bottom: none;
}
.md-stat-pos {
    color: #5cb85c;
}
.md-stat-neg {
    color: #cc4444;
}

@media (max-width: 600px) {
    .md-header {
        padding: 20px;
    }
    .md-team-name {
        font-size: 15px;
    }
    .md-score {
        font-size: 28px;
    }
    .md-score-box {
        padding: 0 16px;
    }
}

/* single map header */

.md-single-map-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 0 16px;
}
.md-single-map-name {
    color: #888;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.md-single-map-score {
    display: flex;
    align-items: center;
    gap: 10px;
}
.md-sms-team {
    color: #aaa;
    font-size: 14px;
    font-weight: 600;
}
.md-sms-num {
    font-size: 28px;
    font-weight: 700;
}
.md-sms-sep {
    color: #555;
    font-size: 22px;
}

/* round timeline */

.md-timeline {
    background: none;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.md-timeline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.md-timeline-team {
    color: #aaa;
    font-size: 13px;
    font-weight: 600;
    width: 40px;
    text-align: right;
    flex-shrink: 0;
}
.md-timeline-rounds {
    display: flex;
    align-items: center;
    gap: 3px;
}
.md-round {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    flex-shrink: 0;
}
.md-round-def {
    background: #6dc5c7;
}
.md-round-atk {
    background: #cc6666;
}
.md-round-empty {
    background: #1e1e1e;
}
.md-timeline-halfscore {
    color: #888;
    font-size: 14px;
    font-weight: 700;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.md-ot-label {
    color: #6dc5c7;
    font-size: 11px;
    letter-spacing: 1px;
}
.md-timeline-labels {
    margin-bottom: 0;
}

/* per-map agent column */

.md-stats-table thead th.md-col-agent {
    text-align: left;
    width: 10%;
}
.md-stats-table tbody td.md-col-agent {
    text-align: left;
    color: #888;
    font-size: 12px;
}
.md-stats-table thead th.md-col-player {
    width: 12%;
}
.md-stats-table thead th:not(.md-col-player):not(.md-col-agent) {
    width: 6.5%;
}

/* ===== Team Page Match Cards (updated) ===== */

.td-match-card {
    display: block;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 8px;
    border: 1px solid #3a3a3a;
    transition: border-color 0.2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.td-match-card:hover {
    border-color: #555;
}
.td-match-meta {
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
}
.td-match-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.td-match-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.td-match-team-left {
    justify-content: flex-end;
    text-align: right;
}
.td-match-team-right {
    justify-content: flex-start;
    text-align: left;
}
.td-match-name {
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.td-match-abbr {
    color: #666;
    font-size: 11px;
    flex-shrink: 0;
}
.td-match-winner .td-match-name {
    color: whitesmoke;
    font-weight: 600;
}
.td-opp-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.td-match-center {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    flex-shrink: 0;
}
.td-score {
    font-size: 20px;
    font-weight: 700;
}
.td-score-win {
    color: #5cb85c;
}
.td-score-loss {
    color: #666;
}
.td-score-sep {
    color: #555;
    font-size: 16px;
}
.td-match-vs {
    color: #555;
    font-size: 13px;
    font-weight: 600;
}
.td-match-maps {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.td-map-pill {
    background: #1e1e1e;
    border-radius: 4px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}
.td-map-pill-name {
    color: #888;
    font-weight: 400;
}
.td-map-win {
    color: #5cb85c;
}
.td-map-loss {
    color: #888;
}
.td-map-sep {
    color: #555;
}

/* stats page */

.season-selector-bar {
    display: flex;
    margin: 20px 0 0;
    border-bottom: 1px solid #333;
}
.season-sel-btn {
    padding: 12px 28px;
    background: none;
    border: none;
    color: #777;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.season-sel-btn:hover {
    color: white;
}
.season-sel-btn.active {
    color: #6dc5c7;
    border-bottom-color: #6dc5c7;
}

.stats-toggle-bar {
    display: flex;
    margin: 0;
    border-bottom: 1px solid #333;
}
.stats-toggle-btn {
    padding: 12px 28px;
    background: none;
    border: none;
    color: #888;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.stats-toggle-btn:hover {
    color: white;
}
.stats-toggle-btn.active {
    color: #6dc5c7;
    border-bottom-color: #6dc5c7;
}
.stats-content {
    margin: 0 0 30px;
}
.stats-content.hidden {
    display: none;
}
.stats-sub-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    border-bottom: 1px solid #333;
}
.stats-sub-btn {
    padding: 10px 24px;
    background: none;
    border: none;
    color: #777;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.stats-sub-btn:hover {
    color: white;
}
.stats-sub-btn.active {
    color: #6dc5c7;
    border-bottom-color: #6dc5c7;
}
.stats-disclaimer {
    text-align: right;
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin: 0 0 10px 0;
    width: 100%;
    padding-right: 16px;
    box-sizing: border-box;
}
.stats-table-container {
    background: linear-gradient(to right, #272727, #282828);
    border-radius: 0 12px 12px 12px;
    padding: 20px;
    overflow-x: auto;
}
.stats-table-container.hidden {
    display: none;
}

/* scrollable table with sticky headers (pi team stats) */

.stats-table-scroll {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 8px;
}
.stats-table-sticky thead th {
    position: sticky;
    z-index: 2;
    background: #1e1e1e;
}
.stats-table-sticky thead tr:first-child th {
    top: 0;
}
.stats-table-sticky thead tr:nth-child(2) th {
    top: 32px;
}
.category-row th {
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #444;
    padding: 8px 16px;
}
.category-header {
    color: #6dc5c7;
    border-left: 1px solid #444;
    border-right: 1px solid #444;
}

/* tables */

.stats-table {
    width: 100%;
    border-collapse: collapse;
    color: whitesmoke;
    font-size: 15px;
}
.stats-table thead th {
    text-align: left;
    padding: 12px 16px;
    color: #6dc5c7;
    font-weight: 600;
    border-bottom: 1px solid #444;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.stats-table thead th:hover {
    color: white;
}
.sort-arrow {
    font-size: 11px;
    color: #888;
}
.stats-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #333;
    line-height: 20px;
    vertical-align: middle;
}
.stats-table tbody tr:hover {
    background: rgba(109, 197, 199, 0.05);
}
.stats-table tbody tr:last-child td {
    border-bottom: none;
}
.stat-best {
    color: #5cb85c;
    font-weight: 600;
}
.stat-worst {
    color: #cc4444;
    font-weight: 600;
}
.player-team-tag {
    display: block;
    font-size: 11px;
    color: #777;
    font-weight: 400;
    line-height: 1.2;
}

/* team selector dropdown (toxic map stats) */

.team-selector-bar {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.team-selector-bar label {
    color: #aaa;
    font-size: 14px;
}
.team-selector-bar select {
    background: #1e1e1e;
    color: white;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.team-selector-bar select:hover,
.team-selector-bar select:focus {
    border-color: #6dc5c7;
}

/* overall atk/def bar */

.team-overall-bar {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #272727, #2a2a2a);
    border-radius: 8px;
    border: 1px solid #333;
}
.overall-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.overall-label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.overall-value {
    color: #6dc5c7;
    font-size: 22px;
    font-weight: 700;
}

/* standings page */

.standings-content {
    margin: 20px 0 30px;
}
.standings-section {
    margin-bottom: 30px;
}
.standings-subtitle {
    color: #6dc5c7;
    font-size: 22px;
    margin: 20px 0 12px;
}
.standings-empty {
    background: linear-gradient(to right, #272727, #282828);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #888;
    font-style: italic;
    font-size: 16px;
}
.standings-table .team-abbr-cell {
    color: #6dc5c7;
    font-weight: 600;
}
.diff-pos {
    color: #5cb85c;
}
.diff-neg {
    color: #cc4444;
}
.under-review-tag {
    color: #cc4444;
    font-size: 11px;
    font-weight: 600;
}

.rank-playoffs td:first-child {
    border-left: 3px solid #5cb85c;
}
.rank-lcq td:first-child {
    border-left: 3px solid #d4a843;
}
.rank-eliminated td:first-child {
    border-left: 3px solid #cc4444;
}

/* h2h matrix */

.h2h-scroll {
    overflow-x: auto;
    border-radius: 8px;
}
.h2h-table {
    border-collapse: collapse;
    font-size: 14px;
}
.h2h-table th,
.h2h-table td {
    padding: 8px 12px;
    text-align: center;
    white-space: nowrap;
}
.h2h-header {
    color: #6dc5c7 !important;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.h2h-row-label {
    color: #6dc5c7 !important;
    text-align: left !important;
    font-weight: 600;
    font-size: 13px;
}
.h2h-self {
    background: #1a1a1a;
}
.h2h-cell {
    font-weight: 500;
}
.h2h-win {
    color: #5cb85c;
}
.h2h-loss {
    color: #cc4444;
}

/* misc */

.placeholder-row {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 16px !important;
}
.stats-loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 16px;
}
.stats-error {
    text-align: center;
    color: #cc6666;
    font-style: italic;
    padding: 40px 16px;
}

/* team detail page */

.td-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 30px 0 24px;
}
.td-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.td-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.td-name {
    color: whitesmoke;
    font-size: 28px;
    margin: 0;
}
.td-meta {
    color: #888;
    font-size: 14px;
}
.td-section {
    margin-bottom: 30px;
}
.td-subtitle {
    color: #6dc5c7;
    font-size: 20px;
    margin: 0 0 14px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}
.td-roster {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.td-roster-player {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 18px;
    color: whitesmoke;
    font-size: 15px;
}
.td-stats-box {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}
.td-stats-box .stats-sub-tabs {
    margin: 0;
    border-bottom: 1px solid #333;
}
.td-stats-box .stats-sub-btn {
    padding: 10px 20px;
}
.td-rating-table {
    margin: 0;
    table-layout: fixed;
    width: 100%;
}
.td-rating-table thead th:first-child {
    width: 65%;
}
.td-rating-table thead th:last-child {
    width: 35%;
}
.td-rating-table thead th {
    padding: 10px 16px;
}
.td-rating-table tbody td {
    padding: 8px 16px;
}
.td-see-all {
    display: block;
    text-align: center;
    padding: 12px;
    color: #6dc5c7;
    text-decoration: none;
    font-size: 14px;
    border-top: 1px solid #333;
    transition: color 0.2s, background 0.2s;
}
.td-see-all:hover {
    color: white;
    background: rgba(109, 197, 199, 0.05);
}
.td-columns {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
}
.td-col-left {
    flex: 1;
    min-width: 0;
}
.td-col-right {
    flex: 1;
    min-width: 0;
}
.td-matches-box {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}
.td-matches-box .stats-sub-tabs {
    margin: 0;
    border-bottom: 1px solid #333;
}
.td-matches-box .stats-sub-btn {
    padding: 10px 20px;
}
.td-no-matches {
    color: #666;
    font-style: italic;
    margin: 0;
    padding: 30px;
    text-align: center;
}
/* standings scrollbar hide */
.standings-section .stats-table-scroll {
    overflow-x: auto;
    scrollbar-width: none;
}
.standings-section .stats-table-scroll::-webkit-scrollbar {
    display: none;
}

/* bracket */

.bracket-container {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bracket-upper,
.bracket-lower {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}
.bracket-col {
    flex-shrink: 0;
}
.bracket-col-opening {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bracket-col-mid {
    display: flex;
    align-items: center;
}
.bracket-col-qual {
    display: flex;
    align-items: center;
}
.bracket-match {
    width: 200px;
}
.bracket-label {
    color: #888;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bracket-box {
    border: 1px solid #666;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    display: block;
}
.bracket-clickable {
    cursor: pointer;
    transition: border-color 0.2s;
}
.bracket-clickable:hover {
    border-color: #6dc5c7;
}
.bracket-upcoming {
    border-color: #666;
    border-style: dashed;
}
.bracket-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid #555;
    color: #bbb;
    font-size: 14px;
}
.bracket-team:last-child {
    border-bottom: none;
}
.bracket-team-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
}
.bracket-team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.bracket-team-name {
    font-weight: 600;
}
.bracket-team-score {
    font-weight: 700;
    min-width: 36px;
    text-align: center;
    padding: 10px 8px;
    border-left: 1px solid #555;
    flex-shrink: 0;
}
.bracket-winner {
    color: #e0e0e0;
}
.bracket-winner .bracket-team-score {
    color: #5cb85c;
}
.bracket-connector {
    flex-shrink: 0;
    width: 60px;
}
.bracket-conn-upper {
    height: 200px;
}
.bracket-conn-upper svg {
    width: 100%;
    height: 100%;
}
.bracket-conn-single {
    height: 20px;
}
.bracket-conn-single svg {
    width: 100%;
    height: 100%;
}
.bracket-qual {
    display: flex;
    align-items: center;
}
.bracket-qual-tag {
    background: #5cb85c;
    color: #111;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.md-team img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* match detail logo sizing */
.md-team-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

/* YouTube embed */
.md-stream-section {
    margin: 30px 0;
}
.md-stream-title {
    color: #6dc5c7;
    font-size: 20px;
    margin: 0 0 14px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}
.md-stream-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}
.md-stream-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

a.md-team-info {
    text-decoration: none;
    color: inherit;
}
a.md-team-info:hover .md-team-name {
    color: #6dc5c7;
}

.bracket-date {
    font-size: 0.7em;
    color: #888;
    font-weight: 400;
    margin-left: 6px;
}

#td-matches-area {
    max-height: 250px;
    overflow-y: auto;
    padding: 8px;
}

.md-stream-label {
    color: #6dc5c7;
    font-size: 18px;
    font-weight: 600;
}
.md-stream-link {
    margin: 20px 0 8px;
}

.md-agent-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}

.md-stats-table tbody td.md-col-agent {
    text-align: center;
}
.md-stats-table thead th.md-col-agent {
    text-align: center;
}

/* Add these rules to style.css for sortable match tables */

.md-stats-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.md-stats-table thead th.sortable:hover {
    color: #6dc5c7;
}
.md-stats-table .sort-arrow {
    font-size: 11px;
    color: #888;
}