/* viewer.css — shared across every lot page */

#nav-links {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  font-family: sans-serif;
  font-size: 12px;
}

#nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

#nav-links a:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

body {
  background-color: #000000;
  height: 100vh;
  margin: 0px;
  overflow: hidden;
}

#hint {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Georgia', serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  pointer-events: none;
  transition: opacity 1s ease;
  opacity: 1;
}
#hint.hidden {
  opacity: 0;
}

/* ── Loading overlay ─────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #000;
  z-index: 2000;
  transition: opacity 0.8s ease;
}
#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

#loader-ring {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#loader-label {
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Georgia', serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

/* ── Video medallion ─────────────────────────────────────────────── */
#kishori-wrapper {
  position: fixed;
  top: clamp(12px, 2vw, 20px);
  right: clamp(12px, 2vw, 20px);
  width: clamp(120px, min(28vw, 28vh), 512px);
  height: clamp(120px, min(28vw, 28vh), 512px);
  border-radius: clamp(8px, 1.5vw, 16px);
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  z-index: 1000;
  background-color: black;
  cursor: pointer;
  display: none;
}

#kishori-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

#kishori-controls {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

#kishori-controls button {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 4px;
  padding: clamp(2px, 0.5vw, 4px) clamp(3px, 0.6vw, 6px);
  font-size: clamp(10px, 1.5vw, 14px);
  cursor: pointer;
  font-family: sans-serif;
  transition: background-color 0.3s;
}

#kishori-controls button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

#kishori-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(18px, 3vw, 32px);
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: clamp(4px, 0.8vw, 8px) clamp(6px, 1vw, 12px);
  border-radius: 50%;
  pointer-events: none;
  user-select: none;
  font-family: sans-serif;
}

#info-icon {
  position: fixed;
  bottom: clamp(12px, 2vw, 20px);
  left: clamp(12px, 2vw, 20px);
  width: 28px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.8);
  color: black;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: bold;
  cursor: pointer;
  font-family: sans-serif;
  z-index: 1000;
  transition: background-color 0.3s;
}

#info-icon:hover {
  background-color: white;
}

#info-tooltip {
  position: fixed;
  bottom: 60px;
  left: clamp(12px, 2vw, 20px);
  width: clamp(200px, 60vw, 260px);
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  font-family: sans-serif;
  display: none;
  z-index: 1000;
}

#info-icon:hover + #info-tooltip {
  display: block;
}

/* ── Audio player ─────────────────────────────────────────────────── */
#audio-player {
  position: fixed;
  bottom: clamp(12px, 2vw, 20px);
  right: clamp(12px, 2vw, 20px);
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(6px);
  z-index: 1000;
  font-family: sans-serif;
}

#audio-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: black;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
#audio-toggle:hover {
  background: white;
}

#audio-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ── Phone-specific tweaks ────────────────────────────────────────── */
@media (max-width: 480px) {
  #hint {
    font-size: 11px;
    bottom: 20px;
  }
  #info-icon {
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    left: 14px;
  }
  #info-tooltip {
    bottom: max(56px, calc(env(safe-area-inset-bottom, 0px) + 50px));
    font-size: 12px;
  }
  #audio-player {
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
  }
}
