/* ==========================================================================
   PLAYERS V2 - HEROES & HERO COMPS TABS STYLING (CYBER / SCI-FI THEME)
   ========================================================================== */

/* ==========================================================================
   SUBTABS NAVIGATION - FULL WIDTH
   ========================================================================== */
.pv2-subtabs-bar {
    display: flex !important;
    align-items: stretch !important;
    height: 38px !important;
    margin-bottom: 20px !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 225, 254, 0.35) rgba(14, 28, 43, 0.4);
}

.pv2-subtabs-bar::-webkit-scrollbar {
    height: 3px;
}

.pv2-subtabs-bar::-webkit-scrollbar-track {
    background: rgba(14, 28, 43, 0.4);
}

.pv2-subtabs-bar::-webkit-scrollbar-thumb {
    background: rgba(64, 225, 254, 0.35);
    border-radius: 3px;
}

.pv2-subtab-btn {
    flex: 1 1 33.333% !important;
    width: 33.333% !important;
    min-width: 0;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0 16px;
    background: #26333f;
    color: #ffffff;
    white-space: nowrap;
    text-transform: none !important;
    flex-shrink: 0;
}

.pv2-subtab-btn:hover:not(.active) {
    background: #314252;
    color: #ffffff;
}

/* Left tab: Player Statistics with Top-Left Dog-Ear Fold */
.pv2-subtab-btn.pv2-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);
}

.pv2-subtab-btn.pv2-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;
}

/* Center tab: Heroes (Draft Order) flat */
.pv2-subtab-btn.pv2-subtab-center {
    clip-path: none;
    -webkit-clip-path: none;
    border-left: 1px solid rgba(0, 0, 0, 0.4) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.4) !important;
}

.pv2-subtab-btn.pv2-subtab-center::before {
    display: none;
}

/* Right tab: Heroes (Per Role) with Bottom-Right Dog-Ear Fold */
.pv2-subtab-btn.pv2-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%);
}

.pv2-subtab-btn.pv2-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 (#40e1fe) with Black Text (#000000) */
.pv2-subtab-btn.active {
    background: #40e1fe !important;
    color: #000000 !important;
    font-weight: 700;
    border: none !important;
    box-shadow: none !important;
}

.pv2-subtab-btn.active .pv2-subtab-label,
.pv2-subtab-btn.active span {
    color: #000000 !important;
}

/* Tablet & Mobile responsive styles for subtabs bar */
@media (max-width: 991px) {
    .pv2-subtabs-bar .pv2-subtab-btn {
        font-size: 12px !important;
        padding: 0 12px !important;
        letter-spacing: 0.3px !important;
    }
}

@media (max-width: 576px) {
    .pv2-subtabs-bar {
        height: 36px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap !important;
    }

    .pv2-subtabs-bar .pv2-subtab-btn {
        flex: 1 0 auto !important;
        width: auto !important;
        min-width: max-content !important;
        height: 36px !important;
        font-size: 11px !important;
        letter-spacing: 0.2px !important;
        padding: 0 12px !important;
        white-space: nowrap !important;
    }

    .pv2-subtabs-bar .pv2-subtab-lb {
        padding-left: 14px !important;
    }

    .pv2-subtabs-bar .pv2-subtab-matches {
        padding-right: 15px !important;
    }
}

@media (max-width: 380px) {
    .pv2-subtabs-bar .pv2-subtab-btn {
        font-size: 10px !important;
        letter-spacing: 0px !important;
        padding: 0 9px !important;
    }

    .pv2-subtabs-bar .pv2-subtab-lb {
        padding-left: 12px !important;
    }

    .pv2-subtabs-bar .pv2-subtab-matches {
        padding-right: 14px !important;
    }
}

/* ==========================================================================
   PLAYERS V2 - HEADER & SEARCH POSITIONING (DESKTOP: SIDE-BY-SIDE)
   ========================================================================== */
.players-section .ev2-main-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem !important;
    margin-bottom: 1.25rem !important;
}

.players-section .ev2-title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 1.25rem !important;
    flex-shrink: 0 !important;
}

.players-section .ev2-search {
    order: 2 !important;
    flex: 0 1 360px !important;
    max-width: 400px !important;
    min-width: 240px !important;
    margin-left: auto !important;
    margin-bottom: 0 !important;
}

@media (max-width: 991px) {
    .players-section .ev2-main-header {
        flex-wrap: wrap !important;
        row-gap: 0.75rem !important;
    }

    .players-section .ev2-search {
        order: 3 !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
}

/* Tab Panes */
.pv2-tab-pane {
    display: none;
}
.pv2-tab-pane.active {
    display: block;
}
#pv2-heroes-container:not(.active) {
    display: none;
}

/* 2-Column Top Cyber Grid */
.pv2-top-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 991px) {
    .pv2-top-grid {
        grid-template-columns: 1fr;
    }
}

/* Cyber Outer Card */
.pv2-cyber-card {
    background: #0a1320;
    border: 1px solid #1a3652;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    min-width: 0;
    max-width: 100%;
}

.pv2-cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00d2f7, transparent);
}

.pv2-card-header {
    padding: 14px 18px;
    background: #0c1828;
    border-bottom: 1px solid #142a42;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pv2-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pv2-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.pv2-title-sub {
    color: #00d2f7;
    font-size: 12px;
}

.pv2-pool-icon {
    color: #00d2f7;
    font-size: 16px;
}

.pv2-title-stripes {
    display: flex;
    gap: 4px;
}

.pv2-title-stripes span {
    width: 4px;
    height: 14px;
    background: #00d2f7;
    transform: skewX(-20deg);
}

.pv2-card-body {
    padding: 18px;
    flex-grow: 1;
}

.pv2-card-bottom-accent {
    height: 4px;
    background: linear-gradient(90deg, #00d2f7 0%, transparent 60%);
}

.pv2-card-bottom-accent.right-accent {
    background: linear-gradient(270deg, #ff8c00 0%, transparent 60%);
}

/* Form inputs */
.pv2-form-group {
    margin-bottom: 14px;
}

.pv2-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: normal;
    text-transform: none;
    margin-bottom: 6px;
    display: block;
}

.pv2-label i {
    color: #00d2f7;
    margin-right: 4px;
}

.pv2-req {
    color: #00d2f7;
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
}

.pv2-input-wrap {
    position: relative;
    width: 100%;
}

.pv2-input,
.pv2-select {
    width: 100%;
    height: 38px;
    background: #070d17;
    border: 1px solid #19324c;
    border-radius: 5px;
    color: #ffffff;
    font-size: 12.5px;
    padding: 0 12px;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
}

.pv2-select {
    padding-right: 30px;
    cursor: pointer;
}

.pv2-input:focus,
.pv2-select:focus {
    border-color: #00d2f7;
    box-shadow: 0 0 8px rgba(0, 210, 247, 0.4);
    background: #091220;
}

.pv2-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #00d2f7;
    font-size: 11px;
    pointer-events: none;
    transition: transform 0.25s ease, color 0.25s ease;
}

.pv2-input-wrap:hover .pv2-select-arrow {
    color: #38bdf8;
}

.pv2-input-wrap.is-open .pv2-select-arrow,
.pv2-input-wrap:focus-within .pv2-select-arrow {
    color: #38bdf8;
    transform: translateY(-50%) rotate(180deg);
}

.pv2-input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6d8ba8;
    font-size: 13px;
    pointer-events: none;
}

.pv2-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pv2-date-sep {
    color: #6d8ba8;
    font-weight: bold;
}

.pv2-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.pv2-checkbox-label input[type="checkbox"] {
    accent-color: #00d2f7;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.pv2-bold-checkbox {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
}

/* Date Range Wrap & Error State */
.pv2-date-wrap {
    position: relative;
    cursor: pointer;
    width: 100%;
}

.pv2-date-wrap .pv2-date-display {
    cursor: pointer;
    background: #070d17;
    color: #94a3b8;
    padding-right: 32px;
}

.pv2-date-wrap .pv2-date-picker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.pv2-date-wrap.is-invalid .pv2-date-display {
    border-color: #ef4444 !important;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4) !important;
}

.pv2-date-error {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #f87171 !important;
    font-size: 11.5px;
    font-weight: 500;
    margin-top: 4px;
}

/* Appearances Checkbox Box & Cyan Stripes (Mockup media_1790913441240.png) */
.pv2-appearances-checkbox-box {
    background: #070f1a;
    border: 1px solid #142a42;
    border-radius: 5px;
    padding: 9px 14px;
    width: 100%;
    transition: border-color 0.2s ease;
}

.pv2-appearances-checkbox-box:hover {
    border-color: #00d2f7;
}

.pv2-checkbox-stripes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pv2-checkbox-stripes span {
    width: 3.5px;
    height: 13px;
    background: #00d2f7;
    transform: skewX(-20deg);
    opacity: 0.85;
}

/* Empty State: Trophy Icon (Mockup media_1790913441240.png) */
.pv2-pool-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    min-height: 380px;
    padding: 40px 20px;
    text-align: center;
}

.pv2-trophy-circle-wrap {
    margin-bottom: 24px;
}

.pv2-trophy-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 1.5px solid #1a3652;
    background: radial-gradient(circle, rgba(0, 210, 247, 0.1) 0%, rgba(7, 15, 26, 0.7) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 210, 247, 0.12), inset 0 0 15px rgba(0, 210, 247, 0.05);
}

.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;
}

.pv2-trophy-svg {
    filter: drop-shadow(0 0 6px rgba(0, 210, 247, 0.6));
}

.pv2-cyber-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    margin-bottom: 18px;
    gap: 8px;
}

.pv2-cd-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1a3652 50%, transparent);
}

.pv2-cd-notch {
    width: 6px;
    height: 6px;
    background: #00d2f7;
    transform: rotate(45deg);
    opacity: 0.7;
    box-shadow: 0 0 6px rgba(0, 210, 247, 0.6);
}

.pv2-pool-empty-instruction {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.2px;
}

/* Player Pool Top 10 Table */
.pv2-table-responsive {
    overflow-x: auto;
}

.pv2-pool-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.pv2-pool-table thead th {
    background: #0b1726;
    color: #94a3b8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    padding: 10px 8px;
    border-bottom: 1px solid #162f4a;
}

.pv2-pool-table tbody tr {
    border-bottom: 1px solid rgba(26, 54, 82, 0.4);
    transition: background 0.15s ease;
}

.pv2-pool-table tbody tr:hover {
    background: rgba(0, 210, 247, 0.05);
}

.pv2-pool-table tbody td {
    padding: 8px 8px;
    vertical-align: middle;
    color: #d1dfed;
}

.pv2-pool-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.pv2-hero-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pv2-hero-thumb-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.pv2-hero-thumb-link:hover {
    opacity: 0.85;
    transform: none !important;
}

.pv2-hero-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #00d2f7;
    object-fit: cover;
    object-position: center;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
    display: block;
    margin: 0;
}

.pv2-hero-name {
    font-weight: 600;
    color: #ffffff;
    transition: color 0.15s ease;
}

.pv2-hero-name:hover,
.pv2-pool-row:hover .pv2-hero-name {
    color: #00d2f7 !important;
}

.pv2-col-picks {
    font-weight: 700;
    color: #ffffff;
}

.pv2-col-w {
    color: #4ade80;
    font-weight: 600;
}

.pv2-col-l {
    color: #f87171;
    font-weight: 600;
}

.pv2-col-wr {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: normal;
}

.pv2-col-wr.is-win {
    color: #00d2f7;
}

.pv2-col-wr.is-lose {
    color: #f87171;
}

.pv2-empty-cell {
    text-align: center;
    padding: 40px 16px !important;
    color: #647d96;
    font-style: italic;
}

/* Section Subtitle */
.pv2-section-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pv2-count-badge {
    background: #00d2f7;
    color: #050d18;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 12px;
}

/* ==========================================================================
   LIGHT MODE: CYBER CARDS & PLAYER OVERALL POOL (TOP 10)
   ========================================================================== */
body.light .pv2-cyber-card,
.light .pv2-cyber-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

body.light .pv2-cyber-card::before,
.light .pv2-cyber-card::before {
    background: linear-gradient(90deg, #0284c7, transparent) !important;
}

body.light .pv2-card-header,
.light .pv2-card-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light .pv2-card-title,
.light .pv2-card-title {
    color: #0f172a !important;
}

body.light .pv2-cyber-card .td-v2-section-title,
.light .pv2-cyber-card .td-v2-section-title {
    color: #0f172a !important;
}

body.light .pv2-title-sub,
.light .pv2-title-sub {
    color: #0284c7 !important;
}

body.light .pv2-pool-icon,
.light .pv2-pool-icon {
    color: #0284c7 !important;
}

body.light .pv2-label,
.light .pv2-label {
    color: #475569 !important;
}

body.light .pv2-label i,
.light .pv2-label i {
    color: #0284c7 !important;
}

body.light .pv2-req,
.light .pv2-req {
    color: #0284c7 !important;
}

body.light .pv2-input,
body.light .pv2-select,
.light .pv2-input,
.light .pv2-select {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light .pv2-input:focus,
body.light .pv2-select:focus,
.light .pv2-input:focus,
.light .pv2-select:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important;
    background: #ffffff !important;
}

body.light .pv2-select option,
.light .pv2-select option {
    background: #ffffff !important;
    color: #0f172a !important;
}

body.light .pv2-select-arrow,
.light .pv2-select-arrow {
    color: #0284c7 !important;
}

body.light .pv2-input-icon,
.light .pv2-input-icon {
    color: #64748b !important;
}

body.light .pv2-date-sep,
.light .pv2-date-sep {
    color: #64748b !important;
}

body.light .pv2-date-wrap .pv2-date-display,
.light .pv2-date-wrap .pv2-date-display {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

body.light .pv2-checkbox-label,
.light .pv2-checkbox-label {
    color: #475569 !important;
}

body.light .pv2-bold-checkbox,
.light .pv2-bold-checkbox {
    color: #0f172a !important;
}

body.light .pv2-appearances-checkbox-box,
.light .pv2-appearances-checkbox-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

body.light .pv2-appearances-checkbox-box:hover,
.light .pv2-appearances-checkbox-box:hover {
    border-color: #0284c7 !important;
}

/* Player Pool Top 10 Table Light Mode */
body.light .pv2-pool-card,
.light .pv2-pool-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

body.light .pv2-pool-table thead th,
.light .pv2-pool-table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light .pv2-pool-table tbody tr,
.light .pv2-pool-table tbody tr {
    border-bottom: 1px solid #f1f5f9 !important;
}

body.light .pv2-pool-table tbody tr:hover,
.light .pv2-pool-table tbody tr:hover {
    background: #f8fafc !important;
}

body.light .pv2-pool-table tbody td,
.light .pv2-pool-table tbody td {
    color: #0f172a !important;
}

body.light .pv2-hero-name,
.light .pv2-hero-name {
    color: #0f172a !important;
}

body.light .pv2-hero-name:hover,
body.light .pv2-pool-row:hover .pv2-hero-name,
.light .pv2-hero-name:hover,
.light .pv2-pool-row:hover .pv2-hero-name {
    color: #0284c7 !important;
}

body.light .pv2-col-picks,
.light .pv2-col-picks {
    color: #0f172a !important;
}

body.light .pv2-empty-cell,
.light .pv2-empty-cell {
    color: #64748b !important;
}

/* Pool Empty State */
body.light .pv2-trophy-circle,
.light .pv2-trophy-circle {
    border: 1.5px solid #cbd5e1 !important;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, #f8fafc 70%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

body.light .pv2-trophy-icon,
.light .pv2-trophy-icon {
    color: #0284c7 !important;
    filter: none !important;
}

body.light .pv2-cd-line,
.light .pv2-cd-line {
    background: linear-gradient(90deg, transparent, #cbd5e1 50%, transparent) !important;
}

body.light .pv2-cd-notch,
.light .pv2-cd-notch {
    background: #0284c7 !important;
    box-shadow: none !important;
}

body.light .pv2-pool-empty-instruction,
.light .pv2-pool-empty-instruction {
    color: #64748b !important;
}

body.light .pv2-section-subtitle,
.light .pv2-section-subtitle {
    color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   DRAFT MATCH CARDS (Matching Detail Event V2 - Tournament Stats > Draft)
   -------------------------------------------------------------------------- */
.td-v2-draft-card,
.pv2-match-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,
.pv2-draft-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;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Diamond Frame Badges (WIN = Green, LOSE = Red) - Exact Detail Event V2 */
.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;
    position: relative;
}

.td-v2-draft-card .diamond-frame {
    position: relative;
    clip-path: polygon(20% 0, 80% 0, 100% 50%, 80% 100%, 20% 100%, 0 50%);
    -webkit-clip-path: polygon(20% 0, 80% 0, 100% 50%, 80% 100%, 20% 100%, 0 50%);
    background: #08121d;
    padding: 2px 14px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    z-index: 1;
}

.td-v2-draft-card .team-status.diamond-frame-wrapper::before {
    content: "";
    position: absolute;
    left: -5px;
    top: -1px;
    clip-path: polygon(calc(20% + 4px) 0, calc(80% - 4px) 0, 100% 50%, calc(80% - 4px) 100%, calc(20% + 4px) 100%, 0 50%);
    -webkit-clip-path: polygon(calc(20% + 4px) 0, calc(80% - 4px) 0, 100% 50%, calc(80% - 4px) 100%, calc(20% + 4px) 100%, 0 50%);
    width: calc(100% + 10px);
    height: calc(100% + 2px);
    z-index: 0;
}

/* WIN Color (Green #4af08e / #00c04e) */
.td-v2-draft-team-wrap.win .diamond-frame-wrapper::before,
.td-v2-draft-card .diamond-frame-wrapper.win::before,
.td-v2-draft-card .win.diamond-frame-wrapper::before {
    background: var(--color-win, #4af08e) !important;
}

.td-v2-draft-team-wrap.win .diamond-frame-wrapper,
.td-v2-draft-card .diamond-frame-wrapper.win,
.td-v2-draft-card .win.diamond-frame-wrapper {
    color: var(--color-win, #4af08e) !important;
}

/* LOSE Color (Red #e62429) */
.td-v2-draft-team-wrap.lose .diamond-frame-wrapper::before,
.td-v2-draft-card .diamond-frame-wrapper.lose::before,
.td-v2-draft-card .lose.diamond-frame-wrapper::before {
    background: var(--color-lose, #e62429) !important;
}

.td-v2-draft-team-wrap.lose .diamond-frame-wrapper,
.td-v2-draft-card .diamond-frame-wrapper.lose,
.td-v2-draft-card .lose.diamond-frame-wrapper {
    color: var(--color-lose, #e62429) !important;
}

.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-meta-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.td-v2-draft-meta-info a:hover {
    color: #2fe0fc !important;
}

.td-v2-draft-card-body,
.pv2-draft-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-top: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 224, 252, 0.3) transparent;
}

.td-v2-draft-card-body::-webkit-scrollbar {
    height: 5px;
}

.td-v2-draft-card-body::-webkit-scrollbar-thumb {
    background: rgba(47, 224, 252, 0.3);
    border-radius: 4px;
}

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

.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;
}

/* Ban Box */
.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;
    display: block;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.td-v2-draft-ban-box:hover {
    border-color: #ff4d4f;
    transform: none !important;
}

.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);
    display: block;
    transition: none !important;
    transform: none !important;
}

.td-v2-draft-ban-box:hover .td-v2-draft-ban-img {
    transform: none !important;
}

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

/* Pick Box */
.td-v2-draft-pick-box {
    width: 44px;
    height: 72px;
    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);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.td-v2-draft-pick-box:hover {
    border-color: #38bdf8;
    transform: none !important;
}

.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 1 0;
    min-height: 0;
    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: 8px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    background: rgba(14, 23, 33, 0.95);
    padding: 2px 1px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    display: block;
}

.td-v2-draft-pick-img {
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    object-fit: cover;
    display: block;
    transition: none !important;
    transform: none !important;
}

.td-v2-draft-pick-box:hover .td-v2-draft-pick-img {
    transform: none !important;
}

.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 1px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    display: block;
}

/* Highlight Target Player Hero Pick */
.td-v2-draft-pick-box.is-target-player {
    border: 2px solid #2fe0fc !important;
    box-shadow: 0 0 14px rgba(47, 224, 252, 0.7), inset 0 0 6px rgba(47, 224, 252, 0.3) !important;
    transform: none !important;
    z-index: 2;
}

.td-v2-draft-pick-box.is-target-player .td-v2-draft-pick-hero-title {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 800;
}

.td-v2-draft-pick-box.is-target-player .td-v2-draft-pick-lane {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 800;
}

/* VS Center */
.td-v2-draft-vs-center,
.pv2-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;
}

/* Empty State */
.td-v2-draft-empty-box {
    background: #0b1520;
    border: 1px dashed rgba(48, 75, 102, 0.4);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   DRAFT MATCH CARDS - MOBILE OVERRIDES (Matching Detail Event V2)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .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 .team-status.diamond-frame-wrapper {
        font-size: 9.5px !important;
        margin: 0 2px !important;
    }

    .td-v2-draft-card .team-status.diamond-frame-wrapper::before {
        left: -4px !important;
        width: calc(100% + 8px) !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: 64px !important;
    }

    .td-v2-draft-pick-hero-title {
        font-size: 7.5px !important;
        padding: 1.5px 1px !important;
        line-height: 1.25 !important;
        flex-shrink: 0 !important;
    }

    .td-v2-draft-pick-lane {
        font-size: 6.5px !important;
        padding: 1.5px 1px !important;
        line-height: 1.25 !important;
        flex-shrink: 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;
    }
}

/* Light Mode for Draft Cards (Matching Detail Event V2) */
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;
}

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;
}

/* Loading & Empty states */
.pv2-empty-box {
    background: #08111d;
    border: 1px dashed #172d45;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #647d96;
}

body.light .pv2-empty-box,
.light .pv2-empty-box {
    background: #ffffff !important;
    border: 1px dashed #cbd5e1 !important;
    color: #64748b !important;
}

body.light .pv2-empty-box p,
.light .pv2-empty-box p {
    color: #64748b !important;
}

.pv2-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
    color: #00d2f7;
    opacity: 0.6;
}

body.light .pv2-empty-icon,
.light .pv2-empty-icon {
    color: #94a3b8 !important;
}

.pv2-loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 20px;
    min-height: 200px;
    color: #00d2f7;
    background: rgba(6, 12, 20, 0.65);
    border: 1px dashed rgba(0, 210, 247, 0.3);
    border-radius: 8px;
    margin-top: 15px;
    backdrop-filter: blur(4px);
}

body.light .pv2-loading-overlay,
.light .pv2-loading-overlay {
    background: rgba(255, 255, 255, 0.88) !important;
    color: #0f172a !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
}

.pv2-loading-text {
    font-size: 14px;
    font-weight: 500;
    color: #00d2f7;
    margin-top: 8px;
}

body.light .pv2-loading-text,
.light .pv2-loading-text {
    color: #0284c7 !important;
}

/* Event Detail V2 Style Loading Dots */
.td-section-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.dt-dots-loading {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.dt-dots-loading span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #00d2f7;
    display: inline-block;
    animation: dtDotBounce 1.4s ease-in-out infinite both;
}

.dt-dots-loading span:nth-child(1) {
    animation-delay: -0.32s;
}

.dt-dots-loading span:nth-child(2) {
    animation-delay: -0.16s;
}

.dt-dots-loading span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes dtDotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.text-cyan {
    color: #00d2f7 !important;
}

/* ==========================================================================
   PLAYERS V2 - MAIN LAYOUT & TABLE "TOP 10 PLAYERS" (100% SCREENSHOT MATCH)
   ========================================================================== */

/* Remove excessive empty top spacing on players v2 page */
.content-wrapper:has(.players-section),
body:has(.players-section) .content-wrapper {
    padding-top: 0 !important;
}

/* Overall Section */
.players-section {
    background-color: #060c14;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(14, 42, 71, 0.45) 0%, rgba(6, 12, 20, 0.8) 60%),
        url('/images/bgs/1080p-bg-dark.webp');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 15px !important;
    padding-bottom: 60px;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Light Mode Support for Players Section & Header */
body.light .players-section,
.light .players-section {
    background-color: #f1f5f9 !important;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(226, 232, 240, 0.6) 0%, rgba(241, 245, 249, 0.85) 60%),
        url('/images/bgs/1080p-bg-light.webp') !important;
    color: #0f172a !important;
}

body.light .players-section .ev2-page-title,
.light .players-section .ev2-page-title {
    color: #0284c7 !important;
    text-shadow: none !important;
}

body.light .players-section .ev2-search .form-themed,
.light .players-section .ev2-search .form-themed,
body.light .pv2-main-header .ev2-search .form-themed,
.light .pv2-main-header .ev2-search .form-themed {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light .players-section .ev2-search .form-themed:focus,
.light .players-section .ev2-search .form-themed:focus,
body.light .pv2-main-header .ev2-search .form-themed:focus,
.light .pv2-main-header .ev2-search .form-themed:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25) !important;
}

/* Light Mode for Subtabs Navigation */
body.light .pv2-subtab-btn,
.light .pv2-subtab-btn {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

body.light .pv2-subtab-btn:hover:not(.active),
.light .pv2-subtab-btn:hover:not(.active) {
    background: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light .pv2-subtab-btn.active,
.light .pv2-subtab-btn.active {
    background: #40e1fe !important;
    color: #000000 !important;
}

body.light .pv2-subtab-btn.pv2-subtab-lb::before,
.light .pv2-subtab-btn.pv2-subtab-lb::before {
    border-right: 1.5px solid rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.2) !important;
}

body.light .pv2-subtab-btn.pv2-subtab-matches::before,
.light .pv2-subtab-btn.pv2-subtab-matches::before {
    border-top: 1.5px solid rgba(0, 0, 0, 0.2) !important;
    border-left: 1.5px solid rgba(0, 0, 0, 0.2) !important;
}

body.light .pv2-subtab-btn.pv2-subtab-center,
.light .pv2-subtab-btn.pv2-subtab-center {
    border-left: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.12) !important;
}

body.light .pv2-subtabs-bar::-webkit-scrollbar-thumb,
.light .pv2-subtabs-bar::-webkit-scrollbar-thumb {
    background: rgba(2, 132, 199, 0.35) !important;
}

body.light .pv2-subtabs-bar::-webkit-scrollbar-track,
.light .pv2-subtabs-bar::-webkit-scrollbar-track {
    background: #e2e8f0 !important;
}

/* Light Mode for Sidebar Filters */
body.light .tournament-filter-block .tf-wrapper,
.light .tournament-filter-block .tf-wrapper {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

body.light .tournament-filter-block .tf-header span,
.light .tournament-filter-block .tf-header span {
    color: #0f172a !important;
}

body.light .tournament-filter-block .tf-item-header,
.light .tournament-filter-block .tf-item-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light .tf-list .tf-item i,
body.light .tf-list .tf-item .tf-item-title,
.light .tf-list .tf-item i,
.light .tf-list .tf-item .tf-item-title {
    color: #1e293b !important;
}

body.light .tf-list .form-check label,
.light .tf-list .form-check label {
    color: #334155 !important;
}

body.light .tf-list .filter-search,
.light .tf-list .filter-search {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light .tf-list .filter-search:focus,
.light .tf-list .filter-search:focus {
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important;
    border-color: #0284c7 !important;
}

body.light .tf-list .form-check-input,
.light .tf-list .form-check-input {
    border-color: #94a3b8 !important;
    background-color: #ffffff !important;
}

body.light .tf-list .form-check-input:checked,
.light .tf-list .form-check-input:checked {
    background-color: var(--color-red-theme, #e93b3b) !important;
    border-color: var(--color-red-theme, #e93b3b) !important;
}

/* ==========================================================================
   SIDEBAR FILTERS - MATCHING EVENT V2 (filter-tournaments.blade.php)
   ========================================================================== */
.tournament-filter-block {
    overflow: hidden;
    font-size: .9rem;
    --padding-around: .5rem;
}

.tournament-filter-block .tf-btn-close {
    background: none;
    border: none;
    color: var(--color-default-text, #ffffff);
}

.tournament-filter-block .tf-btn-clear {
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--color-red-theme, #e93b3b);
    display: none;
}

.tournament-filter-block .tf-header {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    margin-bottom: 1rem;
}

.tournament-filter-block .tf-header span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.tournament-filter-block .tf-item-header {
    display: flex;
    align-items: center;
    padding-bottom: var(--padding-around);
    margin-bottom: var(--padding-around);
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    background: unset;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.light .tournament-filter-block .tf-item-header {
    border-bottom-color: rgba(0, 0, 0, 0.15);
}

.tournament-filter-block .tf-wrapper {
    padding: .7rem;
    background: var(--color-dark-grey, #1e2730);
    border-radius: 8px;
}

.tf-list .tf-item {
    margin-bottom: 0;
}

.tf-list .tf-item i,
.tf-list .tf-item .tf-item-title {
    color: #FFFFFF80;
    font-weight: 400;
}

.light .tf-list .tf-item i,
.light .tf-list .tf-item .tf-item-title {
    color: #373737;
}

.tf-list .tf-item i.bi-chevron-down {
    transition: transform 0.2s ease;
    display: inline-block;
    font-size: 0.8rem;
}

.tf-list .tf-item[data-state="closed"] i.bi-chevron-down {
    transform: rotate(-90deg);
}

.tf-list .tf-item .tf-item-btn-clear {
    font-weight: 700;
    display: none;
    cursor: pointer;
    font-size: .85rem;
    color: #FFFFFF80;
}
.tf-list .tf-item .tf-item-btn-clear:hover {
    color: #ffffff;
}

.tf-list .form-check-input {
    border: 2px solid var(--color-default-text, #ffffff);
    border-radius: 2px;
    color: var(--color-default-text, #ffffff);
    cursor: pointer;

    --bs-form-check-bg: var(--color-dark-grey, #1e2730);
    --bs-form-check-checked-bg-color: var(--color-red-theme, #e93b3b);
}

.tf-list .form-check-input:checked {
    background-color: var(--color-red-theme, #e93b3b);
    border-color: var(--color-red-theme, #e93b3b);
}

.tf-list .form-check label {
    margin-left: .4rem;
    padding-top: .1rem;
    color: var(--color-default-text, #ffffff);
    cursor: pointer;
    font-size: 0.85rem;
}

.tf-list {
    display: flex;
    flex-direction: column;
    row-gap: .5rem;
}

.tf-list .tf-item:has(input:checked) .tf-item-btn-clear {
    display: inline-block;
}

.tf-list .filter-search {
    border-radius: 6px;
    border: none;
    height: 32px;
    padding: 0.3rem 1rem;
    width: 100%;
    margin-bottom: 0.75rem;
    background: var(--color-input, #0e1622);
    color: var(--color-default-text, #ffffff);
    font-size: 0.8rem;
    outline: none;
}

.tf-list .filter-search:focus {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.tf-list .pf-items-scroll-container {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 2px;
}

.tf-list .pf-items-scroll-container::-webkit-scrollbar {
    width: 4px;
}

.tf-list .pf-items-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.tf-list .pf-items-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.light .tf-list .pf-items-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.tf-list .pf-scroll-sentinel {
    height: 1px;
}

.tf-list input[type="checkbox"],
.tf-list label {
    cursor: pointer;
}

.tf-list .tf-item-data {
    transition: all 300ms ease-in-out;
    cursor: pointer !important;
}

.tf-list .tf-item-data input:checked {
    opacity: 1;
}

.tf-list .tf-item-data input,
.tf-list .tf-item-data label {
    cursor: pointer !important;
    opacity: .8;
}
.tf-list .tf-item-data:hover input,
.tf-list .tf-item-data:hover label {
    opacity: 1;
}

.tf-list .item-not-found {
    color: #FFFFFF80;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    text-align: center;
}

.light .tf-list .item-not-found {
    color: #37373780;
}

@media (min-width: 992px) {
    .tournament-filter-block:has(input:checked) .tf-btn-clear {
        display: inline-block;
    }

    .tournament-filter-block .tf-item-header {
        gap: .5rem;
    }
}

@media (max-width: 991px) {
    .tournament-filter-block {
        overflow-y: scroll !important;
    }
}

/* ==========================================================================
   HEADER SECTION & EVENT V2 SEARCH BAR
   ========================================================================== */
.pv2-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    position: relative;
    z-index: 10;
}

.pv2-header-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #38bdf8;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.pv2-header-sub {
    color: #94a3b8;
    font-size: 14.5px;
    font-weight: 400;
    margin: 6px 0 0 0;
}

/* Event V2 Search Bar Integration */
.pv2-main-header .ev2-search {
    flex: 0 1 420px;
    min-width: 280px;
    margin-left: auto;
}

.pv2-main-header .ev2-search .form-themed {
    height: 38px;
    background: rgba(6, 11, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    padding: 0.45rem 2rem 0.45rem 1rem;
    transition: border-color 0.2s;
}

.pv2-main-header .ev2-search .form-themed:focus {
    border-color: var(--ev2-cyan-accent, #00d8f6);
    box-shadow: 0 0 0 1px rgba(0, 216, 246, 0.35);
}

.pv2-main-header .ev2-search .btn-themed-2 {
    background: var(--ev2-cyan-btn, #2ed3f8);
    color: #0b131b;
    font-family: 'Orbitron', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    border: none;
    border-radius: 6px;
    height: 38px;
    padding: 0 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pv2-main-header .ev2-search .btn-themed-2:hover {
    background: #5ce0ff;
    opacity: 0.95;
    box-shadow: 0 0 12px rgba(46, 211, 248, 0.4);
}

.pv2-main-header .ev2-mobile-filter-btn {
    background: #2ed3f8 !important;
    color: #0b131b !important;
    border: none !important;
    border-radius: 6px !important;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

/* Top Filter Bar */
.pv2-top-filters-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.pv2-top-select-wrap {
    background: #0d1726;
    border: 1px solid #1c2b3e;
    border-radius: 6px;
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 170px;
    flex: 1;
    max-width: 220px;
}

.pv2-top-select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 500;
    height: 38px;
    width: 100%;
    padding: 0 32px 0 14px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}
.pv2-top-select option {
    background-color: #0d1726;
    color: #ffffff;
}

.pv2-top-select-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
    font-size: 11px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.pv2-top-select-wrap:hover .pv2-top-select-chevron {
    color: #38bdf8;
}

.pv2-top-select-wrap.is-open .pv2-top-select-chevron,
.pv2-top-select-wrap:focus-within .pv2-top-select-chevron {
    color: #38bdf8;
    transform: translateY(-50%) rotate(180deg);
}

.pv2-top-select-wrap:focus-within,
.pv2-top-select-wrap.is-open {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.pv2-btn-top-apply {
    background: #52dbff;
    border: none;
    border-radius: 6px;
    color: #07101b;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.8px;
    padding: 0 22px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}
.pv2-btn-top-apply:hover {
    background: #7ee7ff;
    box-shadow: 0 0 15px rgba(82, 219, 255, 0.4);
}

/* Tab 1 Table Card */
.td-v2-teams-table-card,
.pv2-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);
    padding: 0;
}

.pv2-table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* Section Titles (Matching Detail Event V2 - LEADERBOARDS & MATCHES) */
.td-v2-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.pv2-table-card-header .td-v2-section-title-wrap,
.pv2-card-header .td-v2-section-title-wrap {
    margin-bottom: 0 !important;
}

.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;
}

.pv2-card-header .td-v2-section-title {
    font-size: 16px;
}

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

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

.pv2-table-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pv2-table-accent-icon {
    color: #38bdf8;
    font-size: 16px;
    font-weight: 900;
}

.pv2-table-header-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #38bdf8;
    text-transform: uppercase;
    margin: 0;
}

/* Teams Table Wrap & Table (Matching Detail Event V2 teams-table) */
.td-v2-teams-table-wrap {
    width: 100%;
    overflow-x: auto;
}

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

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

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

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

.td-v2-teams-table th,
.pv2-players-table thead 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.td-v2-th-team,
.td-v2-teams-table th.td-v2-th-player,
.td-v2-teams-table th.td-v2-th-role,
.pv2-players-table thead th.td-v2-th-team,
.pv2-players-table thead th.td-v2-th-player,
.pv2-players-table thead th.td-v2-th-role {
    text-align: left !important;
    padding-left: 20px !important;
}

.pv2-players-table thead th {
    padding: 10px 14px !important;
    vertical-align: middle !important;
    background: #2D3032 !important;
}

.pv2-players-table thead th.td-v2-th-rank .td-v2-th-inner,
.pv2-players-table thead th.td-v2-th-stat .td-v2-th-inner {
    justify-content: center !important;
    width: 100%;
}

.pv2-players-table thead th.td-v2-th-team .td-v2-th-inner,
.pv2-players-table thead th.td-v2-th-player .td-v2-th-inner,
.pv2-players-table thead th.td-v2-th-role .td-v2-th-inner {
    justify-content: flex-start !important;
    width: 100%;
}

.td-v2-th-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.td-v2-teams-table th.sortable-th,
.pv2-players-table thead th.sortable-th {
    cursor: pointer;
    transition: color 0.15s ease;
}

.td-v2-teams-table th.sortable-th:hover,
.td-v2-teams-table th.sortable-th:hover .td-v2-th-title,
.pv2-players-table thead th.sortable-th:hover,
.pv2-players-table thead th.sortable-th:hover .td-v2-th-title {
    color: #2fe0fc;
}

.td-v2-teams-table th.sortable-th.active,
.td-v2-teams-table th.sortable-th.active .td-v2-th-title,
.pv2-players-table thead th.sortable-th.active,
.pv2-players-table thead th.sortable-th.active .td-v2-th-title {
    color: #2fe0fc;
}

.pv2-sort-indicator {
    font-size: 10px;
    color: #2fe0fc;
    display: inline-block;
    margin-left: 4px;
}

/* Table Body Rows */
.td-v2-teams-table tbody tr,
.pv2-players-table tbody tr,
.pv2-table-row {
    height: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
    transition: background 0.15s ease;
    background: transparent;
    cursor: pointer;
}

.td-v2-teams-table tbody tr:hover,
.pv2-players-table tbody tr:hover,
.pv2-table-row:hover {
    background: rgba(45, 48, 50, 0.45) !important;
}

/* Rightmost Arrow Hover Effect */
.td-v2-teams-table tbody tr:hover td:last-child i,
.td-v2-teams-table tbody tr:hover td:last-child a:not(.td-v2-match-stats-btn),
.pv2-players-table tbody tr:hover td:last-child i,
.pv2-players-table tbody tr:hover td:last-child a:not(.td-v2-match-stats-btn),
.pv2-table-row:hover td:last-child i,
.pv2-table-row:hover td:last-child a:not(.td-v2-match-stats-btn),
.pv2-table-row:hover i.fa-chevron-right {
    color: #00d2f7 !important;
    transform: translateX(3px);
}

.td-v2-teams-table td:last-child i,
.td-v2-teams-table td:last-child a:not(.td-v2-match-stats-btn),
.pv2-players-table td:last-child i,
.pv2-players-table td:last-child a:not(.td-v2-match-stats-btn),
.pv2-table-row td:last-child i,
.pv2-table-row td:last-child a:not(.td-v2-match-stats-btn),
.pv2-table-row i.fa-chevron-right {
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Match Row stats icon hover & centering */
.pv2-match-row:hover .td-v2-match-stats-btn {
    filter: brightness(1.15);
    transform: scale(1.08);
    background: #5ce3ff !important;
}

.td-v2-match-stats-btn,
.pv2-players-table td:last-child a.td-v2-match-stats-btn,
.pv2-table-row td:last-child a.td-v2-match-stats-btn {
    width: 26px !important;
    height: 26px !important;
    background: #2fe0fc !important;
    border-radius: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #04121d !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease !important;
}

.td-v2-match-stats-btn:hover {
    filter: brightness(1.15) !important;
    transform: scale(1.08) !important;
    background: #5ce3ff !important;
}

.td-v2-match-stats-btn svg,
.pv2-players-table td:last-child a.td-v2-match-stats-btn svg,
.pv2-table-row td:last-child a.td-v2-match-stats-btn svg {
    width: 13px !important;
    height: 13px !important;
    display: block !important;
    margin: auto !important;
    fill: #04121d !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
}

.td-v2-teams-table td,
.pv2-players-table td,
.pv2-table-row td {
    padding: 0 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle !important;
    border: none;
    background: transparent;
    height: 38px;
    line-height: 1;
}

.td-v2-teams-table td.td-v2-td-team,
.td-v2-teams-table td.td-v2-td-player,
.td-v2-teams-table td.td-v2-td-role,
.pv2-players-table td.td-v2-td-team,
.pv2-players-table td.td-v2-td-player,
.pv2-players-table td.td-v2-td-role {
    text-align: left !important;
    padding-left: 20px !important;
}

/* Rank column */
.pv2-rank-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    vertical-align: middle;
    line-height: 1;
    margin: 0 auto;
}

.pv2-crown-icon {
    font-size: 13px;
}

.text-gold {
    color: #fbbf24 !important;
}
.text-silver {
    color: #cbd5e1 !important;
}
.text-bronze {
    color: #d97706 !important;
}
.text-muted-rank {
    color: #94a3b8;
}

.pv2-rank-num {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

/* Top 3 rows subtle left border accent */
.td-v2-teams-table tbody tr.pv2-row-rank-1 td:first-child,
.pv2-players-table tbody tr.pv2-row-rank-1 td:first-child {
    border-left: 3px solid #2fe0fc !important;
}

.td-v2-teams-table tbody tr.pv2-row-rank-2 td:first-child,
.pv2-players-table tbody tr.pv2-row-rank-2 td:first-child {
    border-left: 3px solid #cbd5e1 !important;
}

.td-v2-teams-table tbody tr.pv2-row-rank-3 td:first-child,
.pv2-players-table tbody tr.pv2-row-rank-3 td:first-child {
    border-left: 3px solid #d97706 !important;
}

/* Player Column */
.td-v2-player-stat-info,
.pv2-players-table .td-v2-player-stat-info {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    vertical-align: middle;
    line-height: 1;
    margin: 0;
}

.pv2-players-table .td-v2-player-stat-avatar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
    border-radius: 4px;
    overflow: hidden;
    background: transparent;
    vertical-align: middle;
    margin: 0;
}

.pv2-players-table .td-v2-player-stat-avatar-link:hover {
    opacity: 0.85;
    transform: none !important;
}

.pv2-players-table .td-v2-player-stat-avatar {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
    object-position: top center;
    background: transparent;
    flex-shrink: 0;
    display: block;
    transform: scale(1.75);
    transform-origin: center top;
}

.pv2-players-table .td-v2-player-stat-avatar:hover {
    transform: scale(1.75) !important;
}

/* Hero Avatar Column in Detail Tables */
.pv2-hero-stat-avatar-link,
.pv2-players-table .td-v2-hero-stat-avatar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-radius: 50%;
    overflow: hidden;
    background: #08121d;
    border: 1.5px solid #00d2f7;
    box-sizing: border-box;
}

.pv2-hero-stat-avatar-link:hover,
.pv2-players-table .td-v2-hero-stat-avatar-link:hover {
    opacity: 0.9;
    transform: scale(1.08);
}

.pv2-hero-avatar,
.pv2-players-table .td-v2-hero-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    object-fit: cover !important;
    object-position: center center !important;
    background: transparent;
    flex-shrink: 0;
    display: block;
    transform: none !important;
    max-width: 100%;
}

.pv2-hero-avatar:hover,
.pv2-players-table .td-v2-hero-avatar:hover {
    transform: none !important;
}

.td-v2-player-stat-name,
.pv2-players-table .td-v2-player-stat-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.15s ease;
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

/* Team Column */
.td-v2-team-stat-info,
.pv2-players-table .td-v2-team-stat-info {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    vertical-align: middle;
    line-height: 1;
    margin: 0;
}

.td-v2-team-stat-logo-link,
.pv2-players-table .td-v2-team-stat-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
    vertical-align: middle;
    margin: 0;
}

.td-v2-team-stat-logo-link:hover {
    opacity: 0.85;
    transform: none !important;
}

.td-v2-team-stat-logo,
.pv2-players-table .td-v2-team-stat-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.td-v2-team-stat-name,
.pv2-players-table .td-v2-team-stat-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.15s ease;
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

/* Role Column */
.td-v2-role-stat-info,
.pv2-players-table .td-v2-role-stat-info {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    vertical-align: middle;
    line-height: 1;
    margin: 0;
}

.td-v2-role-stat-name,
.pv2-players-table .td-v2-role-stat-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #cbd5e1;
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

.hover-cyan:hover {
    color: #2fe0fc !important;
}

/* Stats Typography */
.pv2-stat-rating {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.pv2-stat-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
}

.td-v2-teams-table td.td-v2-empty-table-cell,
.pv2-players-table td.td-v2-empty-table-cell {
    color: #cbd5e1 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

/* Pagination Footer inside Table Card */
.td-v2-teams-table-card .pv2-pagination-footer,
.pv2-table-card .pv2-pagination-footer,
.pv2-pool-card .pv2-pagination-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.38);
    background: #0d1722;
    margin-top: 0;
    flex-wrap: wrap;
    gap: 14px;
}

#pv2-drafts-pagination-footer,
.pv2-role-pagination-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border: 1px solid rgba(48, 75, 102, 0.4);
    border-radius: 6px;
    background: #0d1722;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 14px;
}

/* Light Mode Support for Table */
body.light .td-v2-teams-table-card,
body.light .pv2-table-card,
.light .td-v2-teams-table-card,
.light .pv2-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 .pv2-players-table thead tr,
body.light .td-v2-teams-table th,
body.light .pv2-players-table thead th,
.light .td-v2-teams-table thead tr,
.light .pv2-players-table thead tr,
.light .td-v2-teams-table th,
.light .pv2-players-table thead th {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
}

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

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

body.light .td-v2-teams-table td,
body.light .pv2-players-table td,
body.light .pv2-table-row td,
.light .td-v2-teams-table td,
.light .pv2-players-table td,
.light .pv2-table-row td {
    color: #0f172a;
}

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

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

body.light .pv2-stat-rating,
body.light .pv2-stat-text,
.light .pv2-stat-rating,
.light .pv2-stat-text {
    color: #0f172a;
}

body.light .td-v2-teams-table-card .pv2-pagination-footer,
body.light .pv2-table-card .pv2-pagination-footer,
body.light .pv2-pool-card .pv2-pagination-footer,
.light .td-v2-teams-table-card .pv2-pagination-footer,
.light .pv2-table-card .pv2-pagination-footer,
.light .pv2-pool-card .pv2-pagination-footer,
body.light-mode .pv2-pool-card .pv2-pagination-footer,
[data-theme="light"] .pv2-pool-card .pv2-pagination-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

body.light #pv2-drafts-pagination-footer,
body.light .pv2-role-pagination-footer,
.light #pv2-drafts-pagination-footer,
.light .pv2-role-pagination-footer,
body.light-mode #pv2-drafts-pagination-footer,
body.light-mode .pv2-role-pagination-footer,
[data-theme="light"] #pv2-drafts-pagination-footer,
[data-theme="light"] .pv2-role-pagination-footer {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pv2-pagination-summary {
    display: flex;
    flex-direction: column;
}

.pv2-showing-text {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.pv2-progress-track {
    width: 220px;
    height: 3px;
    background: #192739;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.pv2-progress-bar-fill {
    width: 35%;
    height: 100%;
    background: #38bdf8;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.pv2-pagination-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.pv2-page-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-default-text, #ffffff);
    background-color: transparent !important;
    border: none !important;
    border-radius: 2px !important;
    text-decoration: none;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    user-select: none;
}

.pv2-page-btn:hover:not(:disabled):not(.disabled) {
    opacity: 1;
    background-color: rgba(46, 211, 248, 0.15) !important;
    color: #ffffff !important;
}

/* Active page square: matching View Tournament / Events V2 button (#2ed3f8 background, #10161c navy text) */
.pv2-page-btn.active {
    background: #2ed3f8 !important;
    color: #10161c !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    box-shadow: 0 0 12px rgba(46, 211, 248, 0.35);
}

.pv2-page-btn.active:hover {
    background: #5ce0ff !important;
    color: #10161c !important;
}

.pv2-page-btn:disabled,
.pv2-page-btn.disabled {
    opacity: 0.35 !important;
    cursor: not-allowed;
    background-color: transparent !important;
}

/* Arrow icons (Previous & Next): Blue/Cyan crystal matching Events V2 */
.pv2-page-btn .ui-icon-circle-triangle-w,
.pv2-page-btn .ui-icon-circle-triangle-e {
    background: url("../images/orns/arrow-blue.png") !important;
    background-image: url("../images/orns/arrow-blue.png") !important;
    background-size: 100% auto !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transition: opacity 0.2s ease, filter 0.2s ease;
    width: 14px;
    height: 14px;
    display: inline-block;
}

.pv2-page-btn .ui-prev.ui-icon-circle-triangle-e {
    transform: rotate(180deg);
}

.pv2-page-btn:not(.disabled):not(:disabled):hover .ui-icon-circle-triangle-w,
.pv2-page-btn:not(.disabled):not(:disabled):hover .ui-icon-circle-triangle-e {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(46, 211, 248, 0.6));
}

.pv2-page-dots {
    color: rgba(255, 255, 255, 0.6);
    padding: 0 4px;
    font-size: 13px;
    user-select: none;
}

/* Light mode support for pagination */
body.light .pv2-page-btn,
.light .pv2-page-btn {
    color: #334155 !important;
}

body.light .pv2-page-btn:hover:not(:disabled):not(.disabled),
.light .pv2-page-btn:hover:not(:disabled):not(.disabled) {
    background-color: rgba(2, 132, 199, 0.12) !important;
    color: #0284c7 !important;
}

body.light .pv2-page-btn.active,
.light .pv2-page-btn.active {
    background: #2ed3f8 !important;
    color: #08101a !important;
    box-shadow: 0 0 10px rgba(46, 211, 248, 0.35) !important;
}

body.light .pv2-page-dots,
.light .pv2-page-dots {
    color: rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   MOBILE & RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 991px) {
    .pv2-main-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .pv2-header-title {
        font-size: 28px;
    }

    .pv2-main-header .ev2-search {
        flex: 1 1 100%;
        min-width: 0;
        margin: 0.25rem 0 0;
    }

    .pv2-top-filters-row {
        gap: 10px;
    }

    .pv2-top-select-wrap {
        flex: 1 1 calc(50% - 8px);
        max-width: none;
        min-width: 130px;
    }

    .pv2-btn-top-apply {
        flex: 1 1 100%;
        justify-content: center;
    }

    .pv2-filter-wrapper {
        max-height: 400px;
    }

    .td-v2-teams-table-card,
    .pv2-table-card {
        padding: 0 !important;
        border-radius: 6px !important;
    }

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

    .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;
    }

    #pv2TableAchievements,
    #pv2TableAwards {
        zoom: 0.8;
    }

    .pv2-pagination-footer {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .pv2-header-title {
        font-size: 24px;
    }

    .pv2-top-select-wrap {
        flex: 1 1 100%;
    }

    .pv2-tab-btn {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
        font-size: 11.5px;
    }

    .pv2-progress-track {
        width: 160px;
    }
}

/* Lazy Loading Draft Indicator */
.pv2-draft-lazy-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 0 16px;
    color: #94a3b8;
    font-size: 13px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pv2-draft-lazy-loader .spinner-border {
    width: 1.15rem;
    height: 1.15rem;
    border-width: 0.15em;
    color: #38bdf8 !important;
}

.pv2-draft-all-loaded {
    text-align: center;
    padding: 24px 0 16px;
    color: #64748b;
    font-size: 12.5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-top: 1px dashed rgba(48, 75, 102, 0.25);
    margin-top: 16px;
}
/* ==========================================================================
   PLAYERS V2 - DETAIL PAGE STYLING (CYBER / SCI-FI THEME)
   ========================================================================== */

:root {
    --pv2-cyan: #40e1fe;
    --pv2-cyan-glow: rgba(64, 225, 254, 0.4);
    --pv2-cyan-dim: rgba(64, 225, 254, 0.15);
    --pv2-bg-card: rgba(8, 16, 30, 0.88);
    --pv2-bg-card-hover: rgba(12, 24, 44, 0.95);
    --pv2-border: rgba(64, 225, 254, 0.25);
    --pv2-border-bright: #40e1fe;
    --pv2-text-primary: #ffffff;
    --pv2-text-secondary: #8fa3b8;
    --pv2-text-cyan: #40e1fe;
    --pv2-gold: #f59e0b;
    --pv2-red: #ff4d6d;
    --pv2-green: #10b981;
}

.pv2-detail-container {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
    color: var(--pv2-text-primary);
}

/* Back Link */
.pv2-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8fa3b8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.pv2-back-link:hover {
    color: var(--pv2-cyan);
}

/* Sidebar Navigation */
.pv2-sidebar-nav {
    position: sticky;
    top: 90px;
    z-index: 20;
}

.pv2-sidebar-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 12px;
}

.pv2-nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pv2-nav-item {
    margin: 0;
}

.pv2-nav-link {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pv2-nav-link:hover {
    color: #ffffff;
    background: rgba(64, 225, 254, 0.08);
}

.pv2-nav-link.active {
    color: #ffffff;
    background: rgba(14, 38, 62, 0.9);
    border-left: 3px solid var(--pv2-cyan);
    font-weight: 600;
    box-shadow: inset 0 0 10px rgba(64, 225, 254, 0.15);
}

/* Common Card Containers */
.pv2-card {
    background: var(--pv2-bg-card);
    border: 1px solid var(--pv2-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 1px rgba(64, 225, 254, 0.3);
    position: relative;
}

.pv2-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 12px;
}

.pv2-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.pv2-card-title i,
.pv2-card-title svg {
    color: var(--pv2-cyan);
    font-size: 18px;
}

/* Overview Section & Personal Info (No outer border stroke, left=0) */
.pv2-overview-section,
#sec-overview {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    position: relative;
}

.pv2-personal-info-section,
#sec-personal-info {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    position: relative;
}

.pv2-personal-info-section .td-v2-section-title-wrap,
.pv2-personal-info-section .td-v2-section-title {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.pv2-info-card-inner {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    box-shadow: none !important;
}

/* Player Header Card */
.pv2-header-card {
    padding: 1.5rem;
}

.pv2-header-flex {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 991px) {
    .pv2-header-flex {
        flex-direction: column;
        align-items: center;
    }
}

/* Player Photo Box */
.pv2-photo-box {
    flex-shrink: 0;
    width: 210px;
    min-height: 250px;
    position: relative;
    border-radius: 12px;
    border: 1.5px solid var(--pv2-cyan);
    overflow: hidden;
    background: radial-gradient(circle at center, #13243a 0%, #08101e 100%);
    box-shadow: 0 0 15px rgba(64, 225, 254, 0.25);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 0;
}

@media (max-width: 991px) {
    .pv2-photo-box {
        width: 180px;
        min-height: 220px;
    }
}

.pv2-photo-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    margin-bottom: 0 !important;
}

/* Player Header Details */
.pv2-header-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pv2-header-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.pv2-player-ign {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 0 0 10px rgba(64, 225, 254, 0.4);
}

.pv2-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pv2-badge-team,
.pv2-badge-role,
.pv2-badge-country {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 400;
    color: #e2e8f0;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
}

.pv2-badge-team:hover {
    color: var(--pv2-cyan);
}

.pv2-badge-team img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.pv2-badge-role i,
.pv2-badge-role svg {
    color: var(--pv2-cyan);
    font-size: 14px;
}

.pv2-badge-country {
    color: #e2e8f0;
}

.pv2-country-flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.pv2-meta-divider {
    display: inline-block;
    width: 1px;
    height: 13px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

/* Action Buttons (Bookmark & Share) */
.pv2-action-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pv2-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(14, 30, 52, 0.8);
    border: 1px solid rgba(64, 225, 254, 0.4);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.pv2-btn-icon:hover {
    background: rgba(64, 225, 254, 0.2);
    color: var(--pv2-cyan);
    box-shadow: 0 0 10px rgba(64, 225, 254, 0.3);
}

.pv2-btn-share {
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(14, 30, 52, 0.8);
    border: 1px solid rgba(64, 225, 254, 0.4);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pv2-btn-share:hover {
    background: rgba(64, 225, 254, 0.2);
    color: var(--pv2-cyan);
    box-shadow: 0 0 10px rgba(64, 225, 254, 0.3);
}

/* Header Filters Bar - Full Width */
.pv2-header-filters-bar {
    display: flex;
    align-items: center;
    justify-content: stretch;
    gap: 10px;
    margin-bottom: 1.25rem;
    width: 100%;
}

.pv2-select-wrap,
.pv2-date-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.pv2-input-dropdown,
.pv2-select-dropdown,
.pv2-daterange-picker {
    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;
    outline: none;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
}

.pv2-input-dropdown::placeholder,
.pv2-select-dropdown::placeholder,
.pv2-daterange-picker::placeholder,
.pv2-date-wrap input::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
}

.pv2-select-wrap .pv2-select-dropdown {
    padding-right: 32px;
    width: 100%;
}

.pv2-date-wrap .pv2-input-dropdown,
.pv2-date-wrap .pv2-daterange-picker {
    padding-right: 34px !important;
    width: 100%;
}

.pv2-select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #2fe0fc;
    font-size: 11px;
    pointer-events: none;
    transition: transform 0.25s ease, color 0.25s ease;
}

.pv2-date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #2fe0fc;
    font-size: 13px;
    pointer-events: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.pv2-date-wrap:hover .pv2-date-icon,
.pv2-date-wrap:focus-within .pv2-date-icon {
    color: #5dedff;
    transform: translateY(-50%) scale(1.1);
}

.pv2-select-wrap.is-open .pv2-select-icon,
.pv2-select-wrap:focus-within .pv2-select-icon {
    transform: translateY(-50%) rotate(180deg);
    color: #5dedff;
}

.pv2-date-wrap:hover .pv2-input-dropdown,
.pv2-date-wrap:hover .pv2-daterange-picker,
.pv2-select-wrap:hover .pv2-select-dropdown {
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.pv2-input-dropdown:focus,
.pv2-select-dropdown:focus,
.pv2-daterange-picker:focus,
.pv2-date-wrap:focus-within .pv2-daterange-picker {
    border-color: var(--pv2-cyan);
    box-shadow: 0 0 10px rgba(64, 225, 254, 0.35);
    background: #0d1a2d;
}

.pv2-btn-apply {
    background: var(--pv2-cyan);
    color: #000000;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 0 20px;
    height: 36px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

.pv2-btn-apply:hover {
    background: #5dedff;
    box-shadow: 0 0 12px rgba(64, 225, 254, 0.6);
}

/* Daterangepicker Clear & Apply buttons regular font */
.daterangepicker .drp-buttons .btn,
.daterangepicker .drp-buttons .applyBtn,
.daterangepicker .drp-buttons .cancelBtn {
    font-weight: 500 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Performance Stats Grid */
.pv2-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pv2-stats-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

@media (max-width: 768px) {
    .pv2-stats-row {
        flex-wrap: wrap;
    }
}

.pv2-stat-card {
    flex: 1;
    min-width: 80px;
    background: rgba(14, 28, 50, 0.7);
    border: 1px solid rgba(64, 225, 254, 0.15);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* No hover state on stat cards */
.pv2-stat-card:hover {
    background: rgba(14, 28, 50, 0.7);
    border-color: rgba(64, 225, 254, 0.15);
}

.pv2-stat-card.is-ranking {
    flex: 1.6;
    min-width: 135px;
    border: 1.5px solid var(--pv2-cyan);
    box-shadow: 0 0 10px rgba(64, 225, 254, 0.25);
    background: rgba(14, 38, 68, 0.85);
}

.pv2-stat-card.is-ranking:hover {
    background: rgba(14, 38, 68, 0.85);
    border-color: var(--pv2-cyan);
}

.pv2-stat-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 4px;
}

.pv2-stat-lbl {
    font-size: 10px;
    font-weight: 700;
    color: var(--pv2-cyan);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Personal Information Card */
.pv2-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

@media (max-width: 991px) {
    .pv2-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pv2-info-grid {
        grid-template-columns: 1fr;
    }
}

.pv2-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pv2-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pv2-info-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--pv2-cyan);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pv2-info-value {
    font-size: 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pv2-info-value a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.pv2-info-value a:hover {
    color: var(--pv2-cyan);
}

.pv2-flag-img {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

.pv2-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pv2-social-link {
    color: #cbd5e1;
    font-size: 16px;
    transition: all 0.2s;
}

.pv2-social-link:hover {
    color: var(--pv2-cyan);
    transform: translateY(-2px);
}

.pv2-signatures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 140px;
}

.pv2-sig-hero-link {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid var(--pv2-cyan);
    transition: all 0.2s ease;
    box-shadow: 0 0 6px rgba(64, 225, 254, 0.2);
}

.pv2-sig-hero-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(64, 225, 254, 0.6);
    border-color: #ffffff;
}

.pv2-sig-hero-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cyber Tables Styling */
.pv2-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.pv2-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    color: #ffffff;
}

.pv2-table thead th {
    padding: 12px 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--pv2-cyan);
    text-transform: uppercase;
    border-bottom: 1.5px solid rgba(64, 225, 254, 0.3);
    white-space: nowrap;
    background: transparent;
}

.pv2-table tbody tr {
    transition: background 0.15s ease;
    cursor: pointer;
}

.pv2-table tbody tr:hover {
    background: rgba(64, 225, 254, 0.08);
}

.pv2-table tbody td {
    padding: 12px 14px;
    font-size: 13px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(64, 225, 254, 0.1);
    white-space: nowrap;
}

.pv2-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Specific Cell Styles */
.pv2-cell-no {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #ffffff;
    width: 50px;
}

.pv2-hero-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--pv2-cyan);
    object-fit: cover;
}

.pv2-hero-name {
    font-weight: 500;
    color: #ffffff;
}

.pv2-winrate-badge {
    font-weight: 500;
}

.pv2-winrate-badge.is-win {
    color: #10b981;
}

.pv2-winrate-badge.is-loss {
    color: #ff4d6d;
}

.pv2-arrow-link {
    color: var(--pv2-cyan);
    font-size: 12px;
    text-decoration: none;
    transition: transform 0.2s;
    display: inline-block;
}

.pv2-arrow-link:hover {
    transform: translateX(3px);
    color: #ffffff;
}

/* Matches Result Styles */
.pv2-match-date {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
}

.pv2-match-time {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    color: #8fa3b8;
}

.pv2-match-result-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    max-width: 100%;
}

.pv2-match-team {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 140px;
    min-width: 110px;
}

.pv2-match-team.pv2-team-1,
.pv2-team-1 {
    justify-content: flex-start !important;
    text-align: left !important;
}

.pv2-match-team.pv2-team-2,
.pv2-team-2 {
    justify-content: flex-end !important;
    text-align: right !important;
}

.pv2-team-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pv2-team-icon-sm {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.pv2-team-title {
    font-weight: 500;
    font-size: 13px;
    color: #ffffff;
}

.pv2-team-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
}

.pv2-team-link:hover .pv2-team-title {
    color: var(--pv2-cyan);
}

.pv2-match-score-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 13px;
}

.pv2-score-num.is-win {
    color: #10b981;
}

.pv2-score-num.is-loss {
    color: #ff4d6d;
}

.pv2-match-score-pill {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 4px;
    flex-shrink: 0;
    min-width: 54px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 12.5px;
}

/* Pagination bar */
.pv2-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    font-size: 12px;
    color: #8fa3b8;
    flex-wrap: wrap;
    gap: 10px;
}

.pv2-pagination-btns {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Multi-select Tournament Filter Dropdown */
.pv2-multi-select-wrap {
    position: relative;
    display: inline-block;
}

.pv2-multi-select-btn {
    background: rgba(10, 22, 40, 0.9);
    border: 1px solid rgba(64, 225, 254, 0.35);
    color: #ffffff;
    font-size: 13px;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.pv2-multi-select-btn i.fa-chevron-down {
    transition: transform 0.25s ease, color 0.25s ease;
    color: #2fe0fc;
    font-size: 11px;
}

.pv2-multi-select-wrap.is-open .pv2-multi-select-btn i.fa-chevron-down,
.pv2-multi-select-btn[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
    color: #5dedff;
}

.pv2-multi-select-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #08101e;
    border: 1px solid var(--pv2-cyan);
    border-radius: 8px;
    padding: 10px;
    width: 260px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    display: none;
}

.pv2-multi-select-dropdown.show {
    display: block;
}

.pv2-multi-select-actions {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(64, 225, 254, 0.2);
    font-size: 11px;
}

.pv2-multi-select-actions button {
    background: none;
    border: none;
    color: var(--pv2-cyan);
    cursor: pointer;
    font-weight: 600;
    padding: 2px 4px;
}

.pv2-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #ffffff;
    padding: 4px 0;
    cursor: pointer;
}

.pv2-checkbox-label input[type="checkbox"] {
    accent-color: var(--pv2-cyan);
    cursor: pointer;
}

/* Toast Alert */
.pv2-toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #08101e;
    border: 1px solid var(--pv2-cyan);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(64, 225, 254, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    z-index: 99999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pv2-toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.pv2-toast-notification i {
    color: var(--pv2-cyan);
    font-size: 16px;
}

.pv2-toast-notification.is-error {
    border-color: #ff5c6c;
    box-shadow: 0 0 20px rgba(255, 92, 108, 0.4);
}

.pv2-toast-notification.is-error i {
    color: #ff5c6c;
}

/* ==========================================================================
   SIDEBAR & BACK BUTTON (MATCHING EVENT DETAIL V2)
   ========================================================================== */
.td-v2-back-events {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    margin-bottom: 24px;
    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;
}

@media (max-width: 991px) {
    .td-v2-sidebar-wrapper .td-v2-back-events {
        display: flex !important;
        margin-bottom: 20px !important;
    }
}

/* ==========================================================================
   DETAIL PLAYERS V2 - SIDEBAR STICKY, TOGGLE HIDE & RESPONSIVE BACKGROUND
   ========================================================================== */
/* Ensure all ancestors remain visible without scroll-container clipping */
html, body {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

#wrapper,
.content-wrapper,
.pv2-detail-container,
.pv2-detail-container .container-fluid,
.pv2-detail-container .row {
    overflow: visible !important;
}

@media (min-width: 992px) {
    /* Desktop Sidebar Toggle Handle seamlessly attached to sidebar nav right edge */
    .pv2-detail-container .td-v2-sidebar-toggle-handle {
        display: flex !important;
        position: absolute !important;
        top: 18px !important;
        left: calc(100% - 1.5rem - 1px) !important;
        right: auto !important;
        width: 24px !important;
        height: 36px !important;
        z-index: 105 !important;
    }

    /* Sticky Sidebar Column */
    .pv2-detail-container .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;
        overflow: visible !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding-top: 0 !important;
    }

    /* Inner Navigation Card */
    .pv2-detail-container .td-v2-sidebar-nav {
        position: relative !important;
        top: 0 !important;
        margin-top: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - 100px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        background: linear-gradient(180deg, rgba(14, 34, 61, 0.94) 0%, rgba(8, 19, 36, 0.98) 100%) !important;
        border: 1px solid rgba(64, 225, 254, 0.22) !important;
        border-radius: 12px !important;
        padding: 18px 14px !important;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), inset 0 0 20px rgba(64, 225, 254, 0.04) !important;
    }

    /* Slim scrollbar for sidebar nav */
    .pv2-detail-container .td-v2-sidebar-nav::-webkit-scrollbar {
        width: 4px;
    }
    .pv2-detail-container .td-v2-sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(64, 225, 254, 0.3);
        border-radius: 4px;
    }

    body.light .pv2-detail-container .td-v2-sidebar-nav,
    .light .pv2-detail-container .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 .pv2-detail-container .td-v2-sidebar-nav::-webkit-scrollbar-thumb,
    .light .pv2-detail-container .td-v2-sidebar-nav::-webkit-scrollbar-thumb {
        background: #cbd5e1 !important;
    }
}

@media (max-width: 991px) {
    .td-v2-container.pv2-detail-container .container-fluid {
        padding-top: 20px !important;
        padding-left: 40px !important;
        padding-right: 20px !important;
    }

    .pv2-detail-container .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: linear-gradient(180deg, #0e223d 0%, #081324 100%) !important;
        border: 1px solid rgba(46, 211, 248, 0.35) !important;
        border-left: none !important;
        border-top-right-radius: 18px !important;
        border-bottom-right-radius: 18px !important;
        padding: 1.5rem 1.25rem !important;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.85) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }

    body.light .pv2-detail-container .td-v2-sidebar-wrapper,
    .light .pv2-detail-container .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;
    }

    .pv2-detail-container .td-v2-sidebar-nav {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        position: static !important;
    }
}

/* ==========================================================================
   LIGHT MODE: PLAYER DETAILS V2 CARDS & CONTENT
   ========================================================================== */
body.light .pv2-detail-container,
.light .pv2-detail-container {
    color: #0f172a !important;
}

body.light .pv2-card,
.light .pv2-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

body.light .pv2-card-title,
.light .pv2-card-title {
    color: #0f172a !important;
}

body.light .pv2-photo-box,
.light .pv2-photo-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

body.light .pv2-player-ign,
.light .pv2-player-ign {
    color: #0f172a !important;
}

body.light .pv2-badge-team,
body.light .pv2-badge-role,
body.light .pv2-badge-country,
.light .pv2-badge-team,
.light .pv2-badge-role,
.light .pv2-badge-country {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

body.light .pv2-badge-team span,
body.light .pv2-badge-role span,
body.light .pv2-badge-country span,
.light .pv2-badge-team span,
.light .pv2-badge-role span,
.light .pv2-badge-country span {
    color: #334155 !important;
}

body.light .pv2-btn-icon,
body.light .pv2-btn-share,
.light .pv2-btn-icon,
.light .pv2-btn-share {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

body.light .pv2-input-dropdown,
body.light .pv2-select-dropdown,
body.light .pv2-daterange-picker,
.light .pv2-input-dropdown,
.light .pv2-select-dropdown,
.light .pv2-daterange-picker {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.light .pv2-input-dropdown::placeholder,
body.light .pv2-select-dropdown::placeholder,
body.light .pv2-daterange-picker::placeholder,
body.light .pv2-date-wrap input::placeholder,
.light .pv2-input-dropdown::placeholder,
.light .pv2-select-dropdown::placeholder,
.light .pv2-daterange-picker::placeholder,
.light .pv2-date-wrap input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

body.light .pv2-select-dropdown option,
.light .pv2-select-dropdown option {
    background: #ffffff !important;
    color: #0f172a !important;
}

body.light .pv2-date-icon,
body.light .pv2-select-icon,
.light .pv2-date-icon,
.light .pv2-select-icon {
    color: #64748b !important;
}

/* Multi-select Tournament Filter Dropdown */
body.light .pv2-multi-select-btn,
.light .pv2-multi-select-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.light .pv2-multi-select-btn i.fa-chevron-down,
.light .pv2-multi-select-btn i.fa-chevron-down {
    color: #0284c7 !important;
}

body.light .pv2-multi-select-dropdown,
.light .pv2-multi-select-dropdown {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

body.light .pv2-multi-select-actions,
.light .pv2-multi-select-actions {
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light .pv2-multi-select-actions button,
.light .pv2-multi-select-actions button {
    color: #0284c7 !important;
}

body.light .pv2-multi-select-dropdown .pv2-checkbox-label,
.light .pv2-multi-select-dropdown .pv2-checkbox-label {
    color: #334155 !important;
}

/* Stat KPI Cards on Player Detail */
body.light .pv2-stat-card,
.light .pv2-stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.light .pv2-stat-card:hover,
.light .pv2-stat-card:hover {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body.light .pv2-stat-card.is-ranking,
.light .pv2-stat-card.is-ranking {
    border: 1.5px solid #0284c7 !important;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.15) !important;
    background: #f0f9ff !important;
}

body.light .pv2-stat-card.is-ranking:hover,
.light .pv2-stat-card.is-ranking:hover {
    background: #f0f9ff !important;
    border-color: #0284c7 !important;
}

body.light .pv2-stat-num,
.light .pv2-stat-num {
    color: #0f172a !important;
}

body.light .pv2-stat-lbl,
.light .pv2-stat-lbl {
    color: #64748b !important;
}

/* Personal Info Items */
body.light .pv2-info-label,
.light .pv2-info-label {
    color: #64748b !important;
}

body.light .pv2-info-value,
body.light .pv2-info-value a,
.light .pv2-info-value,
.light .pv2-info-value a {
    color: #0f172a !important;
}

/* Detail Tables */
body.light .pv2-table thead th,
.light .pv2-table thead th {
    background: #f8fafc !important;
    color: #1e293b !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
}

body.light .pv2-table tbody tr,
.light .pv2-table tbody tr {
    border-bottom: 1px solid #f1f5f9 !important;
}

body.light .pv2-table tbody tr:hover,
.light .pv2-table tbody tr:hover {
    background: #f8fafc !important;
}

body.light .pv2-table tbody td,
.light .pv2-table tbody td {
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light .pv2-cell-no,
.light .pv2-cell-no {
    color: #0f172a !important;
}

body.light .pv2-match-date,
.light .pv2-match-date {
    color: #0f172a !important;
}

body.light .pv2-match-time,
.light .pv2-match-time {
    color: #64748b !important;
}

body.light .pv2-team-title,
.light .pv2-team-title {
    color: #0f172a !important;
}

body.light .pv2-match-score-pill,
.light .pv2-match-score-pill {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.light .pv2-pagination-bar,
.light .pv2-pagination-bar {
    color: #64748b !important;
}

/* Ensure PLAYERS title text is explicitly black (#000000) in light mode */
body.light .players-section .ev2-page-title,
.light .players-section .ev2-page-title,
body.light .ev2-page-title,
.light .ev2-page-title {
    color: #000000 !important;
}

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

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

body.light .players-section .td-v2-section-title,
.light .players-section .td-v2-section-title,
body.light .pv2-card-header .td-v2-section-title,
.light .pv2-card-header .td-v2-section-title {
    color: #000000 !important;
}

/* ==========================================================================
   ROLE ACCORDIONS FOR HEROES (PER ROLE) TAB
   ========================================================================== */
.pv2-role-accordions-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.pv2-role-accordion {
    background: #0d1b2a;
    border: 1px solid rgba(48, 75, 102, 0.45);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pv2-role-accordion:hover {
    border-color: rgba(64, 225, 254, 0.45);
}

.pv2-role-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    background: rgba(15, 27, 40, 0.85);
    transition: background 0.2s ease;
}

.pv2-role-acc-header:hover {
    background: rgba(22, 38, 56, 0.95);
}

.pv2-role-acc-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pv2-role-acc-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
}

.pv2-role-acc-badge {
    font-size: 12px;
    font-weight: 500;
    color: #40e1fe;
    background: rgba(64, 225, 254, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(64, 225, 254, 0.25);
}

.pv2-role-acc-badge.is-empty {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.18);
}

.pv2-role-acc-toggle-btn {
    background: transparent;
    border: none;
    color: #40e1fe;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
}

.pv2-role-acc-chevron {
    font-size: 13px;
    color: #40e1fe;
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    transform: rotate(180deg);
}

.pv2-role-accordion.collapsed .pv2-role-acc-chevron {
    transform: rotate(0deg);
}

.pv2-role-acc-header:hover .pv2-role-acc-chevron,
.pv2-role-acc-toggle-btn:hover .pv2-role-acc-chevron {
    color: #ffffff;
}

.pv2-role-acc-body {
    padding: 16px 20px 20px;
    background: #09131d;
    border-top: 1px solid rgba(48, 75, 102, 0.25);
}

.pv2-role-accordion.collapsed .pv2-role-acc-body {
    display: none;
}

/* Inner Box Container Matching User's Rough Sketch */
.pv2-role-acc-inner-box {
    border: 1px solid rgba(48, 75, 102, 0.45);
    border-radius: 6px;
    background: rgba(11, 21, 32, 0.6);
    padding: 16px;
}

.pv2-role-empty-cell {
    padding: 24px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13.5px;
    font-style: italic;
}

.pv2-role-table-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.pv2-role-hero-table {
    width: 100%;
}

.pv2-role-drafts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

/* Light Mode Overrides for Role Accordions */
body.light .pv2-role-accordion,
.light .pv2-role-accordion,
body.light-mode .pv2-role-accordion,
[data-theme="light"] .pv2-role-accordion {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light .pv2-role-acc-header,
.light .pv2-role-acc-header,
body.light-mode .pv2-role-acc-header,
[data-theme="light"] .pv2-role-acc-header {
    background: #f8fafc !important;
}

body.light .pv2-role-acc-header:hover,
.light .pv2-role-acc-header:hover,
body.light-mode .pv2-role-acc-header:hover,
[data-theme="light"] .pv2-role-acc-header:hover {
    background: #f1f5f9 !important;
}

body.light .pv2-role-acc-title,
.light .pv2-role-acc-title,
body.light-mode .pv2-role-acc-title,
[data-theme="light"] .pv2-role-acc-title {
    color: #0f172a !important;
}

body.light .pv2-role-acc-body,
.light .pv2-role-acc-body,
body.light-mode .pv2-role-acc-body,
[data-theme="light"] .pv2-role-acc-body {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

body.light .pv2-role-acc-inner-box,
.light .pv2-role-acc-inner-box,
body.light-mode .pv2-role-acc-inner-box,
[data-theme="light"] .pv2-role-acc-inner-box {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
}

body.light .pv2-role-acc-toggle-btn,
.light .pv2-role-acc-toggle-btn,
body.light-mode .pv2-role-acc-toggle-btn,
[data-theme="light"] .pv2-role-acc-toggle-btn {
    color: #0284c7 !important;
}

body.light .pv2-role-acc-badge,
.light .pv2-role-acc-badge,
body.light-mode .pv2-role-acc-badge,
[data-theme="light"] .pv2-role-acc-badge {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
}

/* ==========================================================================
   UNIFIED HERO TABLES STYLING (MATCHING TOP 10 PLAYERS TABLE STYLE)
   ========================================================================== */
.pv2-pool-card .td-v2-teams-table-wrap,
.pv2-role-acc-inner-box .td-v2-teams-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 6px;
    background: transparent;
}

.pv2-pool-card .td-v2-teams-table,
.pv2-role-acc-inner-box .td-v2-teams-table {
    width: 100%;
    margin-bottom: 0;
}

.pv2-pool-card .td-v2-teams-table thead th,
.pv2-role-acc-inner-box .td-v2-teams-table thead th {
    background: #2D3032 !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: 0.2px;
}

body.light .pv2-pool-card .td-v2-teams-table thead th,
.light .pv2-pool-card .td-v2-teams-table thead th,
body.light-mode .pv2-pool-card .td-v2-teams-table thead th,
[data-theme="light"] .pv2-pool-card .td-v2-teams-table thead th,
body.light .pv2-role-acc-inner-box .td-v2-teams-table thead th,
.light .pv2-role-acc-inner-box .td-v2-teams-table thead th,
body.light-mode .pv2-role-acc-inner-box .td-v2-teams-table thead th,
[data-theme="light"] .pv2-role-acc-inner-box .td-v2-teams-table thead th {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
}

.pv2-pool-card .td-v2-teams-table tbody tr,
.pv2-role-acc-inner-box .td-v2-teams-table tbody tr {
    height: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
    transition: background 0.15s ease;
}

body.light .pv2-pool-card .td-v2-teams-table tbody tr,
.light .pv2-pool-card .td-v2-teams-table tbody tr,
body.light-mode .pv2-pool-card .td-v2-teams-table tbody tr,
[data-theme="light"] .pv2-pool-card .td-v2-teams-table tbody tr,
body.light .pv2-role-acc-inner-box .td-v2-teams-table tbody tr,
.light .pv2-role-acc-inner-box .td-v2-teams-table tbody tr,
body.light-mode .pv2-role-acc-inner-box .td-v2-teams-table tbody tr,
[data-theme="light"] .pv2-role-acc-inner-box .td-v2-teams-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.pv2-pool-card .td-v2-teams-table tbody tr:hover,
.pv2-role-acc-inner-box .td-v2-teams-table tbody tr:hover {
    background: rgba(45, 48, 50, 0.45) !important;
}

body.light .pv2-pool-card .td-v2-teams-table tbody tr:hover,
.light .pv2-pool-card .td-v2-teams-table tbody tr:hover,
body.light-mode .pv2-pool-card .td-v2-teams-table tbody tr:hover,
[data-theme="light"] .pv2-pool-card .td-v2-teams-table tbody tr:hover,
body.light .pv2-role-acc-inner-box .td-v2-teams-table tbody tr:hover,
.light .pv2-role-acc-inner-box .td-v2-teams-table tbody tr:hover,
body.light-mode .pv2-role-acc-inner-box .td-v2-teams-table tbody tr:hover,
[data-theme="light"] .pv2-role-acc-inner-box .td-v2-teams-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}

