/* ------------------------------------------------------- live programme --- */
/* /live — a board of what is on now in each hall, then the day's timeline
   across halls. Nothing to choose: the day follows the clock. Site tokens,
   1px borders, no shadows. */

[hidden] { display: none !important; }

.live__title {
  margin-bottom: 12px;
}

.live__day {
  margin-top: 0;
}

/* Hall tones: one per hall so the board and the timeline read together. */
.live-hall--beethoven, .live-row--beethoven { --tone: var(--accent); }
.live-hall--verdi, .live-row--verdi { --tone: var(--blue-deep); }
.live-hall--vivaldi, .live-row--vivaldi { --tone: #8a5a14; }
.live-hall--kursi, .live-row--kursi { --tone: var(--accent-deep); }

/* ---------------------------------------------------------- board ----- */
.live-board {
  margin-top: clamp(28px, 4vw, 40px);
}

.live-board__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 20px;
}

.live-board__status {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.live-board__clock {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-meta);
}

.live-board__clock time {
  font-size: 22px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.live-board__hint {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

.live-board__halls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}

.live-hall {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 20px 20px;
  border-top: 3px solid var(--tone);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 -1px -1px 0;
}

.live-hall p {
  margin: 0;
}

.live-hall__name {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tone);
}

.live-hall__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px !important;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-meta);
}

.live-hall.is-now .live-hall__state {
  color: var(--ink);
}

.live-hall__title {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
}

.live-hall.is-pause .live-hall__title,
.live-hall.is-done .live-hall__state {
  color: var(--text-muted);
}

.live-hall__who {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
}

.live-hall__meta {
  font-size: 13.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.live-hall__then {
  margin-top: 8px !important;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.live-pulse {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d23f3f;
}

.live-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: live-pulse 1.6s ease-out infinite;
}

@keyframes live-pulse {
  from { transform: scale(1); opacity: 0.6; }
  to { transform: scale(2.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .live-pulse::after { animation: none; }
}

/* ------------------------------------------------------- timeline ----- */
.live-timeline {
  margin-top: clamp(48px, 7vw, 72px);
}

.live-timeline__head {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.01em;
}

.live-done {
  margin-top: clamp(40px, 6vw, 56px);
  border-top: 1px solid var(--ink);
}

.live-donelist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.live-donelist .live-row {
  border-top: 1px solid var(--border-light);
}

.live-past__btn {
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: 600 14px var(--sans);
  text-align: left;
  cursor: pointer;
}

.live-past__btn:hover {
  color: var(--accent);
}

.live-groups,
.live-group__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.live-group {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0 20px;
  border-bottom: 1px solid var(--border);
}

.live-group__time {
  margin: 0;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.live-row {
  display: grid;
  gap: 4px;
  padding: 16px 0 16px 14px;
  border-left: 3px solid var(--tone);
  scroll-margin-top: 140px;
}

.live-row + .live-row {
  border-top: 1px solid var(--border-light);
}

.live-row p {
  margin: 0;
}

.live-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 12.5px;
  color: var(--text-meta);
}

.live-row__hall {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tone);
}

.live-row__time {
  font-variant-numeric: tabular-nums;
}

.live-row__title {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
}

.live-row--pause .live-row__title {
  color: var(--text-muted);
}

.live-badge {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
}

.live-row.is-now {
  background: var(--accent-tint);
}

.live-row.is-now .live-badge {
  border-color: #d23f3f;
  color: #a12a2a;
}

.live-row.is-past {
  opacity: 0.5;
}

/* ------------------------------------------------------------ misc ----- */
.live-sim {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.live-jump {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 40;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 14px var(--sans);
  cursor: pointer;
}

.live-jump:focus-visible,
.live-past__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Phones stack the halls; anything wider puts every hall in one row. */
@media (min-width: 700px) {
  .live-board__halls {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .live-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-group__time {
    padding-top: 14px;
  }

  .live-row:first-child {
    margin-top: 6px;
  }
}
