/* Bot Search Section */
.bot-search-section {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.bot-search-section h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    text-align: center;
}

.bot-search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--bg-medium);
}

.bot-search-tab {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.bot-search-tab:hover {
    color: var(--primary-color);
}

.bot-search-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.bot-search-panel {
    width: 100%;
    display: none;
}

/* Show Search Tracked Players panel by default (it's the active tab on load) */
#search-tracked-players-panel {
    display: block;
}

.bot-search-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.bot-search-container {
    width: 100%;
}

.bot-total-count {
    margin-top: 0.75rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bot-search-input-wrapper {
    position: relative;
    width: 100%;
}

.bot-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-medium);
    border: 2px solid var(--bg-light);
    border-radius: calc(var(--border-radius) / 2);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bot-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.bot-search-input::placeholder {
    color: var(--text-secondary);
}

.bot-search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border: 2px solid var(--bg-light);
    border-radius: calc(var(--border-radius) / 2);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.25rem;
}

.bot-search-loading,
.bot-search-empty,
.bot-search-error {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.bot-search-error {
    color: var(--error-color);
}

.bot-search-results-list {
    padding: 0.5rem 0;
}

.bot-search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bg-light);
    transition: background-color 0.2s ease;
    cursor: default;
}

.bot-search-result-item:last-child {
    border-bottom: none;
}

.bot-search-result-item:hover {
    background: var(--bg-medium);
}

.bot-search-result-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.bot-search-result-name strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.bot-badge {
    font-size: 1rem;
    opacity: 0.8;
}

.bot-search-result-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.bot-search-meta-item {
    display: flex;
    align-items: center;
}

.recent-matches-controls {
    margin-bottom: 1.5rem;
}

.matches-filter-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-medium);
    border-radius: calc(var(--border-radius) / 2);
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    color: var(--text-primary);
    width: fit-content;
}

.recent-matches-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: var(--bg-medium);
    border-radius: calc(var(--border-radius) / 2);
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.dsp-player-filter {
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border: 2px solid var(--bg-light);
    border-radius: calc(var(--border-radius) / 2);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.dsp-player-filter:hover {
    border-color: var(--primary-color);
}

.dsp-player-filter:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.filter-label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.player-filter-select {
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border: 2px solid var(--bg-light);
    border-radius: calc(var(--border-radius) / 2);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.player-filter-select:hover {
    border-color: var(--primary-color);
}

.player-filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.recent-matches-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
}

.pagination-btn {
    padding: 0.5rem 1.5rem;
    background: var(--bg-medium);
    border: 2px solid var(--bg-light);
    border-radius: calc(var(--border-radius) / 2);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}

.recent-matches-section {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 0;
}

.recent-matches-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    text-align: center;
}

.recent-matches-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Player stats recent matches use 2 columns */
.player-stats-recent-matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.recent-match-card {
    background: var(--bg-medium);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.recent-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-medium);
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
}

.recent-match-card .match-card-header {
    position: relative;
    z-index: 1;
}

.recent-match-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.recent-match-card.loading {
    position: relative;
}

.recent-match-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-muted);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
}

.match-card-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    user-select: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    display: block;
    outline: none;
}

.match-card-trigger:active {
    outline: none;
    border: none;
}

.match-card-trigger:focus {
    outline: none;
}

.match-card-trigger:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    border-radius: calc(var(--border-radius) / 2);
}

.match-card-info {
    flex: 1;
    min-width: 0; /* Allow text to wrap properly */
    border: none;
    outline: none;
}

.match-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.match-map {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

/* Map-specific colors */
.match-map.map-erangel,
.match-popover-title.map-erangel {
    color: #4a90e2;
}

.match-map.map-miramar,
.match-popover-title.map-miramar {
    color: #d4a574;
}

.match-map.map-savage,
.match-popover-title.map-savage {
    color: #5cb85c;
}

.match-map.map-desert,
.match-popover-title.map-desert {
    color: #d4a574;
}

.match-map.map-dihorotok,
.match-popover-title.map-dihorotok {
    color: #87ceeb;
}

.match-map.map-range,
.match-popover-title.map-range {
    color: #808080;
}

.match-map.map-baltic,
.match-popover-title.map-baltic {
    color: #4a90e2;
}

.match-map.map-summerland,
.match-popover-title.map-summerland {
    color: #cd853f;
}

.match-map.map-chimera,
.match-popover-title.map-chimera {
    color: #8b4513;
}

.match-map.map-kiki,
.match-popover-title.map-kiki {
    color: #ff6347;
}

.match-map.map-heaven,
.match-popover-title.map-heaven {
    color: #9370db;
}

.match-map.map-neon,
.match-popover-title.map-neon {
    color: #ff1493;
}

.match-map.map-tiger,
.match-popover-title.map-tiger {
    color: #ffa500;
}

.match-map.map-deston,
.match-popover-title.map-deston {
    color: #ff6347;
}

.match-map.map-rondo,
.match-popover-title.map-rondo {
    color: #ff1493;
}

/* Fallback for unknown maps */
.match-map:not([class*="map-"]),
.match-popover-title:not([class*="map-"]) {
    color: var(--primary-color);
}

.team-rank-badge-small {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark, #8b5cf6));
    border-radius: calc(var(--border-radius) / 2);
    padding: 0.35rem 0.65rem;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.team-rank-badge-small.winner {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.team-rank-label-small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.team-rank-value-small {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.match-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.match-date {
    color: var(--text-primary);
}

.match-players-count {
    color: var(--text-secondary);
}

.match-tracked-players {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.match-top-performers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.75rem;
    margin-top: 0.4rem;
}

.top-performer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    box-shadow: 0 1px 4px rgba(139, 92, 246, 0.15);
    line-height: 1.3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-performer-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
}

.top-performer-emoji {
    font-size: 1em;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.top-performer-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: flex-start;
}

.top-performer-content .player-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: inherit;
    line-height: inherit;
}

.top-performer-content .stat-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9em;
    line-height: inherit;
}

.winning-team-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #ffd700;
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.2);
    margin-top: 0.4rem;
    line-height: 1.3;
    font-size: 0.75rem;
}

.winning-team-badge.dsp-team-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
    border: 1px solid var(--primary-color);
    box-shadow: 0 1px 4px rgba(139, 92, 246, 0.2);
}

.winning-team-emoji {
    font-size: 1em;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.winning-team-emoji .dsp-badge-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.winning-team-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: flex-start;
    font-size: inherit;
}

.winning-team-stats {
    color: var(--text-primary);
    font-weight: 600;
    font-size: inherit;
}

.winning-team-players {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85em;
}

.squad-stats-line,
.squad-players-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: flex-start;
}

.tracked-label {
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
}

.tracked-names {
    color: var(--text-primary);
    flex: 1;
}

/* Popover styles */
.match-popover {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 90vh;
    width: 1400px;
    background: var(--bg-medium);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0;
    margin: 0;
    pointer-events: auto;
    overflow: hidden;
    flex-direction: column;
    z-index: 10001;
}

/* Base popover styles with transitions */
.match-popover[popover] {
    display: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        display 0.15s allow-discrete,
        overlay 0.15s allow-discrete;
    pointer-events: none;
}

/* Entry state (when popover is open) */
.match-popover[popover]:popover-open {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Starting style for entry animation (when transitioning from display: none to visible) */
@starting-style {
    .match-popover[popover]:popover-open {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.match-popover::backdrop {
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
}

/* Exit state for backdrop */
.match-popover[popover]::backdrop {
    opacity: 0;
    transition:
        opacity 0.15s ease,
        display 0.15s allow-discrete;
}

/* Entry state for backdrop */
.match-popover[popover]:popover-open::backdrop {
    opacity: 1;
}

/* Starting style for backdrop entry animation */
@starting-style {
    .match-popover[popover]:popover-open::backdrop {
        opacity: 0;
    }
}

.match-popover-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    /* Ensure content is interactable */
    pointer-events: auto;
}

.match-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--bg-light);
    background: var(--bg-dark);
    background-image: var(--map-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.match-popover-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.match-popover-header.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 3px solid var(--text-muted);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

.match-popover-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    opacity: 0.85;
    z-index: 0;
}

.match-popover-header > * {
    position: relative;
    z-index: 1;
}

.match-popover-title-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
}

.match-popover-title-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.match-popover-title-section > h2 {
    margin: 0;
}

.bot-leaderboard-header {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.bot-leaderboard-header .bot-leader-item {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.25));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: calc(var(--border-radius) / 2);
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bot-leaderboard-header .bot-leader-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.35));
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.bot-leaderboard-header .bot-killer-badge::before {
    content: '🏆';
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

.bot-leaderboard-header .bot-attacker-badge::before {
    content: '⚔️';
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

.bot-leaderboard-header .bot-killer-squad-badge::before {
    content: '👥';
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

.bot-leaderboard-header .bot-attacker-squad-badge::before {
    content: '🛡️';
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

/* Bot Farmers Tab - Redesigned */
.bot-farmers-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bot-farmers-leaders {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bot-farmers-leaders-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.bot-farmer-card {
    background: linear-gradient(135deg, var(--bg-medium), var(--bg-light));
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bot-farmer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.bot-farmer-card-killer {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
}

.bot-farmer-card-killer:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.bot-farmer-card-attacker {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    border-color: rgba(139, 92, 246, 0.3);
}

.bot-farmer-card-attacker:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.bot-farmer-card-squad-killer {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.05));
    border-color: rgba(168, 85, 247, 0.3);
}

.bot-farmer-card-squad-killer:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.bot-farmer-card-squad-attacker {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border-color: rgba(59, 130, 246, 0.3);
}

.bot-farmer-card-squad-attacker:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.bot-farmer-card-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.bot-farmer-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bot-farmer-card-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.bot-farmer-squad-team-id {
    font-size: 0.7rem;
    color: var(--primary-color);
    text-transform: none;
    font-weight: 500;
    margin-left: 0.25rem;
}

.clickable-player-name,
.clickable-player-name:link,
.clickable-player-name:visited,
.clickable-player-name:active {
    cursor: pointer;
    color: #ffffff !important;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.clickable-player-name:hover {
    color: #64c8ff !important;
}

.bot-farmer-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.bot-farmer-card-stat {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.bot-farmers-squad-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bot-farmers-squad-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bot-farmers-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.bot-farmers-squad-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.bot-farmers-total-card {
    background: var(--bg-medium);
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.bot-farmers-total-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.bot-farmers-total-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.bot-farmers-total-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bot-farmers-total-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.bot-farmers-total-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.bot-farmers-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.bot-farmer-player-card {
    background: var(--bg-medium);
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.bot-farmer-player-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.bot-farmer-player-card-empty {
    opacity: 0.5;
    border-style: dashed;
}

.bot-farmer-player-card-empty:hover {
    opacity: 0.7;
}

.bot-farmer-player-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.bot-farmer-player-stats {
    display: flex;
    gap: 1rem;
}

.bot-farmer-player-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.bot-farmer-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.bot-farmer-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-primary);
    line-height: 1;
}

.bot-farmer-stat-kills {
    color: #fbbf24;
}

.bot-farmer-stat-damage {
    color: #ef4444;
}

/* Squad players list in cards */
.bot-farmer-card-squad-players {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.bot-farmer-squad-player {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.bot-farmer-squad-stat {
    color: var(--text-secondary);
    font-weight: 500;
}

/* All Players Tables Section */
.bot-farmers-tables-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bot-farmers-tables-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.bot-farmers-table-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bot-farmers-table-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.bot-farmers-table-scroll {
    overflow-x: auto;
    border-radius: var(--border-radius);
    background: var(--bg-medium);
    border: 1px solid var(--bg-light);
}

.bot-farmers-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 250px;
}

.bot-farmers-stats-table thead {
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 1;
}

.bot-farmers-stats-table th {
    padding: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--bg-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bot-farmer-rank-header {
    text-align: center;
    width: 60px;
}

.bot-farmer-player-header {
    text-align: left;
}

.bot-farmer-squad-header {
    text-align: center;
    width: 120px;
}

.bot-farmer-stat-header {
    text-align: right;
}

.bot-farmers-stats-table tbody tr {
    border-bottom: 1px solid var(--bg-light);
    transition: background-color 0.2s ease;
}

.bot-farmers-stats-table tbody tr:hover {
    background: var(--bg-dark);
}

.bot-farmers-stats-table tbody tr.bot-farmer-dsp-player {
    background: rgba(139, 92, 246, 0.05);
}

.bot-farmers-stats-table tbody tr.bot-farmer-dsp-player:hover {
    background: rgba(139, 92, 246, 0.1);
}

.bot-farmers-stats-table td {
    padding: 0.75rem;
    color: var(--text-primary);
}

.bot-farmer-rank {
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.bot-farmers-stats-table .bot-farmer-player-name {
    font-weight: 500;
    word-break: break-word;
    text-align: left;
}

.bot-farmers-stats-table .bot-farmer-player-name.clickable-player-name {
    cursor: pointer;
    color: var(--text-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.bot-farmers-stats-table .bot-farmer-player-name.clickable-player-name:hover {
    color: var(--accent-color);
}

.bot-farmer-squad {
    text-align: center;
}

.bot-farmer-dsp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: calc(var(--border-radius) / 3);
    margin-left: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bot-farmer-dsp-badge img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.bot-farmers-stats-table .bot-farmer-stat-value {
    font-weight: 600;
    text-align: right;
}

@media (max-width: 768px) {
    .bot-farmers-leaders-row {
        grid-template-columns: 1fr;
    }
    
    .bot-farmers-tables-container {
        grid-template-columns: 1fr;
    }
    
    .bot-farmers-table-scroll {
        max-height: 400px;
        overflow-y: auto;
    }
}

.match-popover-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.match-popover-top-performers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.75rem;
    margin-top: 0.4rem;
}

.match-popover-top-performers .top-performer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    box-shadow: 0 1px 4px rgba(139, 92, 246, 0.15);
    line-height: 1.3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.match-popover-top-performers .top-performer-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
}

.match-popover-top-performers .top-performer-emoji {
    font-size: 1em;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.match-popover-top-performers .top-performer-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: flex-start;
}

.match-popover-top-performers .top-performer-content .player-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: inherit;
    line-height: inherit;
}

.match-popover-top-performers .top-performer-content .stat-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9em;
    line-height: inherit;
}

.match-popover-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.meta-item {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    white-space: nowrap;
}

.meta-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.meta-value {
    color: var(--text-primary);
}

.match-popover-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
    margin-bottom: 0 !important;
}

.match-weather {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.team-rank-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark, #8b5cf6));
    border-radius: var(--border-radius);
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    min-width: 80px;
}

.team-rank-badge.winner {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.6);
    border: 2px solid rgba(212, 175, 55, 0.5);
}

.team-rank-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-rank-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.match-popover-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--border-radius) / 2);
    transition: background-color 0.2s ease;
}

.match-popover-close:hover {
    background: var(--bg-light);
}

.match-popover-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Ensure tab content areas can scroll independently */
.match-tab-content[data-tab-content="other-teams"] {
    overflow: visible;
}

.match-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.match-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    top: 2px;
}

.match-tab:hover {
    color: var(--text-primary);
    background: var(--bg-light);
}

.match-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.match-tab-content {
    display: none;
}

.match-tab-content.active {
    display: block;
}

.other-teams-container {
    width: 100%;
    overflow-x: auto;
    /* Create scrollable container for sticky header - must have defined max-height */
    max-height: 600px;
    overflow-y: auto;
    position: relative;
    /* Ensure container creates scrolling context for sticky positioning */
    display: block;
    /* Prevent parent scrolling from interfering */
    overscroll-behavior: contain;
}

.other-teams-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    table-layout: auto;
    /* Ensure table fills container */
    display: table;
}

.other-teams-table thead {
    background: var(--bg-medium);
    position: sticky;
    top: 0;
    z-index: 10;
    /* Ensure header background covers content when scrolling */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.other-teams-table thead tr {
    background: var(--bg-medium);
}

.other-teams-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--bg-light);
    white-space: nowrap;
    background: var(--bg-medium);
}

.other-teams-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--bg-light);
    color: var(--text-primary);
}

.other-teams-table tbody tr:hover {
    background: var(--bg-light);
}

.other-teams-table tbody tr:last-child td {
    border-bottom: none;
}

.other-teams-table tbody tr.bot-team {
    opacity: 0.7;
    background: var(--bg-dark);
}

.other-teams-table tbody tr.bot-team:hover {
    opacity: 0.9;
    background: var(--bg-light);
}

.bot-team-badge {
    display: inline-block;
    font-size: 0.9rem;
    margin-left: 0.25rem;
    vertical-align: middle;
    opacity: 0.7;
    cursor: help;
}

.bot-player-badge {
    display: inline-block;
    font-size: 0.75rem;
    margin-right: 0.3rem;
    vertical-align: middle;
    opacity: 0.7;
}

.placement-cell {
    text-align: center;
    font-weight: 600;
    min-width: 80px;
}

.placement-value {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--bg-medium);
    border-radius: calc(var(--border-radius) / 2);
    font-size: 1rem;
}

.placement-value.winner {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.elimination-time {
    font-weight: 400;
    font-size: 0.85em;
    opacity: 0.8;
    display: block;
    margin-top: 0.1rem;
}

.team-id-cell {
    text-align: center;
    min-width: 100px;
}

.team-id-cell-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Team badge styling - will be dynamically colored */
.team-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: calc(var(--border-radius) / 2);
    font-weight: 600;
    font-size: 0.85em;
    line-height: 1.2;
    text-align: center;
    min-width: 2rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.team-badge-default {
    background: rgba(128, 128, 128, 0.3);
    color: #ffffff;
}

.dsp-team-text-badge {
    display: block;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.7em;
    text-align: center;
    padding: 0.15rem 0.3rem;
    border-radius: calc(var(--border-radius) / 2);
    margin-bottom: 0.2rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dsp-placement-icon {
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 auto 4px auto;
}

/* Legacy team-number - now uses team-badge styling */
.team-number {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: calc(var(--border-radius) / 2);
    font-weight: 600;
    font-size: 0.85em;
    line-height: 1.2;
    text-align: center;
    min-width: 2rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Will be overridden by inline styles from getTeamColor() */
    background: var(--bg-medium);
    color: var(--primary-color);
}

.team-number-missing {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.85rem;
}

.players-cell,
.kills-cell,
.bot-kills-cell,
.damage-cell,
.bot-damage-cell,
.damage-taken-cell,
.damage-ratio-cell {
    min-width: 100px;
}

.team-players-list,
.team-kills-breakdown,
.team-bot-kills-breakdown,
.team-damage-breakdown,
.team-bot-damage-breakdown,
.team-damage-taken-breakdown,
.team-damage-ratio-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-player-item {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.player-name {
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-stat-item {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.team-stat-item .stat-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: right;
}

.totals-cell {
    text-align: center;
    min-width: 100px;
}

.team-totals {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.team-totals-kills,
.team-totals-damage {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Add visual separator between kills and damage */
.team-totals-damage {
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bg-light);
}

.total-kills {
    color: var(--primary-color);
}

.total-bot-kills {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.total-damage {
    color: var(--text-primary);
}

.total-bot-damage {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Damage ratio styling */
.damage-ratio-cell {
    text-align: center;
}

.damage-ratio-value {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--border-radius) / 2);
    font-weight: 600;
    font-size: 0.9rem;
}

.damage-ratio-value.damage-ratio-positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.damage-ratio-value.damage-ratio-negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.damage-ratio-value.damage-ratio-neutral {
    color: var(--text-secondary);
    background: var(--bg-medium);
}

/* Simplified ratio for teams tab to fix alignment */
.team-damage-ratio {
    font-weight: 600;
    font-size: 0.9rem;
}

.team-damage-ratio-positive {
    color: #10b981;
}

.team-damage-ratio-negative {
    color: #ef4444;
}

.team-damage-ratio-neutral {
    color: var(--text-secondary);
}

/* Team totals damage taken */
.team-totals-damage-taken {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bg-light);
}

.total-damage-taken {
    color: var(--text-primary);
}

/* Responsive design for Other Teams table */
@media (max-width: 768px) {
    .other-teams-table {
        font-size: 0.8rem;
    }

    .other-teams-table th,
    .other-teams-table td {
        padding: 0.5rem;
    }

    .other-teams-table th:nth-child(5),
    .other-teams-table th:nth-child(7),
    .other-teams-table td:nth-child(5),
    .other-teams-table td:nth-child(7) {
        display: none;
    }

    .other-teams-table th:nth-child(3)::after {
        content: " (K/D)";
        font-size: 0.7rem;
        font-weight: normal;
        color: var(--text-secondary);
    }

    .team-players-list {
        gap: 0.25rem;
    }

    .team-player-item {
        flex-wrap: wrap;
    }
}

/* Blue Chip Recalls Tab Styles */
.recalls-container {
    width: 100%;
}

.recalls-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: calc(var(--border-radius) / 2);
    border: 1px solid var(--bg-light);
    justify-content: center;
    align-items: center;
}

.recalls-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
}

.recalls-summary-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recalls-summary-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.recalls-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.recalls-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.recalls-table thead {
    background: var(--bg-medium);
    position: sticky;
    top: 0;
    z-index: 10;
}

.recalls-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--bg-light);
}

.recalls-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--bg-light);
    color: var(--text-primary);
}

.recalls-table tbody tr:hover {
    background: var(--bg-light);
}

.recalls-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .match-tabs {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
        margin-bottom: 1rem;
    }

    .match-tab {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        background: var(--bg-medium);
        border: 2px solid var(--bg-light);
        border-radius: var(--border-radius);
        color: var(--text-secondary);
        transition: all 0.3s ease;
    }

    .match-tab:hover {
        background: var(--bg-light);
        color: var(--text-primary);
        border-color: var(--primary-color);
    }

    .match-tab.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .match-tabs {
        gap: 0.25rem;
    }

    .match-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .other-teams-table {
        font-size: 0.75rem;
    }

    .placement-cell {
        min-width: 60px;
    }

    .placement-value {
        font-size: 0.9rem;
        padding: 0.125rem 0.25rem;
    }
}

.match-popover-details {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-light);
}

.detail-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-value {
    color: var(--text-primary);
}

.stat-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border-radius: calc(var(--border-radius) / 2);
}

.stat-summary-item .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-summary-item .stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.match-squad-summary,
.match-squad-summary-multiple {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: calc(var(--border-radius) / 2);
    border: 1px solid var(--bg-light);
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.match-squad-summary {
    flex-direction: column;
    gap: 1rem;
}

.match-squad-summary-multiple {
    flex-wrap: wrap;
    justify-content: space-around;
}

.squad-summary-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

.squad-summary-team-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.squad-summary-items {
    display: flex;
    gap: 1.5rem;
}

.squad-summary-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-left: 1px solid var(--bg-light);
    margin-left: 1rem;
}

.squad-summary-total-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.squad-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
}

.squad-summary-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.squad-summary-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.match-popover-players {
    width: 100%;
}

.dsp-team-players {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dsp-team-players .match-player-card {
    flex: 1 1 300px;
    min-width: 250px;
}

@media (max-width: 768px) {
    .dsp-team-players .match-player-card {
        flex: 1 1 100%;
        min-width: 0;
    }
}

.match-player-card {
    background: var(--bg-dark);
    border-radius: calc(var(--border-radius) / 2);
    padding: 1rem;
    border: 1px solid var(--bg-light);
}

.match-player-card.player-teammate {
    opacity: 0.9;
    border-color: var(--text-secondary);
}

.match-player-card.player-teammate .player-name {
    color: var(--text-primary);
}

.player-name.clickable-player-name {
    cursor: pointer;
    color: var(--text-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.player-name.clickable-player-name:hover {
    color: var(--accent-color);
}

.player-badge-teammate {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-medium);
    padding: 0.15rem 0.35rem;
    border-radius: calc(var(--border-radius) / 3);
    margin-left: 0.5rem;
    vertical-align: middle;
}

.player-name-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    flex: 1;
}

.player-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.player-badges-row .season-award-badge {
    margin-left: 0 !important;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-light);
}


.player-name {
    color: var(--primary-color);
    font-size: .85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Override for player stats page - ensure main player name is 2rem */
#player-stats-container .player-stat-card .player-header-section.player-header-info .player-name-container .player-name,
#player-stats-container .player-stat-card .player-header-section.player-header-info .player-name-container span.player-name {
    font-size: 2rem !important;
}

.dsp-player-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.player-kills {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.player-kills-damage {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-bottom: 0.5rem;
}

.kills-badge,
.damage-badge {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-row {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.dsp-stat-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: end;
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-label {
    text-align: center;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.adr-range {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 4px;
}

.dsp-stat-value {
    text-align: right;
    color: #dc3545;
    font-weight: 700;
}

.dsp-player-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.dsp-player-stats-grid .stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem;
    background: var(--bg-medium);
    border-radius: calc(var(--border-radius) / 3);
}

.dsp-player-stats-grid .stat-item.stat-item-full-width {
    grid-column: 1 / -1;
}

.dsp-player-stats-grid .stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.dsp-player-stats-grid .stat-value {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.victims-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.victim-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    background: var(--bg-dark);
    border-radius: calc(var(--border-radius) / 3);
}

.weapon-icon-small {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
}

.weapon-icon-large {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.5rem;
}

.dsp-player-stats-grid .stat-item-top-weapon .stat-value-weapon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.dsp-player-stats-grid .stat-item-top-weapon .weapon-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.dsp-player-stats-grid .stat-item-all-weapons .stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.dsp-player-stats-grid .stat-item-all-weapons .weapons-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.dsp-player-stats-grid .stat-item-all-weapons .weapon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.25rem;
    background: var(--background-secondary);
    border: 1px dashed var(--accent-color);
    border-radius: 4px;
    font-size: 0.75rem;
    text-align: center;
}

.dsp-player-stats-grid .stat-item-all-weapons .weapon-item .weapon-icon-small,
.dsp-player-stats-grid .stat-item-all-weapons .weapon-item .weapon-icon-placeholder {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.dsp-player-stats-grid .stat-item-all-weapons .weapon-item .weapon-icon-placeholder {
    display: block;
}

.dsp-player-stats-grid .stat-item-all-weapons .weapon-item .weapon-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.7rem;
    line-height: 1.2;
    word-break: break-word;
}

.dsp-player-stats-grid .stat-item-all-weapons .weapon-item .weapon-damage {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.65rem;
}

@media (max-width: 768px) {
    .bot-search-section {
        padding: 1rem 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .bot-search-section h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .bot-search-tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .bot-search-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .bot-search-input {
        font-size: 0.9rem;
        padding: 0.625rem 0.875rem;
    }
    
    .bot-search-result-item {
        padding: 0.625rem 0.875rem;
    }
    
    .bot-search-result-name {
        font-size: 0.9rem;
    }
    
    .bot-search-result-meta {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .recent-matches-section {
        padding: 1rem 0.75rem;
    }
    
    .recent-matches-section h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .recent-matches-grid {
        gap: 0.75rem;
    }
    
    .player-stats-recent-matches-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .recent-match-card {
        border-radius: calc(var(--border-radius) * 0.75);
    }
    
    .match-card-header {
        padding: 0.75rem 0.5rem;
    }
    
    .match-card-info {
        min-width: 0; /* Allow text to wrap */
    }
    
    .match-card-title-row {
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .match-map {
        font-size: 0.9rem;
        line-height: 1.3;
        word-break: break-word;
    }
    
    .match-card-meta {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
        gap: 0.15rem;
    }
    
    .match-tracked-players {
        font-size: 0.65rem;
        margin-top: 0.35rem;
        gap: 0.4rem;
    }
    
    .match-top-performers {
        font-size: 0.75rem;
        margin-top: 0.35rem;
        gap: 0.4rem;
    }
    
    .top-performer-badge {
        padding: 0.4rem 0.7rem;
        gap: 0.4rem;
    }
    
    .top-performer-emoji {
        font-size: 1.1em;
    }
    
    .winning-team-badge {
        padding: 0.4rem 0.7rem;
        gap: 0.4rem;
        margin-top: 0.4rem;
        font-size: 0.75rem;
    }
    
    .winning-team-emoji {
        font-size: 1.2em;
    }
    
    .squad-stats-line,
    .squad-players-line {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.3rem;
        align-items: baseline;
    }
    
    .tracked-label {
        font-size: 0.6rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .tracked-names {
        font-size: 0.65rem;
        word-break: break-word;
        line-height: 1.5;
        flex: 1;
        min-width: 0;
    }
    
    .team-rank-badge-small {
        padding: 0.2rem 0.4rem;
        gap: 0.15rem;
        flex-shrink: 0;
    }
    
    .team-rank-label-small {
        font-size: 0.55rem;
    }
    
    .team-rank-value-small {
        font-size: 0.85rem;
    }

    .match-popover {
        max-width: 100vw;
        width: 100vw;
        max-height: 100vh;
        height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: 2px solid var(--primary-color);
        border-bottom: 2px solid var(--primary-color);
    }

    .match-popover[popover]:popover-open {
        transform: none;
    }

    .match-popover-content {
        height: 100%;
        max-height: 100vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .match-popover-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        flex-shrink: 0;
    }
    
    .match-popover-header-content {
        width: 100%;
    }

    .match-popover-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }
    
    .match-popover-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }
    
    .match-popover-title {
        font-size: 1.2rem;
    }
    
    .bot-leaderboard-header {
        font-size: 0.85rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .bot-leaderboard-header .bot-leader-item {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
        width: 100%;
        justify-content: flex-start;
    }

    .match-popover-body {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
}

/* Kill Map Styles */
.kill-map-controls {
    padding: 0.75rem;
    background: var(--bg-medium);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kill-map-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
}

.kill-map-filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.kill-map-filter-checkbox span {
    font-weight: 500;
    color: var(--text-secondary);
}

.kill-map-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
}

.kill-map-sidebar {
    flex: 0 0 280px;
    min-width: 0;
    position: sticky;
    top: 0;
    height: fit-content;
}

.kill-map-main {
    flex: 1;
    min-width: 0;
    max-width: 50%;
}

.kill-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--bg-medium);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    touch-action: none;
    user-select: none;
    cursor: default;
    /* Use padding-bottom trick to maintain 1:1 aspect ratio (square maps) */
    padding-bottom: 100%;
}

.kill-map-wrapper.zoomed {
    cursor: grab;
}

.kill-map-wrapper.zoomed:active {
    cursor: grabbing;
}

.kill-map-zoom-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.kill-map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 100;
    border-radius: var(--border-radius);
}

.kill-map-loading-overlay p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}

.kill-map-loading .loading {
    gap: 1rem;
}

.kill-map-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.kill-map-loading-spinner[data-js-animation="true"] {
    animation: none !important;
    will-change: transform;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.kill-map-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.kill-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.kill-map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    --marker-size: 24px;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'EmojiOne Color', 'Android Emoji', emoji, sans-serif;
}

.kill-map-bluezones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.blue-zone-circle {
    position: absolute;
    border: 2px solid rgba(0, 150, 255, 0.6);
    border-radius: 50%;
    background: rgba(0, 150, 255, 0.15);
    pointer-events: auto;
    cursor: pointer;
    box-sizing: border-box;
    transition: opacity 0.2s ease;
}

.blue-zone-circle:hover {
    opacity: 0.8;
    border-color: rgba(0, 200, 255, 0.9);
    background: rgba(0, 150, 255, 0.25);
    z-index: 5;
}

.death-marker {
    position: absolute;
    width: var(--marker-size, 24px);
    height: var(--marker-size, 24px);
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease, width 0.2s ease, height 0.2s ease;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'EmojiOne Color', 'Android Emoji', emoji, sans-serif;
    line-height: 1;
    text-align: center;
}

.death-marker:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 10;
}

.death-marker::before {
    content: '💀';
    font-size: var(--marker-size, 24px);
    display: block;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'EmojiOne Color', 'Android Emoji', emoji, sans-serif;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    transition: font-size 0.2s ease;
}

.death-marker.dsp-kill::before {
    content: '💀';
    filter: drop-shadow(0 2px 4px rgba(0, 150, 0, 0.7)) drop-shadow(0 0 8px rgba(0, 255, 0, 0.5));
}

.death-marker.other-kill::before {
    content: '💀';
    filter: drop-shadow(0 2px 4px rgba(150, 150, 150, 0.5));
    opacity: 0.85;
}

/* Parachute Marker Styles */
.parachute-marker {
    position: absolute;
    width: var(--marker-size, 24px);
    height: var(--marker-size, 24px);
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease, width 0.2s ease, height 0.2s ease;
    z-index: 8; /* Below airdrops, above deaths */
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'EmojiOne Color', 'Android Emoji', emoji, sans-serif;
    line-height: 1;
    text-align: center;
}

.parachute-marker:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 15; /* Bring to front on hover */
}

.parachute-marker::before {
    content: '🪂'; /* Parachute emoji */
    font-size: var(--marker-size, 24px);
    display: block;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'EmojiOne Color', 'Android Emoji', emoji, sans-serif;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    transition: font-size 0.2s ease;
}

/* Player Death Marker Styles (red X) - shown when filtering by team/player */
/* Non-interactive visual markers - skull icons (death-marker) handle tooltips */
.player-death-marker {
    position: absolute;
    width: var(--marker-size, 20px);
    height: var(--marker-size, 20px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    cursor: default;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9; /* Above death markers, below airdrops */
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'EmojiOne Color', 'Android Emoji', emoji, sans-serif;
    line-height: 1;
    text-align: center;
}

/* No hover effects - non-interactive markers */

.player-death-marker::before {
    content: '✕';
    font-size: var(--marker-size, 20px);
    display: block;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'EmojiOne Color', 'Android Emoji', emoji, sans-serif;
    line-height: 1;
    color: #ff4444;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 4px rgba(255, 68, 68, 0.6));
    text-shadow: 0 0 2px rgba(0, 0, 0, 1);
    transition: font-size 0.2s ease;
}

/* Kill Map Filter Select Styles */
.kill-map-filter-select {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.kill-map-filter-select span {
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.kill-map-select {
    padding: 0.4rem 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) * 0.75);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    appearance: none; /* Remove default dropdown arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%204%205%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M2%200L0%202h4zm0%205L0%203h4z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 8px 10px;
    padding-right: 2rem; /* Make space for custom arrow */
}

.kill-map-select:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-medium);
}

.kill-map-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-medium);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

/* View on Map Button Styles */
.view-on-map-btn {
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: calc(var(--border-radius) * 0.75);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.view-on-map-btn:hover {
    background: var(--primary-color-dark, #7c3aed);
    transform: translateY(-1px);
}

.view-on-map-btn:active {
    transform: translateY(0);
}

.dsp-team-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dsp-team-header .view-on-map-btn {
    margin-top: 0;
    margin-left: auto;
}

.view-on-map-btn-small {
    padding: 0.25rem 0.5rem;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: calc(var(--border-radius) * 0.75);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    width: 100%;
    max-width: 120px;
}

.view-on-map-btn-small:hover {
    background: var(--primary-color-dark, #7c3aed);
    transform: translateY(-1px);
}

.view-on-map-btn-small:active {
    transform: translateY(0);
}

.dsp-team-title {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.dsp-team-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.team-stat {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.squad-summary-team-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.squad-summary-team-label-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.squad-summary-view-map-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.dsp-team-title-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.kill-map-zoom-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 50;
}

.kill-map-zoom-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
    user-select: none;
}

.kill-map-zoom-btn:hover:not(:disabled) {
    background: var(--bg-medium);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.kill-map-zoom-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.kill-map-zoom-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: white;
}

.kill-map-zoom-btn span {
    line-height: 1;
    display: block;
}

.kill-map-zoom-btn#kill-map-zoom-reset span {
    font-size: 1.2rem;
}

/* Airdrop Marker Styles */
.airdrop-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    pointer-events: auto;
}

.airdrop-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
    z-index: 20;
}

/* Airdrop Tooltip Styles */
.airdrop-tooltip {
    position: absolute;
    pointer-events: auto; /* Enable pointer events so tooltip can receive mouseenter/mouseleave */
    z-index: 99999;
    min-width: 180px;
    width: max-content;
    max-width: min(450px, 90vw);
    background: transparent;
    display: none;
    visibility: hidden;
    opacity: 0;
}

.airdrop-tooltip-content {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 2px solid #4a90e2 !important;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8) !important;
    font-size: 0.75rem;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    cursor: default;
    user-select: none;
}

.airdrop-tooltip-header {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    white-space: normal;
    line-height: 1.3;
    overflow: visible;
    display: block;
    height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-break: keep-all;
    overflow-wrap: anywhere;
    font-size: 0.75rem;
}

.airdrop-tooltip-items {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 250px;
    overflow-y: auto;
}

.airdrop-tooltip-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: calc(var(--border-radius) * 0.5);
    font-size: 0.7rem;
}

.airdrop-tooltip-item-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.airdrop-tooltip-time {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 45px;
    font-size: 0.65rem;
}

.airdrop-tooltip-player {
    color: var(--text-primary);
    font-weight: 500;
    min-width: 100px;
}

.airdrop-tooltip-item-name {
    color: var(--text-primary);
    flex: 1;
}

/* Kill Tooltip Styles */
.kill-tooltip {
    position: absolute;
    pointer-events: auto;
    z-index: 99999;
    min-width: 150px;
    width: max-content;
    max-width: min(400px, 90vw);
    background: transparent;
    display: none;
    visibility: hidden;
    opacity: 0;
}

.kill-tooltip-content {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 2px solid #e74c3c !important;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8) !important;
    font-size: 0.75rem;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    display: block;
    visibility: visible;
    opacity: 1;
    color: #ffffff !important;
    cursor: default;
    user-select: none;
}

.kill-tooltip-header {
    font-weight: 600;
    color: #ffffff;
    white-space: normal;
    line-height: 1.3;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
    height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-break: keep-all;
    font-size: 0.75rem;
}

.kill-tooltip-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

/* Make clustered tooltips scrollable when too tall (similar to airdrop tooltips) */
.kill-tooltip-clustered {
    max-height: 250px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    pointer-events: auto;
}

/* Ensure clustered tooltip content can receive scroll events */
.kill-tooltip-content.kill-tooltip-clustered {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.kill-tooltip-table td {
    padding: 0.2rem 0.25rem;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kill-tooltip-table td:first-child {
    padding-left: 0;
}

.kill-tooltip-table td:last-child {
    padding-right: 0;
}

.kill-tooltip-time-col {
    text-align: right;
    padding-right: 0.5rem;
    width: 15%;
}

.kill-tooltip-attacker-col {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    width: 27%;
}

.kill-tooltip-weapon-col {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    width: 28%;
}

.kill-tooltip-victim-col {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    width: 30%;
}

.kill-tooltip-weapon-col img {
    vertical-align: middle;
    display: inline-block;
    margin-right: 0.2rem;
    flex-shrink: 0;
}

.kill-tooltip-weapon-col .kill-tooltip-weapon-name {
    vertical-align: middle;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kill-tooltip-attacker-col,
.kill-tooltip-victim-col {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kill-tooltip-weapon-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}

.kill-tooltip-weapon-name {
    font-weight: 500;
}

.kill-tooltip-time {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.65rem;
}

.team-badge-tooltip {
    font-size: 0.5rem;
    padding: 0.1rem 0.25rem;
    min-width: 1rem;
    height: 1rem;
    line-height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.15rem;
}

.kill-tooltip-cluster-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kill-tooltip-cluster-item:last-child {
    border-bottom: none;
}

.kill-tooltip-cluster-item td {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.kill-tooltip-cluster-item:last-child td {
    padding-bottom: 0;
}

.dsp-kill-indicator {
    color: var(--primary-color);
    font-weight: 600;
}

.dsp-kill-indicator {
    color: var(--primary-color);
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Parachute Tooltip Styles */
.parachute-tooltip {
    position: absolute;
    pointer-events: auto;
    z-index: 99999;
    min-width: 150px;
    width: max-content;
    max-width: min(400px, 90vw);
    background: transparent;
    display: none;
    visibility: hidden;
    opacity: 0;
}

.parachute-tooltip-content {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 2px solid #3498db !important;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8) !important;
    font-size: 0.75rem;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    display: block;
    visibility: visible;
    opacity: 1;
    color: #ffffff !important;
    cursor: default;
    user-select: none;
}

.parachute-tooltip-header {
    font-weight: 600;
    color: #ffffff;
    white-space: normal;
    line-height: 1.3;
    overflow: visible;
    display: block;
    height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-break: keep-all;
    overflow-wrap: anywhere;
    font-size: 0.75rem;
}

/* Airdrop Loot Section Styles */
.airdrop-loot-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-medium);
    border-radius: var(--border-radius);
}

.airdrop-loot-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.airdrop-loot-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.airdrop-package-group {
    background: #c41e3a;
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: var(--shadow);
    border: 2px solid #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.airdrop-package-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    z-index: 0;
    box-sizing: border-box;
}

.airdrop-package-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-color: #000;
}

.airdrop-package-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.airdrop-package-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    position: relative;
    z-index: 1;
    background: #c41e3a;
}

.airdrop-loot-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: calc(var(--border-radius) * 0.5);
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.airdrop-loot-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.airdrop-loot-header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.airdrop-loot-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.airdrop-loot-player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

.airdrop-loot-team-badge {
    display: block;
    margin-bottom: 0.25rem;
    text-align: center;
    width: 100%;
}

.airdrop-loot-team-badge .team-badge {
    font-size: 0.75em;
    padding: 0.15rem 0.4rem;
    display: inline-block;
}

.airdrop-loot-player {
    color: #ffffff;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.airdrop-loot-items-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.airdrop-loot-single-item {
    color: #ffffff;
    line-height: 1.4;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.airdrop-loot-item-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.airdrop-loot-item-text {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.airdrop-loot-item-name {
    color: var(--text-primary);
    flex: 1;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .kill-map-container {
        flex-direction: column;
    }
    
    .kill-map-sidebar {
        flex: 1 1 100%;
        width: 100%;
        position: static;
    }
    
    .kill-map-main {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .kill-map-controls {
        position: static;
    }
    
    .match-popover-top-performers {
        font-size: 0.75rem;
        gap: 0.4rem;
        margin-top: 0.4rem;
    }
    
    .match-popover-top-performers .top-performer-badge {
        padding: 0.4rem 0.7rem;
        gap: 0.4rem;
    }
    
    .match-popover-top-performers .top-performer-emoji {
        font-size: 1.1em;
    }
    
    .kill-map-image {
        max-height: 400px;
    }
    
    .death-marker {
        width: 20px;
        height: 20px;
    }
    
    .death-marker::before {
        font-size: 20px;
    }
    
    .kill-map-zoom-controls {
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.25rem;
    }
    
    .kill-map-zoom-btn {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .kill-map-zoom-btn#kill-map-zoom-reset span {
        font-size: 1rem;
    }
    
    .match-popover-meta {
        width: 100%;
        font-size: 0.75rem;
        gap: 0.75rem;
    }
    
    .airdrop-loot-list {
        grid-template-columns: 1fr;
    }
    
    .match-popover-top-performers {
        font-size: 0.7rem;
        gap: 0.3rem;
        margin-top: 0.3rem;
    }
    
    .match-popover-top-performers .top-performer-badge {
        padding: 0.2rem 0.4rem;
        gap: 0.3rem;
    }
    
    .match-popover-top-performers .top-performer-emoji {
        font-size: 0.9em;
    }
    
    .meta-item {
        flex-wrap: wrap;
    }

    .team-rank-badge {
        align-self: flex-start;
        padding: 0.5rem 1rem;
    }
    
    .team-rank-value {
        font-size: 1.5rem;
    }

    .match-popover-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .match-popover-body {
        padding: 1rem;
    }
    
    .match-squad-summary {
        padding: 0.75rem;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .squad-summary-value {
        font-size: 1.2rem;
    }

    .match-popover-players {
        width: 100%;
    }
    
    /* On very small screens, still use 2 columns if possible */
    @media (min-width: 480px) {
        .match-popover-players {
            width: 100%;
        }
    }

    .dsp-player-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .match-player-card {
        padding: 0.75rem;
    }
    
    .player-name {
        font-size: 1rem;
    }
    
    /* Override for player stats page - ensure main player name is 2rem even in media query */
    #player-stats-container .player-stat-card .player-header-section.player-header-info .player-name-container .player-name,
    #player-stats-container .player-stat-card .player-header-section.player-header-info .player-name-container span.player-name {
        font-size: 2rem !important;
    }
    
.dsp-player-stats-grid .stat-label {
    font-size: 0.65rem;
    }
    
    .dsp-player-stats-grid .stat-value {
        font-size: 0.9rem;
    }
}

/* Kill Feed Styles */
/* Rivals Modal Styles */
.rivals-modal-container {
    margin-top: 1rem;
}

.rivals-modal-players {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rival-item {
    text-align: center;
    min-width: 200px;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--bg-medium);
}

.rival-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rival-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.rival-stats {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.kill-feed-container {
    width: 100%;
    padding: 1rem 0;
}

.kill-feed-controls {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.kill-feed-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.kill-feed-checkbox-label:hover {
    color: var(--text-secondary);
}

.kill-feed-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Kill Feed Filter Select Styles */
.kill-feed-filter-select {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    min-width: 200px;
}

.kill-feed-filter-select span {
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.kill-feed-select {
    padding: 0.4rem 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) * 0.75);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    appearance: none; /* Remove default dropdown arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%204%205%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M2%200L0%202h4zm0%205L0%203h4z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 8px 10px;
    padding-right: 2rem;
}

.kill-feed-select:hover {
    border-color: var(--border-hover-color);
}

.kill-feed-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.kill-feed-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 0.5rem;
}

.kill-feed-table-wrapper {
    width: 100%;
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.kill-feed-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--bg-dark);
    border-radius: var(--border-radius);
}

.kill-feed-table thead {
    background: var(--bg-medium);
    position: sticky;
    top: 0;
    z-index: 10;
}

.kill-feed-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--bg-light);
}

.kill-feed-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--bg-light);
    color: var(--text-primary);
    vertical-align: middle;
    height: auto;
    line-height: 1.4;
}

.kill-feed-table tbody tr {
    height: auto;
    min-height: 2.5rem;
}

.kill-feed-table tbody tr:hover {
    background: var(--bg-light);
}

/* Kill feed row colors - bright red for kills, grayish for knocks */
.kill-feed-table tbody tr:not(.dbno-row):not(.redeploy-row) {
    background: rgba(220, 53, 69, 0.25); /* Brighter red for kills */
}

.kill-feed-table tbody tr:not(.dbno-row):not(.redeploy-row):hover {
    background: rgba(220, 53, 69, 0.3);
}

.kill-feed-table tbody tr.dbno-row {
    background: rgba(128, 128, 128, 0.12); /* Grayish, muted color for knocks (DBNOs) - secondary looking */
}

.kill-feed-table tbody tr.dbno-row:hover {
    background: rgba(128, 128, 128, 0.18);
}

.kill-feed-table tbody tr.redeploy-row {
    background: rgba(0, 0, 0, 0.4); /* Black background for redeploys */
}

.kill-feed-table tbody tr.redeploy-row:hover {
    background: rgba(0, 0, 0, 0.5);
}

.kill-feed-table .dbno-icon,
.kill-feed-table .death-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.25rem;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
    object-fit: contain;
}

.kill-feed-table tbody tr:last-child td {
    border-bottom: none;
}

.kill-feed-table .kill-time {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 60px;
    vertical-align: middle;
    white-space: nowrap;
}

.kill-feed-table .kill-killer {
    font-weight: 500;
    color: var(--primary-color);
    vertical-align: middle;
}

.kill-feed-table .kill-weapon {
    align-items: center;
    gap: 0.5rem;
    vertical-align: middle;
}

.kill-feed-table .kill-killer,
.kill-feed-table .kill-victim {
    vertical-align: middle;
}

.kill-feed-table .kill-weapon .weapon-emoji {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.kill-feed-table .kill-weapon .weapon-icon-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.kill-feed-table .kill-victim {
    color: var(--text-primary);
}

.kill-feed-table .kill-area {
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.kill-feed-table .bot-player-badge {
    display: inline-block;
    font-size: 0.9em;
    margin-left: 0.25rem;
    vertical-align: middle;
    opacity: 0.8;
}

.kill-feed-table .team-badge,
.kill-feed-table .team-badge,
.kill-feed-table .team-number {
    margin-right: 0.25rem;
    font-size: 0.85em;
}

.kill-feed-table .environmental-death {
    font-style: italic;
    color: var(--text-secondary);
    font-weight: 500;
}

.kill-feed-loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Emergency Pickups Styles */
.emergency-pickups-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.emergency-pickups-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: calc(var(--border-radius) / 2);
    border: 1px solid var(--bg-light);
    justify-content: center;
    align-items: center;
}

.emergency-pickups-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
}

.emergency-pickups-summary-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emergency-pickups-summary-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.emergency-pickup-card {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    border: 1px solid var(--bg-light);
    gap: 0.75rem;
}

.emergency-pickup-header {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-light);
}

.emergency-pickup-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.emergency-pickup-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.emergency-pickup-time {
    font-weight: 500;
}

.emergency-pickup-players {
    font-weight: 500;
}

.emergency-pickup-map-section {
    width: 100%;
    margin-bottom: 0.5rem;
}

.emergency-pickup-table-section {
    width: 100%;
}

.emergency-pickup-map-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.emergency-pickup-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid var(--bg-medium);
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.emergency-pickup-map-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.emergency-pickup-markers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.emergency-pickup-marker {
    position: absolute;
    cursor: pointer;
    pointer-events: none;
    transform-origin: center;
    display: block;
    visibility: visible;
}

.emergency-pickup-marker-label {
    pointer-events: none;
    font-family: Arial, sans-serif;
}

.emergency-pickup-maps-section {
    margin: 1rem 0;
}

.emergency-pickup-maps-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.emergency-pickup-map-half {
    flex: 1;
    min-width: 280px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the map wrapper horizontally */
    overflow: hidden; /* Prevent children from overflowing */
}

.emergency-pickup-map-wrapper {
    display: block;
    position: relative;
    max-width: 100%;
    /* Dimensions set by JavaScript for proper centering */
}

.map-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stack vertically on mobile/tablet */
@media (max-width: 768px) {
    .emergency-pickup-maps-container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .emergency-pickup-map-half {
        min-width: unset;
        width: 100%;
        max-width: none;
    }
}

.emergency-pickup-map-title {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

.emergency-pickup-players-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.emergency-pickup-players-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.emergency-pickup-players-table thead {
    background: var(--bg-medium);
}

.emergency-pickup-players-table th {
    padding: 0.25rem 0.4rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--bg-light);
    font-size: 0.7rem;
}

.emergency-pickup-players-table td {
    padding: 0.25rem 0.4rem;
    border-bottom: 1px solid var(--bg-light);
    color: var(--text-primary);
    font-size: 0.75rem;
}

.emergency-pickup-players-table tbody tr:hover {
    background: var(--bg-light);
}

.emergency-pickup-players-table tbody tr:last-child td {
    border-bottom: none;
}

/* Redeploys Styles (similar to Emergency Pickups) */
.redeploys-container {
    width: 100%;
}

.redeploys-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: calc(var(--border-radius) / 2);
    border: 1px solid var(--bg-light);
    justify-content: center;
    align-items: center;
}

.redeploys-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
}

.redeploys-summary-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.redeploys-summary-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.redeploys-layout-container {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.redeploys-tables-column {
    flex: 0 0 45%;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-light) var(--bg-dark);
}

.redeploys-tables-column::-webkit-scrollbar {
    width: 8px;
}

.redeploys-tables-column::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

.redeploys-tables-column::-webkit-scrollbar-thumb {
    background: var(--bg-light);
    border-radius: 4px;
}

.redeploys-tables-column::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.redeploys-map-column {
    flex: 1;
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    max-height: calc(100vh - 2rem);
}

.redeploy-item {
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    border: 1px solid var(--bg-light);
}

.redeploy-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-light);
}

.redeploy-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.redeploy-color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    display: inline-block;
}

.redeploy-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.redeploy-player {
    font-weight: 600;
    color: var(--text-primary);
}

.redeploy-time {
    font-weight: 500;
}

.redeploy-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.redeploys-full-map-container {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.redeploys-full-map-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.redeploys-full-map-image {
    display: none;
}

.redeploys-full-map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.redeploy-map-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.redeploy-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid var(--bg-light);
}

.redeploy-map-image {
    width: 100%;
    height: auto;
    display: block;
}

.redeploy-map-canvas {
    width: 100%;
    height: auto;
    display: block;
    background: var(--bg-medium);
}

.redeploy-details-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.redeploy-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.redeploy-details-table thead {
    background: var(--bg-medium);
}

.redeploy-details-table th {
    padding: 0.4rem 0.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--bg-light);
    font-size: 0.7rem;
}

.redeploy-details-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--bg-light);
    color: var(--text-primary);
    font-size: 0.75rem;
}

.redeploy-details-table tbody tr:hover {
    background: var(--bg-light);
}

.redeploy-table-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.redeploy-table-row:hover {
    background: var(--bg-light) !important;
}

.redeploy-details-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .kill-feed-table {
        font-size: 0.85rem;
    }

    .kill-feed-table th,
    .kill-feed-table td {
        padding: 0.5rem;
    }

    .kill-feed-table .kill-time {
        min-width: 50px;
    }

    .emergency-pickups-container {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: auto;
    }

    .emergency-pickup-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .emergency-pickup-map-wrapper {
        max-width: 100%;
    }

    .emergency-pickup-players-table {
        font-size: 0.85rem;
    }

    .emergency-pickup-players-table th,
    .emergency-pickup-players-table td {
        padding: 0.3rem 0.4rem;
    }

    .redeploy-content {
        flex-direction: column;
    }

    .redeploy-map-wrapper {
        max-width: 100%;
    }

    .redeploy-details-table {
        font-size: 0.85rem;
    }

    .redeploy-details-table th,
    .redeploy-details-table td {
        padding: 0.5rem;
    }

    .redeploys-layout-container {
        flex-direction: column;
    }

    .redeploys-tables-column {
        flex: 1;
        width: 100%;
    }

    .redeploys-map-column {
        flex: 1;
        width: 100%;
        position: static;
    }
}

/* Circle Information Display */
.circle-info-section {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.circle-info-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.circle-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: rgba(0, 150, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.circle-info-header {
    background: rgba(0, 150, 255, 0.1);
    border-bottom: 1px solid rgba(0, 150, 255, 0.3);
}

.circle-info-cell {
    padding: 2px 4px;
    text-align: center;
    color: #555;
    font-weight: 500;
}

.circle-header {
    font-weight: 600;
    color: #333;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.circle-number {
    font-weight: 600;
    color: #2c5aa0;
    background: rgba(0, 150, 255, 0.08);
}

.circle-info-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.3);
}

.circle-info-row:hover {
    background: rgba(0, 150, 255, 0.08);
}

/* Final override for player stats page - ensure main player name is 2rem - highest priority */
#player-stats-container .player-stat-card .player-header-section.player-header-info .player-name-container .player-name,
#player-stats-container .player-stat-card .player-header-section.player-header-info .player-name-container span.player-name {
    font-size: 2rem !important;
}


