/* Full-screen map */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

#map {
    width: 100%;
    height: 100%;
}

/* Stats Panel */
#stats-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
}

#stats-panel h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#stats-panel hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 12px 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.stat-label {
    color: #666;
    font-size: 13px;
}

.stat-value {
    font-weight: 600;
    color: #222;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

/* Controls Panel */
#controls-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0;
    padding: 12px 24px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
}

/* Play Button */
.play-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #4CAF50;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.play-button:hover {
    background: #43A047;
}

.play-button:active {
    transform: scale(0.95);
}

.play-button.playing {
    background: #FF9800;
}

.play-button.playing:hover {
    background: #F57C00;
}

#play-icon {
    margin-left: 2px;
}

/* Progress Slider */
.slider-container {
    flex: 1;
    min-width: 200px;
}

#progress-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

#progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#progress-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Time Display */
#time-display {
    font-size: 13px;
    color: #444;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    min-width: 130px;
    text-align: center;
}

/* Speed Selector */
.speed-selector {
    display: flex;
    align-items: center;
    gap: 6px;
}

.speed-selector label {
    font-size: 13px;
    color: #666;
}

#speed-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    outline: none;
}

#speed-select:focus {
    border-color: #4CAF50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #controls-panel {
        padding: 10px 16px;
        gap: 12px;
    }

    .slider-container {
        min-width: 120px;
    }

    #time-display {
        display: none;
    }

    #stats-panel {
        min-width: 160px;
        padding: 12px 16px;
    }
}
