* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

#slider-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
}

#time-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  min-height: 1.2em;
}

#slider-wrap {
  width: 100%;
  margin-bottom: 8px;
}

#time-slider {
  width: 100%;
  height: 44px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

#time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#time-slider::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#time-slider::-webkit-slider-runnable-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
}

#time-slider::-moz-range-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
}

#play-wrap {
  display: flex;
  justify-content: center;
}

#play-pause {
  padding: 10px 24px;
  font-size: 15px;
  min-height: 44px;
  min-width: 100px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

#play-pause:hover {
  background: #1d4ed8;
}

#play-pause:active {
  transform: scale(0.98);
}

.forecast-popover {
  display: none;
  position: fixed;
  z-index: 999;
  min-width: 140px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  pointer-events: none;
}

.forecast-popover.visible {
  display: block;
}

.forecast-popover-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.forecast-popover-table {
  width: 100%;
  border-collapse: collapse;
}

.forecast-popover-table th,
.forecast-popover-table td {
  text-align: left;
  padding: 2px 8px 2px 0;
}

.forecast-popover-table th {
  font-weight: 500;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.forecast-popover-table td:first-child {
  color: #475569;
}

.forecast-popover-table td:nth-child(2) {
  font-weight: 500;
}

.forecast-popover-table td:nth-child(3) {
  color: #64748b;
}
