/* ============================================================
   SHENYA LAURA — EXPERIÊNCIA IMERSIVA 3D
   Design System Premium | Mobile-First
   Skills: frontend-ui-dark-ts • 3d-web-experience • mobile-design
   ============================================================ */

/* ── IMPORTS ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;900&family=Roboto+Mono:wght@300;400&display=swap');

/* ══════════════════════════════════════════════════════════════
   DESIGN TOKENS — SISTEMA DE COR E MOVIMENTO
   ══════════════════════════════════════════════════════════════ */
:root {
  /* Paleta */
  --bg: #0A0A0A;
  --red: #FF2D55;
  --red-dim: rgba(255, 45, 85, 0.25);
  --red-glow: rgba(255, 45, 85, 0.5);
  --crimson: #C0392B;
  --crimson-dim: rgba(192, 57, 43, 0.25);
  --crimson-glow: rgba(192, 57, 43, 0.5);
  --white: #FFFFFF;
  --white-10: rgba(255, 255, 255, 0.10);
  --white-06: rgba(255, 255, 255, 0.06);
  --white-04: rgba(255, 255, 255, 0.04);

  /* Tipografia */
  --font-title: 'Poppins', -apple-system, sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;

  /* Easing Apple (cubic-bezier de referência da skill) */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Glassmorphism */
  --glass-bg: rgba(10, 10, 10, 0.55);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-blur: 24px;
  --glass-blur-xl: 40px;

  /* Espaçamentos seguros (iOS notch) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 20px);

  /* Layout */
  --card-w: min(280px, 78vw);
  --card-h: min(340px, 88vw);

  /* Shine position para giroscópio */
  --shine-x: 50%;
  --shine-y: 30%;
}

/* ══════════════════════════════════════════════════════════════
   BASE — RESET & FOUNDATION
   ══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  background: transparent !important;
  /* Transparência total para modo overlay */
  color: var(--white);
  font-family: var(--font-title);
  width: 100%;
  max-width: 100vw;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════════
   GRAIN OVERLAY — PELÍCULA DE CINEMA
   ══════════════════════════════════════════════════════════════ */
.grain-overlay {
  display: none !important;
  /* Oculto para transparência total */
}

/* ══════════════════════════════════════════════════════════════
   VIDEO STAGE — BACKGROUND VIDEO ENGINE
   ══════════════════════════════════════════════════════════════ */
.video-stage {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 1;
  transition: opacity 1s ease;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s var(--ease-smooth);
  opacity: 0;
  transform: scale(1.05);
  /* Evita borda branca no blur */
  will-change: opacity;
}

.bg-video.active {
  opacity: 1;
}

.video-tint {
  position: absolute;
  inset: 0;
  background: transparent;
}

.glass-refraction {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 1;
}

.glow-orb {
  display: none !important;
}

.orb-blue {
  width: 50vw;
  height: 50vw;
  max-width: 400px;
  max-height: 400px;
  background: var(--blue);
  top: 10%;
  left: -10%;
}

.orb-purple {
  width: 60vw;
  height: 60vw;
  max-width: 500px;
  max-height: 500px;
  background: var(--purple);
  bottom: 20%;
  right: -20%;
}

@keyframes orb-breathe {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.4;
  }

  100% {
    transform: scale(1.2) translate(50px, -50px);
    opacity: 0.65;
  }
}

/* ══════════════════════════════════════════════════════════════
   STAGE — LAYOUT PRINCIPAL
   ══════════════════════════════════════════════════════════════ */
.stage {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header"
    "carousel"
    "footer";
  padding-top: max(var(--safe-top), 16px);
  overflow-x: hidden;
  overflow-y: hidden;
}

/* ══════════════════════════════════════════════════════════════
   A. HEADER — AURA DA ESTRELA
   ══════════════════════════════════════════════════════════════ */
.artist-aura {
  grid-area: header;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px 8px;
  position: relative;
  z-index: 20;
}

/* Halo de luz ambiental ao redor do header */
.aura-halo {
  display: none !important;
  /* Oculto para transparência total */
}

@keyframes halo-breathe {

  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

/* FOTO DE PERFIL */
.artist-photo-ring {
  position: relative;
  margin-bottom: 12px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

.artist-photo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  position: relative;
  z-index: 1;
}

.artist-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
}

.photo-ring-glow {
  display: none !important;
  /* Removido para transparência total */
}

@keyframes ring-pulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* ── NOME DE ARTISTA COM METAL MASK ── */
.artist-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.5rem, 12.5vw, 5.5rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-align: center;
  margin-bottom: 6px;
  position: relative;
  white-space: nowrap;

  /* Máscara de texto para simular iluminação de estúdio */
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.7));
}

/* Shine reveal removido, substituído por gradiente estático iluminado */

/* ── ETIQUETA EXCLUSIVA ── */
.eyebrow-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.artist-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
  text-shadow: 0 0 12px rgba(255, 45, 85, 0.5);
}

.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  box-shadow: 0 0 8px var(--red);
}

/* ══════════════════════════════════════════════════════════════
   B. ROLETA POLAROID EM ARCO (2D LATERAL)
   ══════════════════════════════════════════════════════════════ */
.polaroid-arc-section {
  grid-area: carousel;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Alinha o conteúdo à esquerda */
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x;
  /* permitimos drag nativo no X se houver, bloqueamos y pro swipe */

  /* MÁSCARA DE DESVANECIMENTO (FADE) - Evita corte seco dos cards (Bird-premium detail) */
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

/* Glow Reativo */
.carousel-glow {
  display: none !important;
}

/* Container do arco */
.arc-container {
  position: relative;
  width: 90vw;
  /* ocupa boa parte da tela pra natação do card */
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* empurra cards pra esquerda */
  z-index: 2;
  cursor: grab;
}

.arc-container:active {
  cursor: grabbing;
}

/* Oculto para transparência total solicitada */
.arc-selection-indicator {
  display: none !important;
}

@keyframes indicatorPulse {
  0% {
    box-shadow: 0 4px 16px rgba(255, 45, 85, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  }

  100% {
    box-shadow: 0 8px 24px rgba(255, 45, 85, 0.8), inset 0 1px 3px rgba(255, 255, 255, 0.9);
  }
}

/* Seta Interna (Chevron) - menor e centralizada visualmente no bojo do círculo */
.arc-selection-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: rotate(45deg);
  margin-left: -4px;
  /* Retua pro centro ótimo do raio */
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}

.indicator-triangle,
.indicator-circle {
  display: none;
  /* Oculta os shapes branco-sólidos antigos */
}

/* ── PLAYER CARD (POLAROID) ── */
.player-card {
  position: absolute;
  left: 30px;
  /* 25px do seletor + 5px de vão respirador */
  width: calc(100vw - 45px);
  /* Ocupa a tela garantindo exatos 15px da margem direita (30 left + 15 right = 45) */
  display: flex;
  align-items: center;
  background: transparent;
  /* O arco projetando a origem da rotação para a direita mais proximo (130%) = círculo aparentemente menor */
  transform-origin: 130% 50%;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s, filter 0.7s;
  will-change: transform, opacity, filter;
}

.player-card:not(.is-active) {
  /* EFEITO FUMAÇA (Escondido) para Secundários */
  opacity: 0.15 !important;
  /* Mais sutil pra não poluir o visual ao redor do principal */
  filter: blur(8px) brightness(0.6) contrast(0.8);
  pointer-events: none;
}

.player-card.is-active {
  opacity: 1;
  filter: blur(0px) brightness(1) contrast(1);
  pointer-events: auto;
}

/* ── SURFACE (CORPO DO CARD PARA EFEITOS 3D) ── */
.card-glass-surface {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 8px 16px 8px 8px;
  /* padding assimétrico para parecer ticket longo */
  border-radius: 16px;
  transition: all 0.6s ease;
}

.player-card.is-active .card-glass-surface {
  /* PREMIUM GLASSMORPHISM V2 */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(45px);
  -webkit-backdrop-filter: blur(45px);
  
  /* Gradiente de Borda via pseudo-elemento para precisão de brilho */
  position: relative;
  z-index: 1;
  border: none;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  
  /* ANIMAÇÃO 3D REALISTA */
  animation: floatRealistic 4s ease-in-out infinite alternate;
}

.player-card.is-active .card-glass-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px; /* Espessura da borda */
  background: linear-gradient(135deg, #FF2D55, #C0392B);
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes floatRealistic {
  0% {
    transform: translateY(0) perspective(800px) rotateX(2deg) rotateY(-2deg) rotateZ(-1deg);
  }
  100% {
    transform: translateY(-8px) perspective(800px) rotateX(-2deg) rotateY(2deg) rotateZ(1deg);
  }
}

/* BPM Thump - pulsa como uma batida de brega (90 BPM ≈ 667ms) */
@keyframes cardThump {
  0%, 100% { transform: scale(1) translateZ(0px); }
  10% { transform: scale(1.03) translateZ(15px); }
  30% { transform: scale(1) translateZ(0px); }
}

/* AURA REATIVA — pulsa entre azul e roxo quando is-playing */
@keyframes auraGlow {
  0%, 100% {
    box-shadow:
      0 32px 80px rgba(0, 0, 0, 0.6),
      0 0 30px rgba(255, 45, 85, 0.15);
  }
  50% {
    box-shadow:
      0 32px 80px rgba(0, 0, 0, 0.6),
      0 0 50px rgba(192, 57, 43, 0.4);
  }
}

body.is-playing .player-card.is-active .card-glass-surface {
  animation:
    floatRealistic 4s ease-in-out infinite alternate,
    cardThump 0.667s ease-out infinite,
    auraGlow 2s ease-in-out infinite;
}

.card-cover-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  position: relative;
}

.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.12);
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  flex: 1;
  min-width: 0; /* Evita overflow do texto */
}

/* ── PARTÍCULAS FLUTUANTES ── */
.card-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
  will-change: transform, opacity;
}

.card-particle.p-blue {
  background: radial-gradient(circle, #FF2D55, transparent);
  animation: particleFloat 3s ease-in-out infinite;
}

.card-particle.p-white {
  background: radial-gradient(circle, rgba(255,255,255,0.9), transparent);
  animation: particleFloat 4s ease-in-out infinite;
}

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.5); }
  20%  { opacity: 0.7; }
  60%  { opacity: 0.4; transform: translateY(-40px) rotate(180deg) scale(1); }
  100% { opacity: 0; transform: translateY(-80px) rotate(360deg) scale(0.3); }
}

.card-title {
  color: #ffffff;
  /* Texto branco porque o fundo agora é Dark/Vidro */
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 2px 0;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-artist {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-info);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}


/* ══════════════════════════════════════════════════════════════
   INDICADOR 3D "NAVEGADOR DE FLUXO" (FLOW PILL)
   ══════════════════════════════════════════════════════════════ */
.flow-navigator {
  position: absolute;
  bottom: 240px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 40;
  
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  
  /* Borda Luminous */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 8px 18px;
  
  opacity: 0;
  visibility: hidden;
  transition: all 1s var(--ease-smooth);
  pointer-events: none;
  
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.flow-navigator.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  animation: floatUI 4s ease-in-out infinite, glowPulse 3s ease-in-out infinite;
}

.nav-text {
  font-family: 'Outfit', sans-serif;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-chevron {
  color: #FF2D55;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 5px rgba(255, 45, 85, 0.8));
}

@keyframes floatUI {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes chevronLoop {
  0% { opacity: 0; transform: translateX(-3px); }
  50% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(3px); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 45, 85, 0.1); }
  50% { box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 45, 85, 0.4); }
}

.flow-navigator.visible {
  animation: floatUI 4s ease-in-out infinite, glowPulse 3s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════════
   C. FOOTER — MEIA-LUA OPERACIONAL
   ══════════════════════════════════════════════════════════════ */
.moon-dock {
  grid-area: footer;
  position: relative;
  z-index: 30;
  overflow: visible;
  /* Clip horizontal para a meia-lua não causar scroll */
  overflow-x: clip;
  width: 100%;
}

/* Superfície do Footer (Borda Reta) */
.moon-surface {
  position: relative;
  width: 100%;
  margin-left: 0;
  height: auto;
  border-radius: 0;
  /* Borda Superior Reta */
  backdrop-filter: blur(var(--glass-blur-xl));
  -webkit-backdrop-filter: blur(var(--glass-blur-xl));
  background: rgba(10, 10, 10, 0.85);
  /* Um pouco mais opaco para legibilidade */
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 -10px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 16px 20px max(var(--safe-bottom), 12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ── SOCIAL CALLOUT ── */
.social-callout {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
  text-align: center;
  line-height: 1.4;
}

/* ── AUDIO CONTROL GROUP (Novo Layout Compacto) ── */
.audio-control-group {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  margin-bottom: 20px;
}

.time-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  min-width: 35px;
  text-align: center;
}

.progress-bar-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.progress-bar {
  width: 100%;
  height: 2px;
  /* Super Fina conforme imagem */
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  position: relative;
  cursor: pointer;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #FF2D55, #ff6b81);
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(255, 45, 85, 0.4);
  overflow: hidden;
}

/* SHIMMER — brilho que corre enquanto a música toca */
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
}

body.is-playing .progress-fill::after {
  opacity: 1;
  animation: progressShimmer 2s linear infinite;
}

@keyframes progressShimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* Mini Play Sphere */
.play-sphere-mini-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.play-sphere-mini {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 30% 30%, #ff6b81, #FF2D55);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 45, 85, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
}

.play-sphere-mini:active {
  transform: scale(0.9);
}

.play-sphere-mini svg {
  width: 12px;
  height: 12px;
}

/* Anel de pulso mini */
.sphere-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 45, 85, 0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

body.is-playing .sphere-pulse-ring {
  animation: mini-pulse-ring 2s infinite;
}

@keyframes mini-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.6);
    opacity: 0;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Superfície do Footer (Borda Reta) — Ajuste de Padding */
.moon-surface {
  position: relative;
  width: 100%;
  margin-left: 0;
  height: auto;
  border-radius: 32px 32px 0 0;
  /* Bordas arredondadas no topo do dock estilo app */
  backdrop-filter: blur(var(--glass-blur-xl));
  -webkit-backdrop-filter: blur(var(--glass-blur-xl));
  background: rgba(14, 14, 16, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 24px max(var(--safe-bottom), 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── SOCIAL DIRECT ROW ── */
.social-direct-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 0;
  color: #ffffff;
  font-family: var(--font-info);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s var(--ease-apple);
}

.social-btn:active {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(0.97);
}

.social-btn span {
  opacity: 0.9;
}

/* Ocultar elementos que não estão mais no design da foto */
.track-name,
.moon-waveform,
.social-toggle {
  display: none !important;
}

/* ── BOTÃO SOCIAL TOGGLE ── */
.social-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white-10);
  border: 0.5px solid var(--glass-border);
  border-radius: 100px;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s var(--ease-apple);
  min-height: 44px;
}

.social-toggle:active {
  background: var(--white-06);
  transform: scale(0.96);
}

/* ══════════════════════════════════════════════════════════════
   PAINEL SOCIAL STREAMING — SLIDE-UP
   ══════════════════════════════════════════════════════════════ */
.social-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-radius: 24px 24px 0 0;
  backdrop-filter: blur(var(--glass-blur-xl));
  -webkit-backdrop-filter: blur(var(--glass-blur-xl));
  background: rgba(12, 12, 18, 0.88);
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
  padding: 12px 24px max(var(--safe-bottom), 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.6s var(--ease-apple);
  will-change: transform;
  box-shadow: 0 -20px 60px rgba(255, 45, 85, 0.1);
}

.social-panel.open {
  transform: translateY(0);
}

.social-panel-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  align-self: center;
  margin-bottom: 4px;
}

.social-panel-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* ── LINKS SOCIAIS ── */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--white-06);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s var(--ease-apple);
  min-height: 64px;
  text-decoration: none;
}

.social-link:active {
  transform: scale(0.97);
}

.link-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon svg {
  width: 20px;
  height: 20px;
}

.link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-platform {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}

.link-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

.link-arrow {
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* Cores por plataforma */
.spotify .link-icon {
  background: rgba(30, 215, 96, 0.15);
  color: #1ED760;
}

.youtube .link-icon {
  background: rgba(255, 0, 0, 0.15);
  color: #FF0000;
}

.instagram .link-icon {
  background: linear-gradient(135deg, rgba(253, 45, 85, 0.15), rgba(193, 53, 132, 0.15));
  color: #E1306C;
}

.tiktok .link-icon {
  background: rgba(105, 201, 208, 0.15);
  color: #69C9D0;
}

.spotify:active {
  border-color: rgba(30, 215, 96, 0.2);
}

.youtube:active {
  border-color: rgba(255, 0, 0, 0.2);
}

.instagram:active {
  border-color: rgba(225, 48, 108, 0.2);
}

.tiktok:active {
  border-color: rgba(105, 201, 208, 0.2);
}

/* ── FECHAR PAINEL ── */
.panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 12px;
  align-self: center;
  min-height: 44px;
  min-width: 100px;
  transition: color 0.2s var(--ease-smooth);
}

.panel-close:active {
  color: rgba(255, 255, 255, 0.7);
}

/* ══════════════════════════════════════════════════════════════
   AUDIO AUTHORIZATION OVERLAY
   ══════════════════════════════════════════════════════════════ */
.audio-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.6s var(--ease-apple), visibility 0.6s;
}

.audio-auth-overlay.hidden-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  background: rgba(20, 20, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  max-width: 320px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  transform: translateY(0) scale(1);
  transition: transform 0.6s var(--ease-apple);
}

.audio-auth-overlay.hidden-overlay .auth-card {
  transform: translateY(20px) scale(0.95);
}

.auth-icon {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at top left, var(--blue), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  box-shadow: 0 8px 32px rgba(255, 45, 85, 0.4);
}

.auth-icon svg {
  width: 32px;
  height: 32px;
}

.auth-card h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-card p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-authorize {
  background: #ffffff;
  color: #0A0A0A;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  width: 100%;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-authorize:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* ══════════════════════════════════════════════════════════════
   ANIMAÇÃO DE ENTRADA (PÁGINA CARREGANDO)
   ══════════════════════════════════════════════════════════════ */
body.loading * {
  pointer-events: none;
}

.artist-aura {
  animation: fade-up 0.8s var(--ease-apple) 0.1s both;
}

.portal-carousel {
  animation: fade-up 0.8s var(--ease-apple) 0.25s both;
}

.moon-dock {
  animation: slide-up-in 0.8s var(--ease-apple) 0.4s both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════════════════════════
   FALLBACKS
   ══════════════════════════════════════════════════════════════ */
/* Sem backdrop-filter (Firefox antigo, etc.) */
@supports not (backdrop-filter: blur(1px)) {
  .glass-sculpture {
    background: rgba(15, 15, 25, 0.85);
  }

  .moon-surface,
  .social-panel {
    background: rgba(8, 8, 15, 0.95);
  }
}

/* Sem giroscópio: shine estático */
body.no-gyro .artist-name::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVIDADE ADICIONAL
   ══════════════════════════════════════════════════════════════ */
@media (max-height: 700px) {
  .aura-halo {
    display: none;
  }

  .artist-photo-wrap {
    width: 56px;
    height: 56px;
  }

  :root {
    --card-w: min(240px, 72vw);
    --card-h: min(280px, 76vw);
  }
}

@media (min-width: 768px) {
  :root {
    --card-w: 280px;
    --card-h: 340px;
  }

  .moon-surface {
    max-width: 480px;
    border-radius: 60% 60% 0 0 / 60px 60px 0 0;
  }
}

/* Modo de alto contraste / preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}