/* PandaBuilt.us/SkyWatch — public mirror page.
   style.css (loaded before this file) is byte-for-byte synced from Rocky's
   real astrology/index.html page every deploy (see pandabuilt_skywatch_deploy.py)
   -- that's the single source of truth for the whole visual language: colors,
   fonts, the "// LABEL" terminal-style headers, sw-hero-card stat tiles,
   cam-wrap video frame, gallery-item/type-badge capture cards, etc. This file
   only adds the handful of things that are genuinely public-page-specific
   and have no equivalent on Rocky's page -- nothing here should reinvent a
   color, font, or card style that style.css already defines. Keeping this
   file small IS the sync strategy: the less it overrides, the less it can
   drift from Rocky's page next time that page's design changes.
*/

/* Dave wants "-01566" at the exact same size/weight as "SkyWatch" -- no
   size reduction, just needs its own visible color (see note below). */
.brand-suffix {
  /* The shared h1 rule makes its text visible via a gradient background
     clipped to the text shape (color: transparent + background-clip: text)
     -- background/background-clip aren't inherited CSS properties, so
     without its own explicit color this span silently inherited
     color:transparent and rendered invisible. Give it a real solid color
     instead of trying to replicate the gradient-clip trick. */
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}

/* Public nav has one more/different link than Rocky's (PandaBuilt.us home
   instead of Horoscope) -- no style changes needed, .nav-link already covers
   it, this file doesn't need to touch nav at all. */

/* ---------- Brand badge (extracted from Dave's provided logo sheet, 2026-08-20) ---------- */
.brand-badge {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 18px;
  border-radius: 50%;
  filter: drop-shadow(0 0 24px rgba(232, 200, 119, 0.35));
  animation: badge-float 6s ease-in-out infinite;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- SkyWatch banner background (same source sheet -- a clean,
   text-free strip cropped from underneath the original "SKYWATCHER" title
   art, so it doesn't visually collide with this page's real
   "SkyWatch-01566" heading) ---------- */
.sw-banner {
  background-image:
    linear-gradient(180deg, rgba(5,6,26,0.88) 0%, rgba(5,6,26,0.55) 45%, rgba(5,6,26,0.88) 100%),
    url('telescope-strip.jpg');
  background-size: cover;
  background-position: center 30%;
}

/* ---------- Quick-glance widgets (time / weather / moon) ---------- */
/* Rocky's page shows this as one plain text line; Dave explicitly wants to
   keep the public page's richer icon-topped widget cards instead -- so this
   stays a deliberate public-only difference, but built from the exact same
   card tokens (--card-bg/--card-border/--gold/--ink-dim, same blur+radius+
   hover-lift as .sw-hero-card) so it reads as part of the same design system
   rather than a bolted-on divergent style. */
.quick-widgets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.quick-widget {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 22px;
  min-width: 130px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.quick-widget:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 200, 119, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(232, 200, 119, 0.12);
}

.qw-icon { font-size: 1.4rem; margin-bottom: 4px; }

.qw-value {
  font-family: var(--sw-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(232, 200, 119, 0.3);
  line-height: 1.2;
}

.qw-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  color: var(--ink-dim);
  margin-top: 3px;
}

/* ---------- "Today's Stats" panel select-element styling ---------- */
/* Reuses the exact same select treatment as Rocky's .timelapse-options select
   (see style.css) for the category filter dropdowns in Notable Sightings /
   Captures, since this page doesn't have Rocky's LAN-only admin panel to
   naturally define that style near a <select> of its own. */
.public-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--ink);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  padding: 10px 14px;
  cursor: pointer;
}
.public-select:focus { outline: none; border-color: var(--sw-cyan); }

.public-search-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

/* Real, no-login download + share -- only rendered for the handful of
   items actually mirrored public (see public.js loadPublicMediaIds).
   Deliberately eye-catching: this is the whole point of the section
   (Dave 2026-08-24: "make sure the cards are visually stunning and have
   a download, share via sms, or share via email on each card
   appropriately placed"). */
.capture-download-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--card-border);
}
.ci-download {
  flex: 1;
  text-align: center;
  padding: 10px 10px;
  border-radius: 10px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #14100a;
  background: linear-gradient(135deg, #f0d989, var(--gold));
  box-shadow: 0 3px 14px rgba(232, 200, 119, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ci-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 200, 119, 0.45);
}
.ci-share-icon {
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--card-border);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.ci-share-icon:hover {
  background: rgba(95, 214, 196, 0.18);
  border-color: rgba(95, 214, 196, 0.5);
  transform: translateY(-2px);
}
/* ---------- SkyWatcher hero readout, richer content (2026-08-24) ----------
   3-across compact row (Right Now / Total Captures / Last Capture) + one
   full-width featured "must-see" card for Tonight's Viewing below it. */
.sw-hero-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 840px;
}
@media (max-width: 720px) {
  .sw-hero-grid-3 { grid-template-columns: 1fr; max-width: 320px; }
}

.sw-hero-footline {
  font-family: var(--sw-mono);
  font-size: 0.68rem;
  color: var(--accent);
  opacity: 0.85;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.sw-hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.sw-chip {
  font-family: var(--sw-mono);
  font-size: 0.68rem;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--ink);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.sw-chip b { color: var(--accent); font-weight: 800; margin-left: 3px; }

.sw-hero-card-thumb { padding-top: 14px; }

.sw-hero-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  position: relative;
  z-index: 1;
}

.sw-hero-view-link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--sw-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
}
.sw-hero-view-link:hover { opacity: 0.7; }

/* ---------- Featured "Tonight's Viewing" card -- deliberately bigger and
   more eye-catching than the compact 3-card row, since this is meant to
   read as the "must view" reason to come back daily. Body copy uses a
   proper sans-serif throughout (not the mono "// LABEL" font) -- mono reads
   fine for short glanceable numbers/labels elsewhere on the page, but is
   genuinely harder to read for actual sentences (Dave 2026-08-24: "the font
   is not easy to read"). ---------- */
.sw-featured-card {
  --accent: var(--violet);
  --accent-rgb: 138, 111, 216;
  max-width: 840px;
  margin: 22px auto 0;
  background:
    radial-gradient(ellipse at top right, rgba(167, 139, 250, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(138, 111, 216, 0.16), var(--card-bg) 60%);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 22px;
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  animation: sw-featured-glow 4s ease-in-out infinite;
}
@media (max-width: 600px) {
  .sw-featured-card { padding: 24px 22px; }
}
@keyframes sw-featured-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(138, 111, 216, 0); }
  50% { box-shadow: 0 0 48px rgba(138, 111, 216, 0.28); }
}
.sw-featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), #a78bfa, var(--accent), transparent);
}
.sw-featured-card::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 70%);
  pointer-events: none;
}

.sw-featured-badge {
  display: inline-block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0a12;
  background: linear-gradient(135deg, #c4b5fd, #a78bfa, var(--violet));
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(138, 111, 216, 0.35);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.sw-featured-top { position: relative; z-index: 1; }

.sw-featured-moon {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sw-featured-moon-emoji {
  font-size: 3.2rem;
  filter: drop-shadow(0 0 18px rgba(167, 139, 250, 0.55));
}

.sw-featured-moon-text {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.sw-sky-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 24px 0;
  position: relative;
  z-index: 1;
}

.sw-sky-event {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 14px;
  padding: 14px 16px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.sw-sky-event:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-2px);
}

/* Flexbox row, not absolute positioning -- an absolutely-positioned share
   overlay let long/wrapping titles run underneath (or past the card edge
   behind) the icons (Dave 2026-08-24: "not fully visible"). Flex reserves
   real space for the icons regardless of title length: title gets
   min-width:0 so it wraps/shrinks instead of pushing the icons out. */
.sw-sky-event-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sw-sky-event-icon {
  font-size: 1.5rem;
  line-height: 1.3;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.4));
}

.sw-sky-event-title {
  flex: 1;
  min-width: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}

/* Per-event share controls (Dave 2026-08-24: share belongs on each
   individual event card, not once for the whole Must-See window) --
   quiet by default, easy to find, opens the visitor's own sms:/mailto:
   app with that one event pre-filled. flex-shrink:0 so it never gets
   squeezed out by a long title. */
.sw-sky-event-share {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.sw-share-icon-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.sw-sky-event:hover .sw-share-icon-btn { opacity: 1; }
.sw-share-icon-btn:hover {
  background: rgba(var(--accent-rgb), 0.3);
  border-color: rgba(var(--accent-rgb), 0.6);
}

.sw-sky-event-detail {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.84rem;
  color: var(--ink-dim);
  margin-top: 8px;
  line-height: 1.5;
}

.sw-tonights-sky {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.92rem;
  color: var(--ink-dim);
  line-height: 1.7;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.2);
  position: relative;
  z-index: 1;
}


/* ---------- "Breaking News" banner -- only rendered when astro_daily_
   content.py flags a genuinely urgent event (G3+ aurora chance at this
   latitude, naked-eye comet, imminent eclipse, meteor outburst, etc.).
   Deliberately urgent red/orange treatment, distinct from the calm violet
   "must-see tonight" card, and hidden entirely on a normal night. ---------- */
.sw-breaking-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 840px;
  /* .hero's shared 100px top padding (style.css) was sized for the
     quick-widgets row being the first element -- now that Breaking sits
     above that, pull it up to close the gap (Dave 2026-08-24: "too much
     room between Breaking and the top header"). */
  margin: -55px auto 22px;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 107, 107, 0.18), rgba(255, 159, 67, 0.1));
  border: 1px solid rgba(255, 107, 107, 0.45);
  text-decoration: none;
  animation: sw-breaking-pulse 2s ease-in-out infinite;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
@keyframes sw-breaking-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 107, 107, 0); }
  50% { box-shadow: 0 0 30px rgba(255, 107, 107, 0.3); }
}
.sw-breaking-tag {
  font-family: var(--sw-mono);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0a12;
  background: #ff6b6b;
  padding: 4px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}
.sw-breaking-headline {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.92rem;
}
.sw-breaking-detail {
  color: var(--ink-dim);
  font-size: 0.82rem;
}

/* ---------- Live-feed snapshot button -- non-intrusive corner overlay on
   .cam-wrap (position:relative already set in style.css), captures the
   current video frame client-side and downloads it. No equivalent on
   Rocky's page (public-only feature). ---------- */
.cam-snap-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 18, 0.45);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.cam-snap-btn:hover {
  opacity: 1;
  transform: scale(1.08);
  background: rgba(10, 10, 18, 0.75);
  border-color: var(--gold);
}
.cam-snap-btn-flash {
  opacity: 1 !important;
  background: rgba(232, 200, 119, 0.25) !important;
  border-color: var(--gold) !important;
}
@media (max-width: 600px) {
  .cam-snap-btn { opacity: 0.75; width: 38px; height: 38px; font-size: 1.05rem; }
}

/* ---------- YouTube subscribe-to-unlock banner -- honor-system unlock for
   search results beyond 9 matches (Dave 2026-08-24: no real OAuth-verified
   subscription check, just a click-through + localStorage remember). ---------- */
.yt-unlock-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 0, 0, 0.25);
}
.yt-unlock-icon { font-size: 1.8rem; flex-shrink: 0; }
.yt-unlock-text { flex: 1; min-width: 200px; }
.yt-unlock-title {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
}
.yt-unlock-sub {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--ink-dim);
  margin-top: 3px;
}
.yt-unlock-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: #ff0000;
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.yt-unlock-btn:hover { background: #cc0000; transform: translateY(-1px); }

/* Downloadable-card visual signal -- subtle gold glow on the whole card
   plus a ribbon on the thumbnail, so it's obvious at a glance which cards
   have the free download/share feature before you even scroll to it. */
.gallery-item.is-downloadable {
  border-color: rgba(232, 200, 119, 0.3);
  box-shadow: 0 0 0 rgba(232, 200, 119, 0);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.gallery-item.is-downloadable:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 28px rgba(232, 200, 119, 0.18);
}
.downloadable-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #14100a;
  background: linear-gradient(135deg, #f0d989, var(--gold));
  box-shadow: 0 2px 10px rgba(232, 200, 119, 0.4);
}

/* ---------- 3D YouTube logo link (Total Captures card) -- inline SVG so it
   stays sharp at any resolution; raised red body + gloss, tilts up on hover ---------- */
.sw-yt-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 12px;
  text-decoration: none;
  position: relative;
  z-index: 1;
  perspective: 400px;
}
.sw-yt-logo svg {
  display: block;
  filter: drop-shadow(0 6px 10px rgba(255, 0, 0, 0.28)) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55));
  transform: rotateX(12deg);
  transition: transform 0.25s ease, filter 0.25s ease;
}
.sw-yt-logo:hover svg,
.sw-yt-logo:focus-visible svg {
  transform: rotateX(0deg) translateY(-3px) scale(1.06);
  filter: drop-shadow(0 10px 16px rgba(255, 0, 0, 0.45)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55));
}
.sw-yt-logo-label {
  font-family: var(--sw-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.sw-yt-logo:hover .sw-yt-logo-label { color: #ff4d4d; }
@media (prefers-reduced-motion: reduce) {
  .sw-yt-logo svg, .sw-yt-logo:hover svg { transition: none; transform: none; }
}

/* ---------- Total Captures card: animated total, glowing sighting tiles
   with share bars, featured daily-timelapse tile (Dave 2026-09-30:
   "add the timelapse video counts ... make it more visually stunning") ---------- */
.sw-total-num {
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff3d6 0%, var(--sw-amber) 55%, #ff8a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 16px rgba(255, 180, 84, 0.45));
  font-variant-numeric: tabular-nums;
}
.sw-capture-breakdown { position: relative; z-index: 1; margin-top: 14px; }
.sw-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.sw-stat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 2px 10px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.16), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sw-stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 18px rgba(var(--accent-rgb), 0.22);
}
.sw-stat-icon { font-size: 1.1rem; line-height: 1; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.5)); }
.sw-stat-num {
  font-family: var(--sw-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
  font-variant-numeric: tabular-nums;
}
.sw-stat-name {
  font-family: var(--sw-mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sw-stat-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: var(--share);
  background: linear-gradient(90deg, var(--accent), #fff3d6);
  box-shadow: 0 0 8px var(--accent);
  animation: sw-bar-grow 1.2s ease-out both;
}
@keyframes sw-bar-grow { from { width: 0; } }
.sw-stat-tile.is-zero { background: rgba(255, 255, 255, 0.02); border-color: rgba(255, 255, 255, 0.08); }
.sw-stat-tile.is-zero .sw-stat-icon { filter: grayscale(0.7); opacity: 0.55; }
.sw-stat-tile.is-zero .sw-stat-num { color: var(--ink-dim); text-shadow: none; opacity: 0.6; }

.sw-lapse-tile {
  --lapse: #a68bff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(166, 139, 255, 0.35), transparent 60%),
    linear-gradient(135deg, rgba(95, 214, 196, 0.12), rgba(138, 111, 216, 0.18));
  border: 1px solid rgba(166, 139, 255, 0.45);
  box-shadow: 0 0 22px rgba(138, 111, 216, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.sw-lapse-tile::after {   /* slow shimmer sweep, like a timelapse sky */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.10) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sw-lapse-sweep 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sw-lapse-sweep { 60%, 100% { transform: translateX(100%); } }
.sw-lapse-icon { font-size: 1.7rem; filter: drop-shadow(0 0 8px rgba(166, 139, 255, 0.7)); }
.sw-lapse-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sw-lapse-name {
  font-family: var(--sw-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9ccff;
}
.sw-lapse-meta { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 0.72rem; color: var(--ink-dim); }
.sw-lapse-num {
  font-family: var(--sw-mono);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--lapse);
  text-shadow: 0 0 14px rgba(166, 139, 255, 0.7);
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  .sw-stat-bar, .sw-lapse-tile::after { animation: none; }
}

/* ---------- Sky Alerts slot, positive default (Dave 2026-09-30): when there's
   no breaking alert, the same banner rotates tonight's real sky highlights in a
   calm aurora treatment -- animated violet/teal gradient border, twinkling
   icon, fade between events. .is-breaking keeps the urgent red pulse. ---------- */
.sw-breaking-icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.sw-breaking-banner > span { transition: opacity 0.45s ease, transform 0.45s ease; }
.sw-breaking-banner.is-swapping > span:not(.sw-breaking-tag) { opacity: 0; transform: translateY(4px); }

.sw-breaking-banner.is-highlight {
  position: relative;
  border-radius: 22px;
  border: 1px solid transparent;
  background:
    linear-gradient(90deg, rgba(20, 16, 52, 0.92), rgba(16, 28, 48, 0.92)) padding-box,
    linear-gradient(90deg, #8a6fd8, #5fd6c4, #e8c877, #e8789c, #8a6fd8) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: sw-aurora-border 8s linear infinite, sw-aurora-glow 6s ease-in-out infinite;
  overflow: hidden;
}
.sw-breaking-banner.is-highlight::after {   /* soft shimmer sweep */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.09) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: sw-lapse-sweep 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sw-aurora-border { to { background-position: 0 0, 300% 0; } }
@keyframes sw-aurora-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(138, 111, 216, 0.25), 0 0 40px rgba(95, 214, 196, 0.08); }
  50% { box-shadow: 0 0 28px rgba(95, 214, 196, 0.3), 0 0 60px rgba(138, 111, 216, 0.15); }
}
.sw-breaking-banner.is-highlight .sw-breaking-tag {
  background: linear-gradient(90deg, #a68bff, #5fd6c4);
  color: #0a0a18;
  box-shadow: 0 0 12px rgba(166, 139, 255, 0.5);
}
.sw-breaking-banner.is-highlight .sw-breaking-icon {
  animation: sw-twinkle 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(232, 200, 119, 0.6));
}
@keyframes sw-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 6px rgba(232, 200, 119, 0.5)); }
  50% { transform: scale(1.15) rotate(-6deg); filter: drop-shadow(0 0 14px rgba(232, 200, 119, 0.9)); }
}
.sw-breaking-banner.is-highlight .sw-breaking-headline {
  background: linear-gradient(90deg, #fff3d6, #e8c877);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sw-breaking-banner.is-highlight:hover { filter: brightness(1.12); }
@media (prefers-reduced-motion: reduce) {
  .sw-breaking-banner.is-highlight,
  .sw-breaking-banner.is-highlight::after,
  .sw-breaking-banner.is-highlight .sw-breaking-icon { animation: none; }
}

/* =====================================================================
   Mission Control (Dave 2026-09-30: "redesign this whole area ... more
   visually stunning and detailed") -- replaces the old 3-card hero row.
   ===================================================================== */
.sw-mc {
  /* break out of .hero-inner's narrow text column to use the full row */
  width: min(1100px, calc(100vw - 32px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  text-align: left;
}
.sw-mc-head { display: flex; align-items: center; gap: 14px; margin: 0 4px 14px; }
.sw-mc-title {
  font-family: var(--sw-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #5fd6c4, #a68bff, #ffb454);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.sw-mc-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(95, 214, 196, 0.6), rgba(166, 139, 255, 0.35), transparent); }
.sw-mc-updated { font-family: var(--sw-mono); font-size: 0.68rem; color: #7fd67a; white-space: nowrap; }

.sw-mc-grid.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .sw-mc-grid.hero-stats { grid-template-columns: 1fr 1fr; }
  .sw-mc-grid .sw-mc-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .sw-mc-grid.hero-stats { grid-template-columns: 1fr; }
  .sw-mc-head .sw-mc-line { display: none; }
  .sw-mc-head { justify-content: space-between; }
}

.sw-mc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 18px;
  min-width: 0;
  background:
    radial-gradient(140% 90% at 100% 0%, rgba(var(--accent-rgb), 0.13), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.sw-mc-card:hover { transform: translateY(-3px); }
.sw-mc-card > * { position: relative; z-index: 1; }

/* ---- card 1: status ---- */
.sw-mc-status { display: flex; align-items: center; gap: 18px; padding-left: 6px; }
.sw-mc-status .sw-hero-value { font-size: 2rem; white-space: nowrap; }
.sw-mc-status .sw-hero-dot { width: 12px; height: 12px; position: relative; }
.sw-mc-status .sw-hero-dot.is-watching { background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; }
.sw-mc-status .sw-hero-dot.is-watching::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #ff4d4d;
  animation: sw-mc-ping 1.8s ease-out infinite;
}
@keyframes sw-mc-ping { from { transform: scale(0.5); opacity: 0.9; } to { transform: scale(1.8); opacity: 0; } }
.sw-mc-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; margin-left: auto; }
.sw-mc-eq i {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), 0.3));
  animation: sw-mc-eq 1.1s ease-in-out infinite;
}
.sw-mc-eq i:nth-child(2) { animation-delay: -0.3s; }
.sw-mc-eq i:nth-child(3) { animation-delay: -0.6s; }
.sw-mc-eq i:nth-child(4) { animation-delay: -0.15s; }
.sw-mc-eq i:nth-child(5) { animation-delay: -0.45s; }
@keyframes sw-mc-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
#hero-status-card[data-accent="idle"] .sw-mc-eq i { animation: none; height: 25%; }

.sw-mc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sw-mc-mini {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.sw-mc-mini-icon { grid-row: 1 / 3; font-size: 1.15rem; }
.sw-mc-mini-val { font-family: var(--sw-mono); font-weight: 800; font-size: 0.86rem; color: var(--ink); white-space: nowrap; }
.sw-mc-mini-label { font-size: 0.6rem; letter-spacing: 0.06em; white-space: nowrap; text-transform: uppercase; color: var(--ink-dim); }

.sw-mc-block {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sw-mc-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: var(--sw-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
.sw-mc-block-head b { color: var(--accent); font-size: 0.8rem; letter-spacing: 0; }
.sw-mc-block-foot { margin-top: 6px; font-size: 0.72rem; color: var(--ink-dim); font-family: 'Helvetica Neue', Arial, sans-serif; }
.sw-mc-progress { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.sw-mc-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #1e2a78, #a68bff 45%, #ffb454 80%, #fff3d6);
  box-shadow: 0 0 12px rgba(166, 139, 255, 0.6);
  transition: width 1.2s ease-out;
}
.sw-mc-stack { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; background: rgba(255, 255, 255, 0.05); }
.sw-mc-stack span { width: var(--w); background: var(--c); box-shadow: 0 0 10px var(--c); animation: sw-bar-grow 1.1s ease-out both; }
.sw-mc-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 0.72rem; color: var(--ink-dim); font-family: 'Helvetica Neue', Arial, sans-serif; }
.sw-mc-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); margin-right: 5px; }
.sw-mc-legend b { color: var(--ink); margin-left: 2px; }
.sw-mc-sun {
  margin-top: auto;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--ink-dim);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ---- card 2: activity sparkline ---- */
.sw-mc-spark { display: flex; align-items: flex-end; gap: 2px; height: 46px; }
.sw-mc-spark i {
  flex: 1;
  height: var(--h);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #fff3d6, var(--sw-amber) 40%, rgba(255, 138, 61, 0.35));
  box-shadow: 0 0 8px rgba(255, 180, 84, 0.35);
  animation: sw-mc-rise 0.8s ease-out both;
  animation-delay: var(--d);
  transform-origin: bottom;
}
.sw-mc-spark i.is-zero { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
@keyframes sw-mc-rise { from { transform: scaleY(0); } }
.sw-mc-spark-axis { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--sw-mono); font-size: 0.58rem; color: var(--ink-dim); opacity: 0.7; }
.sw-mc-card .sw-yt-logo { margin-top: auto; align-self: flex-start; }

/* ---- card 3: latest catch ---- */
.sw-mc-thumb {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #05060f;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.18);
}
.sw-mc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.sw-mc-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 26, 0.35), transparent 35%, transparent 60%, rgba(5, 6, 26, 0.75));
  pointer-events: none;
}
.sw-mc-thumb:hover img { transform: scale(1.06); }
.sw-mc-thumb-badge, .sw-mc-thumb-dur {
  position: absolute;
  z-index: 2;
  font-family: var(--sw-mono);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.sw-mc-thumb-badge { top: 8px; left: 8px; background: rgba(95, 214, 196, 0.85); color: #04121a; }
.sw-mc-thumb-dur { bottom: 8px; right: 8px; background: rgba(0, 0, 0, 0.6); color: #fff; }
.sw-mc-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #fff;
  background: rgba(95, 214, 196, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 24px rgba(95, 214, 196, 0.55);
  transition: transform 0.25s ease, background 0.25s ease;
}
.sw-mc-thumb:hover .sw-mc-play { transform: scale(1.12); background: rgba(95, 214, 196, 0.5); }
.sw-mc-ago {
  font-family: var(--sw-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.sw-mc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-mc-tags:empty { display: none; }
.sw-mc-film { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sw-mc-frame {
  position: relative;
  padding: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 7px;
  overflow: hidden;
  background: #05060f;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.sw-mc-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-mc-frame span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: var(--sw-mono);
  font-size: 0.56rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
  padding: 6px 2px 2px;
  text-align: center;
}
.sw-mc-frame:hover { transform: translateY(-2px) scale(1.04); border-color: var(--accent); }
.sw-mc-empty { grid-column: 1 / -1; font-size: 0.72rem; color: var(--ink-dim); }
.sw-mc-cta {
  align-self: flex-start;
  font-family: var(--sw-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #04121a;
  background: linear-gradient(90deg, #5fd6c4, #8fe8d9);
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(95, 214, 196, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sw-mc-cta:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(95, 214, 196, 0.55); }

/* card 2 lives in a wider column now -- 5 sighting tiles fit in one row */
.sw-mc-grid .sw-stat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) and (min-width: 641px) {
  .sw-mc-grid .sw-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .sw-mc-eq i, .sw-mc-status .sw-hero-dot::after, .sw-mc-spark i, .sw-mc-stack span { animation: none; }
}
