:root {
  --bg0: #0d1b2a;
  --bg1: #1b263b;
  --panel: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f8f9fa;
  --muted: rgba(248, 249, 250, 0.68);
  --accent: #ffb703;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 183, 3, 0.22), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(102, 155, 188, 0.3), transparent 34%),
    linear-gradient(120deg, var(--bg0), var(--bg1));
}

.karaoke {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: 1.1rem;
  overflow: hidden;
}


.topbar {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(2px);
  padding: 0.9rem 1rem;
  text-align: center;
}

.topbar h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.2rem, 4vw, 3rem);
  line-height: 1;
}

.lyric-stage {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  align-content: center;
  justify-items: center;
  gap: 1.2rem;
  padding: min(8vw, 3rem);
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.band-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.band-logo.hidden {
  display: none;
}

.line {
  margin: 0;
  text-align: center;
  text-wrap: balance;
}

.current {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 7.8vw, 7rem);
  line-height: 0.95;
}

.next {
  font-size: clamp(1.1rem, 5vw, 5rem);
  color: var(--muted);
}

.statusbar {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.7rem;
}

#connectionState {
  color: var(--accent);
}



/*if mobile*/
@media (max-width: 1024px) {
  .karaoke {
    height: 85vh;
    padding: 0.75rem;
  }
  .current {
    font-size: clamp(1rem, 7.8vw, 4rem);
    line-height: 0.95;
  }

  .next {
    font-size: clamp(0.8rem, 5vw, 4rem);
  }  
}
/*endif*/