:root {
    --bg-main: #0a0a0b;
    --panel-bg: rgba(20, 20, 22, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-blue: #0095ff;
    --text-main: #e1e1e3;
    --text-dim: #8e8e93;
    --winner-green: #30d158;
    --loser-red: #ff453a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    margin: 0;
}

/* DYNAMIC TOURNAMENT BANNER BACKGROUND */
.tournament-banner-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px) brightness(0.3);
    z-index: -1;
    transition: background-image 1.5s ease-in-out;
}

/* MODAL REFINEMENT */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.mirror-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: saturate(1.2);
    position: relative;
}

/* HEADER */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 1350px;
}

.brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.v-tag {
    background: var(--accent-blue);
    color: #fff;
    -webkit-text-fill-color: #fff;
    -webkit-background-clip: initial;
    background-clip: initial;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
}

.event-info h1 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.event-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.pulse-dot {
    width: 5px;
    height: 5px;
    background: var(--text-dim);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* GRID LAYOUT */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px minmax(500px, 650px) 380px;
    gap: 20px;
    flex: 1;
    overflow: hidden;
    justify-content: center;
}

.panel {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-area {
    flex: 1;
    max-width: 250px;
}

.search-area input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 15px;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.2s;
}

.search-area input:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

.count-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* PLAYER LIST (STANDINGS) */
.player-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.player-entry {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.player-entry:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-blue);
    transform: translateX(5px);
}

.standing-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111;
    margin-right: 12px;
    flex-shrink: 0;
}

.standing-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-entry .status-tag {
    margin-left: auto;
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 255, 0, 0.1);
    color: #4ade80;
    font-weight: 700;
}

/* MODAL REFINEMENT */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    /* Darker backdrop */
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #0d0d0f;
    /* Solid dark background for legibility */
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 700px;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.run-set {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.run-set:hover {
    background: rgba(255, 255, 255, 0.02);
}

.run-set.win {
    border-left: 4px solid var(--winner-green);
    background: linear-gradient(90deg, rgba(48, 209, 88, 0.05) 0%, transparent 50%);
}

.run-set.loss {
    border-left: 4px solid var(--loser-red);
    background: linear-gradient(90deg, rgba(255, 69, 58, 0.05) 0%, transparent 50%);
}

.run-set.pending {
    border-left: 4px solid var(--text-dim);
    opacity: 0.7;
}

.run-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.run-round {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
}

.run-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.1rem;
}

.run-vs {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 400;
}

.run-score {
    text-align: right;
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.win .run-score {
    color: var(--winner-green);
}

.loss .run-score {
    color: var(--loser-red);
}

.pending .run-score {
    color: var(--text-dim);
}

.is-target {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 149, 255, 0.3);
}

/* FEED LIST */
.feed-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.result-card {
    background: #0d0d0f;
    background-image:
            radial-gradient(circle at center, rgba(0, 149, 255, 0.05) 0%, transparent 75%),
            linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 0 auto 10px auto;
    display: grid;
    grid-template-columns: 1.5fr auto 1.5fr;
    align-items: stretch;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 65px;
    width: 100%;
    max-width: 600px;
    position: relative;
}

.result-card:hover {
    background-image:
            radial-gradient(circle at center, rgba(0, 149, 255, 0.09) 0%, transparent 75%),
            linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    border-color: rgba(0, 149, 255, 0.25);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.result-card.has-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
            linear-gradient(to right, rgba(13, 13, 15, 0.8) 0%, rgba(13, 13, 15, 0.15) 50%, rgba(13, 13, 15, 0.8) 100%),
            var(--banner-url);
    background-size: 100% 100%, cover;
    background-position: center;
    opacity: 0.14;
    /* Highly transparent banner for ultimate readability of the overlay text! */
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.result-card.has-banner:hover::before {
    opacity: 0.24;
    /* Subtle glow of the banner when card is hovered */
}

.player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    position: relative;
    z-index: 2;
    /* For background positioning */
    overflow: hidden;
}

.player.left {
    flex-direction: row;
}

.player.right {
    flex-direction: row;
    justify-content: flex-end;
}

.player.left.is-winner {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.12) 0%, transparent 100%);
    border-left: 4px solid #4ade80;
}

.player.right.is-loser {
    background: linear-gradient(270deg, rgba(248, 113, 113, 0.12) 0%, transparent 100%);
    border-right: 4px solid #f87171;
}

.avatar-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #333;
    background: #111;
    flex-shrink: 0;
    position: relative;
}

.avatar-wrapper.winner {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info {
    display: flex;
    flex-direction: column;
}

.player .tag {
    font-weight: 700;
    font-size: 0.9rem;
}

.player .seed {
    font-size: 0.65rem;
    color: var(--text-dim);
}

.score-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    min-width: 120px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.round-tag {
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 2px;
}

.tournament-tag {
    font-size: 0.55rem;
    color: var(--text-dim);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-top: 1px;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.result-card:hover .tournament-tag {
    opacity: 0.85;
    color: var(--accent-blue);
}

.duration-tag {
    font-size: 0.65rem;
    color: var(--accent-blue);
    font-weight: 700;
    margin-top: 2px;
}

/* UPCOMING MINI AVATARS */
.players-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.up-player {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #444;
}

.score-val {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-blue);
    line-height: 1;
}

.upset-badge {
    background: linear-gradient(135deg, #ff3c3c 0%, #991b1b 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 60, 60, 0.3);
    text-transform: uppercase;
}

/* RIGHT COLUMN */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.upcoming-panel {
    flex: 1;
}

.h2h-panel {
    min-height: 350px;
}

.upcoming-list {
    padding: 15px;
    overflow-y: auto;
}

.match-row {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.match-row .round {
    color: var(--accent-blue);
    font-size: 0.7rem;
    font-weight: 700;
}

.match-row .vs {
    color: var(--text-dim);
    margin: 0 10px;
}

/* FINAL STANDINGS PLACEMENT BADGES */
.standings-row {
    padding: 12px 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    position: relative;
    overflow: hidden;
}

.placement-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 900;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    font-family: 'Syncopate', sans-serif;
    transition: all 0.3s ease;
}

.placement-badge.top-1 {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(0, 149, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 149, 255, 0.2);
}

.placement-badge.top-2 {
    border-color: #a1a1aa;
    color: #a1a1aa;
    background: rgba(161, 161, 170, 0.1);
}

.placement-badge.top-3 {
    border-color: #854d0e;
    color: #a16207;
    background: rgba(133, 77, 14, 0.1);
}

.placement-badge-mini {
    position: absolute;
    bottom: 0;
    left: 70px;
    font-family: 'Syncopate', sans-serif;
    font-weight: 900;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.placement-badge-mini.top-1 {
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.5);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.placement-badge-mini.top-2 {
    color: #c0c0c0;
    border-color: rgba(192, 192, 192, 0.5);
    text-shadow: 0 0 5px rgba(192, 192, 192, 0.5);
}

.placement-badge-mini.top-3 {
    color: #cd7f32;
    border-color: rgba(205, 127, 50, 0.5);
    text-shadow: 0 0 5px rgba(205, 127, 50, 0.5);
}

.placement-badge-mini.projected {
    color: #a1a1aa;
    border-color: rgba(161, 161, 170, 0.3);
    font-size: 0.55rem;
    padding: 2px 4px;
}

.standing-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.standing-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.standing-tag {
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: -0.5px;
}

.standing-seed {
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
}

.standing-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.standing-chars {
    display: flex;
    gap: 2px;
}

.standing-record {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-blue);
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* H2H FORM */
.h2h-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.h2h-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px;
    color: white;
    border-radius: 4px;
}

.h2h-form button {
    background: var(--accent-blue);
    color: black;
    border: none;
    padding: 10px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
}

.vs-text {
    align-self: center;
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* H2H HISTORY */
.h2h-history-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.h2h-history-item {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1.2fr;
    /* More space for the center line */
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 0.65rem;
    align-items: center;
    gap: 10px;
}

.h2h-history-item.p1-win {
    border-left: 2px solid #4ade80;
}

.h2h-history-item.p2-win {
    border-left: 2px solid #f87171;
}

.h2h-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.h2h-round {
    font-weight: 700;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h2h-date {
    font-size: 0.55rem;
    color: var(--text-dim);
}

.h2h-score {
    text-align: center;
    font-family: 'Syncopate', sans-serif;
    color: var(--accent-blue);
    font-size: 0.8rem;
    white-space: nowrap;
    font-weight: 700;
}

.h2h-event {
    text-align: right;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.6rem;
}

.winner {
    color: #4ade80 !important;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

/* H2H LOADING & SPINNER */
.h2h-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    gap: 15px;
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.h2h-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(0, 183, 255, 0.1);
    border-top: 2px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* H2H HISTORY SCROLL */
.h2h-history-scroll {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 10px;
}

/* Scrollbar styling for H2H */
.h2h-history-scroll::-webkit-scrollbar {
    width: 4px;
}

.h2h-history-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.h2h-history-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 10px;
}

/* FOOTER FEED */
.feed-footer {
    padding: 12px;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 6px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.secondary-btn:hover {
    background: var(--accent-blue);
    color: black;
}

/* CHARACTER BACKGROUND BANNERS */
.player-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 0;
    pointer-events: none;
    opacity: 0.2;
    /* Very subtle filigree */
}

.char-bg-banner {
    flex: 0 0 70%;
    /* Each takes 70% width to allow for overlap */
    height: 100%;
    background-size: 58%;
    /* Zoomed in for the 'head' effect */
    background-position: top center;
    background-repeat: no-repeat;
    filter: saturate(0.5) brightness(1.5);
    animation: bannerFadeIn 0.8s ease-out forwards;
    transition: all 0.3s ease;
}

.player.left .player-bg-container {
    justify-content: flex-end;
}

.player.right .player-bg-container {
    justify-content: flex-start;
}

.player.left .char-bg-banner {
    background-position: top right;
}

.player.right .char-bg-banner {
    background-position: top left;
}

/* Specific logic for when we have 2 characters */
.player-bg-container .char-bg-banner:nth-child(2) {
    margin-left: -40%;
    /* Approx 35-40% overlap */
    mask-image: linear-gradient(to right, transparent, black 40%);
    /* Smooth transition for the overlap */
}

/* If only 1 character, take full width and stay centered */
.player-bg-container .char-bg-banner:only-child {
    flex: 0 0 100%;
    margin-left: 0;
    mask-image: none;
}

@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar-wrapper,
.info {
    position: relative;
    z-index: 1;
    /* Ensure content is above the background */
}

/* H2H CHARACTER ICONS */
.h2h-chars-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 5px 0;
}

.h2h-chars {
    display: flex;
    gap: 4px;
    min-width: 60px;
}

.h2h-chars.p1 {
    justify-content: flex-end;
}

.h2h-chars.p2 {
    justify-content: flex-start;
}

.h2h-char-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}


.neon-select:hover,
.neon-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.15);
    background: rgba(0, 0, 0, 0.85);
}

/* Custom premium styles for Swiss/Dynamic standings */
.standing-rank {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-dim);
    width: 28px;
    text-align: left;
    flex-shrink: 0;
}
.standing-rank.top-1 {
    color: #ffd700; /* Gold */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}
.standing-rank.top-2 {
    color: #c0c0c0; /* Silver */
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.4);
}
.standing-rank.top-3 {
    color: #cd7f32; /* Bronze */
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.4);
}
.standing-player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow: hidden;
}
.standing-gamer-tag {
    font-weight: 700;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.standing-lost-to {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.undefeated-badge {
    color: #ffd700;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lost-to-label {
    color: rgba(255, 255, 255, 0.3);
}
.lost-to-opponents {
    color: #ff453a; /* Subtle premium red */
    font-weight: 500;
}
.standing-score-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: 10px;
    flex-shrink: 0;
}
.standing-record-wins-losses {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: #ffffff;
}
.standing-record-rate {
    font-size: 0.6rem;
    color: var(--accent-blue);
    font-weight: 700;
}

/* UNIFIED NAVIGATION TAB BAR */
.navigation-row {
    max-width: 1350px;
    margin: 0 auto 20px auto;
    width: 100%;
    display: flex;
    gap: 15px;
    box-sizing: border-box;
    padding: 0;
}
.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);
}
