/* Stream Shot — globe settings album (device-local photos + Stream Savor videos) */

#gs-panel-streamshot {
  display: none;
  position: relative;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

#gs-panel-streamshot.active {
  display: flex;
}

#gs-panel-streamshot.ss-shot-open {
  min-height: min(56vh, 480px);
}

#gs-panel-streamshot.ss-shot-open > *:not(.ss-shot-viewer):not(.ss-shot-send) {
  display: none !important;
}

.ss-shot-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

.ss-shot-lede {
  margin: 0;
}

.ss-shot-sub-bar {
  display: flex;
  gap: 8px;
}

.ss-shot-sub-bar .ss-sub-tab {
  flex: 1;
}

.ss-shot-status--ok {
  color: #86efac !important;
}

.ss-shot-status--err {
  color: #fca5a5 !important;
}

.ss-shot-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.ss-shot-section-head .gs-section {
  margin: 0;
}

.ss-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: min(52vh, 440px);
  overflow: auto;
  padding-right: 2px;
}

.ss-shot-card {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
}

.ss-shot-thumb {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ss-shot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-shot-thumb-fallback,
.ss-shot-play {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
}

.ss-shot-thumb--video {
  position: relative;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.25), rgba(15, 23, 42, 0.85));
}

.ss-shot-thumb--video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ss-shot-thumb--video .ss-shot-play {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ss-shot-card-meta {
  display: none;
}

.ss-shot-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
}

.ss-shot-card-sub {
  font-size: 11px;
  color: #94a3b8;
}

.ss-shot-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ss-shot-mini {
  padding: 6px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
}

.ss-shot-mini--danger {
  border-color: rgba(248, 113, 113, 0.45) !important;
  color: #fecaca !important;
  background: rgba(239, 68, 68, 0.12) !important;
}

.ss-shot-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.ss-shot-viewer,
.ss-shot-send {
  margin-top: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#gs-panel-streamshot.ss-shot-open .ss-shot-viewer:not([hidden]) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 8px;
}

#gs-panel-streamshot.ss-shot-open .ss-shot-send {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: auto;
}

.ss-shot-viewer-top,
.ss-shot-send-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.ss-shot-viewer-media {
  width: 100%;
  flex: 1 1 auto;
  min-height: 120px;
  max-height: min(36vh, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.ss-shot-viewer-media img,
.ss-shot-viewer-media video {
  max-width: 100%;
  max-height: min(36vh, 320px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ss-shot-viewer-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  text-align: center;
  flex-shrink: 0;
}

.ss-shot-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-top: auto;
  padding: 8px 0 4px;
  position: relative;
  z-index: 2;
}

/* Beat stale [hidden] / UA display:none after tap-open */
#gs-stream-shot-viewer-actions:not([hidden]) {
  display: flex !important;
}

.ss-shot-send-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 36vh;
  overflow: auto;
}

.ss-shot-person {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

.ss-shot-person:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.28);
}

.ss-shot-online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #64748b;
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.25);
}

.ss-shot-online-dot.is-online {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28), 0 0 10px rgba(34, 197, 94, 0.45);
}

#globe-settings-panel .social-person-row .ss-shot-online-dot {
  margin-right: 2px;
}

.ss-shot-person-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ss-shot-person-name {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.ss-shot-person-meta {
  font-size: 11px;
  color: #94a3b8;
}

#globe-settings-panel.gs-search-mode #gs-panel-streamshot {
  display: none !important;
}
