body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    overflow: hidden;
}

#map {
    width: 100vw;
    height: 100vh;
}

#controls {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px;
    border-radius: 8px;
    z-index: 100;
    min-width: 160px;
}

#controls h3 {
    margin: 0 0 10px 0;
    font-size: 13px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 6px 0;
    font-size: 11px;
    justify-content: space-between;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
}

#timeline-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 100;
    min-width: 550px;
    max-width: 65vw;
}

#timeline-current {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #4CAF50;
}

#timeline-bar {
    width: 100%;
    height: 28px;
    position: relative;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}

#timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #2196F3);
    width: 0%;
    transition: width 0.3s ease;
}

#timeline-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.3s;
}

button:hover {
    background: #45a049;
}

#speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 5px;
}

#speed-control label {
    font-size: 12px;
}

#stats {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px;
    border-radius: 8px;
    z-index: 100;
    min-width: 160px;
}

.stat-item {
    margin: 10px 0;
    font-size: 12px;
}

.stat-label {
    color: #aaa;
    font-size: 10px;
    text-transform: uppercase;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
    margin-top: 3px;
}

.mapboxgl-popup-content {
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
}

.mapboxgl-popup-content h4 {
    margin: 0 0 8px 0;
    color: #4CAF50;
}
