/* Announcer screen: a tablet or laptop for the MC. Read-aloud lines first, big and calm. */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top .mark {
  height: 34px;
  max-width: 120px;
}
.title {
  flex: 1;
  min-width: 0;
}
.ev {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sub {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pill i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dim);
}
.pill.live {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--on-accent);
}
.pill.live i {
  background: var(--on-accent);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.3;
  }
}
.clock {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 4ch;
  text-align: right;
}

.grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  padding: 20px 24px 40px;
}
h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

/* the feed: one line to read out per event */
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feed li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  line-height: 1.3;
}
.feed li .ago {
  padding-top: 5px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dim);
}
.feed li.new .ago {
  color: var(--orange);
}
.feed li b {
  font-weight: 800;
}
.feed li .tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 3px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.feed li .tag.hot {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--on-accent);
}
.feed li.finish {
  font-size: 28px;
}
.feed li.finish .txt {
  padding-left: 12px;
  border-left: 5px solid var(--orange);
}
.feed li.lead .txt {
  color: var(--bone);
}
.feed .empty {
  display: block;
  color: var(--muted);
  font-size: 20px;
}

/* watch now */
.watch,
.teams {
  list-style: none;
  margin: 0;
  padding: 0;
}
.watch li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.35;
}
.watch li:last-child,
.teams li:last-child {
  border-bottom: 0;
}
.watch li .k {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2px;
}
.watch li.quiet {
  color: var(--muted);
}

/* teams: who is who, for shout-outs */
.teams li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.teams .ln {
  font-size: 26px;
  font-weight: 800;
  color: var(--muted);
}
.teams .nm {
  font-size: 20px;
  font-weight: 800;
}
.teams .who {
  font-size: 15px;
  color: var(--muted);
  margin-top: 2px;
}
.teams .note {
  font-size: 15px;
  color: var(--bone);
  margin-top: 4px;
  font-style: italic;
}
.teams .st {
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.teams .st b {
  display: block;
  font-size: 22px;
  color: var(--bone);
}

.offline {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
  font-weight: 700;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
    padding: 14px 16px 30px;
  }
  .top {
    padding: 12px 16px;
    gap: 12px;
  }
  .clock {
    font-size: 32px;
  }
  .feed li {
    font-size: 20px;
    grid-template-columns: 64px minmax(0, 1fr);
  }
}
