/* FlightGlobe — sidebar cards, layers, search, flight list, stats. */
#sidebar {
  width: 340px; flex: none;
  overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  border-left: 1px solid var(--line);
  background: var(--bg2);
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
}
.card h2 { margin-bottom: 10px; }
.layer-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; cursor: pointer;
}
.layer-row b { margin-left: auto; color: var(--muted); font-weight: 600; }
.swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.swatch.flights { background: var(--flight); box-shadow: 0 0 8px var(--flight); }
.swatch.quakes { background: var(--quake); box-shadow: 0 0 8px var(--quake); }
.swatch.sats { background: var(--sat); box-shadow: 0 0 8px var(--sat); }
.swatch.night { background: linear-gradient(90deg, #fde68a 50%, #1e293b 50%); }
.swatch.grid { background: transparent; border: 1px dashed var(--muted); }
#airportSearch {
  width: 100%; padding: 8px 10px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg);
  outline: none;
}
#airportSearch:focus, #flightSearch:focus { border-color: var(--accent); }
#flightSearch {
  width: 100%; padding: 8px 10px; border-radius: 9px; margin-top: 8px;
  border: 1px solid var(--line); background: var(--bg);
  outline: none;
}
#airportResults, #flightList { list-style: none; margin: 8px 0 0; padding: 0; }
#airportResults li, #flightList li {
  padding: 7px 8px; border-radius: 8px; cursor: pointer;
  display: flex; justify-content: space-between; gap: 8px;
}
#airportResults li:hover, #flightList li:hover, #flightList li.active { background: var(--panel2); }
#airportResults .code, #flightList .code { font-weight: 700; color: var(--accent); }
#flightList { max-height: 220px; overflow-y: auto; }
#flightList .route { color: var(--muted); font-size: 12.5px; }
#detailBody p { margin: 6px 0; }
#detailBody .big { font-size: 20px; font-weight: 700; }
#followBar { display: flex; gap: 8px; margin-top: 10px; }
#followBar button, #playBtn, #nowBtn {
  background: var(--accent); color: #04121f; border: 0;
  border-radius: 9px; padding: 7px 12px; font-weight: 700;
}
#unfollowBtn { background: var(--panel2); color: var(--ink); }
#statsList { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
#statsList dt { color: var(--muted); }
#statsList dd { margin: 0; font-weight: 650; text-align: right; }
.progbar {
  height: 8px; border-radius: 999px; background: var(--panel2);
  overflow: hidden; margin: 4px 0 8px;
}
.progbar div { height: 100%; background: var(--accent); border-radius: 999px; }
#quakeList { list-style: none; margin: 8px 0 0; padding: 0; max-height: 220px; overflow-y: auto; }
#departuresList { list-style: none; margin: 8px 0 0; padding: 0; max-height: 220px; overflow-y: auto; }
#departuresList li {
  padding: 7px 8px; border-radius: 8px; cursor: pointer;
  display: flex; justify-content: space-between; gap: 8px;
}
#departuresList li:hover { background: var(--panel2); }
#departuresList .code { font-weight: 700; color: var(--accent); }
#departuresList .route { color: var(--muted); font-size: 12.5px; }
#quakeList li {
  padding: 7px 8px; border-radius: 8px; cursor: pointer;
  display: flex; justify-content: space-between; gap: 8px;
}
#quakeList li:hover { background: var(--panel2); }
#quakeList .code { font-weight: 700; color: var(--quake); }
#quakeList .route { color: var(--muted); font-size: 12.5px; }
