/* TV board for a 50" 16:9 display. Scales with viewport. Not shared chrome. */
:root {
  --navy: #1a2430;
  --navy-2: #243140;
  --panel: #151d27;
  --ink: #f3eee4;
  --muted: #9aa7b5;
  --accent: #e0a070;
  --line: rgba(224, 160, 112, 0.28);
  --dim: #6e7b88;
  --now: #f4edd8;
  --font: "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: #0e141b;
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
}

.board {
  display: grid;
  grid-template-columns: 30vw 40vw 30vw;
  height: 100vh;
  width: 100vw;
}

.weather {
  background: linear-gradient(180deg, var(--navy-2), var(--panel));
  border-right: 1px solid var(--line);
  padding: 2.4vh 1.6vw 1.6vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.weather-head .brand {
  font-size: 2.1vh;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.weather-head .brand span { color: var(--accent); }
.place {
  margin-top: 0.6vh;
  font-size: 3.2vh;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.clock {
  margin-top: 0.4vh;
  font-size: 2.2vh;
  color: var(--muted);
}

.now {
  display: flex;
  align-items: center;
  gap: 1.2vw;
  margin: 2.2vh 0 1.8vh;
  padding: 1.4vh 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.now-temp {
  font-size: 8.4vh;
  line-height: 0.9;
  font-weight: 640;
  letter-spacing: -0.03em;
  color: var(--now);
}
.now-desc { font-size: 2.4vh; }
.now-range { margin-top: 0.4vh; font-size: 1.9vh; color: var(--muted); }

.hours-label {
  font-size: 1.7vh;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8vh;
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: grid;
  grid-template-rows: repeat(12, 1fr);
  min-height: 0;
}
.hours li {
  display: grid;
  grid-template-columns: 5.2vw 1fr 4.4vw 3.6vw;
  align-items: center;
  gap: 0.4vw;
  font-size: 2.05vh;
  color: var(--ink);
  border-radius: 0.4vh;
  padding: 0 0.3vw;
}
.hours li.past { color: var(--dim); }
.hours li.current {
  background: rgba(224, 160, 112, 0.16);
  color: var(--now);
  font-weight: 650;
}
.hours .t { opacity: 0.9; }
.hours .d { color: inherit; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hours .p { text-align: right; font-size: 1.7vh; color: var(--muted); }
.hours li.current .p { color: var(--accent); }
.hours .deg { text-align: right; font-variant-numeric: tabular-nums; }

.weather-foot {
  margin-top: 0.8vh;
  font-size: 1.4vh;
  color: var(--dim);
}

.schedule,
.billboard {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 2.2vh 1.5vw 1.6vh;
}

.schedule {
  background:
    radial-gradient(80vw 70vh at 50% -20%, rgba(224, 160, 112, 0.07), transparent 55%),
    #101820;
  border-right: 1px solid var(--line);
}

.pane-kicker {
  font-size: 1.6vh;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.pane-title {
  margin-top: 0.3vh;
  font-size: 3vh;
  font-weight: 650;
}

/* ---- job schedule: three day groups ---- */
.sched-days {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin-top: 1.4vh;
  display: flex;
  flex-direction: column;
  gap: 1.4vh;
}
.sched-days .day h2 {
  margin: 0 0 0.6vh;
  font-size: 1.9vh;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
}
.sched-days ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7vh;
}
.sched-days li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 0.7vh;
  padding: 0.9vh 1vw;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "job when" "addr when";
  column-gap: 1vw;
}
.sched-days .job {
  grid-area: job;
  font-size: 2.3vh;
  font-weight: 650;
  color: var(--now);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-days .addr {
  grid-area: addr;
  font-size: 1.8vh;
  color: var(--muted);
  margin-top: 0.2vh;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-days .when {
  grid-area: when;
  align-self: center;
  font-size: 1.8vh;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sched-days .none {
  font-size: 1.9vh;
  color: var(--dim);
  padding: 0.4vh 0 0.2vh;
}
.sched-foot {
  margin-top: 0.8vh;
  font-size: 1.4vh;
  color: var(--dim);
  min-height: 1.6vh;
}
.empty {
  color: var(--muted);
  font-size: 2.2vh;
  padding: 2vh 0;
}

/* ---- billboard ---- */
.billboard {
  background:
    radial-gradient(60vw 60vh at 100% 110%, rgba(224, 160, 112, 0.10), transparent 60%),
    #0f161d;
}
.bb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: 1.4vh;
}
.bb-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2vh;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.bb-slide.show { opacity: 1; }
.bb-slide.has-img { justify-content: flex-start; }
.bb-img {
  flex: 0 0 auto;
  height: 42vh;
  border-radius: 1vh;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}
.bb-tag {
  align-self: flex-start;
  font-size: 1.4vh;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0e141b;
  background: var(--accent);
  border-radius: 0.5vh;
  padding: 0.3vh 0.6vw;
}
.bb-title {
  font-size: 5vh;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--now);
}
.bb-text {
  font-size: 2.7vh;
  line-height: 1.35;
  color: var(--ink);
  opacity: 0.9;
}
.bb-dots {
  display: flex;
  gap: 0.5vw;
  justify-content: center;
  min-height: 1.2vh;
  margin: 1vh 0;
}
.bb-dots span {
  width: 1vh;
  height: 1vh;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.bb-dots span.on { background: var(--accent); }
.bb-foot {
  border-top: 1px solid var(--line);
  padding-top: 1.2vh;
  font-size: 2.6vh;
  font-weight: 650;
  text-align: center;
  color: var(--now);
  letter-spacing: 0.02em;
}

.weather.error .now-desc { color: #e8a0a0; }

@media (max-aspect-ratio: 4/3) {
  .board { grid-template-columns: 28vw 42vw 30vw; }
}
