/* Sprint E1 Foundation (Gemini) — Spotlight Guided Tour, First-Glance Museum Theme Badge & Anti-Crop Media/3D Box Fixes */
/* Strictly unified cold-silver (#eef6ff) + ice-blue (#78b5ff) palette; ZERO warm-gold/amber UI tones. */

.gt-theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 181, 255, 0.34);
  background: rgba(6, 14, 28, 0.78);
  color: #eef6ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(2, 8, 20, 0.45);
  white-space: nowrap;
}

.gt-theme-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78b5ff;
  box-shadow: 0 0 10px rgba(120, 181, 255, 0.9);
}

.gt-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(120, 181, 255, 0.32);
  background: rgba(8, 17, 34, 0.76);
  color: #cfe4ff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.gt-replay-btn:hover {
  border-color: #78b5ff;
  background: rgba(18, 36, 68, 0.88);
  color: #eef6ff;
}

.gt-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: auto;
}

.gt-spotlight-ring {
  position: fixed;
  z-index: 121;
  border-radius: 14px;
  border: 2px solid #78b5ff;
  box-shadow:
    0 0 0 9999px rgba(3, 8, 18, 0.72),
    0 0 22px rgba(120, 181, 255, 0.56),
    inset 0 0 12px rgba(120, 181, 255, 0.24);
  pointer-events: none;
  transition: top 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              left 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.gt-popover {
  position: fixed;
  z-index: 122;
  width: min(368px, calc(100vw - 32px));
  padding: 16px 18px 14px;
  border-radius: 14px;
  border: 1px solid rgba(120, 181, 255, 0.42);
  background: linear-gradient(180deg, rgba(9, 19, 38, 0.96) 0%, rgba(5, 12, 25, 0.98) 100%);
  box-shadow: 0 20px 48px rgba(2, 6, 16, 0.82), 0 0 24px rgba(120, 181, 255, 0.18);
  color: #eef6ff;
  backdrop-filter: blur(16px);
}

.gt-popover__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  color: #9ec8ff;
  font-variant-numeric: tabular-nums;
}

.gt-popover__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #eef6ff;
  line-height: 1.4;
}

.gt-popover__body {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.62;
  color: rgba(226, 240, 255, 0.9);
}

.gt-popover__hint {
  margin: 0 0 14px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(120, 181, 255, 0.18);
  background: rgba(120, 181, 255, 0.08);
  font-size: 11.5px;
  color: #bfe3ff;
  line-height: 1.45;
}

.gt-popover__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gt-popover__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gt-btn-ghost {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(120, 181, 255, 0.24);
  background: rgba(8, 17, 34, 0.7);
  color: rgba(190, 218, 255, 0.86);
  font-size: 12px;
  cursor: pointer;
}

.gt-btn-ghost:hover {
  border-color: rgba(120, 181, 255, 0.62);
  color: #eef6ff;
}

.gt-btn-primary {
  height: 30px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(120, 181, 255, 0.78);
  background: linear-gradient(135deg, rgba(46, 112, 214, 0.56), rgba(120, 181, 255, 0.36));
  color: #eef6ff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.gt-btn-primary:hover {
  box-shadow: 0 0 14px rgba(120, 181, 255, 0.36);
}

.sc-detail-panel,
.sc-slide-drawer {
  width: min(430px, calc(100vw - 32px));
}

.sc-detail-hero-img,
.sc-detail-media-img,
.md-media-img,
.md-archival-img,
.archive-media-img {
  width: 100%;
  height: 236px;
  object-fit: contain;
  object-position: center center;
  border-radius: 10px;
  border: 1px solid rgba(120, 181, 255, 0.24);
  background: radial-gradient(circle at 50% 45%, rgba(18, 36, 68, 0.55) 0%, rgba(4, 10, 22, 0.94) 100%);
  cursor: zoom-in;
}

.sc-detail-3d-viewport,
.sc-preview-canvas-wrap,
.md-3d-preview {
  width: 100%;
  min-height: 244px;
  height: 244px;
  border-radius: 10px;
  border: 1px solid rgba(120, 181, 255, 0.26);
  background: radial-gradient(circle at 50% 48%, rgba(16, 36, 70, 0.44) 0%, rgba(4, 10, 22, 0.94) 100%);
  overflow: hidden;
}

.sc-person-portrait,
.md-person-portrait,
.md-people-avatar,
.archive-portrait-img,
.people-card-avatar,
img[src*="portrait"],
img[src*="-crew"],
img[src*="yang-liwei"],
img[src*="wang-yaping"],
img[src*="gagarin"] {
  object-fit: cover;
  object-position: center 18%;
}

.gt-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(2, 7, 16, 0.88);
  backdrop-filter: blur(14px);
  cursor: zoom-out;
}

.gt-lightbox-img {
  max-width: min(1120px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(120, 181, 255, 0.36);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.84);
}

@media (max-width: 1440px), (max-height: 780px) {
  .sc-detail-panel,
  .sc-slide-drawer {
    width: min(392px, calc(100vw - 24px));
  }
  .sc-detail-hero-img,
  .sc-detail-media-img,
  .md-media-img,
  .md-archival-img,
  .archive-media-img {
    height: 204px;
  }
  .sc-detail-3d-viewport,
  .sc-preview-canvas-wrap,
  .md-3d-preview {
    min-height: 212px;
    height: 212px;
  }
}

/* Sprint E1 Integration: Top-left theme header cluster, full-frame gallery contain & portrait cards */
.gt-top-header-cluster {
  position: fixed;
  top: 16px;
  left: 20px;
  z-index: 44;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}

.gt-top-header-cluster > * {
  pointer-events: auto;
}

.gt-top-header-cluster .tm-v2-nav {
  position: static;
  top: auto;
  left: auto;
}

.atlas .tm-media-frame {
  aspect-ratio: auto;
  height: 236px;
  background: radial-gradient(circle at 50% 45%, rgba(18, 36, 68, 0.55) 0%, rgba(4, 10, 22, 0.94) 100%);
}

.atlas .tm-media-img.md-media-img,
.atlas .sc-detail-hero-img,
.atlas .archive-media-img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  cursor: zoom-in;
}

.sc-person-chip--with-portrait {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 11px 5px 6px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(120, 181, 255, 0.30) !important;
  background: rgba(8, 18, 36, 0.82) !important;
  color: #eef6ff;
  cursor: zoom-in;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.sc-person-chip--with-portrait:hover {
  border-color: rgba(120, 181, 255, 0.72) !important;
  background: rgba(16, 34, 66, 0.92) !important;
}

.sc-person-avatar.sc-person-portrait {
  width: 44px;
  height: 52px;
  border-radius: 7px;
  object-fit: cover !important;
  object-position: center 18% !important;
  border: 1px solid rgba(120, 181, 255, 0.48);
  background: rgba(5, 11, 24, 0.95);
  flex-shrink: 0;
}

.sc-person-chip__name {
  font-size: 12.5px;
  font-weight: 600;
  color: #eef6ff;
}

/* Preserve visible hardware cursor inside Lightbox & Guided Tour even when SpaceCompendium is open */
body:has([data-media-lightbox="open"]) .atlas-cursor {
  opacity: 0 !important;
  pointer-events: none !important;
}

html body .atlas.atlas .gt-lightbox-overlay {
  cursor: zoom-out !important;
}

html body .atlas.atlas .gt-lightbox-img {
  cursor: default !important;
}

html body .atlas.atlas [data-space-compendium="open"] [data-lightbox-trigger="true"],
html body .atlas.atlas [data-space-compendium="open"] [data-lightbox-trigger="true"] * {
  cursor: zoom-in !important;
}

@media (max-width: 1440px), (max-height: 780px) {
  .atlas .tm-media-frame {
    height: 204px;
  }
}

/* Sprint E1 R1: Main Solar Panorama Hero Title ("中国航天数字展览馆") & 5 Clickable 3D China Beacons */
.gt-panorama-hero {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 32;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

.gt-panorama-hero__title {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 600;
  letter-spacing: 0.18em;
  padding-left: 0.18em;
  color: #eef6ff;
  text-shadow: 0 2px 24px rgba(120, 181, 255, 0.36), 0 4px 18px rgba(2, 8, 22, 0.85);
}

.gt-panorama-hero__sub {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding-left: 0.14em;
  color: rgba(190, 224, 255, 0.84);
  text-shadow: 0 2px 12px rgba(2, 8, 22, 0.85);
}

.gt-beacon-layer {
  position: absolute;
  inset: 0;
  z-index: 26;
  pointer-events: none;
  overflow: hidden;
}

.gt-china-beacon {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(120, 181, 255, 0.48);
  background: rgba(5, 13, 28, 0.78);
  color: #eef6ff;
  font-size: 11.5px;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(2, 8, 22, 0.56), 0 0 14px rgba(120, 181, 255, 0.24);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.gt-china-beacon:hover {
  border-color: #9ec8ff;
  background: rgba(14, 32, 64, 0.92);
  box-shadow: 0 6px 22px rgba(2, 8, 22, 0.68), 0 0 20px rgba(120, 181, 255, 0.48);
  z-index: 30;
}

.gt-china-beacon__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8cc4ff;
  box-shadow: 0 0 10px rgba(120, 181, 255, 0.95), 0 0 2px #eef6ff;
  flex-shrink: 0;
}

.gt-china-beacon__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.gt-china-beacon__label {
  font-weight: 600;
  font-size: 11.5px;
  color: #eef6ff;
}

.gt-china-beacon__sub {
  font-size: 9.5px;
  color: rgba(176, 212, 255, 0.82);
}

@media (max-width: 1440px), (max-height: 780px) {
  .gt-panorama-hero {
    top: 66px;
  }
  .gt-panorama-hero__title {
    font-size: 24px;
  }
}
