/* ==========================================================================
   TOURNAMENT DETAIL V2 - MLBB STATS WEB (CYBER / SCI-FI THEME)
   ========================================================================== */

:root {
    --td-cyan: #00d2f7;
    --td-cyan-glow: rgba(0, 210, 247, 0.4);
    --td-cyan-subtle: rgba(0, 210, 247, 0.12);
    --td-gold: #c9a654;
    --td-gold-glow: #ffe476;
    --td-bg-dark: #070d14;
    --td-bg-card: rgba(10, 22, 34, 0.85);
    --td-bg-card-hover: rgba(16, 32, 48, 0.95);
    --td-border: rgba(0, 210, 247, 0.22);
    --td-border-gold: rgba(201, 166, 84, 0.4);
    --td-text-muted: #8397a8;
}

.td-v2-container {
    color: #e0e6ed;
    font-family: inherit;
    position: relative;
    padding-bottom: 80px;
    background: url("../images/bgs/1080p-bg-dark.webp") center top / cover fixed no-repeat;
}

/* --------------------------------------------------------------------------
   LEFT SIDEBAR (STICKY & COLLAPSIBLE NAVIGATION)
   -------------------------------------------------------------------------- */
.td-v2-sidebar-wrapper {
    position: relative;
    z-index: 25;
}

/* Edge Toggle Arrow Handle - Styled identically to mobile cyan toggle, seamlessly attached to sidebar nav right edge */
.td-v2-sidebar-toggle-handle {
    position: absolute;
    top: 18px;
    left: calc(100% - 1.5rem - 1px) !important;
    right: auto !important;
    width: 24px;
    height: 36px;
    background: #2ed3f8;
    border: none;
    border-radius: 0 6px 6px 0;
    color: #08101a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 105;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 2px 0 10px rgba(46, 211, 248, 0.45);
    transform-origin: left center;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.td-v2-sidebar-toggle-handle:hover {
    background: #5ce3ff;
    color: #040c14;
    box-shadow: 0 0 16px rgba(46, 211, 248, 0.85), 2px 0 12px rgba(46, 211, 248, 0.5);
    transform: scale(1.06);
}

.td-v2-sidebar-nav {
    position: relative;
    top: 0;
    width: 100%;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, rgba(14, 34, 61, 0.94) 0%, rgba(8, 19, 36, 0.98) 100%);
    border: 1px solid rgba(64, 225, 254, 0.22);
    border-radius: 12px;
    padding: 18px 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), inset 0 0 20px rgba(64, 225, 254, 0.04);
    display: flex;
    flex-direction: column;
    font-family: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.td-v2-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.td-v2-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.td-v2-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(64, 225, 254, 0.3);
    border-radius: 4px;
}

/* Collapsed State on Desktop */
.td-v2-sidebar-wrapper.collapsed .td-v2-sidebar-toggle-handle {
    position: fixed !important;
    left: 0 !important;
    top: 90px !important;
    right: auto !important;
    width: 26px !important;
    height: 40px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    border-radius: 0 8px 8px 0 !important;
    background: #2ed3f8 !important;
    border: none !important;
    color: #08101a !important;
    box-shadow: 2px 0 12px rgba(46, 211, 248, 0.45) !important;
    z-index: 1050 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.td-v2-sidebar-wrapper.collapsed .td-v2-sidebar-toggle-handle:hover {
    background: #5ce3ff !important;
    color: #040c14 !important;
    box-shadow: 0 0 16px rgba(46, 211, 248, 0.85), 2px 0 12px rgba(46, 211, 248, 0.5) !important;
    transform: scale(1.06) !important;
}

/* Back to Events List link (Header uses Orbitron) */
.td-v2-back-events {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    margin-bottom: 30px;
    padding: 2px 0;
    transition: opacity 0.2s ease;
}

.td-v2-back-events:hover {
    opacity: 0.85;
}

.td-v2-back-arrow-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    flex-shrink: 0;
}

.td-v2-back-arrow-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transform: rotate(180deg);
}

.td-v2-back-text {
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    font-family: 'Orbitron', sans-serif !important;
    white-space: nowrap;
}

/* Group Headers use Orbitron */
.td-v2-nav-header-title {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif !important;
}

.td-v2-nav-items {
    display: flex;
    flex-direction: column;
}

/* Navigation Dark/Glowing Pill Boxes (Compact height matching reference) */
.td-v2-nav-box {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    min-height: 34px;
    background: #111d29;
    border-left: 3.5px solid #2fe0fc;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 6px;
    font-family: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: normal;
}

.td-v2-nav-box:hover {
    background: linear-gradient(90deg, #155b6f 0%, #111d29 100%);
    color: #ffffff;
}

.td-v2-nav-box.active,
.td-v2-nav-box.td-v2-nav-overview.active,
.td-v2-nav-box.td-v2-nav-stat.active {
    background: linear-gradient(90deg, #155b6f 0%, #104454 45%, rgba(16, 68, 84, 0.15) 85%, transparent 100%) !important;
    border-left: 3.5px solid #2fe0fc !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: none;
    margin-bottom: 8px;
}

.td-v2-nav-stat {
    margin-bottom: 0;
}

.td-v2-group-tournament {
    margin-top: 24px;
}

/* Navigation Sublinks (Leaderboards & Matches: compact padding and spacing) */
.td-v2-nav-sublink {
    display: block;
    padding: 2px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #8fa4b8;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-bottom: 6px;
    font-family: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: normal;
}

.td-v2-nav-sublink:hover {
    color: #ffffff;
}

.td-v2-nav-sublink.active,
.td-v2-nav-sublink.active-cyan {
    color: #00d2f7 !important;
    font-weight: 700;
}

.td-v2-nav-matches {
    line-height: 1.25;
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   TOURNAMENT STATS SIDEBAR NAVIGATION (100% Matching Screenshot)
   -------------------------------------------------------------------------- */
.td-v2-stats-nav-sublist {
    display: flex;
    flex-direction: column;
    padding: 10px 0 10px 14px;
    gap: 13px;
}

.td-v2-stats-nav-item {
    display: flex;
    flex-direction: column;
}

.td-v2-stats-nav-link {
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    color: #8fa4b8;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: normal;
    line-height: 1.25;
}

.td-v2-stats-nav-link:hover {
    color: #ffffff;
}

.td-v2-stats-nav-link.active {
    color: #00d2f7;
    font-weight: 700;
}

.td-v2-stats-submenu {
    display: flex;
    flex-direction: column;
    padding-left: 14px;
    margin-top: 11px;
    margin-bottom: 2px;
    gap: 11px;
}

.td-v2-stats-sublink {
    display: flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    color: #8fa4b8;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: normal;
    line-height: 1.25;
}

.td-v2-stats-sublink .td-v2-sub-arrow {
    color: #8fa4b8;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.td-v2-stats-sublink:hover {
    color: #ffffff;
}

.td-v2-stats-sublink:hover .td-v2-sub-arrow {
    color: #ffffff;
    transform: translateX(1px);
}

.td-v2-stats-sublink.active {
    color: #00d2f7;
    font-weight: 700;
}

.td-v2-stats-sublink.active .td-v2-sub-arrow {
    color: #00d2f7;
}

/* --------------------------------------------------------------------------
   HERO / BANNER SECTION
   -------------------------------------------------------------------------- */
.td-v2-hero {
    position: relative;
    width: 100%;
    min-height: 144px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 16px;
}

.td-v2-hero::before,
.td-v2-hero::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    background: url("../images/orns/frame-orn.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 3;
    pointer-events: none;
}

.td-v2-hero::before {
    top: 0;
    right: 0;
    transform: rotate(90deg);
}

.td-v2-hero::after {
    bottom: 0;
    left: 0;
    transform: rotate(270deg);
}

.td-v2-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    clip-path: polygon(calc(0% + 2.5rem) 0, 100% 0, 100% calc(100% - 2.5rem), calc(100% - 2.5rem) 100%, 0 100%, 0 calc(0% + 2.5rem));
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.td-v2-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.td-v2-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Bottom light blue / cyan gradient rising smoothly with rich opacity */
        linear-gradient(0deg,
            rgba(45, 130, 185, 0.82) 0%,
            rgba(32, 105, 160, 0.65) 24%,
            rgba(20, 75, 125, 0.38) 48%,
            rgba(12, 45, 80, 0.14) 70%,
            transparent 90%
        ),
        /* Top dark navy scrim fading downwards */
        linear-gradient(180deg,
            rgba(6, 16, 28, 0.85) 0%,
            rgba(8, 22, 36, 0.55) 22%,
            rgba(8, 20, 32, 0.20) 48%,
            transparent 72%
        ),
        /* Left-side scrim to guarantee title & text contrast */
        linear-gradient(90deg,
            rgba(6, 14, 22, 0.76) 0%,
            rgba(6, 14, 22, 0.52) 35%,
            rgba(6, 14, 22, 0.15) 65%,
            rgba(6, 14, 22, 0.38) 100%
        ),
        /* Ambient base dimming layer */
        linear-gradient(0deg,
            rgba(4, 12, 20, 0.38),
            rgba(4, 12, 20, 0.38)
        );
}

.td-v2-hero-content {
    position: relative;
    z-index: 2;
    padding: 16px 42px 16px 52px;
    min-height: 144px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}

@media (max-width: 1199px) {
    .td-v2-hero-content {
        padding: 18px 32px;
        gap: 16px;
    }
    .td-v2-hero-title {
        font-size: 19px;
    }
    .td-v2-hero-meta-divider {
        margin: 0 16px;
    }
}

@media (max-width: 991px) {
    .td-v2-hero-content {
        flex-direction: column;
        align-items: stretch;
        padding: 22px 30px;
        gap: 16px;
    }
    .td-v2-hero-left {
        width: 100%;
        gap: 16px;
    }
    .td-v2-hero-desc {
        max-width: 100%;
    }
    .td-v2-hero-divider-wrap {
        max-width: 100%;
    }
    .td-v2-hero-meta {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 12px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    .td-v2-hero-meta-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    .td-v2-hero-meta-divider {
        display: none !important;
    }
    .td-v2-hero-meta-row {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 22px;
    }
    .td-v2-hero-meta-label {
        font-size: 13px;
        color: #ffffff;
        text-align: left !important;
        margin-right: auto !important;
        min-width: unset !important;
    }
    .td-v2-hero-meta-value {
        font-size: 13px;
        color: #ffffff;
        text-align: right !important;
        margin-left: auto !important;
    }
}

@media (max-width: 767px) {
    .td-v2-hero-content {
        padding: 24px 26px;
    }
    /* Enlarge corner ornaments on mobile */
    .td-v2-hero::before,
    .td-v2-hero::after {
        width: 72px;
        height: 72px;
    }
    .td-v2-hero-bg {
        clip-path: polygon(calc(0% + 2.5rem) 0, 100% 0, 100% calc(100% - 2.5rem), calc(100% - 2.5rem) 100%, 0 100%, 0 calc(0% + 2.5rem));
    }
    .td-v2-hero-logo {
        width: 80px;
        height: 80px;
    }
    .td-v2-hero-title {
        font-size: 18px;
    }
    .td-v2-hero-meta {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    .td-v2-hero-meta-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    .td-v2-hero-meta-divider {
        display: none !important;
    }
    .td-v2-hero-meta-row {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 22px;
    }
    .td-v2-hero-meta-label {
        font-size: 13px;
        color: #ffffff;
        text-align: left !important;
        margin-right: auto !important;
        min-width: unset !important;
    }
    .td-v2-hero-meta-value {
        font-size: 13px;
        color: #ffffff;
        text-align: right !important;
        margin-left: auto !important;
    }
}

@media (max-width: 575px) {
    .td-v2-hero-content {
        padding: 24px 22px 26px 22px;
    }
    /* Enlarge corner ornaments on mobile */
    .td-v2-hero::before,
    .td-v2-hero::after {
        width: 70px;
        height: 70px;
    }
    .td-v2-hero-bg {
        clip-path: polygon(calc(0% + 2.3rem) 0, 100% 0, 100% calc(100% - 2.3rem), calc(100% - 2.3rem) 100%, 0 100%, 0 calc(0% + 2.3rem));
    }
    .td-v2-hero-left {
        gap: 14px;
        align-items: flex-start;
        width: 100%;
    }
    .td-v2-hero-logo {
        width: 68px;
        height: 68px;
        margin-top: 2px;
        flex-shrink: 0;
    }
    .td-v2-hero-titles {
        flex: 1 1 auto;
        min-width: 0;
    }
    .td-v2-hero-title {
        font-size: 16px;
        line-height: 1.25;
        letter-spacing: 0.4px;
    }
    .td-v2-hero-season {
        font-size: 12.5px;
    }
    .td-v2-hero-desc {
        font-size: 12px;
        line-height: 1.4;
    }
    .td-v2-hero-meta {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 9px !important;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    .td-v2-hero-meta-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 9px !important;
    }
    .td-v2-hero-meta-divider {
        display: none !important;
    }
    .td-v2-hero-meta-row {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 22px;
    }
    .td-v2-hero-meta-label {
        font-size: 12.5px;
        color: #ffffff;
        text-align: left !important;
        margin-right: auto !important;
        min-width: unset !important;
    }
    .td-v2-hero-meta-value {
        font-size: 12.5px;
        color: #ffffff;
        text-align: right !important;
        margin-left: auto !important;
    }
    .td-v2-top-tab-btn {
        font-size: 12px;
    }
}

.td-v2-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 auto;
    min-width: 0;
}

.td-v2-hero-logo {
    width: 95px;
    height: 95px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.td-v2-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.td-v2-hero-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.td-v2-hero-title {
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.6px;
    margin: 0;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif !important;
    line-height: 1.25;
    word-break: break-word;
}

.td-v2-hero-season {
    font-size: 13.5px;
    color: #ffffff;
    font-weight: 500;
    margin-top: 2px;
    font-family: 'Inter', sans-serif !important;
}

.td-v2-hero-divider-wrap {
    margin: 6px 0;
    width: 100%;
    max-width: 330px;
    display: flex;
    align-items: center;
}

.td-v2-hero-divider-orn {
    display: block;
    width: 100%;
    height: 7px;
    object-fit: fill;
}

.td-v2-hero-desc {
    font-size: 12.5px;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
    max-width: 370px;
    word-break: break-word;
    font-family: 'Inter', sans-serif !important;
}

.td-v2-hero-desc a,
.td-v2-hero-desc-link {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Meta Area on Right */
.td-v2-hero-meta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0;
}

.td-v2-hero-meta-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.td-v2-hero-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 22px;
}

.td-v2-hero-meta-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    min-width: 65px;
    white-space: nowrap;
}

.td-v2-hero-meta-value {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    text-align: right;
}

.td-v2-hero-meta-value.status-ongoing {
    color: #2bd685;
    font-weight: 700;
}

.td-v2-hero-meta-value.status-completed {
    color: #ffa502;
    font-weight: 700;
}

.td-v2-hero-meta-value.prize {
    color: #ffffff;
    font-weight: 500;
}

.td-v2-meta-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 2px;
}

.td-v2-hero-meta-divider {
    width: 1px;
    height: 58px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 24px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   HERO TABS (Level 1 Navigation - Dark Glassy Bar with Cyan Underline)
   -------------------------------------------------------------------------- */
.td-v2-top-tabs-bar {
    display: flex;
    align-items: center;
    background: rgba(18, 30, 44, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 24px;
    height: 38px;
    overflow: hidden;
}

.td-v2-top-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13.5px;
    font-weight: 500;
    color: #9ba9b8;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.td-v2-top-tab-btn:hover {
    color: #ffffff;
}

.td-v2-top-tab-btn.active {
    color: #ffffff;
    font-weight: 600;
}

.td-v2-top-tab-btn.active .td-v2-tab-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #40e1fe;
    box-shadow: 0 0 10px rgba(64, 225, 254, 0.8);
}

/* --------------------------------------------------------------------------
   SECTION: OVERVIEW HEADER & ORNAMENT
   -------------------------------------------------------------------------- */
.td-v2-overview-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.td-v2-overview-title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}

.td-v2-overview-orn-wrap {
    display: flex;
    align-items: center;
}

.td-v2-overview-orn {
    height: 14px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 228, 118, 0.4));
}

/* --------------------------------------------------------------------------
   SUB-TABS BAR (Leaderboards vs Upcoming and Completed Matches)
   -------------------------------------------------------------------------- */
.td-v2-subtabs-bar {
    display: flex;
    align-items: stretch;
    height: 32px;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.td-v2-subtab-btn {
    flex: 1;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0 16px;
    background: #26333f;
    color: #ffffff;
}

/* Left tab: Leaderboards with Top-Left Dog-Ear Fold */
.td-v2-subtab-btn.td-v2-subtab-lb {
    clip-path: polygon(11px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 11px);
    -webkit-clip-path: polygon(11px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 11px);
}

.td-v2-subtab-btn.td-v2-subtab-lb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-right: 1.5px solid #000000;
    border-bottom: 1.5px solid #000000;
    pointer-events: none;
    z-index: 5;
}

/* Right tab: Matches with Bottom-Right Dog-Ear Fold */
.td-v2-subtab-btn.td-v2-subtab-matches {
    clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0% 100%);
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0% 100%);
}

.td-v2-subtab-btn.td-v2-subtab-matches::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-top: 1.5px solid #000000;
    border-left: 1.5px solid #000000;
    pointer-events: none;
    z-index: 5;
}

/* Active State: Solid Vibrant Cyan with Black Text */
.td-v2-subtab-btn.active {
    background: #40e1fe !important;
    color: #000000 !important;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   3 LEADERBOARD CARDS (K/D/A, KILLS, ASSIST)
   -------------------------------------------------------------------------- */
.td-v2-lb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 991px) {
    .td-v2-lb-grid {
        grid-template-columns: 1fr;
    }
}

.td-v2-lb-card {
    background: linear-gradient(180deg, #2d76a2 0%, #1e597c 22%, #16435f 50%, #123348 78%, #0d2636 100%);
    border: 1px solid #1a5372;
    border-radius: 8px 8px 6px 6px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: visible;
}

/* Golden Top Line & Corner Diamonds */
.td-v2-card-gold-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #dfbe6c;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    z-index: 2;
}

.td-v2-card-diamond-l {
    position: absolute;
    top: -3.5px;
    left: -2.5px;
    width: 7px;
    height: 7px;
    background: #dfbe6c;
    transform: rotate(45deg);
    z-index: 3;
    box-shadow: 0 0 4px rgba(223, 190, 108, 0.6);
}

.td-v2-card-diamond-r {
    position: absolute;
    top: -3.5px;
    right: -2.5px;
    width: 7px;
    height: 7px;
    background: #dfbe6c;
    transform: rotate(45deg);
    z-index: 3;
    box-shadow: 0 0 4px rgba(223, 190, 108, 0.6);
}

.td-v2-lb-header {
    padding: 14px 18px 8px 18px;
    border-bottom: 1px solid rgba(223, 190, 108, 0.35);
}

.td-v2-lb-title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.td-v2-lb-list {
    display: flex;
    flex-direction: column;
    padding: 4px 14px 10px 14px;
}

/* Row Item for Each Player (Rank 1 - 5) */
.td-v2-lb-row {
    display: flex;
    align-items: center;
    padding: 7px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 10px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.td-v2-lb-row:last-child {
    border-bottom: none;
}

.td-v2-lb-row:hover {
    background: rgba(0, 229, 255, 0.06);
    border-radius: 4px;
}

.td-v2-lb-col-rank {
    width: 22px;
    text-align: center;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.td-v2-lb-col-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
    overflow: hidden;
    flex-shrink: 0;
    background: #0d1b2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.td-v2-lb-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.td-v2-lb-col-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.td-v2-lb-name {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.td-v2-lb-team {
    color: #7b93a7;
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    margin-top: 1px;
}

.td-v2-lb-col-role {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 62px;
    flex-shrink: 0;
    gap: 2px;
}

.td-v2-lb-role-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(1.2);
}

.td-v2-lb-role-name {
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    white-space: nowrap;
}

/* Stat Value: Bold Orbitron text, NO surrounding box */
.td-v2-lb-col-val {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    color: #fff4cf;
    text-shadow: 0 0 8px rgba(255, 234, 167, 0.6);
    min-width: 44px;
    text-align: right;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   SECTION: COMMON SECTION HEADERS & DIVIDERS
   -------------------------------------------------------------------------- */
.td-v2-section-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 22px 0 20px 0;
}

.td-v2-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.td-v2-section-title {
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.td-v2-title-ornament {
    height: 11px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    user-select: none;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   SECTION: TEAM STANDINGS (DUAL COLUMN TABLE)
   -------------------------------------------------------------------------- */
.td-v2-standings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 991px) {
    .td-v2-standings-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.td-v2-standings-col {
    width: 100%;
    overflow-x: auto;
}

.td-v2-standings-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 6px;
    background: rgba(14, 23, 39, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.td-v2-standings-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: transparent !important;
    border: none !important;
}

.td-v2-standings-table thead tr {
    background: #232c37 !important;
    height: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.td-v2-standings-table th {
    background: #232c37;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 8px 12px;
    border: none !important;
    letter-spacing: 0.3px;
    line-height: 1.2;
    white-space: nowrap;
}

.td-v2-th-rank {
    width: 60px;
    min-width: 50px;
    text-align: center;
}

.td-v2-th-team {
    text-align: left;
    min-width: 180px;
}

.td-v2-th-stat {
    text-align: center;
    min-width: 95px;
    width: 14%;
}

.td-v2-standings-table tbody tr {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    transition: background 0.15s ease;
    height: 44px;
}

.td-v2-standings-table tbody tr:hover {
    background: rgba(0, 210, 247, 0.04) !important;
}

.td-v2-standings-table td {
    padding: 8px 12px;
    border: none;
    vertical-align: middle;
    text-align: center;
}

.td-v2-td-rank {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 500;
    font-size: 13px;
    color: #ffffff !important;
    text-align: center;
}

.td-v2-td-team {
    text-align: left;
}

.td-v2-team-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.td-v2-team-flag {
    width: 22px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.td-v2-team-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.td-v2-team-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 600;
    font-size: 13.5px;
    color: #ffffff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.td-v2-td-stat {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 400;
    font-size: 13px;
    color: #ffffff !important;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
}

.td-v2-td-points {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 400;
    font-size: 13px;
    color: #ffffff !important;
}

.td-v2-td-stat.text-cyan,
.td-v2-td-stat.text-danger {
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   SECTION: TOURNAMENT FORMAT
   -------------------------------------------------------------------------- */
.td-v2-section-format {
    margin-bottom: 36px;
}

.td-v2-format-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.td-v2-format-card {
    background: rgba(35, 105, 145, 0.22);
    border: 1px solid rgba(63, 220, 249, 0.12);
    border-top: none;
    border-radius: 0 8px 8px 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
}

.td-v2-format-header {
    height: 31px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
    background: linear-gradient(90deg, #3fdcf9 0%, rgba(63, 220, 249, 0.75) 20%, rgba(63, 220, 249, 0.45) 50%, rgba(63, 220, 249, 0.25) 80%, rgba(63, 220, 249, 0.12) 100%);
}

.td-v2-format-title {
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 800;
    font-size: 13px;
    color: #000000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}

.td-v2-format-body {
    padding: 12px 18px 14px 18px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.5;
}

.td-v2-format-body p {
    margin: 0;
}

.td-v2-format-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 24px;
}

@media (max-width: 991px) {
    .td-v2-format-grid-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.td-v2-format-list {
    margin: 0;
    padding-left: 18px;
    list-style-type: disc;
}

.td-v2-format-list li {
    margin-bottom: 5px;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.5;
}

.td-v2-format-list li:last-child {
    margin-bottom: 0;
}

.td-v2-format-sublist {
    margin: 4px 0 6px 0;
    padding-left: 18px;
    list-style-type: disc;
}

.td-v2-format-sublist li {
    margin-bottom: 3px;
    color: #cbd5e1;
    font-size: 12.5px;
}

.td-v2-format-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.td-v2-format-link:hover {
    color: #00d2f7;
}

/* --------------------------------------------------------------------------
   SECTION: PARTICIPANTS (5 x 2 GRID)
   -------------------------------------------------------------------------- */
.td-v2-section-participants {
    margin-bottom: 36px;
}

.td-v2-participants-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.td-v2-participants-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3fdcf9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.td-v2-participants-toggle:hover {
    color: #ffffff;
}

.td-v2-toggle-chevron {
    font-size: 11px;
    transition: transform 0.25s ease;
    transform: rotate(180deg);
}

.td-v2-participants-toggle.collapsed .td-v2-toggle-chevron {
    transform: rotate(0deg);
}

.td-v2-participants-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    align-items: start;
}

@media (max-width: 1199px) {
    .td-v2-participants-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .td-v2-participants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .td-v2-participants-grid {
        grid-template-columns: 1fr;
    }
}

.td-v2-team-card {
    position: relative;
    background: linear-gradient(180deg, #33b4cd 0%, #2a92a8 6%, #1f687a 13%, #1a4c5d 20%, #153b4d 30%, #11394a 45%, #113748 60%, #0d2834 100%);
    border: none !important;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.td-v2-team-card.collapsed {
    border: none !important;
    border-bottom: none !important;
    min-height: 56px;
    height: auto !important;
    align-self: start !important;
    background: linear-gradient(180deg, #33b4cd 0%, #2a92a8 10%, #1f687a 20%, #1a4c5d 30%, #153b4d 45%, #11394a 60%, #113748 100%);
}

.td-v2-team-card:not(.collapsed) {
    height: 100% !important;
    align-self: stretch !important;
}

.td-v2-team-card .td-v2-card-gold-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #dfbe6c 0%, #fae6a8 50%, #dfbe6c 100%);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    z-index: 2;
}

.td-v2-team-card .td-v2-card-diamond-l {
    position: absolute;
    top: -4px;
    left: -1px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #fff3c4 0%, #dfbe6c 50%, #b89139 100%);
    transform: rotate(45deg);
    z-index: 3;
    box-shadow: 0 0 5px rgba(223, 190, 108, 0.6);
}

.td-v2-team-card .td-v2-card-diamond-r {
    position: absolute;
    top: -4px;
    right: -1px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #fff3c4 0%, #dfbe6c 50%, #b89139 100%);
    transform: rotate(45deg);
    z-index: 3;
    box-shadow: 0 0 5px rgba(223, 190, 108, 0.6);
}

.td-v2-card-top-orn {
    display: none !important;
}

.td-v2-tc-header {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    background: transparent !important;
    border: none !important;
    border-radius: 12px 12px 0 0;
    transition: background 0.15s ease;
    min-height: 56px;
    flex-shrink: 0;
}

.td-v2-tc-header:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.td-v2-team-card:not(.collapsed) .td-v2-tc-header {
    border-bottom: none !important;
}

.td-v2-team-card.collapsed .td-v2-tc-header {
    border-bottom: none !important;
    border-radius: 12px;
    background: transparent !important;
}

.td-v2-tc-team {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.td-v2-tc-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.td-v2-tc-name {
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.3px;
    display: flex;
    flex-direction: column;
}

.td-v2-tc-chevron {
    color: #ffffff;
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
    transform: rotate(180deg);
}

.td-v2-team-card.collapsed .td-v2-tc-chevron {
    transform: rotate(0deg);
}

.td-v2-tc-divider {
    width: 90%;
    height: 1px;
    margin: 0 auto;
    border-radius: 100%;
    background: linear-gradient(90deg, rgba(116, 98, 57, 0) 0%, rgba(237, 211, 151, 0.5) 20%, #edd397 50%, rgba(237, 211, 151, 0.5) 80%, rgba(116, 98, 57, 0) 100%);
    box-shadow: 0 0 4px rgba(237, 211, 151, 0.35);
    flex-shrink: 0;
}

.td-v2-team-card.collapsed .td-v2-tc-divider {
    display: none !important;
}

.td-v2-team-card.collapsed .td-v2-tc-roster {
    display: none !important;
}

.td-v2-tc-roster {
    background: transparent !important;
    padding: 16px 18px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    flex: 1 1 auto;
    min-height: 180px;
    max-height: 205px;
    overflow-y: auto;
}

.td-v2-tc-roster::-webkit-scrollbar {
    width: 4px;
}
.td-v2-tc-roster::-webkit-scrollbar-track {
    background: transparent;
}
.td-v2-tc-roster::-webkit-scrollbar-thumb {
    background: rgba(61, 214, 242, 0.3);
    border-radius: 4px;
}
.td-v2-tc-roster::-webkit-scrollbar-thumb:hover {
    background: rgba(61, 214, 242, 0.6);
}

.td-v2-tc-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.td-v2-tc-player-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.td-v2-tc-player-name {
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   SECTION: PRIZE DISTRIBUTION
   -------------------------------------------------------------------------- */
.td-v2-section-prize {
    margin-bottom: 36px;
}

.td-v2-prize-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.td-v2-prize-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
    user-select: none;
    cursor: pointer;
}

.td-v2-prize-more:hover {
    color: #3fdcf9;
    opacity: 0.9;
}

.td-v2-prize-more-arrow {
    width: 14px;
    height: 9px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.td-v2-prize-banner {
    background: linear-gradient(90deg, #3bd5f2 0%, #2099b2 30%, #105a6e 60%, rgba(8, 30, 44, 0.5) 85%, transparent 100%);
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
    padding: 6px 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 11.5px;
    color: #072a3e;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
}

.td-v2-prize-banner strong {
    font-weight: 800;
    color: #02121d;
}

.td-v2-prize-banner span {
    font-weight: 600;
    color: #072a3e;
}

.td-v2-prize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 991px) {
    .td-v2-prize-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.td-v2-prize-table-wrap {
    overflow-x: auto;
}

.td-v2-prize-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border: none;
    table-layout: fixed;
}

.td-v2-prize-table thead tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.38) !important;
}

.td-v2-prize-table th {
    background: #2e3133;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border: none;
    height: 36px;
}

.td-v2-prize-table th.th-place {
    width: 125px;
    text-align: center;
    border-right: none !important;
}

.td-v2-prize-table th.th-participant {
    width: 185px;
    text-align: left;
    padding-left: 20px;
}

.td-v2-prize-table th.th-qualifies {
    text-align: left;
    padding-left: 20px;
}

.td-v2-prize-table td {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.38);
    vertical-align: middle;
    background: transparent;
    height: 42px;
}

.td-v2-prize-table td.td-place {
    width: 125px;
    padding: 9px 8px;
}

.td-v2-prize-table td:nth-child(2) {
    padding-left: 20px;
}

.td-v2-prize-table td:nth-child(3) {
    padding-left: 20px;
}

/* Left table top 3 rows cyan accent border */
.td-v2-prize-table-left tr.top-rank td:first-child {
    border-left: 2px solid #00e5ff;
}

.td-v2-place-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 26px;
}

.td-v2-prize-medal {
    position: absolute;
    left: 18px;
    width: 22px;
    height: 28px;
    object-fit: contain;
}

.td-v2-place-num {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-align: center;
}

.td-v2-prize-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.td-v2-prize-flag {
    width: 22px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.td-v2-prize-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.td-v2-prize-team span {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.td-v2-prize-qual {
    display: flex;
    align-items: center;
    gap: 10px;
}

.td-v2-prize-qual-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.td-v2-prize-qual span {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   SECTION: STAGES / BRACKET
   -------------------------------------------------------------------------- */
.td-v2-stages-container {
    background: transparent;
    padding: 10px 0 40px 0;
    overflow-x: auto;
    width: 100%;
}

.td-v2-bracket-wrapper {
    position: relative;
    width: 100%;
    min-width: 1050px;
    height: 590px;
    margin: 0;
}

.td-v2-bracket-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.td-v2-bracket-svg path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.2;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.td-v2-bracket-tree {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.td-v2-bracket-col {
    position: relative;
    width: 235px;
    height: 100%;
    flex-shrink: 0;
}

.td-v2-bracket-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Orbitron', sans-serif !important;
    white-space: nowrap;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.td-v2-bcol-title-lower {
    top: 450px;
}

/* Card Styling */
.td-v2-bracket-card {
    position: absolute;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(26, 35, 44, 0.95);
    border: 1px solid rgba(80, 115, 140, 0.28);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

/* Vertical cyan indicator on left of card */
.td-v2-card-left-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #00d2ff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
    z-index: 5;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

/* Team Rows */
.td-v2-bc-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 0 12px;
    height: 36px;
    background: rgba(26, 35, 44, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.td-v2-bc-row:last-child {
    border-bottom: none;
}

/* Team Information */
.td-v2-bc-team {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.td-v2-bc-logo {
    width: 24px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    flex-shrink: 0;
}

.td-v2-bc-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
    overflow: hidden;
}

.td-v2-bc-name {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.td-v2-bc-status {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.td-v2-bc-status.is-lose {
    color: #718096;
    margin-top: 1px;
}

.td-v2-bc-status.is-win {
    color: #3ef895;
    margin-top: 1px;
}

.td-v2-bc-crown-wrap {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 1px;
}

.td-v2-bc-crown {
    display: inline-block;
    flex-shrink: 0;
    width: 11px;
    height: 9px;
}

/* State 1: Hover Row with VOTE Button */
.td-v2-bc-row.is-hover-row {
    background: linear-gradient(90deg, #104e63 0%, #157997 45%, #18a9cb 75%, #1bd8fc 100%);
    box-shadow: inset 0 0 12px rgba(27, 216, 252, 0.3);
}

.td-v2-bc-row.is-hover-row .td-v2-bc-name {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

/* VOTE Button with Folded Dog-Ear Corners */
.td-v2-bc-vote-btn {
    position: relative;
    background: #3fe0ff;
    padding: 3px 10px;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 10px;
    font-weight: 800;
    color: #061924;
    letter-spacing: 0.5px;
    clip-path: polygon(
        6px 0%,
        100% 0%,
        100% calc(100% - 6px),
        calc(100% - 6px) 100%,
        0% 100%,
        0% 6px
    );
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease, filter 0.15s ease;
    flex-shrink: 0;
}

.td-v2-bc-vote-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* Dog-ear fold triangles */
.td-v2-bc-vote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #8eecff;
    clip-path: polygon(0% 0%, 100% 100%, 0% 100%);
}

.td-v2-bc-vote-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 6px;
    height: 6px;
    background: #8eecff;
    clip-path: polygon(100% 0%, 100% 100%, 0% 0%);
}

/* State 2: Win Row with VOTED badge */
.td-v2-bc-row.is-win-row {
    background: linear-gradient(90deg, #104152 0%, #135d72 50%, #168ba8 100%);
}

.td-v2-bc-voted-badge {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 10.5px;
    font-weight: 800;
    color: #ffd875;
    letter-spacing: 0.6px;
    text-shadow: 0 0 8px rgba(255, 216, 117, 0.4);
    flex-shrink: 0;
}

/* State 3: Lose Row with VOTED dim */
.td-v2-bc-row.is-lose-voted-row {
    background: rgba(26, 35, 44, 0.7);
}

.td-v2-bc-voted-dim {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 10.5px;
    font-weight: 800;
    color: #9c7b42;
    letter-spacing: 0.6px;
    opacity: 0.75;
    flex-shrink: 0;
}

/* Exact Card Coordinates (Pixel-perfect tree) */
/* Col 1: Quarter Finals */
.td-v2-card-qf-1 { top: 60px; }
.td-v2-card-qf-2 { top: 155px; }
.td-v2-card-qf-3 { top: 250px; }
.td-v2-card-qf-4 { top: 345px; }

/* Col 2: Semifinals */
.td-v2-card-semi-1 { top: 107.5px; }
.td-v2-card-semi-2 { top: 297.5px; }
.td-v2-card-lower-semi { top: 490px; }

/* Col 3: Finals */
.td-v2-card-upper-final { top: 202.5px; }
.td-v2-card-lower-final { top: 490px; }

/* Col 4: Grand Final */
.td-v2-card-grand-final { top: 346px; }

/* --------------------------------------------------------------------------
   SECTION: UPCOMING AND COMPLETED MATCHES SUBTAB
   -------------------------------------------------------------------------- */
.td-v2-matches-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.td-v2-matches-block {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.td-v2-matches-banner-wrap {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
}

.td-v2-matches-banner {
    height: 31px;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 16px;
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
    -webkit-clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
    background: linear-gradient(90deg, #3fdcf9 0%, rgba(63, 220, 249, 0.75) 20%, rgba(63, 220, 249, 0.45) 50%, rgba(63, 220, 249, 0.25) 80%, rgba(63, 220, 249, 0.12) 100%);
    box-sizing: border-box;
}

.td-v2-matches-banner-title {
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 800;
    font-size: 13px;
    color: #000000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}

.td-v2-matches-table-card {
    background: rgba(14, 23, 33, 0.9);
    border: 1px solid rgba(48, 75, 102, 0.4);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.td-v2-match-row {
    height: 56px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
    box-sizing: border-box;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}

.td-v2-match-row:last-child {
    border-bottom: none;
}

.td-v2-match-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.td-v2-match-row:hover .td-v2-match-stats-btn {
    filter: brightness(1.15);
    transform: scale(1.05);
}

.td-v2-match-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 320px;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    box-sizing: border-box;
}

.td-v2-match-badge {
    background: rgba(255, 255, 255, 0.08);
    border: none !important;
    border-radius: 4px;
    padding: 3px 9px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.td-v2-match-time-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
    width: 115px;
    flex-shrink: 0;
}

.td-v2-match-date {
    font-family: 'Inter', sans-serif !important;
    font-size: 11.5px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
}

.td-v2-match-time {
    font-family: 'Inter', sans-serif !important;
    font-size: 11.5px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
}

.td-v2-match-stage {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.td-v2-match-stage-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
    transition: color 0.15s ease;
    display: block;
    width: 100%;
}

.td-v2-match-row:hover .td-v2-match-stage-name {
    color: #ffffff;
}

.td-v2-match-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.td-v2-match-upcoming-team1 {
    width: 175px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.td-v2-match-upcoming-team2 {
    width: 175px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

.td-v2-match-team-name {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-v2-match-team-logo {
    width: 25px;
    height: 25px;
    object-fit: contain;
    flex-shrink: 0;
}

.td-v2-match-vs {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    width: 70px;
    text-align: center;
    user-select: none;
    flex-shrink: 0;
}

/* Completed Team Boxes */
.td-v2-match-box {
    width: 175px;
    height: 38px;
    border-radius: 6px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border: none !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

.td-v2-box-team1 {
    justify-content: flex-end;
    gap: 12px;
}

.td-v2-box-team2 {
    justify-content: flex-start;
    gap: 12px;
}

.td-v2-match-box.is-winner {
    background: #10542c;
    border: none !important;
}

.td-v2-match-box.is-winner .td-v2-match-team-name {
    color: #ffffff;
    font-weight: 700;
}

.td-v2-match-box.is-loser {
    background: #3a1a24;
    border: none !important;
}

.td-v2-match-box.is-loser .td-v2-match-team-name {
    color: #8b949e;
    font-weight: 600;
}

.td-v2-match-score {
    width: 70px;
    text-align: center;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    user-select: none;
    flex-shrink: 0;
}

.td-v2-match-score .score-win {
    color: #3ef895;
    font-weight: 600;
}

.td-v2-match-score .score-lose {
    color: #2fe0fc;
    font-weight: 600;
}

.td-v2-match-score-dash {
    color: #2fe0fc;
    font-weight: 500;
}

.td-v2-match-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 0 0 140px;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    box-sizing: border-box;
}

.td-v2-match-status {
    font-family: 'Inter', sans-serif !important;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

.td-v2-match-status.status-upcoming {
    color: #e5ab37;
}

.td-v2-match-status.status-completed {
    color: #8b949e;
}

.td-v2-match-stats-btn {
    width: 28px;
    height: 28px;
    background: #2fe0fc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #04121d !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, filter 0.15s ease;
    flex-shrink: 0;
}

.td-v2-match-stats-btn:hover {
    filter: brightness(1.15);
    transform: scale(1.05);
}


/* --------------------------------------------------------------------------
   SECTION: TOURNAMENT STATS PAGE & 6 SUBTABS
   -------------------------------------------------------------------------- */
.td-v2-section-stats-page {
    width: 100%;
}

.td-v2-stats-subtabs-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 32px;
    margin-bottom: 22px;
    position: relative;
    box-sizing: border-box;
}

.td-v2-stats-lb-header {
    margin-bottom: 22px;
}

.td-v2-stats-lb-header .td-v2-section-title-wrap {
    margin-bottom: 0 !important;
}

.td-v2-stats-standings-header {
    margin-bottom: 20px;
}

.td-v2-stats-standings-header .td-v2-section-title-wrap {
    margin-bottom: 0 !important;
}

.td-v2-stats-subtabs-bar .td-v2-subtab-btn {
    border-right: 1px solid rgba(8, 22, 36, 0.7);
}

.td-v2-stats-subtabs-bar .td-v2-subtab-btn:last-child {
    border-right: none;
}

.td-v2-stats-pane {
    width: 100%;
}

.td-v2-stats-section-block {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (max-width: 768px) {
    .td-v2-stats-subtabs-bar {
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        scrollbar-width: thin;
        scrollbar-color: var(--color-red-theme, #2ed3f8) rgba(255, 255, 255, 0.08);
        padding-bottom: 6px;
    }
    .td-v2-stats-subtabs-bar::-webkit-scrollbar {
        display: block;
        height: 4px;
    }
    .td-v2-stats-subtabs-bar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 4px;
    }
    .td-v2-stats-subtabs-bar::-webkit-scrollbar-thumb {
        background: var(--color-red-theme, #2ed3f8);
        border-radius: 4px;
    }
    .td-v2-stats-subtabs-bar .td-v2-subtab-btn {
        flex: none;
        padding: 0 16px;
        white-space: nowrap;
    }
}

/* --------------------------------------------------------------------------
   SECTION: TOURNAMENT STATS - TEAMS SUBTAB
   -------------------------------------------------------------------------- */
.td-v2-team-subtabs-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}

.td-v2-team-subtab-btn {
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #7d90a4;
    padding: 10px 24px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}

.td-v2-team-subtab-btn:hover {
    color: #ffffff;
}

.td-v2-team-subtab-btn.active {
    background: #111e2b;
    color: #ffffff;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 0 #2fe0fc;
}

.td-v2-teams-table-card {
    background: #0d1722;
    border: 1px solid rgba(48, 75, 102, 0.4);
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.td-v2-teams-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.td-v2-teams-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.td-v2-teams-table thead tr {
    background: #2D3032 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.38) !important;
}

.td-v2-teams-table th {
    background: #2D3032 !important;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.2px;
    border: none !important;
    border-right: none !important;
    position: relative;
    user-select: none;
}

.td-v2-teams-table th:last-child {
    border-right: none !important;
}

.td-v2-teams-table th.td-v2-th-team,
.td-v2-teams-table th.td-v2-th-player {
    text-align: left;
    padding-left: 20px;
}

.td-v2-teams-table th.td-v2-th-wins {
    color: #3ef895 !important;
}

.td-v2-teams-table th.td-v2-th-losses {
    color: #ff4d4f !important;
}

.td-v2-th-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.td-v2-th-title {
    flex: 1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.td-v2-th-title:hover {
    color: #2fe0fc;
}

.td-v2-teams-table th.td-v2-th-team .td-v2-th-title,
.td-v2-teams-table th.td-v2-th-player .td-v2-th-title {
    text-align: left;
}

.td-v2-team-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 3px 5px;
    cursor: pointer;
    color: #8c97a4;
    border-radius: 4px;
    transition: all 0.15s ease;
    flex-shrink: 0;
    line-height: 1;
}

.td-v2-team-filter-icon:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.td-v2-team-filter-icon.is-sorted,
.td-v2-team-filter-icon.is-filtered {
    color: #2fe0fc !important;
    background: rgba(47, 224, 252, 0.15);
}

.td-v2-teams-table tbody tr {
    height: 52px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.38) !important;
    transition: background 0.15s ease;
}

.td-v2-teams-table tbody tr:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.38) !important;
}

.td-v2-teams-table tbody tr:hover {
    background: rgba(45, 48, 50, 0.35);
}

.td-v2-teams-table td {
    padding: 12px 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.td-v2-container .text-muted,
.td-v2-teams-table td.text-muted,
.td-v2-teams-table td.td-v2-empty-table-cell,
.td-v2-empty-table-cell {
    color: #cbd5e1 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.td-v2-teams-table th.td-v2-th-team,
.td-v2-teams-table td.td-v2-td-team {
    text-align: left;
    padding-left: 20px;
    min-width: 160px;
    white-space: nowrap;
}

.td-v2-team-stat-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    vertical-align: middle;
}

.td-v2-team-stat-flag {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

.td-v2-team-stat-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.td-v2-team-stat-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   SECTION: TOURNAMENT STATS - PLAYERS SUBTAB
   -------------------------------------------------------------------------- */
.td-v2-teams-table th.td-v2-th-player,
.td-v2-teams-table td.td-v2-td-player {
    text-align: left;
    padding-left: 20px;
    min-width: 170px;
    white-space: nowrap;
}

.td-v2-player-stat-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    vertical-align: middle;
}

.td-v2-player-stat-avatar-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    vertical-align: middle;
    margin: 0;
    text-decoration: none;
}

.td-v2-player-stat-avatar-wrap:hover {
    opacity: 0.85;
}

.td-v2-player-stat-avatar,
.td-v2-teams-table .td-v2-player-stat-avatar {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: top center !important;
    flex-shrink: 0 !important;
    transform: none !important;
    display: block !important;
    background: rgba(255, 255, 255, 0.08);
}

.td-v2-player-stat-avatar:hover,
.td-v2-teams-table .td-v2-player-stat-avatar:hover {
    transform: none !important;
}

.td-v2-player-stat-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.td-v2-hero-avatar {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(48, 75, 102, 0.4);
    transform: none !important;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   FILTER POPOVER (Teams, Players, Heroes tables)
   -------------------------------------------------------------------------- */
.td-v2-filter-popover {
    position: absolute;
    width: 230px;
    background: #15222e;
    border: 1px solid rgba(48, 75, 102, 0.7);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 9999;
    padding: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
    animation: tdFadeIn 0.15s ease;
}

@keyframes tdFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.td-v2-fp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(48, 75, 102, 0.4);
}

.td-v2-fp-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.td-v2-fp-close {
    background: transparent;
    border: none;
    color: #8c97a4;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.td-v2-fp-close:hover {
    color: #ffffff;
}

.td-v2-fp-input-wrap {
    margin-bottom: 10px;
}

.td-v2-fp-input {
    width: 100%;
    background: #0a131c;
    border: 1px solid rgba(48, 75, 102, 0.5);
    border-radius: 4px;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 10px;
    outline: none;
    transition: border-color 0.15s ease;
}

.td-v2-fp-input:focus {
    border-color: #2fe0fc;
}

.td-v2-fp-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.td-v2-fp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: rgba(48, 75, 102, 0.2);
    border: 1px solid rgba(48, 75, 102, 0.4);
    border-radius: 4px;
    color: #d1d8e0;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.td-v2-fp-btn:hover {
    background: rgba(47, 224, 252, 0.15);
    border-color: #2fe0fc;
    color: #2fe0fc;
}

.td-v2-fp-btn-reset {
    color: #ff7875;
}

.td-v2-fp-btn-reset:hover {
    background: rgba(255, 77, 79, 0.15);
    border-color: #ff4d4f;
    color: #ff4d4f;
}

/* --------------------------------------------------------------------------
   SECTION: TOURNAMENT STATS - HEROES SUBTAB
   -------------------------------------------------------------------------- */
.td-v2-hero-filters-bar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.td-v2-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.td-v2-filter-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #7d90a4;
    margin: 0;
}

.td-v2-filter-dates {
    display: flex;
    align-items: center;
    gap: 8px;
}

.td-v2-filter-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.td-v2-filter-input,
.td-v2-filter-select {
    height: 36px;
    background: #111e2b;
    border: 1px solid rgba(48, 75, 102, 0.4);
    border-radius: 4px;
    padding: 0 32px 0 12px;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.td-v2-filter-input:focus,
.td-v2-filter-select:focus,
.td-v2-filter-input-wrap:focus-within .td-v2-filter-input,
.td-v2-filter-input-wrap:focus-within .td-v2-filter-select {
    border-color: #2fe0fc;
    box-shadow: 0 0 8px rgba(47, 224, 252, 0.25);
}

.td-v2-filter-dates .td-v2-filter-input {
    width: 130px;
}

.td-v2-filter-input:hover,
.td-v2-filter-select:hover {
    border-color: rgba(47, 224, 252, 0.6);
}

.td-v2-filter-chevron {
    position: absolute;
    right: 10px;
    color: #7d90a4;
    cursor: pointer;
    pointer-events: auto;
    transition: color 0.2s ease, transform 0.25s ease;
    z-index: 5;
}

.td-v2-filter-input-wrap:hover .td-v2-filter-chevron,
.td-v2-filter-chevron:hover {
    color: #2fe0fc;
}

.td-v2-filter-input-wrap:focus-within .td-v2-filter-chevron,
.td-v2-filter-chevron.is-active {
    color: #2fe0fc;
    transform: rotate(180deg);
}

.td-v2-date-wrap {
    position: relative;
    cursor: pointer;
}

.td-v2-date-display {
    pointer-events: none;
    user-select: none;
}

.td-v2-date-picker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 4;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

.td-v2-date-picker::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.td-v2-th-wins,
.td-v2-td-wins {
    color: #3ef895 !important;
}

.td-v2-th-losses,
.td-v2-td-losses {
    color: #ff5252 !important;
}

.td-v2-hero-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.td-v2-col-red {
    color: #ff4d4f !important;
}

.td-v2-col-cyan {
    color: #2fe0fc !important;
}

.td-v2-col-purple {
    color: #b37feb !important;
}

.td-v2-col-green {
    color: #52c41a !important;
}

.td-v2-wr-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border: 1px solid #2fe0fc;
    border-radius: 4px;
    color: #2fe0fc !important;
    font-weight: 700;
    font-size: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background: rgba(47, 224, 252, 0.08);
}

/* --------------------------------------------------------------------------
   SECTION: TOURNAMENT STATS - DRAFTS SUBTAB
   -------------------------------------------------------------------------- */
.td-v2-drafts-filter-card {
    background: #0e1823;
    border: 1px solid rgba(48, 75, 102, 0.4);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

.td-v2-drafts-filter-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
}

.td-v2-drafts-filter-divider {
    border-bottom: 1px solid rgba(48, 75, 102, 0.3);
    margin: 14px 0;
    width: 100%;
}

.td-v2-drafts-side-checkboxes {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 36px;
}

.td-v2-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}

.td-v2-checkbox-label.is-blue {
    color: #38bdf8;
}

.td-v2-checkbox-label.is-red {
    color: #ff4d4f;
}

.td-v2-draft-reset-btn {
    height: 36px;
    padding: 0 16px;
    background: #111e2b;
    border: 1px solid rgba(48, 75, 102, 0.4);
    border-radius: 4px;
    color: #94a3b8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.td-v2-draft-reset-btn:hover {
    border-color: #2fe0fc;
    color: #2fe0fc;
    background: rgba(47, 224, 252, 0.08);
}

.td-v2-draft-card {
    background: #0b1520;
    border: 1px solid rgba(48, 75, 102, 0.4);
    border-radius: 6px;
    padding: 18px 24px;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.td-v2-draft-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(48, 75, 102, 0.35);
}

.td-v2-draft-team-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.td-v2-draft-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.td-v2-draft-team-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.td-v2-draft-badge-win {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #3ef895;
    background: rgba(62, 248, 149, 0.12);
    border: 1px solid #3ef895;
    padding: 2px 14px;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%);
    -webkit-clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%);
    line-height: 1.2;
}

.td-v2-draft-badge-lose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #2fe0fc;
    background: rgba(47, 224, 252, 0.12);
    border: 1px solid #2fe0fc;
    padding: 2px 14px;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%);
    -webkit-clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%);
    line-height: 1.2;
}

.td-v2-draft-card .team-status.diamond-frame-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 4px;
    user-select: none;
}

.td-v2-draft-card .diamond-frame {
    background: #08121d;
    padding: 2px 14px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.td-v2-draft-meta-info {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #7d90a4;
    text-align: center;
}

.td-v2-draft-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 18px;
    overflow-x: auto;
}

.td-v2-draft-side-block {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.td-v2-draft-group-wrap {
    display: flex;
    flex-direction: column;
}

.td-v2-draft-group-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    line-height: 1;
}

.td-v2-draft-group-title.is-bans {
    color: #ff4d4f;
}

.td-v2-draft-group-title.is-picks {
    color: #38bdf8;
}

.td-v2-draft-heroes-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.td-v2-draft-ban-box {
    width: 38px;
    height: 50px;
    background: #121d28;
    border: 1px solid rgba(48, 75, 102, 0.4);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.td-v2-draft-ban-box.is-empty {
    background: rgba(18, 29, 40, 0.6) !important;
    border: 1px dashed rgba(65, 95, 125, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: default !important;
}

.td-v2-draft-empty-placeholder {
    width: 100%;
    height: 100%;
    background: transparent;
}

.td-v2-draft-ban-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.65);
}

.td-v2-draft-ban-slash {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
}

.td-v2-draft-pick-box {
    width: 44px;
    height: 70px;
    background: #121d28;
    border: 1px solid rgba(48, 75, 102, 0.4);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.td-v2-draft-pick-box.is-empty {
    background: rgba(48, 75, 102, 0.25) !important;
    border: 1px dashed rgba(100, 140, 180, 0.45) !important;
    cursor: default !important;
}

.td-v2-draft-pick-box.is-empty .td-v2-draft-pick-hero-title {
    background: rgba(48, 75, 102, 0.4);
    color: rgba(255, 255, 255, 0.6);
}

.td-v2-draft-pick-empty-slot {
    flex: 1;
    background: rgba(48, 75, 102, 0.12);
    width: 100%;
}

.td-v2-draft-pick-box.is-empty .td-v2-draft-pick-lane {
    background: rgba(48, 75, 102, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

.td-v2-draft-pick-hero-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    background: rgba(14, 23, 33, 0.9);
    padding: 2px 0;
    line-height: 1;
    white-space: nowrap;
}

.td-v2-draft-pick-img {
    width: 100%;
    flex: 1;
    object-fit: cover;
}

.td-v2-draft-pick-lane {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 7.5px;
    font-weight: 600;
    color: #cbd5e1;
    text-align: center;
    background: rgba(10, 16, 24, 0.95);
    padding: 2px 0;
    line-height: 1;
    white-space: nowrap;
}

.td-v2-draft-vs-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    gap: 2px;
}

.td-v2-draft-vs-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.td-v2-draft-gold-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #7d90a4;
    line-height: 1;
    margin-top: 2px;
}

.td-v2-draft-gold-val {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #3ef895;
    line-height: 1;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   SECTION: STAGES & BRACKETS (V2 CYBER/BLUE THEME - REPLACING RED WITH BLUE)
   -------------------------------------------------------------------------- */
.td-v2-section-stages .td-v2-stage-block {
    position: relative;
}

.td-v2-section-stages .td-v2-substage-title {
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

/* Stage View Tabs (Bracket vs Table) */
.td-v2-section-stages .event-results-tabs {
    display: inline-flex;
    width: auto;
    align-items: flex-end;
    gap: 0.35rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2) !important;
    margin-bottom: 1.5rem !important;
}

.td-v2-section-stages .event-results-tabs .ert-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    border-top-left-radius: 0.4rem;
    border-top-right-radius: 0.4rem;
    margin-bottom: -1px;
    padding: 0.55rem 1.25rem;
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.td-v2-section-stages .event-results-tabs .ert-tab:hover {
    color: #ffffff;
    background: rgba(0, 229, 255, 0.08);
}

.td-v2-section-stages .event-results-tabs .ert-tab.active {
    color: #00e5ff !important;
    background: rgba(0, 229, 255, 0.12) !important;
    border-bottom: 2px solid #00e5ff !important;
    box-shadow: 0 4px 14px rgba(0, 229, 255, 0.18);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

/* Group Titles (Group A, Group B, Knockout) - EXACT MATCH WITH ORIGINAL */
.td-v2-section-stages .td-gt-group-label,
.td-v2-section-participants .td-gt-group-label,
#team-pane-player-pool .td-gt-group-label {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 0.7 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    font-family: inherit !important;
}

.td-v2-section-participants .td-gt-group-label:first-child,
#team-pane-player-pool .td-gt-group-label:first-child {
    margin-top: 0.5rem !important;
}

.td-v2-section-stages .td-gt-group-label::before,
.td-v2-section-participants .td-gt-group-label::before,
#team-pane-player-pool .td-gt-group-label::before {
    display: none !important;
}

/* Round Titles in Bracket (Upper QF, Semifinals, Lower Bracket, Grand Final) */
.td-v2-section-stages .tb-bracket-label {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    min-height: 2.5em !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

.td-v2-section-stages .tb-bracket-col {
    width: 100% !important;
}

.td-v2-section-stages .tbi-card-wrapper {
    width: 100% !important;
}

/* Bracket Cards - EXACT ORIGINAL CARD WITH RED SWAPPED TO BLUE (#00e5ff) */
.td-v2-section-stages .tbi-card {
    display: flex;
    flex-direction: column;
    column-gap: 1rem;
    align-items: stretch;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.td-v2-section-stages .tbi-datetime {
    font-size: 0.875rem;
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.7);
}

.td-v2-section-stages .tbi-type {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-align: center;
    display: flex;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.td-v2-section-stages .tbi-team-1 {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.td-v2-section-stages .tbi-team-2 {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.td-v2-section-stages .tbi-team-1,
.td-v2-section-stages .tbi-team-2 {
    display: flex;
    row-gap: 0.5rem;
    border-left: 3px solid #00e5ff !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    background: #1e2730 !important;
    padding: 0.5rem 1rem;
    align-items: center;
    column-gap: 0.5rem;
    color: #ffffff !important;
    box-shadow: none !important;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.td-v2-section-stages .tbi-team-1:hover,
.td-v2-section-stages .tbi-team-2:hover {
    background: linear-gradient(270deg, #0077b6 0%, rgba(0, 119, 182, 0) 44.06%),
        linear-gradient(90deg,
            rgba(0, 229, 255, 0.05) 0%,
            rgba(0, 229, 255, 0.25) 50%,
            rgba(0, 229, 255, 0.05) 100%),
        linear-gradient(0deg, #1e2730, #1e2730) !important;
}

.td-v2-section-stages .tbi-team.winner-vote,
.td-v2-section-stages .tbi-team-1:has(.tbi-voted-btn),
.td-v2-section-stages .tbi-team-2:has(.tbi-voted-btn) {
    background: linear-gradient(270deg,
            #0077b6 -1.63%,
            rgba(0, 119, 182, 0) 41.37%,
            rgba(0, 229, 255, 0.5) 100%),
        linear-gradient(0deg, #1e2730, #1e2730) !important;
}

.td-v2-section-stages .tbi-team.win .tbi-team-score {
    color: #4af08e !important;
    font-weight: 700;
}

.td-v2-section-stages .tbi-team.lose .tbi-team-score {
    color: #e62429 !important;
}

.td-v2-section-stages .tbi-team.lose {
    opacity: 0.5 !important;
}

.td-v2-section-stages .tbi-team-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.td-v2-section-stages .tbi-team-name span[style*="color: red"],
.td-v2-section-stages .tbi-team-name span[style*="color:red"] {
    color: #00e5ff !important;
}

/* Connector Lines - Thin Crisp Lines, NO Solid Block */
.td-v2-section-stages .tb-bracket-layout .connector-el {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

.td-v2-section-stages .tb-bracket-layout .connector-el:empty,
.td-v2-section-stages .tb-bracket-layout .connector-el[style*="height: 2px"],
.td-v2-section-stages .tb-bracket-layout .connector-el[style*="height:2px"] {
    background-color: rgba(0, 229, 255, 0.4) !important;
    height: 2px !important;
}

.td-v2-section-stages .tb-bracket-layout .connector-el div {
    border-color: rgba(0, 229, 255, 0.4) !important;
}

/* Themed Button in Bracket (Vote, etc.) */
.td-v2-section-stages .btn-themed {
    background: linear-gradient(180deg, #0d324d 0%, #081d2f 100%) !important;
    border: 1px solid #00e5ff !important;
    color: #00e5ff !important;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
}

.td-v2-section-stages .btn-themed:hover {
    background: #00e5ff !important;
    color: #041019 !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
}

/* Group Table (Standings) Styling */
.td-v2-section-stages .td-gt-wrapper {
    background: rgba(10, 23, 37, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    width: 100%;
}

.td-v2-section-stages .td-gt-head th {
    background: rgba(0, 229, 255, 0.08);
    color: #00e5ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}

.td-v2-section-stages .td-gt-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.td-v2-section-stages .td-gt-row:hover {
    background: rgba(0, 229, 255, 0.06);
}

/* ==========================================================================
   APP BOTTOM BAR & MOBILE HEADER STYLES (PORTED FOR TOURNAMENT DETAIL V2)
   ========================================================================== */
.ev2-app-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #08101a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1040;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    padding: 0 4px;
}

.ev2-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.2s ease, transform 0.15s ease;
    flex: 1;
    max-width: 75px;
}

.ev2-bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.ev2-bottom-nav-icon svg {
    display: block;
    stroke: currentColor;
    transition: stroke 0.2s ease, transform 0.15s ease;
}

.ev2-bottom-nav-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.1;
    color: inherit;
}

.ev2-bottom-nav-item:hover {
    color: #94a3b8;
}

.ev2-bottom-nav-item.active {
    color: #2ed3f8 !important;
}

.ev2-bottom-nav-item.active .ev2-bottom-nav-label {
    color: #2ed3f8 !important;
    font-weight: 700;
}

.ev2-bottom-nav-item.active .ev2-bottom-nav-icon svg {
    stroke: #2ed3f8 !important;
}

/* Mobile Top Header */
.ev2-mobile-top-header {
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem 0.65rem 1rem;
    background: transparent;
    width: 100%;
    margin-bottom: 0.35rem;
}

.ev2-mobile-logo-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ev2-mobile-logo-link {
    display: flex;
    align-items: center;
}

.ev2-mobile-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.ev2-mobile-ad-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e50914;
    color: #ffffff;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.ev2-mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ev2-mobile-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 1.15rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.15s ease;
}

.ev2-mobile-icon-btn:hover {
    color: #2ed3f8;
}

/* Mobile Drawer Overlay */
.td-v2-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1055;
    transition: opacity 0.3s ease;
}

/* Mobile Leaderboard Tabs */
.td-v2-lb-mobile-tabs {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.td-v2-lb-mobile-tab {
    flex: 1;
    height: 34px;
    background: rgba(30, 42, 54, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #8b9cb3;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.td-v2-lb-mobile-tab.active {
    background: #11202e;
    border-color: #2ed3f8;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(46, 211, 248, 0.25);
}

/* ==========================================================================
   MOBILE VIEW BREAKPOINT (<= 991px) - 100% MATCHING SCREENSHOTS
   ========================================================================== */
@media (max-width: 991px) {
    /* Hide Default Top Header Bar on Mobile (drawer remains functional) */
    #header .header-wrapper {
        display: none !important;
    }

    #header #header-wrap {
        height: 0 !important;
        min-height: 0 !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

    #header.navbar-menu {
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        overflow: visible !important;
    }

    .navbar .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        height: 100vh !important;
        width: 100% !important;
        background: var(--color-theme) !important;
        z-index: 1200 !important;
        transition: all 250ms ease !important;
        display: block !important;
        overflow-y: auto !important;
    }

    .navbar-collapse.closed {
        max-width: 0% !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    .navbar-collapse:not(.closed) {
        max-width: 100% !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }

    /* Zero top padding so there is no gap at top */
    .content-wrapper,
    #wrapper {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .td-v2-container {
        padding-top: 0 !important;
        margin-top: 0 !important;
        padding-bottom: 75px !important; /* Space for app bottom bar */
    }

    .td-v2-container .container-fluid {
        padding-top: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* 1. Mobile Sidebar Drawer (Vertically Centered Floating Card, Not Full Height) */
    .td-v2-sidebar-wrapper {
        position: fixed !important;
        top: 50% !important;
        left: 0 !important;
        width: 275px !important;
        max-width: 82vw !important;
        height: auto !important;
        max-height: 82vh !important;
        z-index: 1060 !important;
        background: rgba(8, 16, 26, 0.96) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top-right-radius: 18px !important;
        border-bottom-right-radius: 18px !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border: 1px solid rgba(46, 211, 248, 0.3) !important;
        border-left: none !important;
        padding: 1.5rem 1.25rem 1.5rem 1.25rem !important;
        overflow-y: auto !important;
        transform: translateY(-50%) translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.8) !important;
    }

    .td-v2-sidebar-wrapper.mobile-open {
        transform: translateY(-50%) translateX(0) !important;
    }

    .td-v2-back-events {
        display: none !important;
    }

    /* Hide desktop sidebar toggle inside drawer on mobile */
    .td-v2-sidebar-toggle-handle {
        display: none !important;
    }

    /* Floating Cyan Chevron Button on Mobile (Vertically Centered) */
    .td-v2-mobile-sidebar-toggle {
        position: fixed !important;
        left: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 26px !important;
        height: 44px !important;
        background: #2ed3f8 !important;
        border: none !important;
        border-top-right-radius: 8px !important;
        border-bottom-right-radius: 8px !important;
        color: #08101a !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 2px 0 12px rgba(46, 211, 248, 0.45) !important;
        cursor: pointer !important;
        z-index: 1065 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .td-v2-mobile-sidebar-toggle.drawer-open {
        left: 275px !important;
    }

    .td-v2-mobile-sidebar-toggle:hover {
        background: #5ce3ff !important;
        box-shadow: 0 0 16px rgba(46, 211, 248, 0.85), 2px 0 12px rgba(46, 211, 248, 0.5) !important;
    }

    .td-v2-mobile-sidebar-toggle i {
        color: #08101a !important;
        font-size: 13px !important;
        font-weight: 900 !important;
    }

    .td-v2-sidebar-nav {
        position: static !important;
        top: 0 !important;
        padding: 0 !important;
    }

    /* 2. Hero Banner Card on Mobile */
    .td-v2-hero {
        min-height: auto !important;
        margin-bottom: 12px !important;
    }

    .td-v2-hero-content {
        padding: 14px 14px 12px 14px !important;
        min-height: auto !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
    }

    .td-v2-hero-left {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .td-v2-hero-logo {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        flex-shrink: 0 !important;
    }

    .td-v2-hero-logo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    .td-v2-hero-titles {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        min-width: 0 !important;
    }

    .td-v2-hero-title {
        font-family: 'Orbitron', sans-serif !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
        color: #ffffff !important;
    }

    .td-v2-hero-season {
        font-size: 0.72rem !important;
        color: #8397a8 !important;
        margin-bottom: 4px !important;
    }

    .td-v2-hero-divider-wrap {
        display: flex !important;
        margin: 4px 0 6px 0 !important;
    }

    .td-v2-hero-divider-orn {
        height: 6px !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .td-v2-hero-desc {
        font-size: 0.72rem !important;
        line-height: 1.35 !important;
        color: #8397a8 !important;
        margin-top: 2px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* 3-column horizontal stats row on Hero Banner */
    .td-v2-hero-meta {
        display: grid !important;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr) !important;
        width: 100% !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 8px !important;
        margin-top: 8px !important;
        gap: 4px !important;
        align-items: flex-start !important;
    }

    .td-v2-hero-meta-group {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .td-v2-hero-meta-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: unset !important;
        margin-bottom: 0 !important;
    }

    .td-v2-hero-meta-label {
        font-size: 0.65rem !important;
        color: #8397a8 !important;
        margin-bottom: 1px !important;
        text-transform: uppercase !important;
        font-weight: 600 !important;
        margin-right: 0 !important;
    }

    .td-v2-hero-meta-value {
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-left: 0 !important;
    }

    .td-v2-hero-meta-value.status-ongoing {
        color: #4af08e !important;
    }

    .td-v2-hero-meta-value.prize {
        color: #ffffff !important;
    }

    .td-v2-meta-flag {
        width: 16px !important;
        height: 11px !important;
        object-fit: cover !important;
        border-radius: 1px !important;
        margin-right: 4px !important;
    }

    /* 3. Top Tabs Bar on Mobile */
    .td-v2-top-tabs-bar {
        height: 36px !important;
        margin-bottom: 14px !important;
        background: rgba(18, 30, 44, 0.85) !important;
        border-radius: 6px !important;
    }

    .td-v2-top-tab-btn {
        font-size: 0.78rem !important;
        font-weight: 600 !important;
    }

    /* 4. Overview Section & Subtabs on Mobile */
    .td-v2-overview-header {
        margin-bottom: 10px !important;
    }

    .td-v2-overview-title {
        font-size: 1.3rem !important;
        letter-spacing: 1px !important;
    }

    .td-v2-subtabs-bar {
        height: 34px !important;
        margin-bottom: 10px !important;
    }

    .td-v2-subtab-btn {
        font-size: 0.76rem !important;
        padding: 0 8px !important;
    }

    /* Leaderboard Mobile Switcher (100% Matching Screenshot) */
    .td-v2-lb-mobile-tabs {
        display: flex !important;
        width: 100% !important;
        height: 38px !important;
        background: #111d28 !important;
        border-radius: 8px !important;
        margin-bottom: 12px !important;
        padding: 0 !important;
        overflow: hidden !important;
        position: relative !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .td-v2-lb-mobile-tab {
        flex: 1 1 0 !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        color: #ffffff !important;
        font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        position: relative !important;
        padding: 0 4px !important;
        text-align: center !important;
        transition: color 0.2s ease !important;
        letter-spacing: 0.2px !important;
    }

    .td-v2-lb-mobile-tab.active {
        color: #ffffff !important;
        font-weight: 700 !important;
        background: transparent !important;
    }

    .td-v2-lb-mobile-tab.active::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 3px !important;
        background: #2fe0fc !important;
        box-shadow: 0 -1px 8px rgba(47, 224, 252, 0.5) !important;
    }

    .td-v2-lb-grid {
        display: block !important;
    }

    .td-v2-lb-grid .td-v2-lb-card {
        display: none !important;
        width: 100% !important;
        margin-bottom: 16px !important;
    }

    .td-v2-lb-grid .td-v2-lb-card.mobile-active {
        display: block !important;
    }

    .td-v2-lb-row {
        padding: 6px 12px !important;
    }

    /* 5. Team Standings Table on Mobile (Unified Single Table) */
    .td-v2-standings-grid {
        display: none !important;
    }

    .td-v2-standings-mobile-wrapper {
        width: 100% !important;
        margin-bottom: 24px !important;
        background: rgba(14, 23, 39, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 6px !important;
        overflow: hidden !important;
    }

    .td-v2-standings-table-unified {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-bottom: 0 !important;
    }

    .td-v2-standings-table-unified thead tr {
        background: #232c37 !important;
    }

    .td-v2-standings-table-unified thead th {
        padding: 10px 12px !important;
        font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-weight: 700 !important;
        font-size: 0.88rem !important;
        color: #ffffff !important;
        border: none !important;
        letter-spacing: 0.5px !important;
    }

    .td-v2-standings-table-unified thead th.td-v2-th-rank {
        width: 50px !important;
        text-align: center !important;
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .td-v2-standings-table-unified thead th.td-v2-th-team {
        text-align: center !important;
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .td-v2-standings-table-unified thead th.td-v2-th-win {
        width: 60px !important;
        text-align: center !important;
    }

    .td-v2-standings-table-unified tbody tr {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
        transition: background 0.15s ease !important;
    }

    .td-v2-standings-table-unified tbody tr:last-child {
        border-bottom: none !important;
    }

    .td-v2-standings-table-unified tbody td {
        padding: 11px 12px !important;
        vertical-align: middle !important;
        border: none !important;
    }

    .td-v2-standings-table-unified tbody td.td-v2-td-rank {
        width: 50px !important;
        text-align: center !important;
        font-family: 'Rajdhani', 'Orbitron', sans-serif !important;
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
    }

    .td-v2-standings-table-unified tbody td.td-v2-td-team {
        text-align: left !important;
    }

    .td-v2-standings-table-unified tbody td.td-v2-td-win {
        width: 60px !important;
        text-align: center !important;
        font-family: 'Rajdhani', 'Orbitron', sans-serif !important;
        font-size: 1.35rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        line-height: 1 !important;
    }

    .td-v2-standings-table-unified .td-v2-team-cell {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .td-v2-standings-table-unified .td-v2-team-flag {
        width: 22px !important;
        height: 14px !important;
        object-fit: cover !important;
        border-radius: 2px !important;
        flex-shrink: 0 !important;
    }

    .td-v2-standings-table-unified .td-v2-team-logo {
        width: 26px !important;
        height: 26px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }

    .td-v2-standings-table-unified .td-v2-team-name {
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
    }

    /* 6. Tournament Format Cards on Mobile */
    .td-v2-format-container {
        gap: 10px !important;
    }

    .td-v2-format-header {
        height: 28px !important;
        padding: 0 12px !important;
    }

    .td-v2-format-title {
        font-size: 0.76rem !important;
    }

    .td-v2-format-body {
        padding: 10px 14px !important;
        font-size: 0.78rem !important;
    }

    /* 7. Participants Grid on Mobile (Responsive 2 Columns, Compact Text/Logos, Open/Close Accordion) */
    .td-v2-participants-toggle {
        font-size: 0.72rem !important;
        gap: 5px !important;
        cursor: pointer !important;
    }

    .td-v2-participants-toggle .td-v2-toggle-text {
        font-size: 0.72rem !important;
    }

    .td-v2-participants-toggle .td-v2-toggle-chevron {
        font-size: 9px !important;
    }

    .td-v2-participants-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        align-items: start !important;
    }

    .td-v2-team-card {
        border-radius: 8px !important;
    }

    .td-v2-team-card.collapsed {
        min-height: unset !important;
        height: auto !important;
        align-self: start !important;
    }

    .td-v2-team-card:not(.collapsed) {
        height: 100% !important;
        align-self: stretch !important;
    }

    .td-v2-tc-header {
        padding: 7px 8px !important;
        min-height: 42px !important;
        gap: 6px !important;
        cursor: pointer !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .td-v2-tc-header .td-v2-tc-name a {
        pointer-events: none !important;
    }

    .td-v2-tc-team {
        gap: 6px !important;
        overflow: hidden !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .td-v2-tc-logo {
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
        object-fit: contain !important;
    }

    .td-v2-tc-name {
        font-size: 0.68rem !important;
        line-height: 1.15 !important;
        letter-spacing: 0 !important;
        overflow: hidden !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    .td-v2-tc-name span {
        display: block !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .td-v2-tc-chevron {
        font-size: 10px !important;
        margin-left: 2px !important;
    }

    .td-v2-tc-divider {
        width: 90% !important;
        margin: 0 auto !important;
    }

    .td-v2-tc-roster {
        padding: 6px 8px 8px 8px !important;
        gap: 5px !important;
        min-height: unset !important;
        max-height: unset !important;
        overflow: visible !important;
    }

    .td-v2-team-card.collapsed .td-v2-tc-roster {
        display: none !important;
    }

    .td-v2-team-card:not(.collapsed) .td-v2-tc-roster {
        display: flex !important;
    }

    .td-v2-tc-player {
        gap: 6px !important;
        padding: 2px 0 !important;
        min-width: 0 !important;
    }

    .td-v2-tc-player-icon {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
        object-fit: contain !important;
    }

    .td-v2-tc-player-name {
        font-size: 0.65rem !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    /* 8. Prize Distribution on Mobile (Unified Single Table - 100% NO OFFSIDE) */
    .td-v2-prize-banner {
        padding: 8px 12px !important;
        font-size: 0.76rem !important;
        border-radius: 6px !important;
    }

    .td-v2-prize-grid {
        display: none !important;
    }

    .td-v2-prize-mobile-wrap {
        width: 100% !important;
        margin-bottom: 24px !important;
        background: rgba(14, 23, 39, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 6px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .td-v2-prize-table-unified {
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }

    .td-v2-prize-table-unified thead tr {
        background: #232c37 !important;
    }

    .td-v2-prize-table-unified thead th {
        padding: 8px 6px !important;
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        border: none !important;
        letter-spacing: 0.3px !important;
        box-sizing: border-box !important;
    }

    .td-v2-prize-table-unified thead th.th-place,
    .td-v2-prize-table-unified tbody td.td-place {
        width: 46px !important;
        max-width: 46px !important;
        text-align: center !important;
        padding: 8px 2px !important;
    }

    .td-v2-prize-table-unified thead th.th-participant,
    .td-v2-prize-table-unified tbody td:nth-child(2) {
        width: 45% !important;
        text-align: left !important;
        padding: 8px 6px !important;
    }

    .td-v2-prize-table-unified thead th.th-qualifies,
    .td-v2-prize-table-unified tbody td:nth-child(3) {
        width: 41% !important;
        text-align: left !important;
        padding: 8px 6px !important;
    }

    .td-v2-prize-table-unified tbody tr {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .td-v2-prize-table-unified tbody tr:last-child {
        border-bottom: none !important;
    }

    .td-v2-prize-table-unified tbody td {
        vertical-align: middle !important;
        border: none !important;
        box-sizing: border-box !important;
    }

    .td-v2-prize-table-unified .td-v2-place-cell {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: static !important;
        width: 100% !important;
        gap: 2px !important;
        padding: 0 !important;
    }

    .td-v2-prize-table-unified .td-v2-prize-medal {
        position: static !important;
        width: 16px !important;
        height: 20px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
        margin-right: 2px !important;
    }

    .td-v2-prize-table-unified .td-v2-place-num {
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        text-align: center !important;
    }

    .td-v2-prize-table-unified .td-v2-prize-team {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    .td-v2-prize-table-unified .td-v2-prize-flag {
        width: 18px !important;
        height: 12px !important;
        object-fit: cover !important;
        border-radius: 2px !important;
        flex-shrink: 0 !important;
    }

    .td-v2-prize-table-unified .td-v2-prize-logo {
        width: 20px !important;
        height: 20px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }

    .td-v2-prize-table-unified .td-v2-prize-team span,
    .td-v2-prize-table-unified .td-v2-prize-team a {
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        min-width: 0 !important;
        flex-grow: 1 !important;
    }

    .td-v2-prize-table-unified .td-v2-prize-qual {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        min-width: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .td-v2-prize-table-unified .td-v2-prize-qual-logo {
        width: 16px !important;
        height: 16px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }

    .td-v2-prize-table-unified .td-v2-prize-qual span {
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.25 !important;
        display: block !important;
        overflow: hidden !important;
        max-width: 100% !important;
    }

    /* 9. Stages / Bracket on Mobile */
    .td-v2-section-stages {
        overflow-x: auto !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* 10. TOURNAMENT STATS ON MOBILE (LEADERBOARDS, TEAMS, PLAYERS, HEROES, DRAFTS, MATCHES) */
    .td-v2-section-stats-page {
        width: 100% !important;
    }

    /* Stats Level-2 Subtabs Bar (Horizontal Swipe with Scrollbar on Mobile) */
    .td-v2-stats-subtabs-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        scrollbar-color: var(--color-red-theme, #2ed3f8) rgba(255, 255, 255, 0.08) !important;
        -ms-overflow-style: auto !important;
        justify-content: flex-start !important;
        width: 100% !important;
        height: auto !important;
        min-height: 36px !important;
        margin-bottom: 16px !important;
        box-sizing: border-box !important;
        padding: 0 4px 6px 0 !important;
    }

    .td-v2-stats-subtabs-bar::-webkit-scrollbar {
        display: block !important;
        height: 4px !important;
    }

    .td-v2-stats-subtabs-bar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 4px !important;
    }

    .td-v2-stats-subtabs-bar::-webkit-scrollbar-thumb {
        background: var(--color-red-theme, #2ed3f8) !important;
        border-radius: 4px !important;
    }

    .td-v2-stats-subtabs-bar::-webkit-scrollbar-thumb:hover {
        background: var(--color-red-theme, #5ce0ff) !important;
    }

    .td-v2-stats-subtabs-bar .td-v2-subtab-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 0 16px !important;
        font-size: 0.78rem !important;
        height: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Inner Sub-tabs (Team Stats vs Player Pool, Player Stats vs Heroes, Meta vs Contention) */
    .td-v2-team-subtabs-wrap {
        display: flex !important;
        width: 100% !important;
        background: #111d28 !important;
        border-radius: 6px !important;
        padding: 3px !important;
        gap: 4px !important;
        margin-bottom: 14px !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        box-sizing: border-box !important;
    }

    .td-v2-team-subtab-btn {
        flex: 1 1 0 !important;
        padding: 7px 8px !important;
        font-size: 12px !important;
        text-align: center !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
        min-width: 0 !important;
        justify-content: center !important;
        background: transparent !important;
        color: #7d90a4 !important;
        border: none !important;
    }

    .td-v2-team-subtab-btn.active {
        background: #1a2a3a !important;
        color: #2fe0fc !important;
        box-shadow: none !important;
        font-weight: 700 !important;
    }

    /* Stats Data Tables (Teams, Players, Heroes Meta, Heroes Contention) */
    .td-v2-teams-table-card {
        border-radius: 6px !important;
        margin-bottom: 20px !important;
    }

    .td-v2-teams-table-wrap {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        scrollbar-color: rgba(47, 224, 252, 0.4) transparent !important;
    }

    .td-v2-teams-table-wrap::-webkit-scrollbar {
        height: 6px !important;
    }

    .td-v2-teams-table-wrap::-webkit-scrollbar-thumb {
        background: rgba(47, 224, 252, 0.35) !important;
        border-radius: 3px !important;
    }

    .td-v2-teams-table {
        min-width: 680px !important;
    }

    .td-v2-teams-table th {
        padding: 10px 8px !important;
        font-size: 11.5px !important;
    }

    .td-v2-teams-table td {
        padding: 10px 8px !important;
        font-size: 12.5px !important;
    }

    /* Sticky first column so team/player/hero context is maintained during horizontal scroll */
    .td-v2-teams-table th:first-child {
        position: sticky !important;
        left: 0 !important;
        z-index: 5 !important;
        background: #2D3032 !important;
        box-shadow: 2px 0 6px rgba(0, 0, 0, 0.4) !important;
    }

    .td-v2-teams-table td:first-child {
        position: sticky !important;
        left: 0 !important;
        z-index: 4 !important;
        background: #0d1722 !important;
        box-shadow: 2px 0 6px rgba(0, 0, 0, 0.4) !important;
    }

    .td-v2-teams-table tbody tr:hover td:first-child {
        background: #172533 !important;
    }

    .td-v2-team-filter-icon {
        padding: 2px 4px !important;
    }

    /* Filter Popover for Mobile */
    .td-v2-filter-popover {
        max-width: calc(100vw - 20px) !important;
        box-sizing: border-box !important;
    }

    /* Hero Filters Bar on Mobile */
    .td-v2-hero-filters-bar {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        margin-bottom: 14px !important;
    }

    .td-v2-hero-filters-bar .td-v2-filter-group {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .td-v2-hero-filters-bar .td-v2-filter-input,
    .td-v2-hero-filters-bar .td-v2-filter-select {
        width: 100% !important;
        height: 38px !important;
        font-size: 13px !important;
    }

    /* Drafts Filter Card on Mobile */
    .td-v2-drafts-filter-card {
        padding: 12px 12px !important;
        margin-bottom: 16px !important;
        border-radius: 6px !important;
    }

    .td-v2-drafts-filter-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .td-v2-drafts-filter-row .td-v2-filter-group {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .td-v2-filter-dates {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
    }

    .td-v2-filter-dates .td-v2-filter-input-wrap {
        flex: 1 1 0 !important;
        width: 50% !important;
        min-width: 0 !important;
    }

    .td-v2-filter-dates .td-v2-filter-input {
        width: 100% !important;
        font-size: 12px !important;
    }

    .td-v2-drafts-filter-divider {
        margin: 10px 0 !important;
    }

    .td-v2-drafts-side-checkboxes {
        height: 32px !important;
        gap: 20px !important;
    }

    /* Draft Match Cards on Mobile */
    .td-v2-draft-card {
        padding: 12px 10px !important;
        margin-bottom: 14px !important;
        border-radius: 6px !important;
    }

    .td-v2-draft-card-header {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto !important;
        row-gap: 8px !important;
        column-gap: 6px !important;
        padding-bottom: 10px !important;
        width: 100% !important;
    }

    .td-v2-draft-meta-info {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        font-size: 11px !important;
        text-align: center !important;
        color: #7d90a4 !important;
        line-height: 1.2 !important;
    }

    .td-v2-draft-card-header .td-v2-draft-team-wrap:first-child {
        grid-column: 1 !important;
        grid-row: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        min-width: 0 !important;
    }

    .td-v2-draft-card-header .td-v2-draft-team-wrap:last-child {
        grid-column: 2 !important;
        grid-row: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        min-width: 0 !important;
    }

    .td-v2-draft-team-name {
        font-size: 12.5px !important;
        max-width: 85px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .td-v2-draft-team-logo {
        width: 22px !important;
        height: 22px !important;
    }

    .td-v2-draft-card .diamond-frame {
        padding: 2px 8px !important;
        font-size: 9.5px !important;
    }

    .td-v2-draft-card-body {
        padding-top: 12px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        scrollbar-color: rgba(47, 224, 252, 0.3) transparent !important;
        padding-bottom: 6px !important;
        width: 100% !important;
    }

    .td-v2-draft-side-block {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        align-items: center !important;
    }

    .td-v2-draft-group-wrap.is-picks-wrap {
        order: 1 !important;
    }

    .td-v2-draft-group-wrap.is-bans-wrap {
        order: 2 !important;
    }

    .td-v2-draft-group-title {
        font-size: 9.5px !important;
        margin-bottom: 3px !important;
    }

    .td-v2-draft-heroes-row {
        gap: 4px !important;
    }

    .td-v2-draft-ban-box {
        width: 32px !important;
        height: 42px !important;
    }

    .td-v2-draft-pick-box {
        width: 38px !important;
        height: 60px !important;
    }

    .td-v2-draft-pick-hero-title {
        font-size: 7.5px !important;
        padding: 1px 0 !important;
    }

    .td-v2-draft-pick-lane {
        font-size: 6.5px !important;
        padding: 1px 0 !important;
    }

    .td-v2-draft-vs-center {
        padding: 0 10px !important;
        flex-shrink: 0 !important;
    }

    .td-v2-draft-vs-text {
        font-size: 11px !important;
    }

    .td-v2-draft-gold-label {
        font-size: 9px !important;
    }

    .td-v2-draft-gold-val {
        font-size: 13px !important;
    }

    /* Matches Layout on Mobile (Both Upcoming & Completed Matches) */
    .td-v2-matches-wrapper {
        gap: 18px !important;
    }

    .td-v2-matches-banner-wrap {
        margin-bottom: 10px !important;
    }

    .td-v2-matches-banner {
        height: 28px !important;
        padding: 0 12px !important;
    }

    .td-v2-matches-banner-title {
        font-size: 11.5px !important;
    }

    .td-v2-matches-table-card {
        border-radius: 6px !important;
        overflow: hidden !important;
    }

    .td-v2-match-row {
        height: auto !important;
        padding: 10px 12px !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto !important;
        row-gap: 8px !important;
        column-gap: 8px !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    /* Row 1: Left Info (Badge & Time) */
    .td-v2-match-left {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .td-v2-match-badge {
        font-size: 10.5px !important;
        padding: 2px 7px !important;
        line-height: 1.2 !important;
        flex-shrink: 0 !important;
    }

    .td-v2-match-time-wrap {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        line-height: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .td-v2-match-date,
    .td-v2-match-time {
        font-size: 10.5px !important;
        color: #8b949e !important;
        white-space: nowrap !important;
    }

    .td-v2-match-stage {
        max-width: 100px !important;
        overflow: hidden !important;
    }

    .td-v2-match-stage-name {
        font-size: 10px !important;
        color: #7d90a4 !important;
    }

    /* Row 1: Right Info (Status & Stats Icon) */
    .td-v2-match-right {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .td-v2-match-status {
        font-size: 11px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    .td-v2-match-stats-btn {
        width: 24px !important;
        height: 24px !important;
        border-radius: 4px !important;
        flex-shrink: 0 !important;
    }

    .td-v2-match-stats-btn svg {
        width: 12px !important;
        height: 12px !important;
    }

    /* Row 2: Matchup Center (100% Width) */
    .td-v2-match-center {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-width: 0 !important;
        gap: 4px !important;
    }

    /* 1. Upcoming Matches Teams */
    .td-v2-match-upcoming-team1 {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .td-v2-match-upcoming-team2 {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .td-v2-match-upcoming-team1 .td-v2-match-team-name {
        text-align: right !important;
        font-size: 12px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .td-v2-match-upcoming-team2 .td-v2-match-team-name {
        text-align: left !important;
        font-size: 12px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .td-v2-match-upcoming-team1 .td-v2-match-team-logo,
    .td-v2-match-upcoming-team2 .td-v2-match-team-logo {
        width: 22px !important;
        height: 22px !important;
        flex-shrink: 0 !important;
        object-fit: contain !important;
    }

    .td-v2-match-vs {
        width: 32px !important;
        min-width: 32px !important;
        font-size: 11px !important;
        color: #7d90a4 !important;
        text-align: center !important;
        flex-shrink: 0 !important;
        user-select: none !important;
    }

    /* 2. Completed Matches Boxes & Scores */
    .td-v2-match-box {
        display: flex !important;
        align-items: center !important;
        height: 36px !important;
        border-radius: 5px !important;
        padding: 0 8px !important;
        gap: 6px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        box-sizing: border-box !important;
    }

    .td-v2-box-team1 {
        justify-content: flex-end !important;
    }

    .td-v2-box-team2 {
        justify-content: flex-start !important;
    }

    .td-v2-match-box .td-v2-match-team-name {
        font-size: 11.5px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .td-v2-box-team1 .td-v2-match-team-name {
        text-align: right !important;
    }

    .td-v2-box-team2 .td-v2-match-team-name {
        text-align: left !important;
    }

    .td-v2-match-box .td-v2-match-team-logo {
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
        object-fit: contain !important;
    }

    .td-v2-match-score {
        width: 48px !important;
        min-width: 48px !important;
        font-size: 13.5px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
    }
}

/* DESKTOP VIEW BREAKPOINT (>= 992px): STRICTLY HIDE MOBILE FLOATING BUTTON & RESTORE DESKTOP TOGGLE */
@media (min-width: 992px) {
    .td-v2-sidebar-wrapper {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 85px !important;
        align-self: flex-start !important;
        height: auto !important;
        z-index: 100 !important;
        flex: 0 0 20% !important;
        max-width: 20% !important;
        width: 20% !important;
        padding-right: 1.5rem !important;
        transition: flex-basis 0.25s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: width, max-width, flex-basis;
    }

    .td-v2-sidebar-wrapper.collapsed {
        flex: 0 0 0px !important;
        max-width: 0px !important;
        width: 0px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .td-v2-sidebar-wrapper.collapsed .td-v2-sidebar-nav {
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    #td-v2-main-col {
        flex: 1 1 0% !important;
        max-width: 100% !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .td-v2-mobile-sidebar-toggle {
        display: none !important;
    }

    .td-v2-sidebar-toggle-handle {
        display: flex !important;
        left: calc(100% - 1.5rem - 1px) !important;
        right: auto !important;
    }

    .td-v2-standings-mobile-wrapper {
        display: none !important;
    }

    .td-v2-prize-mobile-wrap {
        display: none !important;
    }
}

/* ==========================================================================
   TOURNAMENT DETAIL V2 - COMPREHENSIVE LIGHT MODE OVERRIDES
   ========================================================================== */

/* 1. Base Container & Natural Light Background */
body.light .td-v2-container,
.light .td-v2-container {
    color: #1e293b;
    background: url("../images/bgs/1080p-bg-light.webp") center top / cover fixed no-repeat !important;
}

/* 2. Left Sticky/Collapsible Navigation Sidebar */
body.light .td-v2-sidebar-nav,
.light .td-v2-sidebar-nav {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.light .td-v2-sidebar-nav::-webkit-scrollbar-thumb,
.light .td-v2-sidebar-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
}

body.light .td-v2-sidebar-toggle-handle,
.light .td-v2-sidebar-toggle-handle {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 2px 0 12px rgba(2, 132, 199, 0.35) !important;
}

body.light .td-v2-sidebar-toggle-handle:hover,
.light .td-v2-sidebar-toggle-handle:hover {
    background: #0369a1 !important;
    color: #ffffff !important;
}

@media (max-width: 991px) {
    body.light .td-v2-sidebar-wrapper,
    .light .td-v2-sidebar-wrapper {
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid #cbd5e1 !important;
        border-left: none !important;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.15) !important;
    }

    body.light .td-v2-sidebar-nav,
    .light .td-v2-sidebar-nav {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    body.light .td-v2-mobile-sidebar-toggle,
    .light .td-v2-mobile-sidebar-toggle {
        background: #0284c7 !important;
        color: #ffffff !important;
        box-shadow: 2px 0 12px rgba(2, 132, 199, 0.35) !important;
    }

    body.light .td-v2-mobile-sidebar-toggle i,
    .light .td-v2-mobile-sidebar-toggle i {
        color: #ffffff !important;
    }
}

body.light .td-v2-back-text,
.light .td-v2-back-text {
    color: #000000 !important;
}

body.light .td-v2-nav-header-title,
.light .td-v2-nav-header-title {
    color: #000000 !important;
}

body.light .td-v2-nav-box,
.light .td-v2-nav-box {
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-left: 3.5px solid #0284c7;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body.light .td-v2-nav-box:hover,
.light .td-v2-nav-box:hover {
    background: #f0f9ff;
    color: #0284c7;
}

body.light .td-v2-nav-box.active,
body.light .td-v2-nav-box.td-v2-nav-overview.active,
body.light .td-v2-nav-box.td-v2-nav-stat.active,
.light .td-v2-nav-box.active,
.light .td-v2-nav-box.td-v2-nav-overview.active,
.light .td-v2-nav-box.td-v2-nav-stat.active {
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.16) 0%, rgba(2, 132, 199, 0.06) 50%, rgba(2, 132, 199, 0.01) 85%, transparent 100%) !important;
    border-left: 3.5px solid #0284c7 !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
}

body.light .td-v2-nav-sublink,
.light .td-v2-nav-sublink {
    color: #64748b;
}

body.light .td-v2-nav-sublink:hover,
.light .td-v2-nav-sublink:hover {
    color: #0284c7;
}

body.light .td-v2-nav-sublink.active,
body.light .td-v2-nav-sublink.active-cyan,
.light .td-v2-nav-sublink.active,
.light .td-v2-nav-sublink.active-cyan {
    color: #0284c7 !important;
    font-weight: 700;
}

body.light .td-v2-stats-nav-link,
.light .td-v2-stats-nav-link {
    color: #64748b;
}

body.light .td-v2-stats-nav-link:hover,
.light .td-v2-stats-nav-link:hover {
    color: #0284c7;
}

body.light .td-v2-stats-nav-link.active,
.light .td-v2-stats-nav-link.active {
    color: #0284c7 !important;
    font-weight: 700;
}

body.light .td-v2-stats-sublink,
.light .td-v2-stats-sublink {
    color: #64748b;
}

body.light .td-v2-stats-sublink .td-v2-sub-arrow,
.light .td-v2-stats-sublink .td-v2-sub-arrow {
    color: #64748b;
}

body.light .td-v2-stats-sublink:hover,
.light .td-v2-stats-sublink:hover {
    color: #0284c7;
}

body.light .td-v2-stats-sublink:hover .td-v2-sub-arrow,
.light .td-v2-stats-sublink:hover .td-v2-sub-arrow {
    color: #0284c7;
}

body.light .td-v2-stats-sublink.active,
.light .td-v2-stats-sublink.active {
    color: #0284c7 !important;
    font-weight: 700;
}

body.light .td-v2-stats-sublink.active .td-v2-sub-arrow,
.light .td-v2-stats-sublink.active .td-v2-sub-arrow {
    color: #0284c7 !important;
}

/* 3. Hero Tabs (Level 1 Navigation) */
body.light .td-v2-top-tabs-bar,
.light .td-v2-top-tabs-bar {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.light .td-v2-top-tab-btn,
.light .td-v2-top-tab-btn {
    color: #64748b;
}

body.light .td-v2-top-tab-btn:hover,
.light .td-v2-top-tab-btn:hover {
    color: #0284c7;
}

body.light .td-v2-top-tab-btn.active,
.light .td-v2-top-tab-btn.active {
    color: #0284c7;
    font-weight: 700;
}

body.light .td-v2-top-tab-btn.active .td-v2-tab-underline,
.light .td-v2-top-tab-btn.active .td-v2-tab-underline {
    background: #0284c7;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.5);
}

/* 4. Section Headers & Dividers */
body.light .td-v2-overview-title,
body.light .td-v2-section-title,
.light .td-v2-overview-title,
.light .td-v2-section-title {
    color: #0f172a;
}

body.light .td-v2-section-divider,
.light .td-v2-section-divider {
    background: rgba(0, 0, 0, 0.08);
}

/* 5. Sub-Tabs Bar (Leaderboards vs Matches) */
body.light .td-v2-subtab-btn,
.light .td-v2-subtab-btn {
    background: #e2e8f0;
    color: #475569;
}

body.light .td-v2-subtab-btn:hover,
.light .td-v2-subtab-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}

body.light .td-v2-subtab-btn.active,
.light .td-v2-subtab-btn.active {
    background: #2ed3f8 !important;
    color: #08101a !important;
    font-weight: 700;
}

body.light .td-v2-subtab-btn.td-v2-subtab-lb::before,
.light .td-v2-subtab-btn.td-v2-subtab-lb::before {
    border-right-color: rgba(0, 0, 0, 0.2);
    border-bottom-color: rgba(0, 0, 0, 0.2);
}

body.light .td-v2-subtab-btn.td-v2-subtab-matches::before,
.light .td-v2-subtab-btn.td-v2-subtab-matches::before {
    border-top-color: rgba(0, 0, 0, 0.2);
    border-left-color: rgba(0, 0, 0, 0.2);
}

/* 6. 3 Leaderboard Cards (K/D/A, Kills, Assists) */
body.light .td-v2-lb-card,
.light .td-v2-lb-card {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    border: 1px solid rgba(2, 132, 199, 0.22);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.light .td-v2-card-gold-bar,
.light .td-v2-card-gold-bar {
    background: #d97706;
}

body.light .td-v2-card-diamond-l,
body.light .td-v2-card-diamond-r,
.light .td-v2-card-diamond-l,
.light .td-v2-card-diamond-r {
    background: #d97706;
    box-shadow: 0 0 4px rgba(217, 119, 6, 0.5);
}

body.light .td-v2-lb-header,
.light .td-v2-lb-header {
    border-bottom-color: rgba(217, 119, 6, 0.25);
}

body.light .td-v2-lb-title,
.light .td-v2-lb-title {
    color: #0f172a;
    text-shadow: none;
}

body.light .td-v2-lb-row,
.light .td-v2-lb-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light .td-v2-lb-row:hover,
.light .td-v2-lb-row:hover {
    background: rgba(2, 132, 199, 0.06);
}

body.light .td-v2-lb-col-rank,
.light .td-v2-lb-col-rank {
    color: #0f172a;
}

body.light .td-v2-lb-col-avatar,
.light .td-v2-lb-col-avatar {
    border-color: #0284c7;
    box-shadow: 0 0 6px rgba(2, 132, 199, 0.3);
    background: #f0f9ff;
}

body.light .td-v2-lb-name,
.light .td-v2-lb-name {
    color: #0f172a;
}

body.light .td-v2-lb-team,
.light .td-v2-lb-team {
    color: #64748b;
}

body.light .td-v2-lb-role-name,
.light .td-v2-lb-role-name {
    color: #475569;
}

body.light .td-v2-lb-col-val,
.light .td-v2-lb-col-val {
    color: #b45309;
    text-shadow: none;
}

/* Mobile Leaderboard Tab Switcher */
body.light .td-v2-lb-mobile-tabs,
.light .td-v2-lb-mobile-tabs {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light .td-v2-lb-mobile-tab,
.light .td-v2-lb-mobile-tab {
    color: #64748b !important;
}

body.light .td-v2-lb-mobile-tab.active,
.light .td-v2-lb-mobile-tab.active {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

body.light .td-v2-lb-mobile-tab.active::after,
.light .td-v2-lb-mobile-tab.active::after {
    background: #0284c7 !important;
    box-shadow: 0 -1px 8px rgba(2, 132, 199, 0.4) !important;
}

/* 7. Team Standings Table */
body.light .td-v2-standings-table thead tr,
.light .td-v2-standings-table thead tr {
    background: #f1f5f9 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
}

body.light .td-v2-standings-table th,
.light .td-v2-standings-table th {
    background: #f1f5f9;
    color: #1e293b;
}

body.light .td-v2-standings-table tbody tr,
.light .td-v2-standings-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light .td-v2-standings-table tbody tr:hover,
.light .td-v2-standings-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}

body.light .td-v2-standings-wrapper,
.light .td-v2-standings-wrapper {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light .td-v2-td-rank,
body.light .td-v2-team-name,
body.light .td-v2-td-win,
body.light .td-v2-td-stat,
.light .td-v2-td-rank,
.light .td-v2-team-name,
.light .td-v2-td-win,
.light .td-v2-td-stat {
    color: #0f172a !important;
}

body.light .td-v2-td-points,
.light .td-v2-td-points,
body.light .td-v2-td-stat.text-cyan,
.light .td-v2-td-stat.text-cyan,
body.light .td-v2-td-stat.text-danger,
.light .td-v2-td-stat.text-danger {
    color: #0f172a !important;
}

/* 8. Tournament Format Section */
body.light .td-v2-format-card,
.light .td-v2-format-card {
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

body.light .td-v2-format-header,
.light .td-v2-format-header {
    background: linear-gradient(90deg, #0284c7 0%, rgba(2, 132, 199, 0.8) 35%, rgba(2, 132, 199, 0.4) 75%, rgba(2, 132, 199, 0.15) 100%);
}

body.light .td-v2-format-title,
.light .td-v2-format-title {
    color: #ffffff;
}

body.light .td-v2-format-body,
body.light .td-v2-format-list li,
.light .td-v2-format-body,
.light .td-v2-format-list li {
    color: #334155;
}

body.light .td-v2-format-sublist li,
.light .td-v2-format-sublist li {
    color: #475569;
}

body.light .td-v2-format-link,
.light .td-v2-format-link {
    color: #0284c7;
}

/* 9. Participants Section */
body.light .td-v2-participants-toggle,
.light .td-v2-participants-toggle {
    color: #0284c7;
}

body.light .td-v2-participants-toggle:hover,
.light .td-v2-participants-toggle:hover {
    color: #0369a1;
}

body.light .td-v2-team-card,
.light .td-v2-team-card {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    border: 1px solid rgba(2, 132, 199, 0.22) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.light .td-v2-team-card.collapsed,
.light .td-v2-team-card.collapsed {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

body.light .td-v2-tc-header:hover,
.light .td-v2-tc-header:hover {
    background: rgba(2, 132, 199, 0.05) !important;
}

body.light .td-v2-tc-name,
.light .td-v2-tc-name {
    color: #0f172a !important;
}

body.light .td-v2-tc-chevron,
.light .td-v2-tc-chevron {
    color: #0284c7 !important;
}

body.light .td-v2-tc-divider,
.light .td-v2-tc-divider {
    background: linear-gradient(90deg, rgba(2, 132, 199, 0) 0%, rgba(2, 132, 199, 0.4) 50%, rgba(2, 132, 199, 0) 100%);
    box-shadow: none;
}

body.light .td-v2-tc-player-name,
.light .td-v2-tc-player-name {
    color: #1e293b !important;
}

/* 10. Prize Distribution Section */
body.light .td-v2-prize-more,
.light .td-v2-prize-more {
    color: #0f172a;
}

body.light .td-v2-prize-more:hover,
.light .td-v2-prize-more:hover {
    color: #0284c7;
}

body.light .td-v2-prize-banner,
.light .td-v2-prize-banner {
    background: linear-gradient(90deg, #bae6fd 0%, #e0f2fe 50%, #f0f9ff 100%);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: #0369a1;
}

body.light .td-v2-prize-banner strong,
.light .td-v2-prize-banner strong {
    color: #0c4a6e;
}

body.light .td-v2-prize-banner span,
.light .td-v2-prize-banner span {
    color: #0369a1;
}

body.light .td-v2-prize-table thead tr,
.light .td-v2-prize-table thead tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
}

body.light .td-v2-prize-table th,
.light .td-v2-prize-table th {
    background: #f1f5f9;
    color: #1e293b;
}

body.light .td-v2-prize-table td,
.light .td-v2-prize-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light .td-v2-place-num,
body.light .td-v2-prize-team span,
body.light .td-v2-prize-qual span,
.light .td-v2-place-num,
.light .td-v2-prize-team span,
.light .td-v2-prize-qual span {
    color: #0f172a;
}

/* 11. Stages / Brackets Section */
body.light .td-v2-bracket-svg path,
.light .td-v2-bracket-svg path {
    stroke: rgba(0, 0, 0, 0.25);
}

body.light .td-v2-bracket-col-title,
.light .td-v2-bracket-col-title {
    color: #0f172a;
}

body.light .td-v2-bracket-card,
.light .td-v2-bracket-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

body.light .td-v2-card-left-bar,
.light .td-v2-card-left-bar {
    background: #0284c7;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.5);
}

body.light .td-v2-bc-row,
.light .td-v2-bc-row {
    background: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light .td-v2-bc-name,
.light .td-v2-bc-name {
    color: #0f172a;
}

body.light .td-v2-bc-status.is-lose,
.light .td-v2-bc-status.is-lose {
    color: #94a3b8;
}

body.light .td-v2-bc-row.is-hover-row,
.light .td-v2-bc-row.is-hover-row {
    background: linear-gradient(90deg, #bae6fd 0%, #7dd3fc 60%, #38bdf8 100%);
}

body.light .td-v2-bc-row.is-hover-row .td-v2-bc-name,
.light .td-v2-bc-row.is-hover-row .td-v2-bc-name {
    color: #0c4a6e;
}

body.light .td-v2-bc-vote-btn,
.light .td-v2-bc-vote-btn {
    background: #0284c7;
    color: #ffffff;
}

body.light .td-v2-bc-vote-btn::before,
body.light .td-v2-bc-vote-btn::after,
.light .td-v2-bc-vote-btn::before,
.light .td-v2-bc-vote-btn::after {
    background: #38bdf8;
}

body.light .td-v2-bc-row.is-win-row,
.light .td-v2-bc-row.is-win-row {
    background: linear-gradient(90deg, #dcfce7 0%, #bbf7d0 100%);
}

body.light .td-v2-bc-row.is-win-row .td-v2-bc-name,
.light .td-v2-bc-row.is-win-row .td-v2-bc-name {
    color: #14532d;
}

body.light .td-v2-bc-voted-badge,
.light .td-v2-bc-voted-badge {
    color: #b45309;
    text-shadow: none;
}

body.light .td-v2-bc-row.is-lose-voted-row,
.light .td-v2-bc-row.is-lose-voted-row {
    background: #f1f5f9;
}

body.light .td-v2-bc-voted-dim,
.light .td-v2-bc-voted-dim {
    color: #94a3b8;
}

body.light .td-v2-section-stages .event-results-tabs .ert-tab,
.light .td-v2-section-stages .event-results-tabs .ert-tab {
    color: #64748b;
}

body.light .td-v2-section-stages .event-results-tabs .ert-tab:hover,
.light .td-v2-section-stages .event-results-tabs .ert-tab:hover {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.08);
}

body.light .td-v2-section-stages .event-results-tabs .ert-tab.active,
.light .td-v2-section-stages .event-results-tabs .ert-tab.active {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.12) !important;
    border-bottom-color: #0284c7 !important;
    text-shadow: none;
}

body.light .td-v2-section-stages .td-gt-group-label,
body.light .td-v2-section-participants .td-gt-group-label,
.light .td-v2-section-stages .td-gt-group-label,
.light .td-v2-section-participants .td-gt-group-label {
    color: #475569 !important;
}

body.light .td-v2-section-stages .tb-bracket-label,
.light .td-v2-section-stages .tb-bracket-label {
    color: #0f172a !important;
}

body.light .td-v2-section-stages .tbi-datetime,
body.light .td-v2-section-stages .tbi-type,
.light .td-v2-section-stages .tbi-datetime,
.light .td-v2-section-stages .tbi-type {
    color: #64748b !important;
}

body.light .td-v2-section-stages .tbi-team-1,
body.light .td-v2-section-stages .tbi-team-2,
.light .td-v2-section-stages .tbi-team-1,
.light .td-v2-section-stages .tbi-team-2 {
    background: #ffffff !important;
    border-left-color: #0284c7 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.light .td-v2-section-stages .tbi-team-name,
.light .td-v2-section-stages .tbi-team-name {
    color: #0f172a !important;
}

body.light .td-v2-section-stages .td-gt-wrapper,
.light .td-v2-section-stages .td-gt-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(2, 132, 199, 0.2) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.light .td-v2-section-stages .td-gt-head th,
.light .td-v2-section-stages .td-gt-head th {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light .td-v2-section-stages .td-gt-row,
.light .td-v2-section-stages .td-gt-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
}

/* 12. Upcoming & Completed Matches Subtab */
body.light .td-v2-matches-table-card,
.light .td-v2-matches-table-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

body.light .td-v2-matches-banner,
.light .td-v2-matches-banner {
    background: linear-gradient(90deg, #0284c7 0%, rgba(2, 132, 199, 0.75) 30%, rgba(2, 132, 199, 0.3) 70%, rgba(2, 132, 199, 0.1) 100%);
}

body.light .td-v2-matches-banner-title,
.light .td-v2-matches-banner-title {
    color: #ffffff;
}

body.light .td-v2-match-row,
.light .td-v2-match-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light .td-v2-match-row:hover,
.light .td-v2-match-row:hover {
    background: rgba(0, 0, 0, 0.02);
}

body.light .td-v2-match-badge,
.light .td-v2-match-badge {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light .td-v2-match-date,
body.light .td-v2-match-time,
.light .td-v2-match-date,
.light .td-v2-match-time {
    color: #64748b;
}

body.light .td-v2-match-stage-name,
.light .td-v2-match-stage-name {
    color: #64748b;
}

body.light .td-v2-match-row:hover .td-v2-match-stage-name,
.light .td-v2-match-row:hover .td-v2-match-stage-name {
    color: #0f172a;
}

body.light .td-v2-match-team-name,
.light .td-v2-match-team-name {
    color: #0f172a;
}

body.light .td-v2-match-vs,
.light .td-v2-match-vs {
    color: #64748b;
}

body.light .td-v2-match-box.is-winner,
.light .td-v2-match-box.is-winner {
    background: #dcfce7 !important;
    border: 1px solid rgba(22, 163, 74, 0.25) !important;
}

body.light .td-v2-match-box.is-winner .td-v2-match-team-name,
.light .td-v2-match-box.is-winner .td-v2-match-team-name {
    color: #14532d !important;
}

body.light .td-v2-match-box.is-loser,
.light .td-v2-match-box.is-loser {
    background: #fee2e2 !important;
    border: 1px solid rgba(220, 38, 38, 0.25) !important;
}

body.light .td-v2-match-box.is-loser .td-v2-match-team-name,
.light .td-v2-match-box.is-loser .td-v2-match-team-name {
    color: #7f1d1d !important;
}

body.light .td-v2-match-score .score-win,
.light .td-v2-match-score .score-win {
    color: #15803d;
}

body.light .td-v2-match-score .score-lose,
.light .td-v2-match-score .score-lose {
    color: #64748b;
}

body.light .td-v2-match-score-dash,
.light .td-v2-match-score-dash {
    color: #94a3b8;
}

body.light .td-v2-match-status.status-upcoming,
.light .td-v2-match-status.status-upcoming {
    color: #d97706;
}

body.light .td-v2-match-status.status-completed,
.light .td-v2-match-status.status-completed {
    color: #64748b;
}

body.light .td-v2-match-stats-btn,
.light .td-v2-match-stats-btn {
    background: #0284c7;
    color: #ffffff !important;
}

/* 13. Tournament Stats & 6 Subtabs */
body.light .td-v2-stats-subtabs-bar .td-v2-subtab-btn,
.light .td-v2-stats-subtabs-bar .td-v2-subtab-btn {
    background: #e2e8f0;
    color: #475569;
    border-right-color: #cbd5e1;
}

body.light .td-v2-stats-subtabs-bar .td-v2-subtab-btn.active,
.light .td-v2-stats-subtabs-bar .td-v2-subtab-btn.active {
    background: #2ed3f8 !important;
    color: #08101a !important;
}

body.light .td-v2-stats-subtabs-bar,
.light .td-v2-stats-subtabs-bar {
    scrollbar-color: #0284c7 rgba(0, 0, 0, 0.08) !important;
}

body.light .td-v2-stats-subtabs-bar::-webkit-scrollbar-track,
.light .td-v2-stats-subtabs-bar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08) !important;
}

body.light .td-v2-stats-subtabs-bar::-webkit-scrollbar-thumb,
.light .td-v2-stats-subtabs-bar::-webkit-scrollbar-thumb {
    background: #0284c7 !important;
}

/* Inner subtabs (Team Stats vs Player Pool, Player Stats vs Heroes, Meta vs Contention) */
body.light .td-v2-team-subtabs-wrap,
.light .td-v2-team-subtabs-wrap {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light .td-v2-team-subtab-btn,
.light .td-v2-team-subtab-btn {
    color: #64748b;
}

body.light .td-v2-team-subtab-btn:hover,
.light .td-v2-team-subtab-btn:hover {
    color: #0f172a;
}

body.light .td-v2-team-subtab-btn.active,
.light .td-v2-team-subtab-btn.active {
    background: #ffffff !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

/* Stats Data Tables */
body.light .td-v2-teams-table-card,
.light .td-v2-teams-table-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

body.light .td-v2-teams-table thead tr,
body.light .td-v2-teams-table th,
.light .td-v2-teams-table thead tr,
.light .td-v2-teams-table th {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
}

body.light .td-v2-teams-table th:first-child,
.light .td-v2-teams-table th:first-child {
    background: #f1f5f9 !important;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.06) !important;
}

body.light .td-v2-teams-table th.td-v2-th-wins,
.light .td-v2-teams-table th.td-v2-th-wins {
    color: #16a34a !important;
}

body.light .td-v2-teams-table th.td-v2-th-losses,
.light .td-v2-teams-table th.td-v2-th-losses {
    color: #dc2626 !important;
}

body.light .td-v2-team-filter-icon,
.light .td-v2-team-filter-icon {
    color: #64748b;
}

body.light .td-v2-team-filter-icon:hover,
.light .td-v2-team-filter-icon:hover {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.1);
}

body.light .td-v2-teams-table tbody tr,
.light .td-v2-teams-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light .td-v2-teams-table tbody tr:hover,
.light .td-v2-teams-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

body.light .td-v2-teams-table td,
.light .td-v2-teams-table td {
    color: #0f172a;
}

body.light .td-v2-teams-table td:first-child,
.light .td-v2-teams-table td:first-child {
    background: #ffffff !important;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.06) !important;
}

body.light .td-v2-teams-table tbody tr:hover td:first-child,
.light .td-v2-teams-table tbody tr:hover td:first-child {
    background: #f8fafc !important;
}

body.light .td-v2-team-stat-name,
body.light .td-v2-player-stat-name,
.light .td-v2-team-stat-name,
.light .td-v2-player-stat-name {
    color: #0f172a;
}

body.light .td-v2-th-title:hover,
.light .td-v2-th-title:hover {
    color: #0284c7;
}

/* Filter Popover */
body.light .td-v2-filter-popover,
.light .td-v2-filter-popover {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

body.light .td-v2-fp-header,
.light .td-v2-fp-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light .td-v2-fp-title,
.light .td-v2-fp-title {
    color: #0f172a;
}

body.light .td-v2-fp-input,
.light .td-v2-fp-input {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

body.light .td-v2-fp-input:focus,
.light .td-v2-fp-input:focus {
    border-color: #0284c7;
}

body.light .td-v2-fp-btn,
.light .td-v2-fp-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
}

body.light .td-v2-fp-btn:hover,
.light .td-v2-fp-btn:hover {
    background: rgba(2, 132, 199, 0.1);
    border-color: #0284c7;
    color: #0284c7;
}

/* Heroes Filters Bar */
body.light .td-v2-filter-label,
.light .td-v2-filter-label {
    color: #64748b;
}

body.light .td-v2-filter-input,
body.light .td-v2-filter-select,
.light .td-v2-filter-input,
.light .td-v2-filter-select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

body.light .td-v2-filter-input:focus,
body.light .td-v2-filter-select:focus,
.light .td-v2-filter-input:focus,
.light .td-v2-filter-select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 1px #0284c7;
}

body.light .td-v2-filter-chevron,
.light .td-v2-filter-chevron {
    color: #64748b;
}

body.light .td-v2-wr-badge,
.light .td-v2-wr-badge {
    border-color: #0284c7;
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.08);
}

/* Drafts Subtab */
body.light .td-v2-drafts-filter-card,
.light .td-v2-drafts-filter-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

body.light .td-v2-drafts-filter-divider,
.light .td-v2-drafts-filter-divider {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light .td-v2-draft-reset-btn,
.light .td-v2-draft-reset-btn {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #64748b;
}

body.light .td-v2-draft-reset-btn:hover,
.light .td-v2-draft-reset-btn:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.08);
}

body.light .td-v2-draft-card,
.light .td-v2-draft-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

body.light .td-v2-draft-card-header,
.light .td-v2-draft-card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light .td-v2-draft-team-name,
.light .td-v2-draft-team-name {
    color: #0f172a;
}

body.light .td-v2-draft-meta-info,
.light .td-v2-draft-meta-info {
    color: #64748b;
}

body.light .td-v2-draft-card .diamond-frame,
.light .td-v2-draft-card .diamond-frame {
    background: #f1f5f9;
    color: #1e293b;
}

body.light .td-v2-draft-ban-box,
body.light .td-v2-draft-pick-box,
.light .td-v2-draft-ban-box,
.light .td-v2-draft-pick-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

body.light .td-v2-draft-ban-box.is-empty,
body.light .td-v2-draft-pick-box.is-empty,
.light .td-v2-draft-ban-box.is-empty,
.light .td-v2-draft-pick-box.is-empty {
    background: #e2e8f0 !important;
    border: 1px dashed #94a3b8 !important;
}

body.light .td-v2-draft-pick-box.is-empty .td-v2-draft-pick-hero-title,
.light .td-v2-draft-pick-box.is-empty .td-v2-draft-pick-hero-title {
    background: #e2e8f0;
    color: #94a3b8;
}

body.light .td-v2-draft-pick-empty-slot,
.light .td-v2-draft-pick-empty-slot {
    background: #f8fafc;
}

body.light .td-v2-draft-pick-box.is-empty .td-v2-draft-pick-lane,
.light .td-v2-draft-pick-box.is-empty .td-v2-draft-pick-lane {
    background: #e2e8f0;
    color: #94a3b8;
}

body.light .td-v2-draft-pick-hero-title,
.light .td-v2-draft-pick-hero-title {
    background: #e2e8f0;
    color: #0f172a;
}

body.light .td-v2-draft-pick-lane,
.light .td-v2-draft-pick-lane {
    background: #f1f5f9;
    color: #475569;
}

body.light .td-v2-draft-vs-text,
.light .td-v2-draft-vs-text {
    color: #0f172a;
}

body.light .td-v2-draft-gold-label,
.light .td-v2-draft-gold-label {
    color: #64748b;
}

body.light .td-v2-draft-gold-val,
.light .td-v2-draft-gold-val {
    color: #15803d;
}

/* 14. Mobile Drawer & Header Overrides */
@media (max-width: 991px) {
    body.light .td-v2-sidebar-wrapper,
    .light .td-v2-sidebar-wrapper {
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid rgba(2, 132, 199, 0.25) !important;
        border-left: none !important;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.15) !important;
    }

    body.light .td-v2-sidebar-overlay,
    .light .td-v2-sidebar-overlay {
        background: rgba(15, 23, 42, 0.45) !important;
    }

    body.light .td-v2-standings-mobile-wrapper,
    .light .td-v2-standings-mobile-wrapper {
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    }

    body.light .td-v2-standings-table-unified thead tr,
    .light .td-v2-standings-table-unified thead tr {
        background: #f1f5f9 !important;
    }

    body.light .td-v2-standings-table-unified thead th,
    .light .td-v2-standings-table-unified thead th {
        color: #1e293b !important;
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.light .td-v2-standings-table-unified tbody tr,
    .light .td-v2-standings-table-unified tbody tr {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.light .td-v2-standings-table-unified tbody td.td-v2-td-rank,
    body.light .td-v2-standings-table-unified tbody td.td-v2-td-win,
    body.light .td-v2-standings-table-unified .td-v2-team-name,
    .light .td-v2-standings-table-unified tbody td.td-v2-td-rank,
    .light .td-v2-standings-table-unified tbody td.td-v2-td-win,
    .light .td-v2-standings-table-unified .td-v2-team-name {
        color: #0f172a !important;
    }

    body.light .td-v2-prize-mobile-wrap,
    .light .td-v2-prize-mobile-wrap {
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    }

    body.light .td-v2-prize-table-unified thead tr,
    .light .td-v2-prize-table-unified thead tr {
        background: #f1f5f9 !important;
    }

    body.light .td-v2-prize-table-unified thead th,
    .light .td-v2-prize-table-unified thead th {
        color: #1e293b !important;
    }

    body.light .td-v2-prize-table-unified tbody tr,
    .light .td-v2-prize-table-unified tbody tr {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.light .td-v2-prize-table-unified .td-v2-place-num,
    body.light .td-v2-prize-table-unified .td-v2-prize-team span,
    body.light .td-v2-prize-table-unified .td-v2-prize-team a,
    body.light .td-v2-prize-table-unified .td-v2-prize-qual span,
    .light .td-v2-prize-table-unified .td-v2-place-num,
    .light .td-v2-prize-table-unified .td-v2-prize-team span,
    .light .td-v2-prize-table-unified .td-v2-prize-team a,
    .light .td-v2-prize-table-unified .td-v2-prize-qual span {
        color: #0f172a !important;
    }

    body.light .td-v2-mobile-icon-btn,
    .light .td-v2-mobile-icon-btn {
        color: #334155 !important;
    }

    body.light .td-v2-mobile-icon-btn:hover,
    .light .td-v2-mobile-icon-btn:hover {
        color: #0284c7 !important;
    }
}

body.light .td-v2-empty-message,
.light .td-v2-empty-message {
    color: #64748b !important;
}

body.light .td-v2-draft-empty-box,
.light .td-v2-draft-empty-box {
    background: #ffffff !important;
    color: #64748b !important;
    border: 1px dashed rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   TOURNAMENT STATS - PLAYER HEROES APPEARANCE TAB STYLES
   ========================================================================== */
.td-v2-player-heroes-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.td-v2-subtab-dropdown-wrap {
    position: relative;
    display: inline-block;
    z-index: 25;
}

.td-v2-subtab-dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(10, 22, 40, 0.9);
    border: 1px solid rgba(64, 225, 254, 0.35);
    color: #ffffff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    height: 36px;
    padding: 0 14px;
    min-width: 155px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    box-shadow: none;
}

.td-v2-subtab-dropdown-btn:hover {
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
    background: #0d1a2d;
    color: #ffffff !important;
}

.td-v2-subtab-dropdown-btn[aria-expanded="true"] {
    border-color: #00d2f7;
    box-shadow: 0 0 10px rgba(64, 225, 254, 0.35);
    background: #0d1a2d;
    color: #ffffff !important;
}

.td-v2-subtab-dropdown-btn .td-v2-subtab-chevron,
.td-v2-subtab-dropdown-btn .bi-chevron-down-icon {
    color: #2fe0fc;
    font-size: 11px;
    margin-left: auto;
    transition: transform 0.25s ease, color 0.25s ease;
}

.td-v2-subtab-dropdown-btn[aria-expanded="true"] .td-v2-subtab-chevron,
.td-v2-subtab-dropdown-btn[aria-expanded="true"] .bi-chevron-down-icon {
    transform: rotate(180deg);
    color: #5dedff;
}

.td-v2-subtab-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #08101e;
    border: 1px solid rgba(64, 225, 254, 0.35);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 210, 247, 0.15);
    min-width: 175px;
    padding: 6px;
    z-index: 50;
    box-sizing: border-box;
}

.td-v2-subtab-dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: #cbd5e1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.td-v2-subtab-dropdown-item:hover {
    background: rgba(47, 224, 252, 0.12);
    color: #2fe0fc;
}

.td-v2-subtab-dropdown-item.active {
    background: rgba(47, 224, 252, 0.18);
    color: #2fe0fc;
    font-weight: 600;
}

body.light .td-v2-subtab-dropdown-btn,
.light .td-v2-subtab-dropdown-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a !important;
    box-shadow: none;
}

body.light .td-v2-subtab-dropdown-btn:hover,
body.light .td-v2-subtab-dropdown-btn[aria-expanded="true"],
.light .td-v2-subtab-dropdown-btn:hover,
.light .td-v2-subtab-dropdown-btn[aria-expanded="true"] {
    background: #f8fafc;
    border-color: #0284c7;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.2);
}

body.light .td-v2-subtab-dropdown-btn .td-v2-subtab-chevron,
.light .td-v2-subtab-dropdown-btn .td-v2-subtab-chevron {
    color: #0284c7;
}

body.light .td-v2-subtab-dropdown-menu,
.light .td-v2-subtab-dropdown-menu {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body.light .td-v2-subtab-dropdown-item,
.light .td-v2-subtab-dropdown-item {
    color: #334155;
}

body.light .td-v2-subtab-dropdown-item:hover,
.light .td-v2-subtab-dropdown-item:hover {
    background: #f1f5f9;
    color: #0284c7;
}

body.light .td-v2-subtab-dropdown-item.active,
.light .td-v2-subtab-dropdown-item.active {
    background: #e0f2fe;
    color: #0284c7;
}

.td-v2-heroes-mode-pills {
    display: flex;
    align-items: center;
    gap: 10px;
}

.td-v2-mode-pill-btn {
    padding: 7px 18px;
    background: #111e2b;
    border: 1px solid rgba(48, 75, 102, 0.5);
    border-radius: 4px;
    color: #94a3b8;
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.td-v2-mode-pill-btn:hover:not(.active) {
    background: #192a3c;
    color: #e2e8f0;
    border-color: rgba(0, 210, 247, 0.35);
}

.td-v2-mode-pill-btn.active {
    background: #00d2f7 !important;
    border-color: #00d2f7 !important;
    color: #08101a !important;
    font-weight: 800;
    box-shadow: 0 0 14px rgba(0, 210, 247, 0.5);
}

/* Side tags: [BLUE] and [RED] badges in match draft header */
.td-v2-draft-side-tag {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1;
}

.td-v2-draft-side-tag.is-blue {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.td-v2-draft-side-tag.is-red {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* ==========================================================================
   TEAM STANDINGS & TEAMS TAB STYLES (MOCKUPS: media_1790916197562 & media_1790916220212)
   ========================================================================== */

/* 1. Standings Cyber Card */
.td-v2-standings-cyber-card {
    background: #0d1723;
    border: 1px solid rgba(0, 210, 247, 0.28);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
}

.td-v2-standings-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #0a131e;
    border-bottom: 1px solid rgba(48, 75, 102, 0.4);
}

.td-v2-standings-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.td-v2-standings-stripes {
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #00d2f7;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 210, 247, 0.6);
}

.td-v2-standings-title {
    font-family: 'Orbitron', 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
}

.td-v2-standings-view-toggle {
    display: flex;
    gap: 6px;
}

.td-v2-view-btn {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Orbitron', 'Inter', sans-serif;
    letter-spacing: 0.5px;
    background: rgba(16, 28, 44, 0.8);
    border: 1px solid rgba(48, 75, 102, 0.5);
    border-radius: 4px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.td-v2-view-btn:hover:not(.active) {
    background: #192a3c;
    color: #e2e8f0;
    border-color: rgba(0, 210, 247, 0.35);
}

.td-v2-view-btn.active {
    background: #00d2f7 !important;
    border-color: #00d2f7 !important;
    color: #08101a !important;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(0, 210, 247, 0.45);
}

/* 2. Grouped Standings (Mockup media_1790916197562.png) */
.td-v2-standings-grouped-container {
    width: 100%;
}

.td-v2-standings-banner-row {
    display: flex;
    align-items: center;
    background: #00d2f7;
    color: #08101a;
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 11.5px;
    letter-spacing: 1px;
    height: 36px;
    user-select: none;
}

.td-v2-banner-half {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.td-v2-bcol-rank {
    width: 38px;
    text-align: center;
    font-weight: 900;
}

.td-v2-bcol-team {
    flex: 1;
    padding-left: 12px;
}

.td-v2-bcol-win {
    width: 60px;
    text-align: center;
}

.td-v2-banner-separator {
    width: 2px;
    height: 100%;
    background: #08101a;
}

.td-v2-standings-columns-row {
    display: flex;
    background: #0a131e;
}

@media (max-width: 768px) {
    .td-v2-standings-banner-row {
        display: none;
    }
    .td-v2-standings-columns-row {
        flex-direction: column;
    }
}

.td-v2-standings-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.td-v2-standings-vdivider {
    width: 2px;
    background: rgba(48, 75, 102, 0.35);
    flex-shrink: 0;
}

.td-v2-standings-row {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(48, 75, 102, 0.22);
    transition: background 0.15s ease;
}

.td-v2-standings-row:last-child {
    border-bottom: none;
}

.td-v2-standings-row:hover {
    background: rgba(0, 210, 247, 0.05);
}

.td-v2-srow-rank {
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.td-v2-rank-badge {
    display: inline-block;
    width: auto;
    height: auto;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: inherit !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding: 0 !important;
    line-height: inherit !important;
}

.td-v2-srow-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 12px;
    overflow: hidden;
}

.td-v2-srow-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.td-v2-srow-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.hover-cyan:hover {
    color: #00d2f7 !important;
}

.td-v2-srow-win {
    width: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.td-v2-win-val {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #00d2f7;
}

.td-v2-sort-cursor {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.td-v2-sort-cursor:hover {
    opacity: 0.8;
}

.td-v2-sort-icon {
    font-size: 11px;
    vertical-align: middle;
}

/* 3. Team Stats Ranked Table */
.td-v2-team-stats-ranked-table thead th {
    background: #2D3032 !important;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.38) !important;
    padding: 12px 14px;
    white-space: nowrap;
}

.td-v2-team-stats-ranked-table thead th.td-v2-th-rank {
    width: 50px;
    min-width: 44px;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px;
    font-weight: 700;
}

.td-v2-team-stats-ranked-table td.td-v2-td-rank {
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13.5px;
    font-weight: 500;
    color: #cbd5e1;
}

body.light .td-v2-team-stats-ranked-table thead th,
.light .td-v2-team-stats-ranked-table thead th {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-bottom: 1px solid #cbd5e1 !important;
}

body.light .td-v2-rank-badge,
.light .td-v2-rank-badge,
body.light .td-v2-team-stats-ranked-table td.td-v2-td-rank,
.light .td-v2-team-stats-ranked-table td.td-v2-td-rank {
    color: #334155 !important;
}

.td-v2-team-stats-ranked-table tbody tr {
    background: #0d1723;
    border-bottom: 1px solid rgba(48, 75, 102, 0.25);
    height: 48px;
    transition: background 0.15s ease;
}

.td-v2-team-stats-ranked-table tbody tr:hover {
    background: rgba(0, 210, 247, 0.05);
}

.td-v2-team-stats-ranked-table td {
    padding: 8px 12px;
    vertical-align: middle;
    font-size: 13.5px;
    color: #cbd5e1;
}

.td-v2-table-accent-bar {
    height: 3px;
    background: linear-gradient(90deg, #00d2f7 0%, rgba(0, 210, 247, 0.2) 100%);
    width: 100%;
}

.td-v2-sort-arrow {
    font-size: 11px;
    color: #64748b;
    vertical-align: middle;
}

/* 4. Team Player Pool Grid (Mockup media_1790916220212.jpg Right) */
.td-v2-team-pool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 991px) {
    .td-v2-team-pool-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.td-v2-cyber-team-card {
    background: #0c1724;
    border: 1px solid rgba(64, 225, 254, 0.22);
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.td-v2-cyber-team-card:hover {
    border-color: rgba(64, 225, 254, 0.45);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(64, 225, 254, 0.1);
}

.td-v2-ctc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(48, 75, 102, 0.35);
}

.td-v2-ctc-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.td-v2-ctc-logo-wrap a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.td-v2-ctc-logo-wrap a:hover .td-v2-ctc-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px rgba(0, 210, 247, 0.45));
}

.td-v2-ctc-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.td-v2-ctc-vdivider {
    width: 2px;
    height: 24px;
    background: #00d2f7;
    border-radius: 1px;
    box-shadow: 0 0 6px rgba(0, 210, 247, 0.5);
    flex-shrink: 0;
}

.td-v2-ctc-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.td-v2-ctc-name a:hover {
    color: #00d2f7 !important;
}

.td-v2-ctc-players {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.td-v2-ctc-player-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(13, 23, 37, 0.85);
    border: 1px solid rgba(48, 75, 102, 0.3);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.td-v2-ctc-player-row:hover {
    background: rgba(0, 210, 247, 0.1);
    border-color: rgba(0, 210, 247, 0.4);
    transform: translateX(3px);
}

.td-v2-ctc-icon-frame {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(0, 210, 247, 0.35);
    background: rgba(0, 210, 247, 0.08);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.td-v2-ctc-role-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.td-v2-ctc-role-placeholder {
    font-size: 11px;
    color: #64748b;
}

.td-v2-ctc-player-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.td-v2-ctc-player-row:hover .td-v2-ctc-player-name {
    color: #00d2f7;
}

body.light .td-v2-cyber-team-card,
.light .td-v2-cyber-team-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.light .td-v2-cyber-team-card:hover,
.light .td-v2-cyber-team-card:hover {
    border-color: #0284c7;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.15);
}

body.light .td-v2-ctc-header,
.light .td-v2-ctc-header {
    border-bottom: 1px solid #e2e8f0;
}

body.light .td-v2-ctc-name,
.light .td-v2-ctc-name {
    color: #0f172a;
}

body.light .td-v2-ctc-player-row,
.light .td-v2-ctc-player-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

body.light .td-v2-ctc-player-row:hover,
.light .td-v2-ctc-player-row:hover {
    background: #f0f9ff;
    border-color: #0284c7;
}

body.light .td-v2-ctc-player-name,
.light .td-v2-ctc-player-name {
    color: #1e293b;
}

body.light .td-v2-ctc-player-row:hover .td-v2-ctc-player-name,
.light .td-v2-ctc-player-row:hover .td-v2-ctc-player-name {
    color: #0284c7;
}

.pv2-trophy-icon {
    font-size: 38px;
    color: #00d2f7;
    filter: drop-shadow(0 0 10px rgba(0, 210, 247, 0.65));
    line-height: 1;
    display: inline-block;
}




