:root {
  --bg: #000000;
  --text: #e8e0d4;
  --text-dim: #6b6560;
  --accent: #d4652a;
  --accent-glow: #ff8844;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}


#video-container {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#solar-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Status overlay */
#status-overlay {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

#status-text {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

#frame-counter {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  opacity: 0.6;
  min-height: 1em;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--text-dim);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Info bar */
#info-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}

#info-bar.visible {
  opacity: 1;
}

#info-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#info-title {
  font-size: 11px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.1em;
  
  text-transform: uppercase;
}

#info-date {
  font-size: 11px;
  font-weight: 300;
  /* color: var(--text-dim); */
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* opacity: 0.5; */
}

#info-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

#info-wavelength {
  font-size: 11px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.1em;
  opacity: 0.5;
  
}

#info-source {
  font-size: 11px;
  font-weight: 300;
  /* color: var(--text-dim); */
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* opacity: 0.5; */
}

/* Error state */
#error-msg {
  font-size: 12px;
  color: var(--accent);
  max-width: 400px;
  line-height: 1.6;
}

/* Bluesky feed overlay */
#bluesky-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  max-width: 1200px;
  width: 90%;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: all;
  text-align: center;
}

#bluesky-post {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#post-text {
  /* font-family: 'Space Mono', monospace; */
  font-family: 'DM Mono', monospace;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.4;
  /* color: var(--text); */
  color: #ffffff;
  letter-spacing: -0.01em;
}

#post-meta {
  /* font-family: 'Space Mono', monospace; */
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  /* color: var(--text-dim); */
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  /* opacity: 0.5; */
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 0.7; transform: scale(1); }
}

.fade-in {
  animation: fadeIn 1.5s ease forwards;
}

/* Small viewports */
@media (max-width: 768px) {
  #info-right {
    display: none;
  }

  #info-bar {
    justify-content: center;
  }

  #info-left {
    align-items: center;
    text-align: center;
  }
}
