/* Image overlay viewer */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  cursor: pointer;
}

.image-overlay img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border: 2px solid #00ff00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.image-overlay .caption {
  color: #00ff00;
  margin-top: 20px;
  font-family: monospace;
  font-size: 14px;
}

.image-overlay .hint {
  color: #888;
  margin-top: 10px;
  font-family: monospace;
  font-size: 12px;
}

/* Audio player */
.audio-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1a1a1a;
  border: 1px solid #00ff00;
  padding: 10px 15px;
  font-family: monospace;
  color: #00ff00;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.audio-player.hidden {
  display: none;
}

.audio-player .audio-title {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-player .audio-controls {
  display: flex;
  gap: 5px;
}

.audio-player button {
  background: transparent;
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 5px 10px;
  cursor: pointer;
  font-family: monospace;
  font-size: 12px;
}

.audio-player button:hover {
  background: #00ff00;
  color: #000;
}

.audio-player .audio-indicator {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .image-overlay img {
    max-width: 95%;
    max-height: 70%;
  }

  .audio-player {
    bottom: 10px;
    right: 10px;
    left: 10px;
    justify-content: space-between;
  }

  .audio-player .audio-title {
    max-width: 120px;
  }
}
