/* GLOBAL DARK THEME WITH TEXTURE */
.dispatchers-container {
    display: flex;
    height: 100%;
    width: 100%;
    background-color: #0f1115;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(20, 25, 35, 1) 0%, rgba(10, 12, 16, 1) 100%);
    font-family: 'Inter', sans-serif;
    color: #e5e7eb;
    overflow: hidden;
}

.dota-view {
    display: flex;
    flex-direction: column;
    height: 100%; 
    width: 100%;
    background-color: #0f1115;
    background-image: radial-gradient(circle at 50% 50%, #161b22 0%, #0b0d10 100%);
    overflow: hidden; 
    position: relative;
}

.dota-heroes-area {
    flex: 1; 
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px;
    overflow-y: auto; 
    min-height: 0; 
}/* NEW TOP BAR */
.perf-top-bar {
    height: 80px;
    width: 100%;
    background: #0f1115;
    border-bottom: 1px solid #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    gap: 20px;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.dota-heroes-area {
    flex: 1; 
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow-y: auto; 
    min-height: 0; 
    background: #0f1115;
}

.category-row {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid #1f2937;
    height: auto; 
    min-height: 100px;
    flex-shrink: 0;
    overflow: hidden;
}

.col-header {
    width: 40px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 14px;
    font-weight: 900;
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #111827;
    border-left: 1px solid #374151;
    text-align: center;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset -4px 0 10px rgba(0,0,0,0.5);
    z-index: 10;
}

.col-header.type-oo { color: #f87171; border-left: 3px solid #991b1b; } 
.col-header.type-loo { color: #60a5fa; border-left: 3px solid #1e3a8a; } 
.col-header.type-hybrid { color: #34d399; border-left: 3px solid #064e3b; } 

.cards-grid.horizontal-scroll {
    flex: 1; 
    width: 100%;
    max-width: 100%;
    
    display: grid;
    grid-auto-flow: column; 
    
    grid-auto-columns: max-content; 
    justify-content: start; 
    align-content: center; 
    
    gap: 8px; 
    padding: 10px 20px; 
    
    overflow-x: auto;
    overflow-y: hidden;
}

.cards-grid.rows-1 { grid-template-rows: 90px; }
.cards-grid.rows-2 { grid-template-rows: repeat(2, 90px); }
.cards-grid.rows-3 { grid-template-rows: repeat(3, 90px); }

.dota-card-mini {
    width: 72px;   
    height: 90px; 
    position: relative;
    cursor: pointer;
    background: #1f2937;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    transition: all 0.2s;
    overflow: hidden;
}

.dota-card-name {
    font-size: 8px; 
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dota-rating-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    font-size: 9px;
    font-weight: 900;
    color: #000 !important;
    text-shadow: none;
    z-index: 5;
    background: rgba(255,255,255,0.8);
    padding: 0 2px;
    border-radius: 2px;
}

.perf-bottom-bar {
    height: 70px;
    background: #0f1115;
    border-top: 1px solid #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    flex-shrink: 0;
    z-index: 50;
    overflow-x: auto;
}

.ach-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 6px;
    width: 80px;
    height: 55px;
    cursor: pointer;
    transition: all 0.2s;
}

.ach-btn:hover {
    background: #374151;
    border-color: #9ca3af;
    transform: translateY(-2px);
}

.ach-btn.active {
    background: rgba(0, 144, 136, 0.15);
    border-color: #009088;
    box-shadow: 0 0 10px rgba(0, 144, 136, 0.3);
}

.ach-icon { font-size: 18px; margin-bottom: 2px; }
.ach-lbl { font-size: 8px; font-weight: 700; text-transform: uppercase; color: #9ca3af; text-align: center; line-height: 1; }
.ach-btn.active .ach-lbl { color: #fff; }

.dota-card-mini:hover {
    transform: scale(1.15);
    z-index: 20;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    border-color: #9ca3af;
}

.dota-card-mini.dimmed {
    opacity: 0.15;
    filter: grayscale(100%);
    transform: scale(0.95);
    pointer-events: none;
}

.dota-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.dota-card-mini:hover .dota-card-img {
    filter: brightness(1.1);
}

.dota-card-name-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.6));
    padding: 4px 2px;
    text-align: center;
}

.dota-card-name {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 1px 2px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.dota-rating-badge {
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 11px;
    font-weight: 900;
    color: #000 !important;
    text-shadow: none;
    z-index: 5;
}



.footer-inline-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 5px;
}

.d-filter-btn {
    background: transparent;
    border: 1px solid #4b5563;
    color: #9ca3af;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 2px;
}

.d-filter-btn:hover {
    border-color: #d1d5db;
    color: #e5e7eb;
    background: rgba(255,255,255,0.05);
}

.d-filter-btn.active {
    border-color: #009088;
    color: #fff;
    background: rgba(0, 144, 136, 0.15);
    box-shadow: 0 0 10px rgba(0, 144, 136, 0.25);
}

/* MODAL FOR DETAILS */
.dsp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dsp-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.dsp-modal-content {
    width: 95%;
    max-width: 1400px;
    height: 90%;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 12px;
    position: relative;
    overflow: hidden; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 60;
    transition: all 0.2s;
}

.close-modal-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: rotate(90deg);
}

.fut-gold {
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    border: 1px solid #daa520;
    color: #422a02;
}
.fut-gold .fut-rating { color: #422a02; text-shadow: 0px 1px 0px rgba(255,255,255,0.4); }

.fut-silver {
    background: linear-gradient(135deg, #e0e0e0, #ffffff, #a9a9a9, #dcdcdc);
    border: 1px solid #c0c0c0;
    color: #2c2c2c;
}

.fut-bronze {
    background: linear-gradient(135deg, #cd7f32, #ffcba4, #8b4513, #cd7f32);
    border: 1px solid #a0522d;
    color: #3e2723;
}

.fut-rating-box {
    position: absolute;
    top: 25px;
    left: 15px;
    text-align: center;
    line-height: 1;
}

.fut-rating {
    font-size: 24px;
    font-weight: 900;
    display: block;
}

.fut-pos {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

.fut-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-top: 10px;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.4));
}

.fut-info {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 8px 5px 12px 5px;
    background: rgba(0,0,0,0.15);
}

.fut-name {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.fut-team {
    font-size: 9px;
    font-weight: 600;
    opacity: 0.8;
}

.dispatchers-details-panel {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    position: relative;
    background: #111827; 
}


.stats-container {
    padding: 40px 60px;
    background: #111827;
}

.compact-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 20px;
    border-left: 4px solid #60a5fa;
    padding-left: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.stats-table tr {
    background: rgba(31, 41, 55, 0.6);
    transition: all 0.2s;
}

.stats-table tr:hover {
    background: rgba(55, 65, 81, 0.8);
    transform: translateX(5px);
}

.stats-table td {
    padding: 14px 20px;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.stats-table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    color: #9ca3af;
    font-size: 13px;
    text-transform: uppercase;
}

.stats-table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    text-align: right;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
    font-family: 'Inter', monospace;
}

/* VALUE COLORS */
.val-green { color: #34d399 !important; }
.val-yellow { color: #fbbf24 !important; }
.val-red { color: #f87171 !important; }
.val-blue { color: #60a5fa !important; }
/* NEW HERO STYLES - IMAGE MATCH */
.new-hero-wrapper {
    display: flex;
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, #080c14 0%, #0f1520 50%, #053330 100%);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.new-hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    position: relative;
    z-index: 2;
}

.new-hero-main {
    display: flex;
    align-items: flex-end; 
    padding: 10px 0 0 20px; 
    height: 100%;
}

.new-hero-avatar {
    width: 170px; 
    height: 100%;
    background: transparent;
    border-radius: 0; 
    margin-right: 20px; 
    overflow: visible; 
    flex-shrink: 0;
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    padding-bottom: 0;
}

.new-hero-avatar img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    border-radius: 0; 
    border: 4px solid #fff;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.new-hero-avatar.default-avatar {
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.new-hero-avatar.default-avatar img {
    opacity: 0.6; 
    object-fit: contain;
    transform: scale(1.1); 
}

.new-hero-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    padding-top: 15px; 
    margin-right: 20px;
    padding-bottom: 0;
}

.new-hero-name {
    font-size: 32px; 
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 0;
}

.new-hero-header-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.new-hero-tags {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tag-company {
    border: 1px solid #4b5563;
    padding: 4px 10px;
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}

.tag-team {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.new-hero-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.new-hero-logo img.logo-small {
    height: 35px !important;
}
/* STATS BAR AT BOTTOM */
/* INLINE STATS & BUTTON */
.new-hero-stats-inline {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

.nh-stat-item {
    display: flex;
    flex-direction: column;
}

.nh-label-inline {
    font-size: 11px;
    color: #6b7280;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.nh-value-inline {
    font-size: 18px;
    color: #e5e7eb;
    font-weight: 800;
    line-height: 1;
}

.nh-sep-inline {
    width: 1px;
    height: 30px;
    background: #374151;
}

/* Inline Compare Button */
.hero-compare-inline {
    margin-top: 20px;
}

.btn-compare-inline {
    background: transparent;
    border: 1px solid #4b5563;
    color: #9ca3af;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.btn-compare-inline:hover {
    border-color: #009088;
    color: #fff;
    background: rgba(0, 144, 136, 0.1);
}

.btn-compare:hover {
    border-color: #009088;
    color: #fff;
    background: rgba(0, 144, 136, 0.1);
    box-shadow: 0 0 15px rgba(0, 144, 136, 0.3);
}

.icon-search { font-size: 14px; filter: grayscale(1); }

/* --- RIGHT PANEL STYLES (MISSING) --- */

.new-hero-right {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 35%;
    
    background: #1f2937; 
    
    transform: skewX(-15deg) translateX(100%); 
    transform-origin: top;
    margin-right: -80px;
    
    border-left: 4px solid #009088;
    
    display: flex;
    align-items: center; 
    justify-content: center;
    z-index: 5;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.new-hero-right-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) skewX(15deg);
    
    height: 220%; 
    width: auto;
    
    opacity: 0; 
    pointer-events: none;
    z-index: 1;
    
    filter: brightness(0) invert(1);
}

.new-hero-right-bg-logo.bg-logo-small {
    height: 50% !important; 
}

.vert-line {
    position: absolute;
    width: 8px; 
    background: #151921; 
    bottom: 0; 
    opacity: 0.6;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    z-index: 2; 
}

.vl-1 { left: 15%; height: 40%; width: 12px; opacity: 0.8; }
.vl-2 { left: 30%; height: 85%; width: 6px; }
.vl-3 { left: 45%; height: 25%; width: 10px; }
.vl-4 { left: 60%; height: 60%; width: 5px; opacity: 0.9; }
.vl-5 { left: 75%; height: 15%; width: 8px; }
.vl-6 { left: 88%; height: 45%; width: 15px; opacity: 0.5; }

@keyframes shootLinesUp {
    0% { transform: translateY(150%); }
    100% { transform: translateY(0); }
}

@keyframes slideInPanel {
    0% { transform: skewX(-15deg) translateX(100%); opacity: 0; }
    100% { transform: skewX(-15deg) translateX(0); opacity: 1; }
}

@keyframes blendLogo {
    0% { opacity: 0; transform: translate(-50%, -50%) skewX(15deg) scale(1.5); }
    100% { opacity: 0.4; transform: translate(-50%, -50%) skewX(15deg) scale(1); }
}

@keyframes lineShoot {
    0% { transform: translateX(200px) skewX(15deg); opacity: 0; }
    100% { transform: translateX(0) skewX(15deg); opacity: 1; }
}

@keyframes fadeInUpBtn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}


.animate-right-panel {
    animation: slideInPanel 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-right-panel .new-hero-right-bg-logo {
    animation: blendLogo 0.8s ease-out 0.4s forwards; 
}

.animate-right-panel .vert-line {
    animation: shootLinesUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-right-panel .vl-1 { animation-delay: 0.5s; }
.animate-right-panel .vl-2 { animation-delay: 0.6s; }
.animate-right-panel .vl-3 { animation-delay: 0.4s; }
.animate-right-panel .vl-4 { animation-delay: 0.7s; }
.animate-right-panel .vl-5 { animation-delay: 0.55s; }
.animate-right-panel .vl-6 { animation-delay: 0.65s; }

.animate-compare-btn {
    animation: fadeInUpBtn 0.5s ease-out 0.7s forwards;
}
/* COMPACT ALL TIME STATS SYSTEM */
/* FIFA STYLE TIERS */
.color-tier-1 { color: #7f1d1d; }
.bg-tier-1 { background: linear-gradient(90deg, #7f1d1d, #991b1b); }

.color-tier-2 { color: #fb923c; }
.bg-tier-2 { background: linear-gradient(90deg, #c2410c, #fb923c); }

.color-tier-3 { color: #eab308; }
.bg-tier-3 { background: linear-gradient(90deg, #ca8a04, #eab308); }

.color-tier-4 { color: #4ade80; }
.bg-tier-4 { background: linear-gradient(90deg, #16a34a, #4ade80); }

.color-tier-5 { color: #15803d; }
.bg-tier-5 { background: linear-gradient(90deg, #14532d, #166534); box-shadow: none; border: 1px solid #15803d; }

/* MAIN CONTAINER */
.ats-container {
    padding: 30px 40px;
    background: #080a0c;
    border-top: 1px solid #1f2937;
}

.ats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #1f2937;
}

.ats-title {
    font-size: 18px;
    font-weight: 800;
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SUMMARY BOXES */
.ats-total-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid #1f2937;
    border-radius: 8px;
}

.ats-sum-box {
    flex: 1;
    text-align: center;
    border-right: 1px solid #374151;
}
.ats-sum-box:last-child { border-right: none; }

.ats-sum-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ats-sum-val {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

/* GRID LAYOUT */
.ats-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ats-column {
    background: #0f1115;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

.ats-col-title {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 15px;
    border-bottom: 2px solid #1f2937;
    padding-bottom: 10px;
}

/* ITEMS & BARS */
.ats-item {
    position: relative;
    cursor: help;
}

.ats-label-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6px;
}

.ats-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
}

.ats-real-value-preview {
    font-size: 11px;
    color: #d1d5db;
    font-family: 'Inter', monospace;
    font-weight: 500;
}

.ats-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ats-bar-bg {
    flex-grow: 1;
    height: 8px; 
    background: #111827; 
    border: 1px solid #374151;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.ats-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.ats-score-text {
    font-size: 18px;
    font-weight: 900;
    width: 40px;
    text-align: right;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-family: 'Inter', sans-serif;
}

/* HERO CARD & BADGES */
.hero-score-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #111827;
    border: 1px solid #374151;
    margin-right: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.hero-score-val {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.hero-score-label {
    display: flex;
    flex-direction: column;
}
.hsl-top { font-size: 10px; text-transform: uppercase; color: #9ca3af; font-weight: 700; }
.hsl-bot { font-size: 11px; font-weight: 700; text-transform: uppercase; }

.score-gold { 
    border-color: #fbbf24; 
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(0,0,0,0)); 
    color: #fbbf24 !important;
}
.score-gold .hero-score-val { color: #fbbf24; text-shadow: 0 0 15px rgba(251, 191, 36, 0.4); }
.score-gold .hsl-bot { color: #fbbf24; }

.score-silver { 
    border-color: #9ca3af; 
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.15), rgba(0,0,0,0)); 
    color: #e5e7eb !important;
}
.score-silver .hero-score-val { color: #e5e7eb; text-shadow: 0 0 15px rgba(229, 231, 235, 0.3); }
.score-silver .hsl-bot { color: #d1d5db; }

.score-bronze { 
    border-color: #cd7f32; 
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(0,0,0,0)); 
    color: #cd7f32 !important;
}
.score-bronze .hero-score-val { color: #cd7f32; text-shadow: 0 0 15px rgba(205, 127, 50, 0.3); }
.score-bronze .hsl-bot { color: #cd7f32; }

.ats-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #0f172a;
    border: 1px solid #374151;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 50;
    font-weight: 600;
}
.ats-item:hover::after { opacity: 1; visibility: visible; }

.hof-badge {
    font-size: 8px;
    font-weight: 900;
    background: #eab308;
    color: #000;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* BEST BADGE STYLE */
.best-badge {
    background: #00ff00; 
    color: #000;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 6px;
    text-transform: uppercase;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    vertical-align: middle;
}

/* LEFT MENU CARD TIERS */
.dispatcher-card {
    border-left: 3px solid transparent; /* Default */
    transition: all 0.2s;
}

.d-card-tier-gold {
    border-left-color: #fbbf24 !important;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), transparent);
}

.d-card-tier-silver {
    border-left-color: #9ca3af !important;
    background: linear-gradient(90deg, rgba(156, 163, 175, 0.1), transparent);
}

.d-card-tier-bronze {
    border-left-color: #cd7f32 !important;
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), transparent);
}
/* SEARCH BAR STYLE */
.search-wrapper {
    width: 100%;
    max-width: 350px;
    position: relative;
    margin-bottom: 5px;
}

.dsp-search-input {
    width: 100%;
    background: #111827;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 20px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.dsp-search-input:focus {
    outline: none;
    border-color: #009088;
    background: #1f2937;
    box-shadow: 0 0 15px rgba(0, 144, 136, 0.25), inset 0 2px 4px rgba(0,0,0,0.5);
}

.dsp-search-input::placeholder {
    color: #4b5563;
    font-weight: 600;
}
/* dsp-select is now deprecated in favor of dsp-control but kept for backup compatibility if needed */
.dsp-select {
    height: 32px;
    background-color: #1f2937;
    color: #e5e7eb;
    border: 1px solid #4b5563;
    padding: 0 25px 0 10px; 
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    outline: none;
    
    color-scheme: dark;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.3rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
}

.dsp-select:focus {
    border-color: #009088;
    background-color: #111827;
}

.dsp-select option {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 8px;
}
/* OVERRIDES FOR MINI CARDS COLORS */
.dota-card-mini.fut-gold {
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.15);
}
.dota-card-mini.fut-gold .dota-rating-badge {
    color: #fbbf24;
}

.dota-card-mini.fut-silver {
    border-color: #9ca3af;
    box-shadow: 0 0 10px rgba(156, 163, 175, 0.15);
}
.dota-card-mini.fut-silver .dota-rating-badge {
    color: #e5e7eb;
}

.dota-card-mini.fut-bronze {
    border-color: #cd7f32;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.15);
}
.dota-card-mini.fut-bronze .dota-rating-badge {
    color: #cd7f32;
}

.dota-card-mini.fut-gold:hover {
    border-color: #fcd34d;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}
/* NEW STATS BAR IN HERO */
.nh-stats-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid #374151;
    border-radius: 4px;
    padding: 8px 20px;
    backdrop-filter: blur(4px);
    width: fit-content;
    min-width: 100%;
    position: relative;
    z-index: 20;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
}

.nh-sb-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nh-sb-label {
    font-size: 9px;
    color: #9ca3af;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.nh-sb-val {
    font-size: 14px;
    color: #e5e7eb;
    font-weight: 800;
    line-height: 1;
}

.nh-sb-sep {
    width: 1px;
    height: 20px;
    background: #4b5563;
    opacity: 0.5;
}
/* CHART TOOLTIPS OVERLAY */
.chart-tooltip-trigger {
    position: absolute;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    cursor: help;
    z-index: 50;
    /* transparent debug: background: rgba(255,0,0,0.3); */
}

.chart-tooltip-trigger:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid #4b5563;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    z-index: 100;
}
/* UNIFIED FILTER CONTROLS */
.dsp-control {
    background-color: #1f2937;
    color: #e5e7eb;
    border: 1px solid #4b5563;
    padding: 0 10px;
    height: 32px; /* Fixed uniform height */
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.dsp-control:focus {
    border-color: #009088;
    background-color: #111827;
}

input.dsp-control {
    width: 90px;
    text-align: center;
}

/* TIER CHECKBOXES */
.dsp-tiers-group {
    display: flex;
    gap: 5px;
    height: 32px;
    align-items: center;
    background: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 2px;
    padding: 2px;
}

.dsp-tier-check {
    padding: 0 8px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    color: #6b7280;
    transition: all 0.2s;
}

.dsp-tier-check:hover { color: #d1d5db; background: rgba(255,255,255,0.05); }

.dsp-tier-check.active {
    color: #111827;
    text-shadow: none;
}

/* Active colors matching cards */
.dsp-tier-check.active:nth-child(1) { background: #fbbf24; } /* Gold */
.dsp-tier-check.active:nth-child(2) { background: #e5e7eb; } /* Silver */
.dsp-tier-check.active:nth-child(3) { background: #cd7f32; } /* Bronze */
/* --- SCROLLBAR REMOVAL IN MODAL ONLY --- */
.dsp-modal-content::-webkit-scrollbar,
.dispatchers-details-panel::-webkit-scrollbar {
    display: none;
}
.dsp-modal-content, .dispatchers-details-panel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- FOOTER LAYOUT --- */
.dota-footer {
    display: flex;
    justify-content: center; /* Centered content */
    align-items: center;
    padding: 0 30px;
    gap: 5px; /* Tighter gap to bring filters closer to search */
}

.footer-left, .footer-center, .footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-center {
    flex: 0 0 auto; 
    display: flex;
    justify-content: center;
    margin: 0 15px; 
}

/* CENTERED SEARCH */
.dsp-search-input {
    width: 350px;
    height: 40px;
    text-align: center;
    background: #111827;
    border: 1px solid #374151;
    font-size: 13px;
    border-radius: 4px;
}

/* MULTI-SELECT DROPDOWN */
.dsp-multiselect-wrapper {
    position: relative;
    user-select: none;
}

.dsp-multiselect-btn {
    background-color: #1f2937;
    color: #e5e7eb;
    border: 1px solid #4b5563;
    padding: 0 12px;
    height: 38px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    min-width: 140px;
    transition: all 0.2s;
}
.dsp-multiselect-btn:hover { border-color: #9ca3af; background: #28303d; }

.dsp-multiselect-dropdown {
    position: absolute;
    bottom: 110%;
    left: 0;
    width: 200px;
    background: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 4px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    display: none;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}
.dsp-multiselect-dropdown.open { display: block; }

.dsp-multi-option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 12px;
    color: #d1d5db;
    border-radius: 2px;
}
.dsp-multi-option:hover { background: rgba(255,255,255,0.1); }

.dsp-multi-checkbox {
    margin-right: 10px;
    accent-color: #009088;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* ADVANCED FILTER BUTTON & MODAL */
.adv-filter-btn {
    background: linear-gradient(135deg, #374151, #1f2937);
    color: #fff;
    border: 1px solid #4b5563;
    height: 38px;
    padding: 0 16px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.adv-filter-btn:hover { border-color: #009088; background: #28303d; }

.adv-modal-content {
    background: #111827;
    border: 1px solid #374151;
    width: 1100px; /* Much wider */
    max-width: 95vw; /* Fits on screen width */
    max-height: 90vh; /* Fits on screen height */
    overflow-y: auto; /* Scrollable if needed */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 4 columns to reduce vertical height */
.adv-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px;
}

.adv-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.1); 
    padding-right: 15px; 
    border-bottom: none;
    padding-bottom: 0;
}
.adv-input-group:nth-child(4n) {
    border-right: none;
}

.adv-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.adv-inputs-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.adv-input {
    background: #0b0d10;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 8px;
    border-radius: 4px;
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    outline: none;
}
.adv-input:focus { border-color: #009088; }

.adv-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #1f2937;
}

.modal-btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-cancel { background: transparent; border: 1px solid #4b5563; color: #9ca3af; }
.btn-cancel:hover { color: #fff; border-color: #fff; }

.btn-apply { background: #009088; border: 1px solid #009088; color: #fff; box-shadow: 0 4px 10px rgba(0, 144, 136, 0.3); }
.btn-apply:hover { background: #007972; box-shadow: 0 6px 15px rgba(0, 144, 136, 0.5); }

/* TIERS CHECKBOX GROUP STYLES */
.dsp-tiers-group {
    display: flex;
    gap: 4px;
    background: #1f2937;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #374151;
    height: 38px;
}

.dsp-tier-check {
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    color: #6b7280;
    transition: all 0.2s;
    background: transparent;
}
.dsp-tier-check:hover { background: rgba(255,255,255,0.05); color: #9ca3af; }

.dsp-tier-check.active { color: #111827; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
#tier-gold.active { background: #fbbf24; }
#tier-silver.active { background: #e5e7eb; }
#tier-bronze.active { background: #cd7f32; }
.dc-item {
    position: relative;
    transition: all 0.2s;
}

.dc-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0 4px;
    margin: 0 -4px;
}

.dc-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #111827;
    border: 1px solid #4b5563;
    color: #e5e7eb;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: normal; /* Allow text wrapping if long */
    width: max-content;
    max-width: 200px; /* Prevent it from being too wide */
    z-index: 99999; /* Ensure it stays on top of everything */
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0,0,0,1); /* Strong shadow for visibility */
}
/* RATING DIFF INDICATORS */
.card-rating-diff {
    position: absolute;
    top: 2px;
    right: 26px; /* Left of the main rating */
    font-size: 10px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 2px;
}
.diff-pos { color: #34d399; background: rgba(52, 211, 153, 0.1); }
.diff-neg { color: #f87171; background: rgba(248, 113, 113, 0.1); }
.diff-pos-text { color: #34d399; }
.diff-neg-text { color: #f87171; }

.hero-diff-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    border: 1px solid currentColor;
    background: #111827;
}

/* NOTIFICATION TOAST AREA */
.dsp-notification-area {
    position: absolute;
    bottom: 20px;
    right: 30px;
    z-index: 200;
}
.dsp-notification-area.minimized .dsp-toast-card { display: none; }
.dsp-notification-area.minimized .dsp-toast-minimized { display: flex; }
.dsp-toast-minimized { display: none; width: 40px; height: 40px; background: #009088; border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.5); border: 2px solid #fff; animation: bounceIn 0.3s; }

.dsp-toast-card {
    background: #009088;
    color: #fff;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}
.dsp-toast-header {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast-icon { font-size: 18px; }
.toast-text { font-size: 13px; font-weight: 700; line-height: 1.3; flex: 1; }
.toast-close { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 16px; padding: 0; }
.toast-close:hover { color: #fff; }

.toast-see-btn {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: none;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    padding: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
}
.toast-see-btn:hover { background: rgba(0,0,0,0.3); }

@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes bounceIn { from { transform: scale(0); } to { transform: scale(1); } }

/* CHANGES MODAL */


/* Ensure container doesn't overflow */
/* --- NEW CHANGES MODAL DESIGN (FIXED) --- */
/* --- UPDATED CHANGES MODAL (STANDING IMAGE) --- */
.changes-modal-content {
    background: #111827; 
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 25px;
    width: 500px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 50px 100px rgba(0,0,0,0.9);
}

.changes-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1f2937;
    padding: 0 20px; /* No vertical padding, height controls layout */
    border-radius: 8px;
    border: 1px solid #374151;
    margin-bottom: 10px;
    height: 80px; /* Fixed height to allow image to stand */
    overflow: hidden; /* Keeps image inside rounded corners */
}

.change-scores-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.change-score-val {
    font-weight: 800;
    line-height: 1;
}

.change-arrow {
    font-size: 16px;
    opacity: 0.7;
}

/* Wrapper for Name and Image */
.change-identity-wrapper {
    display: flex;
    align-items: center; /* Vertically center the text block */
    height: 100%;
    gap: 15px;
}

.change-text-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
}

.change-name-simple {
    font-size: 14px;
    font-weight: 700;
    color: #e5e7eb;
    text-align: right;
    line-height: 1.2;
}

.change-img-container {
    height: 100%;
    display: flex;
    align-items: flex-end; /* Pushes image to the bottom */
}

.change-photo-standing {
    height: 90%; /* Goes from bottom almost to top */
    width: auto;
    max-width: 100px; /* Prevents extremely wide images */
    object-fit: contain; /* Keeps aspect ratio (no stretching) */
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));
    border-radius: 0; /* No circle/square border */
}


.change-identity-group {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

.change-name-simple {
    font-size: 14px;
    font-weight: 700;
    color: #e5e7eb;
    text-align: right;
}

.change-photo-simple {
    width: 45px;
    height: 45px;
    border-radius: 6px; /* Square with rounded corners */
    object-fit: cover;
    border: 1px solid #4b5563;
}
.changes-title { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 20px; text-align: center; text-transform: uppercase; border-bottom: 1px solid #374151; padding-bottom: 15px; }
.changes-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden; /* FIX: Removes horizontal scroll */
    padding-right: 5px; /* Space for scrollbar */
}

.changes-row:hover { transform: translateX(5px); border-color: #4b5563; }

.change-left-group {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2; /* Text above image */
}

.change-name-block {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}

.change-name-lg {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.change-diff-text {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Standing Image Style */
.change-photo-standing {
    position: absolute;
    bottom: 0;
    right: 20px;
    height: 90%; 
    width: auto;
    max-width: 100px;
    object-fit: contain;
    border-radius: 0; /* No circle */
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.6));
    z-index: 1;
    transition: all 0.2s;
}

.changes-row:hover .change-photo-standing {
    height: 95%; /* Grows slightly on hover */
    filter: drop-shadow(0 0 12px rgba(0,0,0,0.8));
}
.dota-heroes-area {
    align-items: center !important; 
}

.rows-container {
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 98%; 
    align-items: flex-start; 
}
/* Override profile picture border color only in Dispatcher Modal */
#dispatcher-modal-content img {
    border-color: #14b8a6 !important;
}
/* --- ALL STAR FEATURE STYLES --- */

.all-star-trigger {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 2px solid #ffd700;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 8px;
    z-index: 50;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: visible;
}

.all-star-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.star-icon {
    position: absolute;
    top: -35px;
    font-size: 65px;
    color: #ffd700;
    text-shadow: 0 4px 8px rgba(0,0,0,0.6);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    animation: starPulse 2.5s infinite ease-in-out;
}

.star-label {
    font-size: 9px;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1)); }
}

.all-star-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9000; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.all-star-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.all-star-content {
    width: 95%;
    max-width: 1100px;
    height: 85vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.close-star-modal {
    position: absolute;
    top: -15px;
    right: -15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 100;
    transition: color 0.2s;
}
.close-star-modal:hover {
    color: #ffd700;
}

.all-star-header {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 20;
}
.all-star-header h2 {
    font-size: 42px;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(to bottom, #ffd700, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(184, 134, 11, 0.3);
}
.all-star-header p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #9ca3af;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.star-constellation {
    flex: 1;
    position: relative;
}

.constellation-lines {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}
.constellation-lines line {
    stroke: rgba(255, 215, 0, 0.4);
    stroke-width: 3;
}

.star-card-wrapper {
    position: absolute;
    width: 160px; 
    height: 200px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s;
    perspective: 1000px;
}

.top-center   { top: 18%; left: 50%; z-index: 10; }
.mid-left     { top: 48%; left: 20%; z-index: 5; }
.mid-right    { top: 48%; left: 80%; z-index: 5; }
.bottom-left  { top: 82%; left: 35%; z-index: 5; } 
.bottom-right { top: 82%; left: 65%; z-index: 5; } 

.star-category-label {
    text-align: center;
    color: #ffd700;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255,215,0,0.6);
}

.star-card {
    background: linear-gradient(160deg, #1f2937 0%, #000000 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 0; 
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    overflow: hidden;
    transition: all 0.3s ease;
}

.star-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #ffd700;
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.2);
}

.star-card-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 12px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.star-card-img-box {
    width: 100%;
    height: 75%; 
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,215,0,0.3);
}
.star-card-img-box img {
    width: 100%;
    height: 100%;
    border-radius: 0; 
    object-fit: cover;
    border: none;
    box-shadow: none;
}

.top-center .star-card-img-box {
    height: 75%; 
}

.star-card-info {
    height: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #111827;
}
.star-name {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.star-role {
    color: #ffd700;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

#dispatcher-details-modal {
    z-index: 12001 !important;
}

.all-star-profile-glow .dsp-modal-content {
    border: 2px solid #ffd700 !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.1) !important;
    animation: goldPulse 2s infinite ease-in-out;
}

.all-star-badge-modal {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.1); border-color: #ffd700; }
    50% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.7), inset 0 0 30px rgba(255, 215, 0, 0.2); border-color: #fffacd; }
    100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.1); border-color: #ffd700; }
}

.all-star-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 10005;
    background: radial-gradient(circle at 50% 50%, #111827 0%, #000000 100%);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease-in-out; overflow: hidden;
}
.all-star-modal-overlay.active { opacity: 1; }

#all-star-particles {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}

.star-constellation {
    position: relative; width: 100%; height: 100%; z-index: 10;
    transform: scale(0.9);
    transform-origin: center center;
}

.constellation-lines-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5; pointer-events: none;
}
.constellation-line {
    stroke-width: 2; stroke-opacity: 0;
    animation: drawLine 1s ease-out forwards;
}
.line-app-green {
    stroke: #14b8a6; filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.6));
}
@keyframes drawLine { to { stroke-dashoffset: 0; stroke-opacity: 0.6; } }

.star-card-wrapper {
    position: absolute;
    width: 170px; 
    height: 255px; 
    transform: translate(-50%, -50%);
    perspective: 1000px;
}

.pos-top-center { top: 20%; left: 50%; z-index: 30; } 
.pos-mid-left   { top: 42%; left: 28%; z-index: 20; } 
.pos-mid-right  { top: 42%; left: 72%; z-index: 20; } 
.pos-bot-left   { top: 65%; left: 38%; z-index: 10; } 
.pos-bot-right  { top: 65%; left: 62%; z-index: 10; } 

.pos-mvd { 
    top: 20%; right: 10%; left: auto; 
    transform: translate(0, 0) scale(1.2); 
    z-index: 50;
    width: 180px; height: 260px; 
}


.star-card {
    width: 100%; height: 100%;
    border-radius: 0;
    background: #000;
    position: relative; overflow: hidden;
    cursor: pointer; transition: transform 0.3s ease;
    border: 1px solid #14b8a6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.star-card::after {
    content: ''; position: absolute; inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none; z-index: 50;
    border-radius: 0;
}

.star-card:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    border-color: #14b8a6;
    z-index: 100;
}

.star-card.card-mvd {
    background: linear-gradient(180deg, #422006 0%, #000 100%);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
}
.card-mvd .star-card::after {
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.1) 0%, transparent 40%);
}

.star-card-img-box {
    width: 100%; height: 55%;
    border-bottom: 1px solid #333;
    background: #000;
    position: relative;
}
.star-card-img-box img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card-mvd .star-card-img-box { border-bottom: 1px solid #ffd700; }

.star-corner-rating {
    position: absolute; top: 8px; right: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 800; 
    font-size: 14px; 
    z-index: 10; line-height: 1;
    background: rgba(0,0,0,0.6);
    padding: 4px 6px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}
.card-mvd .star-corner-rating { 
    color: #ffd700; 
    font-size: 14px;
    border: 1px solid rgba(255,215,0,0.4);
    background: rgba(0,0,0,0.8);
}

.star-card-team-logo {
    position: absolute; top: 6px; right: 6px;
    width: 50px; height: 50px; 
    object-fit: contain; 
    z-index: 10; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.9));
}

.star-card-info {
    height: 25%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    background: linear-gradient(180deg, #111827 0%, #000 100%);
}
.star-name {
    color: #fff; font-weight: 800; font-size: 13px;
    text-align: center; margin-bottom: 2px;
    text-transform: uppercase; letter-spacing: 0.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 95%;
}
.star-category {
    font-size: 10px; color: #14b8a6; text-transform: uppercase; font-weight: 800; letter-spacing: 1px;
}
.card-mvd .star-category { color: #ffd700; }

@keyframes popIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    80% { transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.card-anim-entry { opacity: 0; animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-mvd { animation-delay: 1.0s; }

.close-star-modal {
    position: absolute; top: 30px; left: 30px;
    background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; z-index: 100; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.close-star-modal:hover { background: #fff; color: #000; }

.game-mode-title {
    position: absolute; bottom: 50px; width: 100%; text-align: center;
    font-size: 36px; font-weight: 900; color: #fff;
    text-transform: uppercase; letter-spacing: 3px; font-style: italic;
    text-shadow: 0 0 15px rgba(20, 184, 166, 0.6);
    pointer-events: none; z-index: 50;
    opacity: 0; animation: fadeInTitle 0.8s ease-out 1s forwards;
}

@keyframes fadeInTitle { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.pos-top-center { top: 20%; left: 50%; z-index: 30; } 
.pos-mid-left   { top: 42%; left: 28%; z-index: 20; } 
.pos-mid-right  { top: 42%; left: 72%; z-index: 20; } 
.pos-bot-left   { top: 65%; left: 42%; z-index: 10; } 
.pos-bot-right  { top: 65%; left: 58%; z-index: 10; }

.star-top-row {
    position: relative;
    width: 100%; 
    height: 20%;
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    z-index: 20;
    border-bottom: 1px solid #333;
}

.star-corner-logo {
    width: auto; 
    height: 80%;
    object-fit: contain;
    z-index: 25;
}

.star-corner-rating {
    font-size: 24px; 
    font-weight: 900;
    color: #fff;
    text-shadow: none;
    line-height: 1;
    z-index: 25;
}

.star-card-info {
    height: 25%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    background: #000;
}
.star-name {
    color: #fff; font-weight: 800; font-size: 13px;
    text-align: center; margin-bottom: 2px;
    text-transform: uppercase; letter-spacing: 0.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 95%;
}
.star-category {
    font-size: 10px; color: #14b8a6; text-transform: uppercase; font-weight: 800; letter-spacing: 1px;
}
.card-mvd .star-category { color: #ffd700; }

.card-mvd .star-corner-logo { height: 90%; width: auto; }
.card-mvd .star-corner-rating { font-size: 30px; color: #ffd700; text-shadow: 0 0 10px rgba(255,215,0,0.8); }


.mvd-burst-bg {
    position: absolute; top: 50%; left: 50%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, #ffffff 0%, rgba(255, 215, 0, 0.4) 20%, rgba(255, 215, 0, 0) 60%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 9990;
    animation: megaFlash 3s ease-out 0.2s forwards;
}

@keyframes megaFlash {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    10% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } 
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.mvp-anim-final-pos {
    position: absolute;
    top: 20%; left: 50%; 
    transform: translate(-50%, -50%);
    z-index: 10000;
    width: 170px; height: 255px; 
    perspective: 1000px;
    opacity: 0; 
    animation: mvpMoveToTopSequence 5s cubic-bezier(0.19, 1, 0.22, 1) 0.5s forwards;
}

@keyframes mvpMoveToTopSequence {
    0% { 
        top: 50%; left: 50%; 
        transform: translate(-50%, -50%) scale(0); 
        opacity: 0;
    }
    15% { opacity: 1; }
    30% { 
        top: 50%; left: 50%; 
        transform: translate(-50%, -50%) scale(1.5); 
        opacity: 1;
    }
    60% {
        top: 50%; left: 50%; 
        transform: translate(-50%, -50%) scale(1.5); 
        opacity: 1;
    }
    100% { 
        top: 32%; left: 50%;
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1;
    }
}

.mvp-floating-tag {
    position: absolute;
    top: -70px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ffd700, #b8860b);
    color: #000;
    font-weight: 900;
    font-size: 24px;
    padding: 8px 30px;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
    z-index: 20000;
    opacity: 0;
    animation: fadeInTag 0.5s ease-out 3.5s forwards;
}

@keyframes fadeInTag { 
    from { opacity: 0; transform: translateX(-50%) scale(0); } 
    to { opacity: 1; transform: translateX(-50%) scale(1); } 
}
/* LEADERBOARD STYLES */
.lb-trigger-btn {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 2px solid #fbbf24;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 60;
    transition: transform 0.2s;
    animation: lb-pulse 2s infinite;
}
.lb-trigger-btn:hover { transform: scale(1.05); }
.lb-icon { font-size: 32px; margin-bottom: 5px; filter: drop-shadow(0 0 10px rgba(251,191,36,0.5)); }
.lb-label { font-size: 8px; font-weight: 900; color: #fbbf24; letter-spacing: 1px; }

.lb-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lb-modal-overlay.active { opacity: 1; pointer-events: auto; }

.lb-modal-content {
    width: 95vw; height: 90vh;
    background: #0f1115;
    border: 1px solid #374151;
    border-radius: 20px;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}

.lb-close-btn {
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 20px; cursor: pointer; z-index: 10;
    transition: 0.2s;
}
.lb-close-btn:hover { background: #ef4444; border-color: #ef4444; }

.lb-layout { display: flex; width: 100%; height: 100%; }

.lb-main {
    flex: 3;
    display: flex; flex-direction: column;
    border-right: 1px solid #1f2937;
    background: radial-gradient(circle at 50% 0%, #1f2937 0%, #0f1115 60%);
}

.lb-sidebar {
    flex: 1;
    display: flex; flex-direction: column;
    background: #0b0d10;
}

.lb-sidebar-section {
    padding: 30px;
    display: flex; flex-direction: column;
}
.lb-sidebar-section.top { flex: 0 0 auto; border-bottom: 1px solid #1f2937; padding: 0; height: 140px; }
.lb-sidebar-section.bottom { flex: 1; overflow: visible; padding: 10px 20px; display: flex; flex-direction: column; }

.lb-sb-header {
    font-size: 14px; color: #6b7280; font-weight: 800; letter-spacing: 2px;
    margin-bottom: 20px; text-transform: uppercase;
}

#lb-updates-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 5px;
}

.lb-allstar-btn {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #713f12 0%, #b45309 20%, #fbbf24 50%, #b45309 80%, #713f12 100%);
    background-size: 200% 200%;
    animation: gold-shine 3s ease infinite;
    border: none;
    color: #fff; font-size: 18px; font-weight: 900;
    cursor: pointer; text-transform: uppercase; letter-spacing: 2px;
    transition: 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    position: relative; overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.lb-allstar-btn:hover { filter: brightness(1.1); }
.as-icon { font-size: 24px; text-shadow: 0 0 10px #fbbf24; }

.lb-header {
    padding: 20px 40px; border-bottom: 1px solid #1f2937;
    background: rgba(0,0,0,0.3);
    display: flex; justify-content: space-between; align-items: center;
}
.lb-header-left { display: flex; flex-direction: column; }
.lb-title {
    font-size: 28px; font-weight: 900; color: #fff; letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255,255,255,0.1); margin: 0;
}
.lb-subtitle {
    font-size: 12px; font-weight: 700; color: #14b8a6; letter-spacing: 2px;
    text-transform: uppercase;
}
.lb-toggles {
    display: inline-flex; background: #1f2937; padding: 4px;
    border-radius: 8px; border: 1px solid #374151; height: fit-content;
}
.lb-toggle {
    padding: 8px 24px; background: transparent; color: #9ca3af;
    border: none; border-radius: 6px; font-weight: 800; font-size: 11px;
    cursor: pointer; transition: 0.2s; letter-spacing: 1px;
}
.lb-toggle.active { background: #14b8a6; color: #000; box-shadow: 0 2px 10px rgba(20,184,166,0.4); }

.lb-table-wrapper {
    flex: 1; overflow-y: auto; padding: 20px 40px;
}
.lb-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }

.lb-row {
    background: rgba(255,255,255,0.02); height: 55px;
    transition: 0.2s;
}
.lb-row:hover { background: rgba(255,255,255,0.05); transform: scale(1.005); }
.lb-row.first-place {
    height: 75px;
    background: linear-gradient(90deg, rgba(251,191,36,0.1), rgba(0,0,0,0));
    border-left: 4px solid #fbbf24;
}
.lb-row td { padding: 0 15px; vertical-align: middle; border-top: 1px solid #1f2937; border-bottom: 1px solid #1f2937; }
.lb-row td:first-child { border-left: 1px solid #1f2937; border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.lb-row td:last-child { border-right: 1px solid #1f2937; border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

.col-rank { font-size: 18px; font-weight: 900; color: #6b7280; width: 60px; text-align: center; }
.first-place .col-rank { color: #fbbf24; font-size: 24px; text-shadow: 0 0 10px rgba(251,191,36,0.3); }

.lb-img-wrap { width: 65px; height: 65px; border-radius: 50%; overflow: hidden; border: 2px solid #374151; margin-top: -5px; margin-bottom: -5px; }
.lb-img-wrap.glow { width: 85px; height: 85px; border-color: #fbbf24; box-shadow: 0 0 15px rgba(251,191,36,0.4); }
.lb-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.col-name { padding-left: 20px !important; position: relative; }
.lb-name-text { font-size: 16px; font-weight: 700; color: #e5e7eb; text-transform: uppercase; }
.first-place .lb-name-text { font-size: 20px; color: #fff; }
.lb-crown { position: absolute; top: -10px; left: 10px; font-size: 20px; transform: rotate(-15deg); }

.col-team { width: 100px; text-align: center; }
.lb-team-logo { width: 40px; height: 40px; object-fit: contain; opacity: 1; filter: none; transition: 0.2s; }
.lb-row:hover .lb-team-logo { opacity: 1; filter: none; transform: scale(1.1); }

.lb-stat-group { display: flex; gap: 15px; }
.lbs-item { display: flex; flex-direction: column; align-items: center; }
.lbs-item .lbl { font-size: 9px; color: #6b7280; font-weight: 700; }
.lbs-item .val { font-size: 14px; color: #d1d5db; font-weight: 700; }
.first-place .lbs-item .val { color: #fbbf24; font-size: 16px; }

.col-rating { width: 100px; text-align: right; }
.lb-rating-box { background: #111827; padding: 5px 15px; border-radius: 8px; border: 1px solid #374151; display: inline-block; }
.lb-rating-val { font-size: 20px; font-weight: 900; color: #fff; }
.first-place .lb-rating-val { font-size: 28px; color: #fbbf24; }

.col-move { width: 80px; text-align: center; font-weight: 700; font-size: 12px; }
.rnk-up { color: #34d399; }
.rnk-down { color: #f87171; }
.rnk-dash { color: #4b5563; font-size: 18px; }

/* UPDATES CARD STYLES */
.update-card { background: #111827; border: 1px solid #374151; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.uc-header { padding: 6px; font-size: 10px; font-weight: 800; text-align: center; color: #fff; letter-spacing: 1px; }
.update-card.rise .uc-header { background: #065f46; }
.update-card.fall .uc-header { background: #7f1d1d; }

.uc-body { padding: 10px; display: flex; align-items: center; gap: 10px; }
.uc-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #374151; }
.uc-info { display: flex; flex-direction: column; }
.uc-name { font-size: 14px; font-weight: 700; color: #fff; }
.uc-val { font-size: 12px; font-weight: 600; }
.text-green { color: #34d399; }
.text-red { color: #f87171; }

.cat-trends-grid { display: flex; flex-direction: column; gap: 10px; }
.cat-trend-row { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 12px; background: rgba(255,255,255,0.03); border-radius: 8px;
}
.ctr-cat { font-size: 12px; color: #9ca3af; font-weight: 700; text-transform: uppercase; }
.ctr-val { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.tiny-arrow { font-size: 10px; }
@keyframes lb-pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.lb-podium-icon {
    display: flex; align-items: flex-end; gap: 4px; height: 32px; margin-bottom: 5px;
}
.lb-bar { width: 10px; background: #fbbf24; border-radius: 2px 2px 0 0; }
.lb-bar.first { height: 32px; background: #fbbf24; box-shadow: 0 0 10px rgba(251,191,36,0.8); }
.lb-bar.second { height: 20px; background: #d97706; }
.lb-bar.third { height: 14px; background: #92400e; }

@keyframes gold-shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.lb-row.clickable { cursor: pointer; }
.lb-row[data-id] {
    cursor: pointer;
}
.lb-headset-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    color: #000;
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
    transition: all 0.4s ease;
}

.lb-allstar-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.lb-allstar-btn:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
    filter: brightness(1.1);
}

.lb-allstar-btn:hover .lb-headset-bg {
    transform: translate(-50%, -50%) scale(1.1) rotate(-5deg);
    opacity: 0.4;
}

.col-team {
    overflow: hidden;
    position: relative;
    padding: 0 !important;
    vertical-align: middle;
}

.lb-team-logo {
    width: auto;
    height: 460% !important;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(12deg);
    opacity: 1;
    transition: transform 0.3s;
    margin-left: -20px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.lb-row:hover .lb-team-logo {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.2);
}
/* --- LEADERBOARD TOP 3 STYLES --- */

/* 1. GOLD (TALLER) */
.lb-row.first-place {
    height: 75px; 
    background: linear-gradient(90deg, rgba(251,191,36,0.25), rgba(0,0,0,0));
    border-left: 4px solid #fbbf24;
}
.first-place .col-rank { color: #fbbf24; font-size: 24px; text-shadow: 0 0 10px rgba(251,191,36,0.4); }
.first-place .lb-name-text { font-size: 20px; color: #fff; }
.first-place .lb-rating-val { font-size: 28px; color: #fbbf24; text-shadow: 0 0 10px rgba(251,191,36,0.4); }
.first-place .lb-img-wrap.glow { border-color: #fbbf24; box-shadow: 0 0 15px rgba(251,191,36,0.5); }

/* 2. SILVER (STANDARD HEIGHT) */
.lb-row.second-place {
    height: 55px; 
    background: linear-gradient(90deg, rgba(229, 231, 235, 0.15), rgba(0,0,0,0));
    border-left: 4px solid #e5e7eb;
}
.second-place .col-rank { color: #e5e7eb; font-size: 18px; text-shadow: 0 0 10px rgba(229, 231, 235, 0.3); }
.second-place .lb-name-text { font-size: 16px; color: #f3f4f6; }
.second-place .lb-rating-val { font-size: 20px; color: #e5e7eb; }
.second-place .lb-img-wrap.glow { border-color: #e5e7eb; box-shadow: 0 0 15px rgba(229, 231, 235, 0.3); }

/* 3. BRONZE (STANDARD HEIGHT) */
.lb-row.third-place {
    height: 55px;
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), rgba(0,0,0,0));
    border-left: 4px solid #cd7f32;
}
.third-place .col-rank { color: #cd7f32; font-size: 18px; text-shadow: 0 0 10px rgba(205, 127, 50, 0.3); }
.third-place .lb-name-text { font-size: 16px; color: #fdba74; }
.third-place .lb-rating-val { font-size: 20px; color: #cd7f32; }
.third-place .lb-img-wrap.glow { border-color: #cd7f32; box-shadow: 0 0 15px rgba(205, 127, 50, 0.3); }

/* SCORE VALUE COLORS (FOR ALL ROWS) */
.val-gold-text { color: #fbbf24 !important; text-shadow: 0 0 5px rgba(251, 191, 36, 0.3); }
.val-silver-text { color: #e5e7eb !important; }
.val-bronze-text { color: #cd7f32 !important; }
/* RESET BUTTON ANIMATION */
@keyframes clickPulse {
    0% { transform: scale(1); color: #9ca3af; }
    50% { transform: scale(0.95); color: #34d399; text-shadow: 0 0 5px rgba(52, 211, 153, 0.5); }
    100% { transform: scale(1); color: #9ca3af; }
}

.reset-clicked {
    animation: clickPulse 0.3s ease-out forwards;
}
.hero-info-trigger {
    position: absolute;
    bottom: 10px;
    right: 15px;
    width: 20px;
    height: 20px;
    color: #4b5563;
    cursor: help;
    z-index: 60;
    transition: all 0.2s;
}

.hero-info-trigger:hover {
    color: #14b8a6;
    transform: scale(1.1);
}

.hero-info-popup {
    position: absolute;
    bottom: 100%;
    right: -5px;
    width: 280px;
    background: #1f2937;
    border: 1px solid #4b5563;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 100;
}

.hero-info-popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: #1f2937;
    border-bottom: 1px solid #4b5563;
    border-right: 1px solid #4b5563;
    transform: rotate(45deg);
}

.hero-info-trigger:hover .hero-info-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

.hero-info-popup p {
    margin: 0 0 6px 0;
    font-size: 11px;
    color: #d1d5db;
    line-height: 1.4;
    text-align: left;
}
.hero-info-popup p:last-child { margin-bottom: 0; }
.hero-info-popup strong { display: block; margin-bottom: 4px; text-transform: uppercase; font-size: 10px; letter-spacing: 0.5px; }