* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: #05070a;
  color: #f4f1ea;
  font-family: "DM Sans", system-ui, sans-serif;
}

#stage {
  position: relative;
  width: 1920px;
  height: 1080px;
}

#bgVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

#grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,7,10,0.72) 0%, rgba(5,7,10,0.25) 42%, rgba(5,7,10,0.55) 100%),
    linear-gradient(180deg, rgba(5,7,10,0.35) 0%, transparent 28%, rgba(5,7,10,0.55) 100%);
  pointer-events: none;
}

.top, .bottom, .center, .rail {
  position: absolute;
  z-index: 2;
}

.top {
  top: 36px;
  left: 48px;
  right: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #0f6e6a;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
}

.brand small {
  opacity: 0.75;
  font-size: 0.92rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.7; }
}

.center {
  left: 48px;
  bottom: 120px;
  max-width: 920px;
}

.mode {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.timer {
  font-family: Fraunces, Georgia, serif;
  font-size: 7.5rem;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.meta {
  margin-top: 14px;
  font-size: 1.05rem;
  opacity: 0.78;
}

.rail {
  top: 120px;
  right: 48px;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: rgba(8, 12, 18, 0.62);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
}

.card h3 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 8px;
}

.card p, #musicLabel {
  font-size: 1.15rem;
  font-weight: 700;
}

.count { margin-bottom: 8px; }
#partCount { color: #5eead4; }

#partList {
  list-style: none;
  max-height: 140px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#partList li {
  font-size: 0.95rem;
  opacity: 0.9;
}

.chat-card { min-height: 220px; }
#chatLog {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow: hidden;
  font-size: 0.92rem;
}

#chatLog .row { opacity: 0.92; }
#chatLog .u { color: #5eead4; font-weight: 700; margin-right: 6px; }

.bottom {
  left: 48px;
  right: 48px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  opacity: 0.75;
}

body.focus-on .timer { color: #ecfdf5; }
body.break-on .timer { color: #fde68a; }
body.idle .timer { opacity: 0.55; }
