/* uTubeKaraoke — Escenario Karaoke Minimalista (Scrollbar al borde derecho + Glow dinámico) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #080a0f;
  --text-main: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #64748b;

  --accent-amber: #ff9f0a;
  --accent-cyan: #00e5ff;
  --accent-green: #30d158;

  --active-lyric-size: 2.35rem;
  --active-lyric-color: #ff9f0a;

  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
}

/* Auto-Hide UI por Inactividad */
.floating-top-bar {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

body.user-idle .floating-top-bar {
  opacity: 0;
  transform: translate(-50%, -20px);
  pointer-events: none;
}

.stage-screen-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Fullscreen Background Video */
.bg-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.full-bg-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.bg-dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 10, 15, 0.45);
  pointer-events: none;
}

/* Floating Connection Toolbar (Top Center) */
.floating-top-bar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(13, 16, 25, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 6px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.brand-title .logo-accent {
  color: var(--accent-amber);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-top-action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-amber {
  background: linear-gradient(135deg, #ff9f0a, #d47a00);
  color: #000;
  box-shadow: 0 0 12px rgba(255, 159, 10, 0.3);
}

.btn-amber:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 159, 10, 0.5);
}

.btn-cyan {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--accent-cyan);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.active {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

/* Center Stage (Karaoke Synced Lyrics) */
.karaoke-center-stage {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  padding: 80px 0 30px 0;
  overflow: hidden;
}

/* Lyrics Viewport (Scrollbar al borde derecho absoluto de la pantalla) */
.lyrics-viewport {
  width: 100vw;
  height: 100%;
  overflow-y: auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  scroll-behavior: smooth;
  background: transparent;
}

.lyrics-viewport::-webkit-scrollbar {
  width: 6px;
}

.lyrics-viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.lyric-line {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  max-width: 880px;
  transition: all 0.25s ease;
  line-height: 1.5;
  cursor: pointer;
  opacity: 0.55;
  transform: scale(0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.8);
}

.lyric-line.active {
  font-size: var(--active-lyric-size, 2.35rem);
  font-weight: 900;
  color: var(--active-lyric-color, #ff9f0a);
  opacity: 1;
  transform: scale(1.06);
  text-shadow: 0 0 32px var(--active-lyric-color, #ff9f0a), 0 3px 12px rgba(0, 0, 0, 0.95);
}

.lyric-line.near-active {
  font-size: 1.6rem;
  color: var(--text-main);
  opacity: 0.85;
}

.empty-lyrics-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-muted);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Subtle Frequency Visualizer Line at Bottom */
.visualizer-line-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 20px;
  z-index: 5;
  pointer-events: none;
}

.visualizer-line-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}
