/**
 * GT UAP / Alien Sightings Stage Styles — desktop two-column & mobile responsive
 */
#gt-uap-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(232, 255, 243, 0.72);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#gt-uap-tab .gt-uap-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #38f2b8;
  box-shadow: 0 0 8px rgba(56, 242, 184, 0.65);
}

#gt-uap-tab[aria-selected="true"],
body.gt-uap-active #gt-uap-tab {
  background: rgba(0, 170, 255, 0.16) !important;
  border-color: rgba(56, 242, 184, 0.52) !important;
  color: #fff !important;
  box-shadow: 0 0 18px rgba(56, 242, 184, 0.16) !important;
}

body.gt-uap-active nav[aria-label="Global data views"] button[role="tab"]:not(#gt-uap-tab) {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(232, 255, 243, 0.55) !important;
  box-shadow: none !important;
}

body.gt-uap-active nav[aria-label="Global data views"] button[role="tab"]:not(#gt-uap-tab) .animate-pulse,
body.gt-uap-active nav[aria-label="Global data views"] button[role="tab"]:not(#gt-uap-tab) span.mono {
  display: none !important;
}

body.gt-uap-active nav[aria-label="Global data views"],
body.gt-uap-active #gt-main-tab-dd {
  position: relative;
  z-index: 8700;
  pointer-events: auto !important;
}

/* Hide React map/chip rows underneath the UAP stage */
body.gt-uap-active #root > div > .hidden.lg\:block,
body.gt-uap-active #root > div > .shrink-0.border-t {
  display: none !important;
}

body.gt-uap-active #root main {
  visibility: hidden !important;
  pointer-events: none !important;
}

.gt-uap-stage {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--gt-uap-top, 118px);
  bottom: 52px;
  z-index: 8500;
  background: #050a12;
  color: #e6f2ff;
  font-family: Inter, system-ui, sans-serif;
  border-top: 1px solid rgba(56, 242, 184, 0.2);
  isolation: isolate;
}

body.gt-uap-active .gt-uap-stage {
  display: flex;
}

body.gt-persist-chrome-on.gt-uap-active .gt-uap-stage,
html.gt-uap-active body.gt-persist-chrome-on .gt-uap-stage {
  bottom: var(--gt-persist-chrome-h, 110px) !important;
}

.gt-uap-shell {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.gt-uap-side {
  flex: 0 0 330px;
  width: 330px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #070e18;
  border-right: 1px solid rgba(0, 170, 255, 0.2);
}

.gt-uap-side__head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gt-uap-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #38f2b8;
}

.gt-uap-sub {
  font-size: 10px;
  color: #7ca4c4;
  margin-top: 2px;
}

.gt-uap-count {
  flex: 0 0 auto;
  font-size: 10px;
  font-family: ui-monospace, monospace;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(56, 242, 184, 0.1);
  border: 1px solid rgba(56, 242, 184, 0.35);
  color: #8cfbe0;
  white-space: nowrap;
}

.gt-uap-filters {
  flex: 0 0 auto;
  min-height: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gt-uap-chip {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #93b5d1;
  cursor: pointer;
}

.gt-uap-chip.is-active {
  border-color: rgba(56, 242, 184, 0.6);
  background: rgba(56, 242, 184, 0.14);
  color: #fff;
}

.gt-uap-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gt-uap-card {
  display: flex;
  gap: 0.55rem;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(11, 20, 34, 0.85);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.gt-uap-card:hover,
.gt-uap-card.is-active {
  border-color: rgba(56, 242, 184, 0.55);
  background: rgba(14, 30, 48, 0.95);
}

.gt-uap-card__thumb {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  height: 54px;
  border-radius: 7px;
  overflow: hidden;
  background: #0a1424;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gt-uap-card__thumb img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gt-uap-card__play {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 2;
  font-style: normal;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.85);
  color: #38f2b8;
  border: 1px solid rgba(56, 242, 184, 0.45);
}

.gt-uap-card__glyph {
  font-size: 11px;
  font-weight: 700;
  color: #ffaa44;
}

.gt-uap-card__meta {
  flex: 1 1 auto;
  min-width: 0;
}

.gt-uap-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 2px;
}

.gt-uap-card__loc {
  font-size: 10px;
  font-weight: 700;
  color: #38f2b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gt-uap-card__shape {
  flex: 0 0 auto;
  font-size: 9px;
  font-family: ui-monospace, monospace;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 170, 255, 0.14);
  color: #88ccff;
}

.gt-uap-card__title {
  font-size: 11.5px;
  font-weight: 600;
  color: #e6f2ff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gt-uap-card__foot {
  font-size: 9.5px;
  color: #6b8fae;
  margin-top: 3px;
}

.gt-uap-mapwrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.gt-uap-map {
  width: 100%;
  height: 100%;
  background: #040810;
}

.gt-uap-sat-tiles {
  filter: brightness(0.58) contrast(1.16) saturate(0.85);
}

.gt-uap-label-tiles {
  filter: brightness(0.9) contrast(1.08);
  opacity: 0.88 !important;
}

.gt-uap-legend {
  position: absolute;
  left: 12px;
  bottom: 14px;
  z-index: 650;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(5, 10, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  color: #9dc0de;
  pointer-events: none;
}

.gt-uap-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gt-uap-leg-item i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.gt-uap-leg-item i.is-video {
  background: #38f2b8;
  box-shadow: 0 0 8px #38f2b8;
}

.gt-uap-leg-item i.is-news {
  background: #ffaa44;
  box-shadow: 0 0 8px #ffaa44;
}

/* Radar Markers */
.gt-uap-pin-wrap {
  background: transparent;
  border: none;
}

.gt-uap-pin {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.gt-uap-pin__ring {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid #38f2b8;
  opacity: 0.6;
  animation: gtUapPulse 2.2s ease-out infinite;
}

.gt-uap-pin__core {
  position: absolute;
  left: 7px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38f2b8;
  box-shadow: 0 0 10px rgba(56, 242, 184, 0.9);
  border: 1.5px solid #041016;
}

.gt-uap-pin.is-news .gt-uap-pin__ring {
  border-color: #ffaa44;
}

.gt-uap-pin.is-news .gt-uap-pin__core {
  background: #ffaa44;
  box-shadow: 0 0 10px rgba(255, 170, 68, 0.9);
}

.gt-uap-pin-wrap.is-active .gt-uap-pin__core {
  transform: scale(1.35);
  background: #ffffff;
}

@keyframes gtUapPulse {
  0% { transform: scale(0.7); opacity: 0.85; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Hover / Pinned Inline Video Card */
.gt-uap-preview {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 800;
  width: 348px;
  max-width: calc(100% - 28px);
  border-radius: 14px;
  background: rgba(7, 15, 26, 0.97);
  border: 1px solid rgba(56, 242, 184, 0.45);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.gt-uap-preview[hidden] {
  display: none !important;
}

.gt-uap-preview__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gt-uap-preview__badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.gt-uap-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.gt-uap-badge.is-shape {
  background: rgba(56, 242, 184, 0.16);
  color: #38f2b8;
  border: 1px solid rgba(56, 242, 184, 0.4);
}

.gt-uap-badge.is-plat {
  background: rgba(0, 170, 255, 0.15);
  color: #7cc6ff;
  border: 1px solid rgba(0, 170, 255, 0.35);
}

.gt-uap-badge.is-plat-tiktok,
.gt-uap-plat-pill.is-plat-tiktok {
  background: rgba(255, 45, 117, 0.16);
  color: #ff7ab0;
  border-color: rgba(255, 45, 117, 0.42);
}

.gt-uap-badge.is-plat-mastodon,
.gt-uap-plat-pill.is-plat-mastodon {
  background: rgba(124, 108, 255, 0.18);
  color: #b4a9ff;
  border-color: rgba(124, 108, 255, 0.42);
}

.gt-uap-badge.is-plat-dailymotion,
.gt-uap-plat-pill.is-plat-dailymotion {
  background: rgba(0, 210, 255, 0.14);
  color: #6ce5ff;
  border-color: rgba(0, 210, 255, 0.4);
}

.gt-uap-badge.is-plat-x,
.gt-uap-plat-pill.is-plat-x {
  background: rgba(226, 236, 248, 0.14);
  color: #e2ecf8;
  border-color: rgba(226, 236, 248, 0.38);
}

.gt-uap-badge.is-plat-youtube,
.gt-uap-plat-pill.is-plat-youtube {
  background: rgba(255, 68, 68, 0.16);
  color: #ff8e8e;
  border-color: rgba(255, 68, 68, 0.4);
}

.gt-uap-badge.is-plat-instagram,
.gt-uap-plat-pill.is-plat-instagram {
  background: rgba(244, 114, 182, 0.18);
  color: #f9a8d4;
  border-color: rgba(244, 114, 182, 0.42);
}

.gt-uap-badge.is-plat-facebook,
.gt-uap-plat-pill.is-plat-facebook {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.42);
}

.gt-uap-badge.is-plat-news,
.gt-uap-plat-pill.is-plat-news {
  background: rgba(255, 170, 68, 0.16);
  color: #ffc373;
  border-color: rgba(255, 170, 68, 0.38);
}

.gt-uap-card__foot {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gt-uap-plat-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(0, 170, 255, 0.35);
  letter-spacing: 0.03em;
}

.gt-uap-pin-tag {
  font-size: 9px;
  font-family: ui-monospace, monospace;
  color: #88a6c2;
}

.gt-uap-close {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #e6f2ff;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.gt-uap-preview__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #02050a;
  overflow: hidden;
}

.gt-uap-preview__media.is-portrait {
  aspect-ratio: auto;
  height: 295px;
}

.gt-uap-thumb-img,
.gt-uap-iframe,
.gt-uap-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.gt-uap-iframe {
  z-index: 2;
  background: transparent;
}

.gt-uap-video {
  z-index: 2;
  object-fit: contain;
  background: #02050a;
}

.gt-uap-thumb-img {
  z-index: 1;
}

.gt-uap-no-thumb {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(56, 242, 184, 0.16), #040912);
  color: #7ee8c8;
  font-size: 12px;
  font-weight: 700;
}

.gt-uap-play-pill {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.85);
  border: 1px solid rgba(56, 242, 184, 0.45);
  color: #38f2b8;
}

.gt-uap-play-pill.is-ext {
  border-color: rgba(255, 170, 68, 0.45);
  color: #ffba66;
}

.gt-uap-poster-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.18), rgba(4, 10, 18, 0.62));
  pointer-events: none;
}

.gt-uap-poster-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 16, 28, 0.86);
  border: 1px solid rgba(56, 242, 184, 0.65);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.gt-uap-poster-cta:hover {
  transform: translate(-50%, -50%) scale(1.04);
  border-color: #ff2d75;
  background: rgba(20, 12, 24, 0.92);
}

.gt-uap-poster-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff2d75;
  color: #fff;
  font-size: 9px;
}

.gt-uap-try-embed {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 11, 20, 0.84);
  color: #b8d3eb;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.gt-uap-try-embed:hover {
  border-color: rgba(56, 242, 184, 0.55);
  color: #ffffff;
}

.gt-uap-preview__body {
  padding: 9px 11px 11px;
}

.gt-uap-preview__loc {
  font-size: 10px;
  font-weight: 700;
  color: #38f2b8;
  letter-spacing: 0.03em;
}

.gt-uap-preview__title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  margin-top: 3px;
  line-height: 1.32;
}

.gt-uap-preview__sum {
  font-size: 11px;
  color: #a9c5de;
  margin-top: 4px;
  line-height: 1.4;
}

.gt-uap-preview__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 8px;
}

.gt-uap-ext-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(56, 242, 184, 0.14);
  border: 1px solid rgba(56, 242, 184, 0.48);
  color: #8effdf;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.gt-uap-ext-btn:hover {
  background: rgba(56, 242, 184, 0.24);
  color: #fff;
}

.gt-uap-channel {
  font-size: 10px;
  color: #6b8fae;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gt-uap-empty {
  padding: 1.5rem 0.75rem;
  text-align: center;
  font-size: 12px;
  color: #7ea1bf;
}

/* Phone <=720px: stack interactive map above sightings cards without horizontal overflow */
@media (max-width: 720px) {
  body.gt-uap-active #root main {
    display: none !important;
  }

  .gt-uap-stage {
    bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    max-width: 100vw;
    overflow: hidden;
  }

  .gt-uap-shell {
    flex-direction: column-reverse;
  }

  .gt-uap-mapwrap {
    flex: 0 0 46%;
    height: 46%;
    min-height: 220px;
  }

  .gt-uap-side {
    flex: 1 1 54%;
    width: 100%;
    max-width: 100vw;
    border-right: 0;
    border-top: 1px solid rgba(0, 170, 255, 0.22);
  }

  .gt-uap-side__head {
    padding-right: 98px;
  }

  .gt-uap-legend {
    display: none;
  }

  .gt-uap-preview {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-width: none;
    max-height: 82%;
    overflow-y: auto;
  }
}
