#mapContainer {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 500px;
    margin: 0 auto;
}

#mapImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#playerMarkers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.player-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    border: 2px solid white;
    overflow: hidden;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.2s ease;
    pointer-events: auto;
}

.player-marker:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.player-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-marker.blue {
    border-color: rgb(56, 189, 248);
}

.player-marker.red {
    border-color: rgb(239, 68, 68);
}

.player-view {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 17px solid;
    transform-origin: top;
    z-index: 1;
}

.player-view.blue {
    border-top-color: rgba(56, 189, 248);
}

.player-view.red {
    border-top-color: rgba(239, 68, 68);
}

.death-marker {
    width: 20px;
    height: 20px;
    position: absolute;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}

.death-marker::before,
.death-marker::after {
    content: '';
    position: absolute;
    background-color: rgba(128, 128, 128, 0.8);
    border-radius: 2px;
}

.death-marker.red::before,
.death-marker.red::after {
    background-color: rgba(239, 68, 68, 0.8);
}

.death-marker.blue::before,
.death-marker.blue::after {
    background-color: rgba(56, 189, 248, 0.8);
}

.death-marker.current-death::before,
.death-marker.current-death::after {
    animation: pulse 1.5s infinite;
    background-color: rgba(255, 215, 0, 0.8) !important;
}

.death-marker::before {
    width: 20px;
    height: 4px;
    top: 8px;
    left: 0;
    transform: rotate(-45deg);
    position: absolute;
    content: '';
    border-radius: 2px;
}

.death-marker::after {
    width: 4px;
    height: 20px;
    left: 8px;
    top: 0;
    transform: rotate(-45deg);
    position: absolute;
    content: '';
    border-radius: 2px;
}

.spike-marker {
    width: 24px;
    height: 24px;
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10;
}

.events-container {
    max-height: 500px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.event-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.event-item {
    transition: background-color 0.2s;
}

.event-item.selected {
    background-color: rgba(255, 215, 0, 0.1);
}

.event-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.event-item td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.weapon-icon {
    margin: 0 auto;
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
    vertical-align: middle;
}

.event-icon {
    margin: 0 auto;
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
    vertical-align: middle;
}

/* Custom scrollbar for the events container */
.events-container::-webkit-scrollbar {
    width: 8px;
}

.events-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.events-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.events-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.round-header {
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.round-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.round-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.round-content.active {
    max-height: 500px;
    overflow-y: auto;
}

.winner-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 8px;
}

.winner-icon.blue {
    background-color: rgb(56, 189, 248);
}

.winner-icon.red {
    background-color: rgb(239, 68, 68);
}

.bullet-tracer {
    animation: pulse 0.3s infinite;
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .15) 100%);
    transform-origin: left center;
    pointer-events: none;
    z-index: 1;
}

.bullet-tracer.blue {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.8) 0%, rgba(56, 189, 248, 0) 100%);
}

.bullet-tracer.red {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.8) 0%, rgba(239, 68, 68, 0) 100%);
}

.player-marker::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
}

.player-marker:hover::after {
    visibility: visible;
    opacity: 1;
}

/* Add this new class */
.cursor-tooltip {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -100%);
    margin-top: -8px;
}

.killfeed-txt {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.stat-card {
    @apply bg-background-200 rounded-lg p-6 shadow-lg;
}

.stat-row {
    @apply flex justify-between items-center p-2 rounded bg-background-300;
}

.stat-label {
    @apply text-text-600 font-medium;
}

.stat-value {
    @apply font-bold;
}

.map-callout {
    position: absolute;
    transform: translate(-50%, -50%);
    /* background-color: rgba(0, 0, 0, 0.6); */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: auto;
    cursor: default;
    transition: background-color 0.2s;
}

.map-callout:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.map-callout.superregion {
    background-color: rgba(180, 157, 225, 0.6);
    font-weight: bold;
}

.map-callout.superregion:hover {
    background-color: rgba(180, 157, 225, 0.8);
}

#heatmapContainer,
#killFeedContainer,
#mapCallouts,
#playerMarkers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#heatmapContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#heatmapContainer canvas {
    width: 100% !important;
    height: 100% !important;
}

.player-heatmap-trigger.active {
    background-color: rgba(255, 126, 0, 0.1);
}
