/* ISS extension (ext/iss): orbit overlay on the globe, live video in the split. */

#issOverlay {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Above #weatherOverlay (16, its SVG takes the pointer): the ground track is clickable. */
  z-index: 17;
  overflow: hidden;
  pointer-events: none;
}

#issOverlay.is-active {
  display: block;
}

#issSvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  /*
   * Auto, like #weatherSvg: parent none + child auto often misses taps on
   * mobile. Empty SVG space stays a globe gesture (data-bt-globe-surface);
   * nothing drawn on it is a target.
   */
  pointer-events: auto;
}

#issSvg * {
  pointer-events: none;
}

.iss-orbit {
  fill: none;
  stroke: #ffd36a;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.iss-orbit--ahead {
  stroke-width: 1.6;
  stroke-opacity: 0.8;
}

.iss-orbit--behind {
  stroke-width: 1.2;
  stroke-opacity: 0.35;
}

/* Path under the ISS over the last 12 h, on the ground: blue, bright by day, dark by night
   (overlay.js: one child path per color step, with its own stroke). */
.iss-track {
  fill: none;
  stroke-width: 1.4;
  stroke-opacity: 0.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Click target over the track (width set by overlay.js): a band around it, invisible. */
#issSvg .iss-track-hit {
  fill: none;
  stroke: #000;
  stroke-opacity: 0.01;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: stroke;
  cursor: pointer;
}

/* What the ISS can see: the ground where it stands on the horizon. */
.iss-horizon {
  fill: none;
  stroke: #ffd36a;
  stroke-width: 1.2;
  stroke-opacity: 0.6;
  stroke-dasharray: 5 4;
  stroke-linejoin: round;
}

.iss-nadir {
  stroke: #ffd36a;
  stroke-width: 1;
  stroke-opacity: 0.6;
  stroke-dasharray: 2 3;
}

.iss-ground {
  fill: #ffd36a;
  fill-opacity: 0.7;
}

.iss-marker-glow {
  fill: #ffd36a;
  fill-opacity: 0.25;
}

.iss-marker-panel {
  fill: #e0a526;
  stroke: #fff;
  stroke-width: 0.8;
}

.iss-marker-truss {
  stroke: #fff;
  stroke-width: 1.4;
}

.iss-marker-core {
  fill: #fff;
}

.iss-label {
  fill: #fff;
  font: 600 12px system-ui, sans-serif;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.7);
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}

/* Live video in the split pane: covers the full height, cropped at the sides, panned by drag. */
.iss-split-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

/* Sized and placed by video_view.js. */
.iss-video-frame {
  position: absolute;
}

.iss-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Over the top of the video (bottom set in video_view.js, leaving the player's own UI): horizontal pan, tap to play / pause. */
.iss-video-pan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  touch-action: none;
  cursor: grab;
}

.iss-video-pan.is-panning {
  cursor: grabbing;
}
