/* ═══════ MISC PAGE (AUDIO VISUALIZER) ═══════ */
:root {
  --pink: #e47aad;
  --cyan: #6edcd9;
  --purple: #9b7ed8;
  --blue: #5b8fd9;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Azeret Mono', monospace;
}

body::before {
  opacity: 0.3;
}

canvas#vizCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* ═══════ BACK LINK ═══════ */
.back-link {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 100;
}
.back-link:hover { color: var(--cyan); }

/* ═══════ SOUND NOTICE ═══════ */
.sound-notice {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
}

/* ═══════ STREAMING ICONS ═══════ */
.stream-links {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.stream-link {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.stream-link:hover {
  opacity: 0.9;
  transform: scale(1.15);
}

.stream-link svg { width: 100%; height: 100%; }

/* ═══════ PLAY ORB ═══════ */
.play-orb {
  position: fixed;
  z-index: 50;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.play-orb.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
}

.orb-bg {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    rgba(228,122,173,0.08) 0%,
    rgba(155,126,216,0.06) 40%,
    rgba(110,220,217,0.04) 70%,
    transparent 100%
  );
  filter: blur(30px);
  animation: orbBreathe 12s ease-in-out infinite;
}

@keyframes orbBreathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

.orb-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(155,126,216,0.2);
  animation: orbRingSpin 45s linear infinite;
  background: conic-gradient(
    from 0deg,
    rgba(228,122,173,0.06),
    rgba(155,126,216,0.04),
    rgba(110,220,217,0.06),
    rgba(91,143,217,0.04),
    rgba(228,122,173,0.06)
  );
}

@keyframes orbRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orb-label {
  position: relative;
  z-index: 2;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.4s ease;
}

.play-orb:hover .orb-label { color: var(--fg-bright); }
.play-orb:hover .orb-ring { border-color: rgba(155,126,216,0.35); }
.play-orb:hover .orb-bg { opacity: 1; }

/* ═══════ TRANSPORT BAR ═══════ */
.transport {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: linear-gradient(transparent, rgba(10,10,10,0.85));
  pointer-events: none;
}

.transport.visible {
  opacity: 1;
  pointer-events: auto;
}

.transport-play {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s ease;
  padding: 0;
}

.transport-play:hover { border-color: var(--pink); }
.transport-play:hover svg path,
.transport-play:hover svg rect { fill: var(--pink); }

.progress-wrap {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.progress-track {
  width: 100%;
  height: 2px;
  background: var(--dim);
  position: relative;
  border-radius: 1px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
  border-radius: 1px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.progress-wrap:hover .progress-thumb { opacity: 1; }

.transport-time {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 70px;
  text-align: right;
}

@media (max-width: 600px) {
  .transport { padding: 0.75rem 1rem 1rem; }
  .back-link { top: 1rem; left: 1rem; }
  .sound-notice { top: 1rem; font-size: 0.5rem; }
  .stream-links { top: 1rem; right: 1rem; }
  .orb-bg { width: 220px; height: 220px; }
  .orb-ring { width: 160px; height: 160px; }
}
