/* ==========================================================================
   SPATIAL COMPUTING (WEBXR & AR GLASSMORPHISM HUD)
   ========================================================================== */

.modal-spatial-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 8, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.modal-spatial-backdrop.xr-active {
  background: transparent !important;
  backdrop-filter: none !important;
  pointer-events: none;
}

.modal-spatial-backdrop.xr-active .spatial-hud-card {
  pointer-events: auto;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.spatial-hud-card {
  background: rgba(22, 23, 34, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  width: 100%;
  max-width: 780px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #fff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.spatial-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.spatial-brand-pill {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
}

.spatial-song-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.spatial-artist-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary, #94a3b8);
}

.btn-close-spatial {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.spatial-chords-preview {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}

.spatial-chord-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.chord-sym {
  font-size: 1.4rem;
  font-weight: 900;
  color: #38bdf8;
}

.chord-lbl {
  font-size: 0.7rem;
  color: var(--text-secondary, #94a3b8);
}

.spatial-lyrics-line {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.5;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.spatial-hud-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}

.btn-spatial-toggle {
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  background: #38bdf8;
  color: #000;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.btn-spatial-toggle.active {
  background: #ec4899;
  color: #fff;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.4);
}
