/* ==========================================
   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;
    gap: 16px;
    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;
}

/* 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);
}

.banner-tab {
    background: rgba(0, 0, 0, 0.6);
    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;
}

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

/* 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: var(--text-primary);
    line-height: 1;
    margin-bottom: auto;
}

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

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

.team-header {
    display: flex;
    align-items: center;
    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.blue {
    border-left-color: #4a90e2;
}

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

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

.team-result {
    margin-left: auto;
    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);
}

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

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

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

.player-name {
    font-size: 12px;
    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);
    }

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

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

/* 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: 1fr 340px;
    gap: var(--spacing-xl);
    min-height: calc(100vh - 600px);
    margin-top: var(--spacing-lg);
    padding-bottom: var(--spacing-2xl);
}

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

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

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

.player-list-champion {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

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

.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 */
}

/* 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 */
}

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

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

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

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

.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: 42px;
    height: 42px;
    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;
    }

    .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: 32px;
    height: 32px;
    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: 1.3fr 0.8fr !important;
    /* ~62% vs 38% */
    gap: 20px;
}

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