/* ==========================================
   LOL MATCH DETAIL PAGE STYLES
   ========================================== */

.lol-match-detail-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Victory/Defeat Banner */
.match-banner {
    position: relative;
    height: 300px;
    background-image: url('https://cdnb.artstation.com/p/assets/images/images/019/044/805/large/oliver-chipping-sru-estshot.jpg?1561756520');
    background-size: cover;
    background-position: center;
    margin-bottom: var(--spacing-2xl);
    overflow: hidden;
    border-radius: 12px;
}

.match-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    backdrop-filter: blur(5px);
    z-index: 1;
}

.match-banner>* {
    position: relative;
    z-index: 2;
}

.banner-content {
    position: absolute;
    top: 20px;
    left: 20px;
}

.banner-result {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

.banner-result.victory {
    color: #10b981;
    border-left-color: #10b981;
}

.banner-result.defeat {
    color: #ef4444;
    border-left-color: #ef4444;
}

.banner-result.blue-victory {
    color: #60a5fa;
    border-left-color: #60a5fa;
}

.banner-result.red-victory {
    color: #f87171;
    border-left-color: #f87171;
}

/* Match Info Overlay */
.match-info-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0;
    display: flex;
    align-items: center;
}

.match-info-primary {
    display: flex;
    align-items: center;
}

.match-info-row {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    padding: 0 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.match-info-row:last-child {
    border-right: none;
    padding-right: 0;
}

.match-info-row:first-child {
    padding-left: 0;
}

.match-info-icon {
    display: none;
}

.match-overview-inline {
    position: absolute;
    right: 20px;
    bottom: 62px;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.match-overview-card {
    min-width: 155px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
}

.match-overview-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.match-overview-value {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.match-overview-meta {
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-muted);
}

/* CS2 detail variant */
.cs2-match-detail-page {
    max-width: 1400px;
    margin: 0 auto;
}

.cs2-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(17, 24, 39, 0.8);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.cs2-back-btn:hover {
    background: rgba(17, 24, 39, 0.95);
    transform: translateX(-2px);
}

.cs2-match-banner {
    height: 320px;
    margin-bottom: 18px;
    background-image:
        var(--cs2-map-bg, none),
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.25), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(239, 68, 68, 0.2), transparent 45%),
        linear-gradient(135deg, #0f172a 0%, #111827 50%, #1f2937 100%);
    background-size: 100% auto, cover, cover, cover;
    background-position: center center, center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

.cs2-match-banner::before {
    background:
        linear-gradient(95deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.48) 43%, rgba(2, 6, 23, 0.86) 100%),
        linear-gradient(to bottom, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.82));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.cs2-match-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 33%);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.00) 0%,
            rgba(226, 232, 240, 0.05) 38%,
            rgba(203, 213, 225, 0.15) 72%,
            rgba(226, 232, 240, 0.22) 100%);
    backdrop-filter: blur(12px) saturate(112%);
    -webkit-backdrop-filter: blur(12px) saturate(112%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.68) 34%, rgba(0, 0, 0, 1) 100%);
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.68) 34%, rgba(0, 0, 0, 1) 100%);
    pointer-events: none;
}

.cs2-banner-layout-shell {
    position: absolute;
    inset: 0 0 58px 0;
    z-index: 2;
    pointer-events: none;
}

.cs2-banner-layout {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
    padding: 20px 22px;
}

.cs2-banner-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.cs2-result-chip {
    display: inline-flex;
    align-items: center;
    min-height: 58px;
    padding: 12px 20px;
    border-radius: 4px;
    border-left: 4px solid transparent;
    background: rgba(2, 6, 23, 0.86);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    letter-spacing: 1.5px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    gap: 10px;
    flex-wrap: wrap;
}

.cs2-result-score {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin-left: 2px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #f8fafc;
}

.cs2-result-own {
    line-height: 1;
}

.cs2-result-enemy {
    line-height: 1;
    color: #f8fafc;
}

.cs2-result-sep {
    color: #f8fafc;
    line-height: 1;
}

.cs2-result-chip.victory {
    color: #10b981;
    border-left-color: #10b981;
}

.cs2-result-chip.defeat {
    color: #ef4444;
    border-left-color: #ef4444;
}

.cs2-result-chip.blue-victory,
.cs2-result-chip.red-victory {
    color: #60a5fa;
    border-left-color: #60a5fa;
}

.cs2-banner-date-chip {
    display: inline-flex;
    align-items: center;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(226, 232, 240, 0.92);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(2, 6, 23, 0.7);
}

.cs2-banner-right {
    pointer-events: auto;
    margin-left: auto;
    width: min(260px, 26%);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 8px 0 14px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.cs2-banner-info-panel {
    width: 100%;
    padding: 10px 2px 4px;
    border-left: none;
    background: transparent;
    backdrop-filter: none;
}

.cs2-banner-info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 2px 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.42);
}

.cs2-banner-info-row:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

.cs2-banner-info-label {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
}

.cs2-banner-info-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.15;
}

.cs2-map-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 3px;
    filter: drop-shadow(0 1px 2px rgba(2, 6, 23, 0.55));
}

.cs2-premier-rating {
    --pr-scale: 1;
    --pr-accent: #4c6aff;
    --pr-ink: #8a9dfe;
    --pr-border: #4c6aff99;
    --pr-bg: #060e37;
    display: inline-flex;
    align-items: center;
    gap: calc(1px * var(--pr-scale));
    white-space: nowrap;
    font-family: Poppins, system-ui, ui-sans-serif, Ubuntu, "Open Sans", "Segoe UI Variable", "Segoe UI", Roboto, Calibri, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    text-rendering: optimizeLegibility;
    line-height: 1;
}

.cs2-premier-rating__slashes {
    width: calc(16px * var(--pr-scale));
    height: calc(30px * var(--pr-scale));
    color: var(--pr-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform: none;
    margin-right: 0;
}

.cs2-premier-rating__slashes svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.cs2-premier-rating__label-outer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: calc(58px * var(--pr-scale));
    height: calc(26px * var(--pr-scale));
    padding: 0 calc(8px * var(--pr-scale));
    margin-left: calc(-4px * var(--pr-scale));
    border: 1px solid transparent;
    border-radius: calc(3px * var(--pr-scale));
    transform: skew(-10deg);
}

.cs2-premier-rating--tier-2 .cs2-premier-rating__label-outer {
    background-color: var(--pr-bg, #060e37) !important;
    border-color: var(--pr-border);
    color: var(--pr-ink);
    box-shadow: inset 0 0 0 1px rgba(7, 16, 59, 0.62);
}

.cs2-premier-rating__label-wrapper {
    width: 100%;
    height: 100%;
    line-height: 1;
    transform: skew(10deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cs2-premier-rating__label-large {
    font-size: calc(15px * var(--pr-scale));
    line-height: 1;
    letter-spacing: 0.25px;
    font-weight: 700;
    font-style: italic;
    display: inline-flex;
    align-items: center;
    transform: translateY(calc(1.45px * var(--pr-scale)));
}

.cs2-analysis-warning {
    position: absolute;
    left: 22px;
    bottom: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(700px, calc(100% - 320px));
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(250, 204, 21, 0.45);
    background: rgba(250, 204, 21, 0.14);
    color: #fef08a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.cs2-analysis-warning-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(250, 204, 21, 0.55);
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
}

.cs2-analysis-warning-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.15px;
}

.cs2-overview-inline {
    max-width: min(860px, calc(100% - 40px));
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cs2-tab-panel {
    padding: 0 16px 24px;
}

.cs2-overview-body {
    padding: 14px 16px 16px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.cs2-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.cs2-categories-table {
    margin-top: 12px;
}

.players-table.cs2-categories-table {
    border-top: 1px solid var(--border-color);
    border-radius: 8px;
}

.cs2-player-highlight {
    background: rgba(30, 64, 175, 0.034);
}

/* Tab Navigation (at bottom of banner) */
.banner-tabs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0;
    justify-content: flex-start;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    overflow-x: auto;
    overflow-y: hidden;
}

.banner-tab {
    background: transparent;
    border: none;
    padding: 16px 32px;
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    flex: 0 0 auto;
}

.banner-tab:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-secondary);
}

.banner-tab.active {
    background: rgba(0, 0, 0, 0.9);
    color: #ef4444;
    border-bottom-color: #ef4444;
}

.banner-tab.disabled,
.banner-tab:disabled {
    opacity: 0.45;
    color: #94a3b8;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.35);
    border-bottom-color: transparent;
    pointer-events: none;
}

.cs2-profile-link {
    border: none;
    background: transparent;
    color: #f8fafc;
    font-size: inherit;
    font-weight: 700;
    line-height: 1.2;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    min-width: 0;
    max-width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs2-profile-link:hover,
.cs2-profile-link:focus-visible {
    color: #67e8f9;
    text-decoration: underline;
    outline: none;
}

.cs2-overview-combined {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 0;
}

.cs2-overview-mode-top {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 1px;
}

.cs2-details-root {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cs2-details-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.cs2-details-mode-tabs-overview {
    margin-left: 0;
    justify-content: flex-end;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    font-family: 'Poppins', var(--font-family), sans-serif;
}

.cs2-overview-header-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    margin: 0;
}

.cs2-overview-header-controls .cs2-details-mode-tabs-overview {
    margin-left: 0;
}

.team-header.with-mode-controls {
    position: relative;
    align-items: center;
    padding-right: 220px;
}

.team-header.with-mode-controls .team-header-main {
    justify-content: flex-start;
    align-items: center;
}

.team-header.with-mode-controls .team-name {
    text-align: left;
}

.team-header.with-mode-controls .cs2-overview-header-controls {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.cs2-details-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 35, 50, 0.65);
    color: #cbd5e1;
    border-radius: 7px;
    padding: 5px 10px;
    min-height: 30px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
    font-family: 'Poppins', var(--font-family), sans-serif;
}

.cs2-details-mode-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    background: rgba(30, 35, 50, 0.88);
}

.cs2-details-mode-btn.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #f8fafc;
}

.cs2-details-section .team-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.players-table.cs2-details-table-shell {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.cs2-details-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.cs2-details-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

.cs2-details-table.cs2-details-table-general {
    min-width: 1280px;
}

.cs2-details-table.cs2-details-table-aim {
    min-width: 980px;
}

.cs2-details-table.cs2-details-table-utility {
    min-width: 1200px;
}

.cs2-details-table th,
.cs2-details-table td {
    white-space: nowrap;
    text-align: center;
}

.cs2-details-table th:first-child,
.cs2-details-table td:first-child {
    text-align: left;
    min-width: 290px;
}

.cs2-details-table.cs2-details-table-general th:first-child,
.cs2-details-table.cs2-details-table-general td:first-child {
    min-width: 235px;
}

.cs2-details-table.cs2-details-table-general .cs2-details-perf-head,
.cs2-details-table.cs2-details-table-general .cs2-details-perf-cell {
    width: 64px;
    max-width: 64px;
    padding-left: 5px;
    padding-right: 5px;
}

.cs2-details-table.cs2-details-table-general .cs2-details-perf {
    font-size: 11px;
}

.cs2-details-loading {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.cs2-details-perf {
    font-weight: 700;
}

.cs2-details-perf.positive {
    color: #34d399;
}

.cs2-details-perf.negative {
    color: #f87171;
}

.cs2-details-perf.neutral {
    color: #cbd5e1;
}

.cs2-details-utility-card {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(71, 85, 105, 0.45);
    background: linear-gradient(160deg, rgba(14, 22, 36, 0.88), rgba(9, 14, 24, 0.92));
}

.cs2-details-utility-distribution {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(71, 85, 105, 0.45);
    background: rgba(15, 23, 42, 0.72);
}

.cs2-details-utility-distribution .flash,
.cs2-details-utility-distribution-meta .flash,
.cs2-details-utility-bar .seg.flash {
    background: #facc15;
    color: #fef08a;
}

.cs2-details-utility-distribution .smoke,
.cs2-details-utility-distribution-meta .smoke,
.cs2-details-utility-bar .seg.smoke {
    background: #94a3b8;
    color: #e2e8f0;
}

.cs2-details-utility-distribution .molotov,
.cs2-details-utility-distribution-meta .molotov,
.cs2-details-utility-bar .seg.molotov {
    background: #f97316;
    color: #fdba74;
}

.cs2-details-utility-distribution .he,
.cs2-details-utility-distribution-meta .he,
.cs2-details-utility-bar .seg.he {
    background: #60a5fa;
    color: #bfdbfe;
}

.cs2-details-utility-distribution-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
}

.cs2-details-utility-distribution-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cs2-details-utility-bars {
    margin-top: 12px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
}

.cs2-details-utility-player {
    min-width: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cs2-details-utility-bar-wrap {
    height: 124px;
    display: flex;
    align-items: flex-end;
}

.cs2-details-utility-bar {
    width: 34px;
    height: 100%;
    border-radius: 8px;
    border: 1px solid rgba(71, 85, 105, 0.45);
    background: rgba(15, 23, 42, 0.7);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cs2-details-utility-bar .seg {
    width: 100%;
    display: block;
}

.cs2-details-utility-player-name {
    max-width: 62px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs2-details-utility-avatar-wrap {
    width: 30px;
    height: 30px;
}

.cs2-details-utility-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(71, 85, 105, 0.55);
}

/* Achievement Banners */
.achievements-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    padding: 0 var(--spacing-lg);
}

.achievement-banner {
    position: relative;
    height: 120px;
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.achievement-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(1px) brightness(0.3);
    transform: scale(1.05);
}

.achievement-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.achievement-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.achievement-value {
    font-size: 25px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: auto;
}

/* Debug Panel Styles */
.achievements-debug {
    margin-top: 50px;
    border-top: 2px solid #333;
    padding-top: 20px;
}

.debug-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
}

.achievements-debug-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(20, 20, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: background 0.2s;
}

.achievements-debug-item:hover {
    background: rgba(40, 40, 60, 0.6);
}

.achievements-debug-item.non-zero {
    background: rgba(0, 40, 20, 0.3);
    border-color: rgba(0, 100, 50, 0.2);
}

.achievements-debug-item.non-zero .debug-value {
    color: #4CAF50;
}

.debug-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-right: 15px;
}

.debug-name {
    color: #ddd;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.debug-key {
    color: #666;
    font-size: 10px;
}

.debug-value {
    font-weight: 700;
    font-size: 14px;
    color: #888;
    white-space: nowrap;
}

.achievement-player {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.achievement-champion-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.achievement-player-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.achievement-position {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 1px;
}

.achievement-position.blue {
    background: rgba(96, 165, 250, 0.95);
}

.achievement-position.red {
    background: rgba(248, 113, 113, 0.95);
}

.achievement-position-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tab Content */
.tab-panel {
    display: none;
    padding: 0 var(--spacing-lg);
}

.tab-panel.active {
    display: block;
}

/* Highlights Tab */
.match-highlights-loading,
.match-highlights-empty {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background:
        linear-gradient(155deg, rgba(17, 28, 46, 0.96), rgba(10, 16, 28, 0.96));
}

.match-highlights-root {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.match-highlights-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background:
        linear-gradient(140deg, rgba(17, 26, 44, 0.96), rgba(9, 15, 27, 0.96));
}

.match-highlights-toolbar-meta {
    min-width: 0;
}

.match-highlights-toolbar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.match-highlights-toolbar-sub {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
}

.match-highlights-refresh {
    border: 1px solid rgba(76, 100, 146, 0.44);
    background: rgba(22, 33, 56, 0.95);
    color: var(--text-primary);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 8px 13px;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.match-highlights-refresh:hover {
    border-color: rgba(85, 200, 255, 0.62);
    background: rgba(24, 40, 70, 0.98);
    transform: translateY(-1px);
}

.match-highlights-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

.match-highlights-featured {
    display: block;
}

.match-highlight-featured-card {
    width: 100%;
}

.match-highlight-featured-card .match-highlight-thumb-wrap {
    height: 220px;
}

.match-highlights-group {
    border: 1px solid var(--border-color);
    background:
        linear-gradient(165deg, rgba(18, 29, 49, 0.96), rgba(12, 19, 33, 0.96));
    border-radius: 14px;
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.match-highlights-group-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(76, 100, 146, 0.28);
}

.match-highlights-group-avatar {
    width: 50px;
    height: 50px;
    border-radius: 11px;
    object-fit: cover;
    background: var(--bg-tertiary);
    border: 1px solid rgba(90, 117, 168, 0.3);
    flex-shrink: 0;
}

.match-highlights-group-avatar.placeholder {
    border: 1px solid rgba(76, 100, 146, 0.46);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7fd1ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.match-highlights-group-meta {
    min-width: 0;
    flex: 1;
}

.match-highlights-group-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-highlights-group-sub {
    font-size: 12px;
    color: rgba(185, 204, 236, 0.76);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-highlights-group-badge {
    border: 1px solid rgba(72, 96, 140, 0.48);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #d8ebff;
    background: rgba(25, 37, 62, 0.86);
    flex-shrink: 0;
}

.match-highlights-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.match-highlight-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(18, 28, 47, 0.94), rgba(13, 21, 36, 0.94));
    padding: 0;
    text-align: left;
    color: inherit;
    cursor: default;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.match-highlight-card.playable {
    cursor: pointer;
}

.match-highlight-card.playable:hover {
    border-color: rgba(85, 200, 255, 0.56);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

.match-highlight-card.locked {
    opacity: 0.9;
}

.match-highlight-thumb-wrap {
    position: relative;
    height: 128px;
    background: rgba(10, 14, 24, 0.85);
    overflow: hidden;
}

.match-highlight-thumb-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 10, 18, 0.08) 0%, rgba(6, 10, 18, 0.65) 100%);
    pointer-events: none;
}

.match-highlight-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.26s ease;
}

.match-highlight-card.playable:hover .match-highlight-thumb {
    transform: scale(1.03);
}

.match-highlight-thumb.placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 83, 140, 0.35), rgba(26, 37, 58, 0.35));
}

.match-highlight-status {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(16, 25, 43, 0.88);
    border: 1px solid rgba(84, 110, 161, 0.54);
    color: #d7e9ff;
    z-index: 2;
}

.match-highlight-status.status-processed {
    background: rgba(7, 44, 33, 0.9);
    border-color: rgba(45, 212, 191, 0.44);
    color: #42e8c5;
}

.match-highlight-status.status-submitted,
.match-highlight-status.status-spectating {
    background: rgba(57, 40, 11, 0.9);
    border-color: rgba(245, 158, 11, 0.46);
    color: #ffcb67;
}

.match-highlight-status.status-failed {
    background: rgba(71, 20, 28, 0.9);
    border-color: rgba(239, 68, 68, 0.52);
    color: #ff8f98;
}

.match-highlight-play-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(160, 221, 255, 0.56);
    background: rgba(13, 23, 39, 0.85);
    color: #d4ecff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.match-highlight-card.playable:hover .match-highlight-play-hint {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.match-highlight-body {
    padding: 10px 11px 11px;
}

.match-highlight-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.match-highlight-meta-row {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.match-highlight-chip {
    font-size: 11px;
    font-weight: 700;
    color: #d2e7ff;
    border: 1px solid rgba(77, 102, 148, 0.46);
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(23, 36, 60, 0.86);
}

.match-highlight-chip.subtle {
    color: rgba(201, 218, 246, 0.82);
    background: rgba(17, 27, 45, 0.86);
}

.match-highlights-pending-only {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 11px 12px;
    background:
        linear-gradient(165deg, rgba(17, 27, 46, 0.92), rgba(11, 18, 31, 0.92));
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.match-highlights-pending-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(206, 225, 252, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.match-highlights-pending-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    align-items: center;
}

.match-highlights-pending-player {
    color: #d4e6ff;
    font-weight: 600;
}

.match-highlights-pending-status {
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 8px;
    border: 1px solid rgba(84, 109, 160, 0.5);
    background: rgba(22, 35, 58, 0.86);
    color: #d7e9ff;
}

.match-highlights-pending-status.status-processed {
    background: rgba(7, 44, 33, 0.9);
    border-color: rgba(45, 212, 191, 0.44);
    color: #42e8c5;
}

.match-highlights-pending-status.status-submitted,
.match-highlights-pending-status.status-spectating {
    background: rgba(57, 40, 11, 0.9);
    border-color: rgba(245, 158, 11, 0.46);
    color: #ffcb67;
}

.match-highlights-pending-status.status-failed {
    background: rgba(71, 20, 28, 0.9);
    border-color: rgba(239, 68, 68, 0.52);
    color: #ff8f98;
}

@media (max-width: 900px) {
    .match-highlights-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .match-highlights-refresh {
        align-self: flex-end;
    }
}

/* Highlights Modal */
.allstar-highlights-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.allstar-highlights-modal.visible {
    display: block;
}

.allstar-highlights-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.allstar-highlights-dialog {
    position: absolute;
    inset: 40px;
    background: #0c1422;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.allstar-highlights-title {
    padding: 12px 52px 12px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    min-height: 46px;
    display: flex;
    align-items: center;
}

.allstar-highlights-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-radius: 8px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.allstar-highlights-iframe {
    flex: 1;
    border: 0;
    width: 100%;
    min-height: 360px;
}

@media (max-width: 900px) {
    .allstar-highlights-dialog {
        inset: 12px;
    }
}

/* Team Tables */
.team-section {
    margin-bottom: var(--spacing-2xl);
}

.team-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-tertiary);
    border-radius: 8px 8px 0 0;
    border-left: 4px solid;
}

.team-header-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    min-width: 0;
    flex: 1;
}

.team-header.blue {
    border-left-color: #4a90e2;
}

.team-header.red {
    border-left-color: #e74c3c;
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.team-overview-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-overview-card {
    min-width: 155px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-overview-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.team-overview-value {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.team-overview-meta {
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-muted);
}

.team-result {
    margin-left: var(--spacing-sm);
    align-self: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
}

.team-result.victory {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.team-result.defeat {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Players Table */
.players-table {
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-top: none;
}

.players-table table {
    width: 100%;
    border-collapse: collapse;
}

.players-table th {
    background: var(--bg-tertiary);
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.players-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.players-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* CS2: compact team tables */
.cs2-match-detail-page .team-section {
    margin-bottom: 14px;
}

.cs2-match-detail-page .team-header {
    padding: 10px 14px;
    align-items: center;
}

.cs2-match-detail-page .team-name {
    font-size: 15px;
    line-height: 1.2;
    display: block;
}

.cs2-match-detail-page .team-section .players-table th {
    padding: 8px 10px;
    line-height: 1.15;
}

.cs2-match-detail-page .team-section .players-table td {
    padding: 9px 10px;
}

.cs2-match-detail-page .team-section .champion-player-cell {
    gap: 8px;
}

.cs2-match-detail-page .team-section .champion-icon {
    width: 34px;
    height: 34px;
    border-radius: 7px;
}

.cs2-match-detail-page .team-section .stat-cell {
    font-size: 12px;
}

.cs2-match-detail-page .players-table table.cs2-overview-table {
    table-layout: fixed;
}

.cs2-match-detail-page .players-table table.cs2-overview-table td:first-child {
    overflow: hidden;
}

.cs2-match-detail-page .players-table table.cs2-overview-table .champion-player-cell,
.cs2-match-detail-page .players-table table.cs2-overview-table .player-info,
.cs2-match-detail-page .players-table table.cs2-overview-table .champion-name,
.cs2-match-detail-page .players-table table.cs2-overview-table .cs2-player-name-wrap {
    min-width: 0;
}

.cs2-match-detail-page .players-table table.cs2-overview-table .cs2-player-name-text {
    max-width: 100%;
}

/* Table Cells */
.champion-player-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.champion-icon-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
}

.champion-icon-link {
    display: block;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.champion-icon-link:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.55);
    outline-offset: 2px;
    border-radius: 8px;
}

.position-badge {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 16px;
    height: 16px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

/* Removed background colors for position badges next to champion icons */

.position-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.champion-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.champion-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.champion-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.champion-name-link {
    border: none;
    background: none;
    padding: 0;
    text-align: left;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.champion-name-link:hover,
.champion-name-link:focus-visible {
    color: var(--text-primary);
    outline: none;
}

.player-name {
    font-size: 12px;
    color: var(--text-muted);
}

.player-profile-link {
    border: none;
    background: none;
    padding: 0;
    text-align: left;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    cursor: pointer;
}

.player-profile-link:focus-visible {
    outline: none;
    color: var(--text-muted);
}

.player-name-cell {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.player-name-cell:hover {
    color: var(--text-primary);
}

.role-icon {
    width: 24px;
    height: 24px;
}

.spells-cell {
    display: flex;
    gap: 2px;
}

.spell-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.runes-cell {
    display: flex;
    gap: 4px;
    align-items: center;
}

.rune-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
}

.rune-tree-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.items-cell {
    display: flex;
    gap: 2px;
}

.item-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
}

.item-icon.empty {
    opacity: 0.3;
}

.stat-cell {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

.rating-cell {
    font-weight: 700;
    color: #f59e0b;
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: var(--spacing-lg);
}

.loading-container p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .achievements-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .achievements-container {
        grid-template-columns: 1fr;
    }

    .banner-result {
        font-size: 48px;
    }

    .match-info-overlay {
        position: static;
        margin: var(--spacing-lg);
        align-items: flex-start;
        gap: 8px;
    }

    .match-info-primary {
        flex-wrap: wrap;
    }

    .match-overview-inline {
        position: static;
        right: auto;
        bottom: auto;
        width: 100%;
        flex-wrap: nowrap;
    }

    .cs2-match-banner {
        height: 360px;
    }

    .cs2-banner-layout-shell {
        inset: 0 0 54px 0;
    }

    .cs2-banner-layout {
        flex-direction: column;
        justify-content: space-between;
        padding: 14px 14px 12px;
        gap: 14px;
    }

    .cs2-banner-right {
        width: 100%;
        padding: 0 8px 0 10px;
    }

    .cs2-result-chip {
        font-size: 24px;
        min-height: 52px;
        padding: 10px 16px;
        letter-spacing: 1.2px;
    }

    .cs2-result-score {
        font-size: 22px;
    }

    .cs2-banner-date-chip {
        font-size: 12px;
        min-height: auto;
        padding: 0;
    }

    .cs2-banner-info-panel {
        border-top: none;
        padding: 2px 0 0;
    }

    .cs2-banner-info-row {
        gap: 4px;
        padding: 9px 0 10px;
    }

    .cs2-banner-info-label {
        font-size: 13px;
    }

    .cs2-banner-info-value {
        font-size: 18px;
        gap: 8px;
    }

    .cs2-map-logo {
        width: 22px;
        height: 22px;
    }

    .cs2-analysis-warning {
        left: 14px;
        right: 14px;
        bottom: 8px;
        max-width: none;
        gap: 8px;
        padding: 7px 10px;
    }

    .cs2-analysis-warning-icon {
        width: 20px;
        height: 20px;
        border-radius: 6px;
        font-size: 12px;
    }

    .cs2-analysis-warning-text {
        font-size: 11px;
        line-height: 1.3;
    }

    .players-table {
        overflow-x: auto;
    }

    .players-table table {
        min-width: 900px;
    }

    .cs2-details-mode-btn {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }

    .cs2-overview-header-controls {
        width: auto;
        margin: 0 0 0 auto;
    }

    .cs2-overview-header-controls .cs2-details-mode-tabs-overview {
        width: auto;
    }

    .team-header.with-mode-controls {
        padding-right: 14px;
    }

    .team-header.with-mode-controls .cs2-overview-header-controls {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        margin-left: auto;
    }

    .cs2-details-table th:first-child,
    .cs2-details-table td:first-child {
        min-width: 230px;
    }

    .cs2-details-utility-player {
        min-width: 58px;
    }
}

/* Layout Structure for Wider Slider */
.matchup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.matchup-player {
    flex: 0 0 250px;
    /* Fixed width for players to ensure space for middle */
}

.matchup-vs {
    flex: 1;
    /* Take remaining space */
    min-width: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Timeline Controls Customization */
.matchup-controls {
    width: 100%;
    /* Fill the flexible .matchup-vs */
    max-width: 1000px;
    /* Limit overly wide screens */
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .matchup-controls {
        width: 100%;
        min-width: 0;
        padding: 0;
    }

    .matchup-header {
        flex-direction: column;
        gap: 10px;
    }

    .matchup-player,
    .matchup-vs {
        width: 100%;
        flex: auto;
    }
}

.time-buttons-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-slider-wrapper {
    width: 100%;
    /* Force full width inside flex container */
    display: flex;
    justify-content: center;
}

.vs-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 1px;
}

/* Ensure sliders look good */
.timeline-slider {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    transition: background 0.2s;
}

.timeline-slider:hover {
    background: rgba(255, 255, 255, 0.15);
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ef4444;
    /* Red accent matching theme */
    cursor: pointer;
    border: none;
    /* REMOVED BORDER AS REQUESTED */
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    transition: transform 0.1s;
}

.timeline-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.timeline-play-btn {
    background: rgba(255, 255, 255, 0.05);
    /* Subtle background */
    border: none;
    /* No border as requested */
    border-radius: 8px;
    width: 40px;
    /* Slightly larger */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.timeline-play-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.timeline-play-btn.playing {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Centered Labels & Grid Layout for Stats/Ratings */
.stat-top-row,
.rating-top-row {
    display: grid !important;
    /* Force grid vs flex */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.stat-left-group {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-right-group {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label-center-wrapper,
.stat-label-center {
    justify-self: center;
    text-align: center;
    white-space: nowrap;
}

/* Smooth Animations for Bars */
.stat-bar-fill,
.rating-bar-fill {
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    /* Modern smooth easing */
}

/* Ensure values animate smoothly too if possible */
.stat-value-box {
    transition: color 0.3s, background 0.3s;
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-width: 70px;
    /* Reduced jitter by ensuring minimum space */
    padding: 2px 8px;
    /* Ensure padding */
}

/* Badge Fade Animation */
.stat-advantage-badge {
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* Opacity managed via JS style visibility/opacity toggling */
}

.stat-advantage-badge.visible {
    opacity: 1;
}

.stat-advantage-badge.hidden {
    opacity: 0;
}

/* Slot Machine Number Animation */
.animated-value {
    display: inline-flex;
    align-items: center;
    /* Center vertically */
    justify-content: center;
    overflow: hidden;
    height: 1.5em;
    /* slightly larger to avoid clipping */
    position: relative;
    font-variant-numeric: tabular-nums;
}

.anim-digit-wrapper {
    display: inline-block;
    position: relative;
    /* width: auto; let flow define width */
}

.anim-digit-curr {
    display: inline-block;
    position: relative;
    /* transition? No, animation handles it */
}

.anim-digit-old {
    position: absolute;
    top: 0;
    left: 0;
    animation: slideUpOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-digit-new {
    display: inline-block;
    animation: slideUpIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpOut {
    0% {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100%);
        filter: blur(4px);
        opacity: 0;
    }
}

@keyframes slideUpIn {
    0% {
        transform: translateY(100%);
        filter: blur(4px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

/* Fade Digit Animation (for percentages) */
.fade-digit-wrapper {
    position: relative;
    display: inline-block;
}

.fade-digit-old {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    animation: fadeDigitOut 0.3s ease forwards;
}

.fade-digit-new {
    opacity: 0;
    animation: fadeDigitIn 0.3s ease forwards;
}

@keyframes fadeDigitOut {
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes fadeDigitIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   PLAYERS TAB STYLES
   ========================================== */

.players-tab-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--spacing-xl);
    min-height: calc(100vh - 600px);
    margin-top: var(--spacing-lg);
    padding-bottom: var(--spacing-2xl);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: start;
}

/* --- Right Panel: Player List --- */
.player-list-panel {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: visible;
    height: fit-content;
    position: sticky;
    top: 20px;
    width: 100%;
    max-width: 340px;
    min-width: 0;
    justify-self: stretch;
}

.panel-title {
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.player-list-group {
    flex: 1;
    overflow-y: visible;
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: auto;
}

.team-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 12px;
    color: var(--text-muted);
}

.team-label.blue {
    color: #60a5fa;
}

.team-label.red {
    color: #f87171;
}

.team-separator {
    height: 1px;
    background: var(--border-color);
    margin: 8px 12px;
}

.player-list-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border: 1px solid transparent;
}

.player-list-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.player-list-item.active {
    background: rgba(255, 255, 255, 0.08);
    /* Lighter active state */
    border-color: rgba(255, 255, 255, 0.1);
}

.player-list-item.blue.active {
    border-left: 3px solid #60a5fa;
}

.player-list-item.red.active {
    border-left: 3px solid #f87171;
}

.player-list-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.player-list-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.player-list-names {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.player-list-champion {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-list-summoner {
    font-size: 11px;
    color: var(--text-muted);
}

.player-list-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-list-rating {
    font-weight: 800;
    font-size: 14px;
    text-align: right;
}

.cs2-chat-feed {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 10px;
    max-height: 680px;
    overflow-y: auto;
}

.cs2-chat-row {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.46);
    margin-bottom: 8px;
}

.cs2-chat-row:last-child {
    margin-bottom: 0;
}

.cs2-chat-row.winner {
    border-left: 3px solid rgba(34, 197, 94, 0.92);
}

.cs2-chat-row.loser {
    border-left: 3px solid rgba(239, 68, 68, 0.92);
}

.cs2-chat-row.unknown {
    border-left: 3px solid rgba(148, 163, 184, 0.75);
}

.cs2-chat-row.winner .cs2-chat-side-badge {
    border-color: #22c55e;
    background: #22c55e;
    color: #ffffff;
}

.cs2-chat-row.loser .cs2-chat-side-badge {
    border-color: #ef4444;
    background: #ef4444;
    color: #ffffff;
}

.cs2-chat-row.unknown .cs2-chat-side-badge {
    border-color: #64748b;
    background: #64748b;
    color: #ffffff;
}

.cs2-chat-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cs2-chat-time {
    font-size: 11px;
    font-weight: 700;
    color: rgba(203, 213, 225, 0.92);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.cs2-chat-scope {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.cs2-chat-scope.all {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.2);
    border: 1px solid rgba(22, 163, 74, 0.45);
}

.cs2-chat-scope.team {
    color: #94a3b8;
    background: rgba(100, 116, 139, 0.18);
    border: 1px solid rgba(100, 116, 139, 0.35);
}

.cs2-chat-sender {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cs2-chat-side-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.6);
    flex-shrink: 0;
}

.cs2-chat-side-text {
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.2px;
    line-height: 1;
}

.cs2-chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
}

.cs2-chat-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.cs2-chat-text {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.96);
    word-break: break-word;
    white-space: pre-wrap;
}

.cs2-chat-empty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.cs2-chat-empty-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.cs2-chat-empty-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.cs2-replay-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: rgba(13, 20, 36, 0.78);
}

.cs2-replay-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cs2-replay-rounds-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
}

.cs2-replay-round-btn {
    border: 1px solid rgba(71, 85, 105, 0.7);
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.cs2-replay-round-btn:hover {
    border-color: rgba(56, 189, 248, 0.72);
    color: #e2f3ff;
}

.cs2-replay-round-btn.active {
    background: rgba(14, 116, 144, 0.32);
    border-color: rgba(56, 189, 248, 0.85);
    color: #e0f2fe;
}

.cs2-replay-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #94a3b8;
}

.cs2-replay-meta strong {
    color: #f8fafc;
    font-weight: 700;
}

.cs2-replay-timeline {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
}

.cs2-replay-nav-btn {
    border: 1px solid rgba(71, 85, 105, 0.75);
    background: rgba(15, 23, 42, 0.82);
    color: #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.cs2-replay-nav-btn:hover {
    border-color: rgba(56, 189, 248, 0.8);
    color: #e0f2fe;
}

.cs2-replay-timeline input[type="range"] {
    width: 100%;
    accent-color: #38bdf8;
}

.cs2-replay-controls {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, auto);
    align-items: stretch;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(71, 85, 105, 0.45);
    border-radius: 10px;
    background: rgba(8, 14, 28, 0.56);
}

.cs2-replay-toolbar,
.cs2-replay-timeline,
.cs2-replay-controls {
    font-family: 'Poppins', var(--font-family), sans-serif;
}

.cs2-replay-toolbar button,
.cs2-replay-timeline button,
.cs2-replay-timeline input,
.cs2-replay-controls button,
.cs2-replay-controls input {
    font-family: inherit;
}

.cs2-replay-controls-left,
.cs2-replay-controls-right {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.cs2-replay-controls-right {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cs2-replay-control-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(71, 85, 105, 0.45);
    border-radius: 10px;
    background: rgba(8, 14, 28, 0.56);
}

.cs2-replay-view-group-title {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
}

.cs2-replay-playback-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cs2-replay-zoom-wrap,
.cs2-replay-layer-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cs2-replay-view-btn,
.cs2-replay-layer-btn {
    border: 1px solid rgba(71, 85, 105, 0.75);
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    min-height: 34px;
}

.cs2-replay-view-btn:hover,
.cs2-replay-layer-btn:hover {
    border-color: rgba(56, 189, 248, 0.8);
    color: #e2f3ff;
}

.cs2-replay-layer-btn.active {
    border-color: rgba(34, 197, 94, 0.85);
    color: #dcfce7;
    background: rgba(21, 128, 61, 0.28);
}

.cs2-replay-zoom-value {
    min-width: 64px;
    min-height: 34px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #f8fafc;
    border-radius: 8px;
    border: 1px solid rgba(71, 85, 105, 0.5);
    background: rgba(12, 19, 34, 0.7);
}

.cs2-replay-play-btn {
    border: 1px solid rgba(71, 85, 105, 0.75);
    background: rgba(15, 23, 42, 0.86);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    min-width: 86px;
}

.cs2-replay-play-btn:hover {
    border-color: rgba(56, 189, 248, 0.85);
    color: #e0f2fe;
}

.cs2-replay-play-btn.playing {
    border-color: rgba(34, 197, 94, 0.85);
    color: #dcfce7;
    background: rgba(22, 101, 52, 0.32);
}

.cs2-replay-speed-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cs2-replay-speed-btn {
    border: 1px solid rgba(71, 85, 105, 0.75);
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.cs2-replay-speed-btn:hover {
    border-color: rgba(56, 189, 248, 0.8);
    color: #e2f3ff;
}

.cs2-replay-speed-btn.active {
    background: rgba(14, 116, 144, 0.32);
    border-color: rgba(56, 189, 248, 0.85);
    color: #e0f2fe;
}

.cs2-replay-map {
    width: 100%;
    min-height: 320px;
    border-radius: 10px;
    border: 1px solid rgba(71, 85, 105, 0.5);
    overflow: hidden;
    background: linear-gradient(rgba(7, 11, 22, 0.7), rgba(7, 11, 22, 0.78));
    background-size: cover;
    background-position: center;
    position: relative;
}

.cs2-replay-canvas {
    display: block;
    width: 100%;
    height: clamp(320px, 58vh, 700px);
    cursor: grab;
    touch-action: none;
}

.cs2-replay-canvas.is-dragging {
    cursor: grabbing;
}

.cs2-replay-killfeed {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
    max-width: min(56%, 520px);
}

.cs2-kf-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 5px 9px;
    border-radius: 8px;
    border: 1px solid rgba(71, 85, 105, 0.55);
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(1px);
    align-self: flex-end;
    max-width: 100%;
}

.cs2-kf-player {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 155px;
}

.cs2-kf-player.ct {
    color: #7dd3fc;
}

.cs2-kf-player.t {
    color: #fca5a5;
}

.cs2-kf-player.neutral {
    color: #cbd5e1;
}

.cs2-kf-weapon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid rgba(100, 116, 139, 0.45);
    background: rgba(15, 23, 42, 0.64);
}

.cs2-kf-weapon-svg-img {
    width: 15px;
    height: 15px;
    display: block;
    filter: brightness(0) saturate(100%) invert(92%) sepia(8%) saturate(290%) hue-rotate(179deg) brightness(99%) contrast(92%);
}

.cs2-kf-hs {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fef3c7;
    border: 1px solid rgba(245, 158, 11, 0.7);
    border-radius: 999px;
    padding: 1px 5px;
    line-height: 1.2;
    background: rgba(120, 53, 15, 0.55);
}

.cs2-replay-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #94a3b8;
}

.cs2-replay-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cs2-replay-legend i {
    width: 14px;
    height: 4px;
    border-radius: 999px;
    display: inline-block;
}

.cs2-replay-legend i.ct {
    background: #38bdf8;
}

.cs2-replay-legend i.t {
    background: #f87171;
}

.cs2-replay-legend i.aim {
    background: linear-gradient(90deg, #38bdf8 0%, #f87171 100%);
}

.cs2-replay-legend i.shot {
    background: #facc15;
}

.cs2-replay-legend i.bomb {
    background: #ef4444;
}

.cs2-replay-legend i.smoke {
    background: #4b5563;
}

.cs2-replay-legend i.flash {
    background: #ffffff;
}

.cs2-replay-legend i.he {
    background: #ef4444;
}

.cs2-replay-legend i.molotov {
    background: #f97316;
}

@media (max-width: 900px) {
    .cs2-replay-meta {
        gap: 8px;
    }

    .cs2-replay-controls {
        padding: 9px 10px;
        grid-template-columns: 1fr;
    }

    .cs2-replay-controls-right {
        justify-content: flex-start;
    }

    .cs2-replay-control-block {
        padding: 9px 10px;
    }

    .cs2-replay-map {
        min-height: 260px;
    }

    .cs2-replay-canvas {
        height: clamp(260px, 52vh, 520px);
    }

    .cs2-replay-killfeed {
        top: 8px;
        right: 8px;
        max-width: min(70%, 420px);
    }

    .cs2-kf-row {
        padding: 4px 7px;
        gap: 6px;
    }

    .cs2-kf-player {
        max-width: 110px;
        font-size: 11px;
    }
}

.player-list-role {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

/* --- Left Panel: Player Details --- */
.player-details-panel {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    /* Removed overflow-y: auto to let page scroll naturally */
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* Header */
.player-detail-header {
    height: 200px;
    border-radius: 12px;
    position: relative;
    background-size: cover;
    background-position: center 20%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 0px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    /* Ensure no padding affects it */
}

.cs2-match-detail-page .player-detail-header {
    height: 116px;
}

.player-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-sizing: border-box;
    /* Includes border in the 100% width/height */
    z-index: 1;
    pointer-events: none;
}

.player-detail-content {
    position: relative;
    z-index: 2;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    border-radius: 12px;
    min-width: 0;
}

.cs2-match-detail-page .player-detail-content {
    height: 100%;
    align-items: center;
    padding: 0 28px;
}

.player-identity {
    margin-bottom: 8px;
}

.cs2-match-detail-page .player-identity {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.player-champion-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.cs2-match-detail-page .player-champion-title {
    margin: 0;
    font-size: 44px;
    line-height: 1;
}

.cs2-match-detail-page .player-detail-avatar {
    width: 44px !important;
    height: 44px !important;
    transform: none !important;
    flex-shrink: 0;
}

.player-summoner-title {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 3px;
}

.player-header-stats {
    display: flex;
    gap: 32px;
    padding-bottom: 4px;
}

.cs2-match-detail-page .player-header-stats {
    padding-bottom: 0;
    align-items: center;
}

.header-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.header-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

/* Body Layout */
.player-detail-body {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--spacing-lg);
    min-height: 500px;
}

/* Columns */
.detail-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Breakdown Section */
.breakdown-column {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    position: relative;
}

.tabs-nav {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.tab-btn.active {
    color: #fff;
}

.breakdown-list {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px;
}

.breakdown-item {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: flex;
}

.breakdown-points {
    font-weight: 700;
    min-width: 50px;
    text-align: right;
}

.breakdown-points.positive {
    color: #10b981;
}

.breakdown-points.negative {
    color: #ef4444;
}

.breakdown-text {
    margin-left: 8px;
    color: #cbd5e1;
}

/* Rating Circle Card */
.rating-summary-card {
    position: absolute;
    top: 70px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.rating-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #10b981;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.rating-label {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
}

.rating-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

/* Extras Column */
.extras-column {
    gap: var(--spacing-lg);
}

.card-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.card-title {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Build Display */
.build-display {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.items-row {
    display: flex;
    gap: 8px;
}

.items-row .item-icon {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.runes-row {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.runes-row .rune-icon {
    width: 32px;
    height: 32px;
}

.runes-row .rune-tree-icon {
    width: 28px;
    height: 28px;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

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

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 1200px) {
    .players-tab-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .player-list-panel {
        height: 400px;
        order: 2;
        max-width: 100%;
    }

    .player-details-panel {
        order: 1;
        overflow-y: visible;
    }
}


/* --- NEW LAYOUT UPDATES --- */

/* Details Body re-grid */
.player-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Equal split: Breakdown | Extras */
    gap: var(--spacing-lg);
}

/* Breakdown Area split */
.breakdown-content-area {
    display: flex;
    gap: 16px;
    height: 480px;
}

.breakdown-list {
    flex: 1.5;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
}

.rating-side-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border-color);
}

.rating-circle.large {
    width: 120px;
    height: 120px;
    font-size: 32px;
}

.rating-label-large {
    font-size: 24px;
    font-weight: 800;
    margin-top: 12px;
}

/* Lane Matchup */
.lane-matchup-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px;
}

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

.lane-role-text {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.lane-role-icon-small {
    width: 24px;
    height: 24px;
    filter: brightness(0.8);
}

.lane-vs-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.lane-champ-icon {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    border: 2px solid var(--border-color);
}

.lane-player.me .lane-champ-icon {
    border-color: #fbbf24;
    /* highlight selection */
}

.lane-vs-badge {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-muted);
}

.enemy-name {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
}

.lane-stat-diff {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-top: 8px;
}

.diff-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.diff-value {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    color: #000;
}

/* Spells & Build */
.spells-display {
    display: flex;
    gap: 4px;
}

.spell-icon {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Right Panel Matchup List */
.player-matchup-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    overflow-y: auto;
}

.matchup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
}

.matchup-role {
    width: 24px;
    display: flex;
    justify-content: center;
    opacity: 0.5;
}

.matchup-role img {
    width: 20px;
    height: 20px;
}

.matchup-player {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.matchup-player:hover {
    background: rgba(255, 255, 255, 0.05);
}

.matchup-player.active {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.matchup-player.red {
    flex-direction: row-reverse;
    text-align: right;
}

.matchup-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.matchup-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.matchup-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.matchup-rating {
    font-size: 11px;
    font-weight: 800;
}

.header-value.white {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}


/* --- REFINED LAYOUT (Request 3) --- */

/* 1. Column Widths: Breakdown wider by ~10% */
.player-detail-body {
    grid-template-columns: 1.2fr 0.85fr !important;
    /* ~58% vs 42% */
}

/* 2. Breakdown Styling */
/* Category Tabs - Single Box Layout */
.tabs-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    flex-wrap: nowrap;
}

/* Icon Button for "Wszystko" */
.tab-btn-icon {
    background: transparent;
    border: none;
    padding: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    border-radius: 6px;
}

.tab-btn-icon img {
    width: 38px;
    height: 38px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.tab-btn-icon:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn-icon:hover img {
    opacity: 0.9;
}

.tab-btn-icon.active {
    background: rgba(59, 130, 246, 0.15);
}

.tab-btn-icon.active img {
    opacity: 1;
}

/* Vertical Divider */
.tabs-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Category Tab Buttons */
.tab-btn {
    padding: 6px 12px;
    font-size: 13px;
    opacity: 0.5;
    transition: all 0.2s;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    opacity: 1;
    font-size: 13px;
    color: #fff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
}

.breakdown-content-area {
    /* Add divider between breakdown list and rating circle if needed */
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Divider check */
    padding-top: 16px;
}

.rating-side-panel {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

/* 3. New Linia Card Layout */
.lane-card-content-refined {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* Divider handles spacing */
    height: 220px;
}

.lane-card-left {
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lane-card-right {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Header within Linia Card */
.lane-header-refined {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.lane-title-large {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.lane-role-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
}

.lane-role-text-large {
    font-size: 16px;
    font-weight: 800;
}

/* Enemy Info */
.enemy-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.label-mini {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.enemy-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.enemy-icon-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.enemy-details h5 {
    margin: 0;
    font-size: 14px;
    color: #fff;
}

.enemy-details span {
    font-size: 11px;
    color: var(--text-muted);
}

.rating-diff-box {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.rating-diff-box.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.compare-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.compare-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Right Side Stats */
.vs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vs-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.vs-text {
    font-weight: 900;
    color: var(--text-muted);
    font-size: 12px;
}

.stat-row-refined {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label-refined {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-values-refined {
    display: flex;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}


/* --- FIXES & REFINEMENTS (User Feedback) --- */

/* 1. Header Splash Overflow Fix */
.player-detail-header {
    position: relative;
    overflow: hidden;
    /* Fix splash overlapping */
    /* consistent rounded top */
}

/* 2. Grid Layout Adjustment (Wider Breakdown) */
.player-detail-body {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) !important;
    /* ~62% vs 38% */
    gap: 20px;
}

.detail-column,
.breakdown-column,
.extras-column,
.card-section,
.breakdown-list,
.breakdown-item {
    min-width: 0;
}

.breakdown-text {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* --- Standardized Section Headers (UPPERCASE) --- */
.card-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
}

/* --- Horizontal Rating Display (Circle Left, Label Right) --- */
.rating-display-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
}

.rating-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rating-circle-svg {
    width: 160px;
    height: 160px;
}

.rating-progress-arc {
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

.rating-value-text-small {
    font-size: 36px;
    font-weight: 900;
    font-family: var(--font-family);
}

.vs-opponent-section-below {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vs-opponent-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: lowercase;
}

.vs-opponent-rating {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
}

.rating-label-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.rating-label-large {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.rating-description {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.4;
}

.tabs-nav {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 8px;
    border-radius: 10px;
    margin-bottom: 0;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    font-family: var(--font-family);
    align-items: center;
}

/* Full-width WSZYSTKO button above category tabs */
.tab-btn-all {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-family);
    line-height: 1;
    display: block;
    width: 100%;
    margin-bottom: 0;
    margin-top: 16px;
}

.tab-btn-all:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.tab-btn-all.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-family);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Smooth animations for rating changes */
@keyframes progressFill {
    from {
        stroke-dashoffset: 471;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.rating-circle-svg circle:last-child {
    stroke-dasharray: 471.24;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.65, 0, 0.35, 1), stroke 0.3s ease;
}

.breakdown-list {
    animation: fadeIn 0.4s ease;
}

.rating-label-large,
.rating-description {
    animation: fadeIn 0.4s ease;
}

/* Build Section - Runes Inline with Spells */
.runes-spells-combined {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.runes-inline {
    display: flex;
    align-items: center;
    gap: 4px;
}

.runes-inline img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.build-divider-full {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}


/* Breakdown List Adjustment */
.breakdown-column {
    min-height: 550px;
    display: flex;
    flex-direction: column;
}

.breakdown-column .breakdown-list {
    flex: 1;
    overflow-y: auto;
    height: 300px;
    /* Fixed height - always expanded */
    min-height: 300px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    animation: fadeIn 0.4s ease;
}

/* Lane Section - Comparison Button */
.lane-card-item:last-child {
    border-bottom: none;
}

.stat-row-refined.last-stat {
    border-bottom: none !important;
}

.lane-compare-button-wrapper {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lane-compare-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.lane-compare-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.lane-compare-btn:active {
    transform: translateY(0);
}

/* Rating Circle Texts */
.rating-sub {
    font-size: 11px !important;
    color: #94a3b8 !important;
    /* Grey */
    font-style: normal !important;
    /* Not italic */
    margin-top: 8px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.rating-sub-value {
    font-size: 16px;
    font-weight: 800;
    margin-top: 2px;
}

/* 4. Linia Card - Split View */
.lane-card-content-refined {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Adjusted for table space */
    gap: 16px;
    height: 100%;
}

.lane-card-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.lane-header-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.lane-role-badge-refined {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Lane card header row - fix LINIA and ADC alignment */
.lane-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    line-height: 30px;
    /* Match height of role badge */
}

.lane-role-badge-large {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lane-role-text-main {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.enemy-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.enemy-identity img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #333;
}

.diff-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 15px;
}

.diff-badge.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.diff-badge.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.compare-btn-refined {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    width: 100%;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.compare-btn-refined:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Right Side Stats Table */
.stats-table-refined {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.table-header {
    display: flex;
    justify-content: flex-end;
    /* Align VS to right or center of numbers?? Screenshot shows columns */
    /* Screenshot: VS column in middle, Icons on top */
    /* Implementation: Grid row for each stat */
}

.stats-row {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.stats-row:last-child {
    border-bottom: none;
}

.stat-label-col {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-val {
    font-weight: 700;
    color: #fff;
    font-size: 13px;
}

.vs-text-mini {
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
}

.table-icons-row {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center;
    justify-items: center;
    margin-bottom: 8px;
}

.table-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}


/* Breakdown Items - Separated with dividers as requested */
.breakdown-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 0;
}

.breakdown-item:last-child {
    border-bottom: none;
}



/* --- REFINED PLAYERS TAB CSS (Missing Blocks) --- */

.lane-card-content-refined {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 220px;
}

.lane-card-left {
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lane-card-right {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lane-header-refined {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.lane-title-large {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.lane-role-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
}

.lane-role-text-large {
    font-size: 16px;
    font-weight: 800;
}

.enemy-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.label-mini {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.enemy-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.enemy-icon-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.enemy-details h5 {
    margin: 0;
    font-size: 14px;
    color: #fff;
}

.enemy-details span {
    font-size: 11px;
    color: var(--text-muted);
}

.rating-diff-box {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.rating-diff-box.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.compare-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.compare-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.vs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vs-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.vs-text {
    font-weight: 900;
    color: var(--text-muted);
    font-size: 12px;
}

.stat-row-refined {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label-refined {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-values-refined {
    display: flex;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

/* Rating Sub Label Color Fix */
.rating-sub {
    font-size: 13px !important;
    margin-top: 4px;
    font-weight: 700;
}


/* --- Refined 2.0 Linia Layout --- */
.lane-card-content-refined {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lane-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lane-role-badge-large {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lane-title-main {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.lane-role-badge-large {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lane-role-text-main {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.lane-icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.lane-icon-player {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.vs-large {
    font-size: 16px;
    font-weight: 900;
    color: var(--text-muted);
}

.lane-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-col {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
}

.stats-col.border-right {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-positive {
    color: #10b981;
}

.stat-negative {
    color: #ef4444;
}

.compare-btn-container {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.compare-btn-bar {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}


/* --- Divider & Labels --- */
.vs-divider {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 400;
}

/* Fix breakdown title spacing if needed */
.breakdown-item {
    padding: 2px 0;
}

/* ==========================================
   TOOLTIP STYLES (Items, Runes, Spells)
   ========================================== */

.game-tooltip {
    position: fixed;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    max-width: 320px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.game-tooltip.visible {
    opacity: 1;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
}

.tooltip-title {
    flex: 1;
}

.tooltip-name {
    font-size: 14px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 4px;
}

.tooltip-cost {
    font-size: 12px;
    color: #fbbf24;
    font-weight: 500;
}

.tooltip-description {
    font-size: 12px;
    line-height: 1.6;
    color: #9ca3af;
}

/* ==========================================
   RUNES DISPLAY - FULL TREE
   ========================================== */

.runes-display-full {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 8px;
}

.rune-row {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.rune-row.keystone-row {
    margin-bottom: 4px;
}

.rune-icon-keystone {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.rune-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.rune-icon-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.rune-icon-shard {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.rune-icon-keystone:hover,
.rune-icon:hover,
.rune-icon-small:hover,
.rune-icon-shard:hover {
    transform: scale(1.15);
    filter: brightness(1.3);
}

.rune-slot-empty {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}


/* ==========================================
   BUILD SECTION - PROPER LAYOUT
   ========================================== */

/* Build header: title + spells */
.build-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.build-header-spells {
    display: flex;
    gap: 4px;
}

.spell-icon-small {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.spell-icon-small:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Build items row */
.build-items-row {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.item-spacer {
    width: 12px;
}

/* Item icons in BUILD section */
.build-display .item-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.build-display .item-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.build-display .item-icon.empty {
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.3;
}

/* Runes horizontal layout */
.build-runes-horizontal {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center
}

/* Rune icons - horizontal size */
.rune-icon-horizontal-keystone {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.rune-icon-horizontal {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.rune-icon-horizontal-small {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.rune-icon-horizontal-keystone:hover,
.rune-icon-horizontal:hover,
.rune-icon-horizontal-small:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}

.rune-slot-empty-small {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Divider */
.build-divider-full {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

/* Rune dividers */
.rune-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 6px;
}


/* Rune Trees Section */
.build-rune-trees {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.rune-tree-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 160px;
}

.rune-tree-icon-large {
    width: 24px;
    height: 24px;
}

.rune-tree-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   DAMAGE TAB STYLES
   ========================================== */

/* Main Container */
.damage-tab-container {
    width: 100%;
    padding: 0;
}

/* Sub-tab Navigation */
.damage-sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: var(--spacing-xl);
    padding: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.damage-sub-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.5px;
}

.damage-sub-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.damage-sub-tab.active {
    color: #ef4444;
    border-bottom-color: #ef4444;
}

/* Content Layout */
.damage-content-panel {
    display: flex;
    gap: var(--spacing-xl);
    width: 100%;
}

.damage-players-section {
    flex: 1;
    min-width: 0;
}

.damage-stats-panel {
    flex: 0 0 320px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
}

/* Role Groups */
.damage-role-group {
    margin-bottom: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.damage-role-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.damage-role-icon {
    width: 20px;
    height: 20px;
}

.damage-role-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Player Rows */
.damage-player-row {
    display: grid;
    grid-template-columns: 200px 1fr 100px;
    gap: var(--spacing-md);
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.damage-player-row.blue {
    /* Blue team styling could go here if needed */
}

.damage-player-row.red {
    /* Red team styling could go here if needed */
}

.damage-player-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.damage-champion-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.damage-player-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Damage Bars */
.damage-bar-container {
    position: relative;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.damage-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.damage-bar.blue {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.8), rgba(96, 165, 250, 0.5));
}

.damage-bar.red {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.8), rgba(248, 113, 113, 0.5));
}

.damage-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}

/* Stats Panel */
.damage-stats-panel-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.damage-panel-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 var(--spacing-md) 0;
}

/* Team Totals */
.damage-total-section {
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.damage-team-total {
    margin-bottom: var(--spacing-md);
}

.damage-team-total:last-child {
    margin-bottom: 0;
}

.damage-team-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.damage-team-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
    margin-bottom: 6px;
}

.damage-team-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.damage-team-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.damage-team-bar.blue {
    background: #60a5fa;
}

.damage-team-bar.red {
    background: #f87171;
}

/* Top 3 Section */
.damage-top3-section {
    /* No border needed */
}

.damage-top-player {
    display: grid;
    grid-template-columns: 24px 32px 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.damage-top-player:last-child {
    margin-bottom: 0;
}

.damage-top-player.blue {
    border-left-color: #60a5fa;
}

.damage-top-player.red {
    border-left-color: #f87171;
}

.damage-top-player:hover {
    background: rgba(255, 255, 255, 0.05);
}

.damage-top-rank {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-muted);
    text-align: center;
}

.damage-top-champion {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.damage-top-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.damage-top-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.damage-top-value {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.damage-top-bar-bg {
    grid-column: 1 / -1;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.damage-top-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.damage-top-bar.blue {
    background: #60a5fa;
}

.damage-top-bar.red {
    background: #f87171;
}

/* Responsive */
@media (max-width: 1200px) {
    .damage-content-panel {
        flex-direction: column;
    }

    .damage-stats-panel {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .damage-player-row {
        grid-template-columns: 150px 1fr 80px;
    }

    .damage-sub-tab {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Damage Tab - Centered Champion Portraits */
.damage-champion-portrait {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-size: 180%;
    background-position: center 20%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Reduced padding for role groups */
.damage-role-group {
    margin-bottom: 8px !important;
    padding: 8px 12px !important;
}

.damage-role-header {
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
}

.damage-player-row {
    padding: 4px 0 !important;
}

/* Top 3 - Champion Wrapper with Position Badge */
.damage-top-champion-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.damage-top-champion {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background-size: 180%;
    background-position: center 20%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.damage-top-position {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
}

.damage-top-position.blue {
    background: rgba(96, 165, 250, 0.95);
}

.damage-top-position.red {
    background: rgba(248, 113, 113, 0.95);
}

.damage-top-position-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Adjust top player grid to account for new wrapper */
.damage-top-player {
    grid-template-columns: 24px 32px 1fr !important;
}

/* Centered Champion Portraits - Global */
.champion-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px;
    background-size: 180%;
    background-position: center 20%;
    background-repeat: no-repeat;
}

.lane-champion-portrait {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-size: 180%;
    background-position: center 20%;
    background-repeat: no-repeat;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* REMOVED: Old achievement-champion-portrait-small styles - now using universal tiles styles below */


/* Players Tab - Centered Portraits */
.player-list-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px;
    background-size: 180%;
    background-position: center 20%;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.lane-icon-player {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-size: 180%;
    background-position: center 20%;
    background-repeat: no-repeat;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* ========================================
   CHAMPION ICON STYLES - SPLIT BY SHAPE
   ======================================== */

/* SQUARE icons with rounded corners (8px) */

/* Overview Table - keep original size */
.champion-icon {
    border-radius: 8px !important;
    background-size: 120% !important;
    background-position: center 25% !important;
    overflow: hidden !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* Player List - 10% smaller using scale */
.player-list-icon {
    border-radius: 8px !important;
    background-size: 120% !important;
    background-position: center 25% !important;
    overflow: hidden !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    transform: scale(0.9) !important;
}

/* Lane comparison icons in Players tab - square with rounded corners */
.lane-icon-player {
    border-radius: 8px !important;
    background-size: 120% !important;
    background-position: center 25% !important;
    overflow: hidden !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* ROUND icons (50%) - Achievement, Damage, Leczenie */
.achievement-champion-portrait-small,
.damage-champion-portrait,
.damage-top-champion {
    border-radius: 50% !important;
    background-size: 120% !important;
    background-position: center 25% !important;
    overflow: hidden !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* Linia section - round with OLD gray border (not semi-transparent) */
.lane-champion-portrait {
    border-radius: 50% !important;
    background-size: 120% !important;
    background-position: center 25% !important;
    overflow: hidden !important;
    border: 3px solid rgba(255, 255, 255, 0.1) !important;
    /* OLD gray border from laningPhase.css */
    box-shadow: none !important;
    /* No shadow for Linia section */
}

/* Achievement banner - keep original size */
.achievement-champion-portrait-small {
    width: 24px !important;
    height: 24px !important;
}

/* Table champion icon - standard size */
.champion-icon {
    width: 40px !important;
    height: 40px !important;
}

/* ========================================
   SECTION LINIA - FIX RED PLAYER POSITIONING
   ======================================== */

/* Ensure player-avatar is flex container for order to work */
.matchup-player .player-avatar {
    display: flex;
}

/* Blue player portrait - stays on left */
.lane-champion-portrait-blue {
    order: -1;
}

/* Red player portrait - moves to right */
.lane-champion-portrait-red {
    order: 3;
}




/* ========================================
   SECTION DAMAGE - ROLE ICON POSITIONING
   ======================================== */

/* Container for damage value + role icon */
.damage-value-group {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

/* Role icon next to damage value */
.damage-value-role-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Top 3 damage - role icon positioning */
.damage-top-player {
    position: relative;
}

.damage-top-role-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    flex-shrink: 0;
    margin-left: auto;
}

/* Adjust layout for top player damage items */
.damage-top-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Live Match Detail */
.lol-live-detail-page {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.live-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
}

.live-overview-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.live-overview-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.live-overview-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.live-overview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    letter-spacing: 0.3px;
}

.live-back-button,
.live-refresh-button {
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
}

.live-back-button:hover,
.live-refresh-button:hover {
    border-color: #3b82f6;
    color: #dbeafe;
}

.live-overview-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.live-overview-table {
    border: none;
    border-radius: 12px;
}

.live-overview-table .player-name-cell {
    text-decoration: none;
}

.live-items-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.live-items-cell.empty {
    color: var(--text-muted);
    font-size: 12px;
}

.live-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
    .live-overview-header {
        flex-wrap: wrap;
    }

    .live-overview-title {
        font-size: 18px;
    }
}

/* ==========================================
   CS2 ROUND CHART TOOLTIP
   ========================================== */
.cs2-round-bar-wrap {
    overflow: visible;
}

.cs2-round-tooltip {
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%) translateY(6px);
    min-width: 260px;
    max-width: 340px;
    background: rgba(10, 14, 28, 0.98);
    border: 1px solid rgba(51, 65, 85, 0.95);
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.75);
    padding: 10px 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 45;
}

.cs2-round-bar-wrap:hover .cs2-round-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cs2-round-tooltip-round {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #f3f3f3;
}

.cs2-round-tooltip-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.24);
    margin: 8px 0;
}

.cs2-round-tooltip-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cs2-round-tooltip-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 8px;
    align-items: start;
}

.cs2-round-tooltip-points {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
}

.cs2-round-tooltip-points.positive {
    color: #10b981;
}

.cs2-round-tooltip-points.negative {
    color: #ef4444;
}

.cs2-round-tooltip-text {
    font-size: 11.5px;
    line-height: 1.35;
    color: #cbd5e1;
}

.cs2-round-tooltip-empty {
    font-size: 11.5px;
    line-height: 1.35;
    color: #94a3b8;
}
