* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; background: #0d1117; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #c9d1d9; }
#map { height: 100%; width: 100%; background: #0d1117; }
#title-bar {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 1000; background: rgba(13,17,23,0.92); padding: 6px 14px;
  border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  font-size: 12px; font-weight: 500; text-align: center;
  pointer-events: none; white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.6);
}
#event-label-bar {
  position: fixed; top: 52px; left: 50%; transform: translateX(-50%);
  z-index: 1000; background: rgba(13,17,23,0.85); padding: 4px 16px;
  border-radius: 6px; font-size: 11px; color: rgba(255,255,255,0.5);
  pointer-events: none; white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.04);
}
#sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 1000; display: flex; flex-direction: column;
  align-items: center; padding: 10px 6px;
  background: rgba(13,17,23,0.85); backdrop-filter: blur(8px);
  border-right: 1px solid rgba(255,255,255,0.06);
  width: 36px;
}
#play-btn {
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #e94560, #c23152);
  color: #fff; font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(233,69,96,0.3);
  margin-top: 4px;
}
#play-btn:hover { transform: scale(1.1); box-shadow: 0 3px 14px rgba(233,69,96,0.5); }
#vline-wrap {
  position: relative; width: 20px; flex: 1; min-height: 100px;
  display: flex; flex-direction: column; align-items: center;
  margin: 6px 0;
}
#vline-track {
  width: 3px; flex: 1;
  background: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.18));
  border-radius: 3px; position: relative;
}
#vline-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: #e94560; border: 2px solid #fff;
  position: absolute; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(233,69,96,0.4);
  cursor: pointer; z-index: 2;
  transition: top 0.3s ease;
}
#vline-thumb:hover { transform: translateX(-50%) scale(1.15); }
.vm-marker {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  position: absolute; left: 50%; transform: translateX(-50%);
}
#vdate-label {
  font-size: 8px; color: rgba(255,255,255,0.4);
  text-align: center; white-space: nowrap; writing-mode: vertical-lr;
  margin-top: auto; padding-bottom: 4px;
}
#status-badge {
  position: fixed; top: 10px; left: 46px; z-index: 1000;
  background: rgba(13,17,23,0.9); padding: 4px 10px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.06);
  font-size: 10px; color: rgba(255,255,255,0.5);
  pointer-events: none;
}
#status-badge b { color: #c9d1d9; }
#legend {
  position: fixed; bottom: 20px; right: 14px;
  z-index: 1000; background: rgba(13,17,23,0.9); padding: 8px 12px;
  border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  font-size: 10px; min-width: 130px; pointer-events: none;
  border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(6px);
}
#legend b { font-size: 10px; color: #c9d1d9; }
.legend-row { margin: 2px 0; display: flex; align-items: center; gap: 4px; color: rgba(255,255,255,0.5); font-size: 9px; }
.legend-swatch { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
#govt-info { margin-top: 3px; padding-top: 3px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 9px; color: rgba(255,255,255,0.3); }
.leaflet-tooltip {
  background: rgba(13,17,23,0.95) !important;
  color: #c9d1d9 !important; border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5) !important;
  font-size: 11px !important; padding: 5px 9px !important;
  border-radius: 6px !important;
}
.leaflet-tooltip-top:before { border-top-color: rgba(13,17,23,0.95) !important; }
.leaflet-tooltip-bottom:before { border-bottom-color: rgba(13,17,23,0.95) !important; }
.leaflet-control-zoom a {
  background: rgba(13,17,23,0.9) !important;
  color: #c9d1d9 !important; border-color: rgba(255,255,255,0.08) !important;
}
.leaflet-control-attribution { background: rgba(13,17,23,0.6) !important; color: rgba(255,255,255,0.2) !important; }
.leaflet-control-attribution a { color: rgba(255,255,255,0.3) !important; }
