/* The display shares the live programme renderer with now-next.html. */
.live-display { background: #f6f5ef; }
.display-shell { height: 100vh; height: 100dvh; min-height: 36rem; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 2.6vh; padding: 3.8vh 4vw 2.8vh; }
.display-header { display: flex; align-items: center; gap: 1.8vw; padding-bottom: 2.4vh; border-bottom: 1px solid #d4d7ca; }
.display-header img { width: 7.5vw; max-height: 10vh; object-fit: contain; }
.display-header h1 { font-size: clamp(1.5rem, 3.8vmin, 3.6rem); line-height: 1.06; letter-spacing: -.025em; }
.display-date { margin: 0 0 0 auto; text-align: right; font-size: clamp(1rem, 2.2vmin, 2.1rem); line-height: 1.4; }
.display-date span { display: block; color: var(--muted); }
.display-shell main { min-height: 0; }
.live-display .now-next { display: flex; flex-direction: column; height: 100%; padding: 0; border: 0; }
.live-display .now-next-heading { flex: 0 0 auto; align-items: center; margin: 0 0 2.3vh; }
.live-display .now-next-heading h2 { color: #526047; font: 600 clamp(1.05rem, 2.2vmin, 2rem)/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.live-display .now-next-clock { color: #50574b; font-size: clamp(1rem, 2.15vmin, 2rem); }
.live-display .now-next-content { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border: 1px solid #d7d7c9; border-radius: .4rem; background: #fffefa; }
.live-display .now-next-current { display: flex; flex-direction: column; justify-content: center; padding: 3.2vh 3vw; border-top: .45vh solid #a48746; background: #f2eddd; }
.live-display .now-next-content[data-state="current"] .now-next-current { background: #eaf0e5; border-top-color: #39704c; }
.live-display .now-next-label { flex: 0 0 auto; margin-bottom: 1.8vh; font-size: clamp(1rem, 2.1vmin, 2rem); letter-spacing: .14em; }
.live-display .now-next-current h3 { margin: 0 0 1.5vh; font-size: clamp(2rem, 5vmin, 4.8rem); line-height: 1.1; overflow-wrap: break-word; }
.live-display .now-next-title { font-size: clamp(1.25rem, 3.1vmin, 3rem); line-height: 1.28; margin: 0 0 2.2vh; }
.live-display .now-next-meta { color: #505648; font-size: clamp(1rem, 2.25vmin, 2.2rem); line-height: 1.35; margin: 0; }
.live-display .now-next-detail { color: #505648; font-size: clamp(1rem, 2.25vmin, 2.2rem); line-height: 1.35; margin-top: 1.4vh; }
.live-display .now-next-start-countdown { gap: 1vw; margin: 3.2vh 0 2.8vh; }
.live-display .now-next-countdown-part { padding-block: 1.5vh; border-color: #cfc5aa; }
.live-display .now-next-countdown-value { font-size: clamp(2.6rem, 8vmin, 8rem); line-height: 1.05; letter-spacing: -.04em; }
.live-display .now-next-countdown-unit { margin-top: .9vh; font-size: clamp(.8rem, 1.7vmin, 1.6rem); letter-spacing: .09em; }
.live-display .now-next-progress { height: .55vh; min-height: 4px; margin: 2.6vh 0 1.2vh; }
.live-display .now-next-countdown { font-size: clamp(1rem, 2.1vmin, 2rem); margin: 0; }
.live-display .now-next-upcoming { display: flex; flex-direction: column; justify-content: center; padding: 3.2vh 2.8vw; border-color: #d7d7c9; }
.live-display .now-next-upcoming li + li { margin-top: 3vh; padding-top: 3vh; border-color: #d7d7c9; }
.live-display .now-next-upcoming .now-next-label { margin-bottom: 1vh; color: #795917; }
.live-display .now-next-upcoming h3 { margin: 1vh 0; font-size: clamp(1.35rem, 3vmin, 3rem); line-height: 1.18; }
.live-display .now-next-upcoming .now-next-title { font-size: clamp(1.05rem, 2.35vmin, 2.3rem); line-height: 1.3; color: #505648; margin: 0; }
.live-display .now-next-fallback { font-size: clamp(1.25rem, 3vmin, 2.7rem); padding: 4vh 3vw; margin: auto 0; }
.display-footer { padding: 0; border: 0; font-size: clamp(.9rem, 1.9vmin, 1.8rem); color: #626758; }
.display-footer p { margin: 0; }
.display-footer span { padding-inline: .35em; color: #9b8959; }
.display-controls { position: fixed; right: 2vw; bottom: 1.5vh; display: flex; align-items: center; gap: .8rem; padding: .45rem; background: #f6f5ef; border-radius: .45rem; box-shadow: 0 2px 16px #25282112; transition: opacity .2s; }
.display-controls[hidden] { display: none; }
.display-status { margin: 0; max-width: 25rem; font-size: 1rem; }
.display-status:empty { display: none; }
.display-fullscreen { border: 1px solid #a9af9d; border-radius: .3rem; padding: .6rem 1rem; background: #fffefa; color: #293224; font: 600 1rem/1.3 var(--sans); cursor: pointer; }
.display-fullscreen span { margin-left: .5rem; }
.display-fullscreen:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.display-idle, .display-idle a { cursor: none; }
.display-idle .display-controls:not(:focus-within) { opacity: 0; pointer-events: none; }
@media (max-width: 760px), (orientation: portrait) {
  .display-shell { height: auto; min-height: 100vh; min-height: 100dvh; padding: 1.5rem; gap: 1.5rem; }
  .display-header { flex-wrap: wrap; gap: 1rem; padding-bottom: 1.25rem; }
  .display-header img { width: 4.5rem; max-height: none; }
  .display-header h1 { font-size: 1.6rem; }
  .display-date { flex-basis: 100%; text-align: left; }
  .display-date span { display: inline; margin-left: .5em; }
  .live-display .now-next-content { grid-template-columns: 1fr; }
  .live-display .now-next-current, .live-display .now-next-upcoming { padding: 1.5rem; }
  .live-display .now-next-upcoming { border-left: 0; border-top: 1px solid #d7d7c9; }
  .live-display .now-next-current h3 { font-size: 2rem; }
  .display-footer { padding-bottom: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .display-controls { transition: none; } }
