/* Realtime satellite player (js/sat-player.js): image stage + control deck below it, BSCH navy/amber */
.rt-player {
  --rt-navy: #13263d; --rt-deep: #0b1a2b; --rt-deeper: #071322; --rt-line: rgba(255,255,255,.09);
  --rt-text: #e8eef6; --rt-dim: #8ea3bb; --rt-amber: #ffb703; --rt-cyan: #4cc9f0;
  max-width: 982px; margin: 0 auto; text-align: left; color: var(--rt-text);
  font-family: Barlow, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums;
}
.rt-stage {
  position: relative; background: #000; border-radius: 10px 10px 0 0; overflow: hidden; line-height: 0;
  touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none;
}
.rt-stage img { display: block; width: 100%; height: auto; }   /* fixed aspect-ratio (inline) so 982 and 1962 px frames never change the box */
.rt-scroll.rt-zoomed { overflow: auto; max-height: 80vh; line-height: 0; cursor: grab; touch-action: auto; }
.rt-scroll.rt-zoomed img { width: auto; max-width: none; height: auto; aspect-ratio: auto; }
.rt-scroll.rt-zoomed.rt-panning { cursor: grabbing; }
.rt-stage img[hidden] { display: none; }
.rt-stage.rt-scrubbing { cursor: ew-resize; }

/* Status pill over the image (bottom-left): LATEST / LOOP / buffering; --rt-foot lifts it above a sector image's footer */
.rt-pill {
  position: absolute; left: 12px; bottom: calc(12px + var(--rt-foot, 0px)); display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px; border-radius: 999px; background: rgba(7,19,34,.78); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); color: #fff; line-height: 1;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; pointer-events: none;
  transition: opacity .25s;
}
.rt-pill .rt-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ee59d; box-shadow: 0 0 0 0 rgba(46,229,157,.7); animation: rt-pulse 2s infinite; }
.rt-pill.rt-loop .rt-dot { background: var(--rt-amber); box-shadow: none; animation: none; }
.rt-pill.rt-old .rt-dot { background: #ff6b6b; animation: none; box-shadow: none; }
@keyframes rt-pulse { 0% { box-shadow: 0 0 0 0 rgba(46,229,157,.6); } 70% { box-shadow: 0 0 0 8px rgba(46,229,157,0); } 100% { box-shadow: 0 0 0 0 rgba(46,229,157,0); } }

/* "New image" toast, top-right over the image */
.rt-toast {
  position: absolute; right: 12px; top: 40px; padding: 7px 13px; border-radius: 8px; background: var(--rt-amber); color: #13263d;
  font-size: 13px; font-weight: 700; line-height: 1; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; pointer-events: none;
}
.rt-toast.rt-show { opacity: 1; transform: none; }

/* Big centred play button over the image while showing the static latest frame */
.rt-bigplay {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 0;
  background: rgba(7,19,34,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s, transform .2s; box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.rt-stage:hover .rt-bigplay.rt-avail, .rt-bigplay.rt-avail:focus-visible { opacity: 1; }
.rt-bigplay:hover { transform: scale(1.06); background: rgba(255,183,3,.9); color: #13263d; }
.rt-bigplay svg { width: 30px; height: 30px; margin-left: 4px; }

/* Control deck */
.rt-deck {
  background: linear-gradient(180deg, var(--rt-deep), var(--rt-deeper)); border: 1px solid var(--rt-line); border-top: 0;
  border-radius: 0 0 12px 12px; padding: 12px 16px 14px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.8);
}
.rt-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.rt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; min-width: 38px; padding: 0 10px;
  border-radius: 9px; border: 1px solid var(--rt-line); background: rgba(255,255,255,.04); color: var(--rt-text);
  font: 600 13px/1 Barlow, Arial, sans-serif; letter-spacing: .03em; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.rt-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.rt-btn:focus-visible, .rt-chip:focus-visible, .rt-seg button:focus-visible, .rt-timeline:focus-visible { outline: 2px solid var(--rt-amber); outline-offset: 2px; }
.rt-btn svg { width: 18px; height: 18px; }
.rt-play { width: 48px; height: 48px; border-radius: 50%; background: var(--rt-amber); color: #13263d; border: 0; box-shadow: 0 6px 18px -6px rgba(255,183,3,.6); }
.rt-play:hover { background: #ffc633; }
.rt-play svg { width: 22px; height: 22px; }

.rt-clock { display: flex; flex-direction: column; gap: 3px; margin-left: 6px; min-width: 210px; }
.rt-clock-main { font-size: 24px; font-weight: 600; letter-spacing: .01em; line-height: 1; }
.rt-clock-main small { font-size: 14px; color: var(--rt-dim); font-weight: 600; margin-left: 6px; letter-spacing: .04em; }
.rt-clock-sub { font-size: 13px; color: var(--rt-dim); line-height: 1.1; }
.rt-clock-sub b { color: var(--rt-text); font-weight: 600; }
.rt-grow { flex: 1; }

.rt-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--rt-line); }
.rt-seg button {
  border: 0; background: none; color: var(--rt-dim); font: 600 13px/1 Barlow, Arial, sans-serif; padding: 8px 10px; border-radius: 7px; cursor: pointer;
  min-width: 36px; transition: background .15s, color .15s;
}
.rt-seg button:hover { color: var(--rt-text); }
.rt-seg button[aria-pressed="true"] { background: rgba(255,183,3,.16); color: var(--rt-amber); }
.rt-seg-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--rt-dim); margin-right: 2px; }

/* Timeline */
.rt-timeline { position: relative; margin: 14px 0 6px; height: 54px; cursor: pointer; touch-action: none; border-radius: 8px; }
.rt-timeline canvas { display: block; width: 100%; height: 100%; }
.rt-timeline.rt-disabled { cursor: default; opacity: .55; }
.rt-tip {
  position: absolute; bottom: 60px; transform: translateX(-50%); background: var(--rt-deeper); border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px; padding: 5px; pointer-events: none; opacity: 0; transition: opacity .12s; box-shadow: 0 10px 30px -10px rgba(0,0,0,.9); z-index: 3;
}
.rt-tip.rt-show { opacity: 1; }
.rt-tip canvas { display: block; width: 160px; border-radius: 5px; background: #000; }
.rt-tip div { font-size: 12px; font-weight: 600; text-align: center; padding: 5px 2px 1px; white-space: nowrap; }

/* Range chips */
.rt-ranges { margin-top: 6px; row-gap: 8px; }
.rt-chip {
  border: 1px solid var(--rt-line); background: rgba(255,255,255,.03); color: var(--rt-text); border-radius: 999px; padding: 7px 13px;
  font: 600 13px/1 Barlow, Arial, sans-serif; letter-spacing: .02em; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.rt-chip:hover { border-color: rgba(255,255,255,.25); }
.rt-chip[aria-pressed="true"] { background: var(--rt-amber); border-color: var(--rt-amber); color: #13263d; }
.rt-chip[disabled] { opacity: .35; cursor: default; }
/* DEV image-format trial menu */
.rt-fmt { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 Barlow, Arial, sans-serif; letter-spacing: .04em; color: var(--rt-dim); }
.rt-fmt select { border: 1px solid var(--rt-line); background: rgba(255,255,255,.03); color: var(--rt-text); border-radius: 999px; padding: 6px 10px; font: 600 13px/1 Barlow, Arial, sans-serif; cursor: pointer; }
.rt-fmt select option { background: #13263d; color: #fff; }
.rt-chip[hidden] { display: none; }
.rt-archive { margin-top: 8px; gap: 8px; align-items: center; }
/* Archive calendar: a button that opens a month popover, days shaded by archive coverage */
.rt-cal-wrap { position: relative; }
.rt-cal-btn { display: inline-flex; align-items: center; gap: 7px; min-width: 150px; }
.rt-cal-btn.rt-picked { border-color: var(--rt-amber); color: var(--rt-amber); }
.rt-cal-ico { width: 15px; height: 15px; flex: none; }
.rt-cal {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; width: 300px; padding: 12px; border-radius: 12px;
  background: var(--rt-deep); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 14px 40px rgba(0,0,0,.55);
}
.rt-cal[hidden] { display: none; }
.rt-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rt-cal-title { font: 700 15px/1 Barlow, Arial, sans-serif; letter-spacing: .02em; }
.rt-cal-nav {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--rt-line); background: rgba(255,255,255,.03); color: var(--rt-text);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.rt-cal-nav:hover:not([disabled]) { border-color: rgba(255,255,255,.3); }
.rt-cal-nav[disabled] { opacity: .3; cursor: default; }
.rt-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.rt-cal-dow { text-align: center; font: 600 11px/1 Barlow, Arial, sans-serif; color: var(--rt-dim); padding: 4px 0 6px; letter-spacing: .06em; }
.rt-cal-day {
  position: relative; height: 36px; border-radius: 8px; border: 1px solid transparent; background: rgba(255,255,255,.04); color: var(--rt-text);
  font: 600 13px/1 Barlow, Arial, sans-serif; cursor: pointer; padding: 0; overflow: hidden;
}
.rt-cal-day i { position: absolute; left: 5px; right: 5px; bottom: 4px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); }
.rt-cal-day i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: 2px; background: var(--rt-dim); }
.rt-cal-day.rt-full i::after { background: #2ee59d; }
.rt-cal-day.rt-part i::after { background: var(--rt-amber); }
.rt-cal-day:hover:not([disabled]) { border-color: rgba(255,255,255,.3); }
.rt-cal-day[disabled] { background: none; color: rgba(232,238,246,.25); cursor: default; }
.rt-cal-day[disabled] i { display: none; }
.rt-cal-day.rt-today { border-color: var(--rt-cyan); }
.rt-cal-day.rt-sel { background: var(--rt-amber); color: #13263d; }
.rt-cal-day.rt-sel i { background: rgba(19,38,61,.25); }
.rt-cal-day.rt-sel i::after { background: #13263d; }
.rt-cal-day:focus-visible, .rt-cal-nav:focus-visible, .rt-cal-today:focus-visible { outline: 2px solid var(--rt-amber); outline-offset: 1px; }
.rt-cal-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--rt-dim); }
.rt-cal-foot span { display: inline-flex; align-items: center; gap: 5px; }
.rt-key { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.rt-key.rt-full { background: #2ee59d; } .rt-key.rt-part { background: var(--rt-amber); }
.rt-cal-today { margin-left: auto; border: 0; background: none; color: var(--rt-cyan); font: 600 12px/1 Barlow, Arial, sans-serif; cursor: pointer; padding: 6px 2px; text-decoration: underline; }
@media (max-width: 560px) {
  .rt-cal { position: fixed; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(340px, calc(100vw - 32px));
            box-shadow: 0 0 0 100vmax rgba(0,0,0,.55), 0 14px 40px rgba(0,0,0,.55); }
  .rt-cal-day { height: 40px; }
}
.rt-arch-step { padding: 7px 13px; font-size: 16px; line-height: 1; }
.rt-arch-msg { font-size: 13px; color: var(--rt-dim); }
.rt-zoom { padding: 6px 12px; }
.rt-reset { border: 0; background: none; color: var(--rt-dim); font: 600 12px/1 Barlow, Arial, sans-serif; letter-spacing: .04em; text-decoration: underline; cursor: pointer; padding: 6px 4px; }
.rt-reset:hover { color: var(--rt-text); }
.rt-divider { width: 1px; height: 22px; background: var(--rt-line); margin: 0 4px; }
.rt-count { font-size: 13px; color: var(--rt-dim); white-space: nowrap; }
.rt-count b { color: var(--rt-text); font-weight: 600; }
.rt-keys { font-size: 12px; color: var(--rt-dim); margin-top: 10px; }
.rt-keys kbd {
  display: inline-block; min-width: 18px; padding: 2px 5px; margin: 0 2px; border-radius: 4px; border: 1px solid rgba(255,255,255,.18);
  border-bottom-width: 2px; font: 600 11px/1.2 Barlow, Arial, sans-serif; color: var(--rt-text); text-align: center;
}

@media (max-width: 700px) {
  .rt-zoom { display: none; }   /* phones: pinch-zoom the image instead */
  .rt-stage { border-radius: 0; }
  .rt-deck { border-radius: 0; padding: 10px 12px 12px; border-left: 0; border-right: 0; }
  .rt-clock { order: -1; width: 100%; min-width: 0; margin: 0 0 6px; flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .rt-clock-main { font-size: 22px; white-space: nowrap; }
  .rt-clock-sub { white-space: nowrap; }
  .rt-btn { height: 44px; min-width: 44px; }
  .rt-opts { width: 100%; justify-content: space-between; }
  .rt-keys { display: none; }
  .rt-bigplay.rt-avail { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .rt-pill .rt-dot { animation: none; } }

/* Phone navigation (html.rt-phone, set in <head> like the forecasts page): image-type pills + region accordion
   replace the desktop link table. Tablets and PCs never see these. */
.rtp { display: none; }
html.rt-phone .rt-navtable { display: none; }
html.rt-phone body { margin: 0; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.rt-phone .rtp { display: block; max-width: 982px; margin: 0 auto; padding: 0 12px; box-sizing: border-box; text-align: left;
  font-family: Barlow, "Helvetica Neue", Arial, sans-serif; }
.rtp-types { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rtp-types::-webkit-scrollbar { display: none; }
.rtp-type { flex: none; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04);
  color: #e8eef6 !important; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rtp-type.off { opacity: .35; cursor: not-allowed; }
.rtp-type.on { background: #ffb703; border-color: #ffb703; color: #13263d !important; }
.rtp-panel { background: #0b1a2b; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; margin-bottom: 4px; }
.rtp-panel summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 13px 14px; cursor: pointer;
  font-size: 16px; font-weight: 600; color: #8ea3bb; }
.rtp-panel summary::-webkit-details-marker { display: none; }
.rtp-panel summary span { margin-left: auto; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rtp-panel summary:after { content: '\25BE'; color: #ffb703; }
.rtp-panel[open] summary:after { content: '\25B4'; }
.rtp-body { padding: 0 14px 14px; }
.rtp-body h5 { margin: 12px 0 7px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #8ea3bb; }
.rtp-g { display: flex; flex-wrap: wrap; gap: 7px; }
.rtp-g a, .rtp-g span { padding: 9px 12px; border-radius: 9px; background: rgba(255,255,255,.06); color: #e8eef6 !important;
  font-size: 15px; font-weight: 600; text-decoration: none; }
.rtp-g span.on { background: #ffb703; color: #13263d !important; }
html.rt-phone .rt-player { margin-top: 6px; }
html.rt-phone .rt-outer { table-layout: fixed; }

/* Speed slider */
.rt-speed { align-items: center; gap: 8px; padding: 3px 10px 3px 6px; cursor: pointer; }
.rt-speed .rt-seg-label { padding: 0 2px 0 0; }
.rt-speed input[type=range] { width: 110px; margin: 0; accent-color: var(--rt-amber); cursor: pointer; }
.rt-speed output { min-width: 40px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--rt-amber); text-align: right; }

/* Loop box: Recent / Day / Dates rows grouped under the timeline, each with a fixed-width label so the controls line up */
.rt-loopbox { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--rt-line); }
.rt-loopbox > .rt-row + .rt-row { margin-top: 8px; }
.rt-loopbox .rt-ranges, .rt-loopbox .rt-archive { margin-top: 0; }
.rt-lbl { width: 54px; flex: none; }
.rt-dates { gap: 8px; margin: 0; }
.rt-dt { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 Barlow, Arial, sans-serif; letter-spacing: .04em; color: var(--rt-dim); }
.rt-dt input, .rt-dt select {
  border: 1px solid var(--rt-line); background: rgba(255,255,255,.03); color: var(--rt-text); border-radius: 8px; padding: 6px 8px;
  font: 600 13px/1.1 Barlow, Arial, sans-serif; color-scheme: dark; min-height: 32px; box-sizing: border-box;
}
.rt-dt select option { background: #13263d; color: #fff; }
.rt-dt input:focus-visible, .rt-dt select:focus-visible, .rt-fmt select:focus-visible { outline: 2px solid var(--rt-amber); outline-offset: 1px; }
.rt-dt input:invalid { border-color: #ff6b6b; }
.rt-at[hidden] { display: none; }
.rt-go { background: rgba(255,183,3,.14); border-color: rgba(255,183,3,.5); color: var(--rt-amber); }
.rt-go:hover { background: var(--rt-amber); color: #13263d; }
.rt-tz { font-size: 11px; letter-spacing: .1em; color: var(--rt-dim); }
.rt-tools { margin-top: 8px; gap: 8px; }

/* Load status line: height always reserved so nothing jumps */
.rt-load { margin-top: 6px; min-height: 16px; font: 500 12px/16px Barlow, Arial, sans-serif; color: var(--rt-dim); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 1s; }
.rt-load.rt-fade { opacity: 0; }

/* Estimate warning: silent unless there is an issue; then a small popover under the Play dates button (amber = heavy, red = too much) */
.rt-pop-anchor { position: relative; display: inline-block; }
.rt-est { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 280px; max-width: calc(100vw - 32px); box-sizing: border-box;
  padding: 10px 30px 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.4; color: #fff; background: #13263d;
  border: 1px solid var(--rt-line); border-left: 3px solid var(--rt-amber); box-shadow: 0 8px 24px rgba(0,0,0,.35); cursor: pointer; }
.rt-est[hidden] { display: none; }
.rt-est.rt-bad { border-left-color: #ff6b6b; }
.rt-est-x { position: absolute; top: 2px; right: 4px; border: 0; background: none; color: var(--rt-dim); font-size: 20px; line-height: 1; padding: 4px 6px; cursor: pointer; }
@media (max-width: 700px) {
  .rt-loopbox { padding: 8px; }
  .rt-lbl { width: 100%; }
  .rt-dt { flex: 1 1 140px; }
  .rt-dt input, .rt-dt select { flex: 1; min-width: 0; min-height: 40px; font-size: 16px; }   /* 16px: no iOS zoom on focus */
  .rt-go { flex: 1 1 100%; padding: 11px; }
  .rt-tz { display: none; }
  .rt-dates .rt-lbl::after { content: ' \00b7  AEST'; }   /* the time zone sits in the row label instead of on its own line */
}
