/* --------------------------------------------
   LAYOUT.CSS — Page structure, disc, top/bottom bars
--------------------------------------------- */

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOP STRIP */

.top-strip {
  padding: 12px clamp(16px, 6vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.85);
  z-index: var(--z-main);
}

.top-track-title {
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-track-bpm {
  opacity: 0.7;
}

/* MAIN LAYOUT */

.main-layout {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* VISUAL STAGE (canvas area) */

.visual-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#visual-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* CENTRAL DISC */

.disc-wrapper {
  z-index: var(--z-main);
  display: flex;
    position: relative;
  top: 45px; /* desplaza el disco ligeramente hacia abajo */
  align-items: center;
  justify-content: center;
}

.wao-disc {
  width: min(255px, 64vw);
  height: min(255px, 64vw);
  background: var(--white);
  border-radius: 50%;
  border: 6px solid var(--gray-dark);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.wao-disc:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-strong);
}

.wao-disc.playing {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.wao-disc.paused {
  background: #111;
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.wao-disc.paused .wao-disc-label {
  color: #fff;
}
.wao-disc.pulse {
  animation: disc-pulse 0.6s ease-out;
}

@keyframes disc-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.wao-disc-label {
  font-weight: 700;
  font-size: clamp(26px, 5vw, 32px);
  letter-spacing: 0.16em;
}

/* BOTTOM BAR */

.bottom-bar {
  position: fixed;
  bottom: 18px;
  left: 0;
  right: 0;
  padding: 10px clamp(16px, 8vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  z-index: var(--z-main);
}

/* MODE STRIP */

.modes-strip {
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}

.mode-button {
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.mode-button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.mode-button.active {
  background: var(--black);
  color: var(--white);
  opacity: 1;
}

/* INTENSITY */

.intensity-block {
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 16px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intensity-label {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.7;
}

.intensity-slider {
  width: min(280px, 70vw);
}
#audio-element {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
/* WÃO oculto cuando se entra en modo WebAmp */
#app.hidden {
  display: none !important;
}

/* --------------------------------------------
   MODO FOCUS — JOÃO OCULTA LA UI
--------------------------------------------- */

#app.app-ui-hidden .top-strip,
#app.app-ui-hidden .bottom-bar,
#app.app-ui-hidden #floating-panel,
#app.app-ui-hidden #panel-toggle,
#app.app-ui-hidden #track-intro {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* Botones de cabecera: Change / Stop minimalistas */

.top-track-controls {
  display: flex;
  gap: 8px;
}

.top-btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: inherit;
  color: rgba(17, 17, 17, 0.75);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.top-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.22);
}

.top-btn:active {
  background: rgba(0, 0, 0, 0.08);
}
