:root {
  --display-font: "Rubik Mono One", ui-monospace, "Courier New", monospace;
  color-scheme: dark;
  font-family: ui-monospace, "Courier New", monospace;
  line-height: 1.5;
  background: #101015;
  color: #f7f7ef;
}

body { max-width: 48rem; margin: 1rem auto; padding: 0 1rem; }
header { background: #1644a3; padding: .55rem .75rem; font-weight: bold; }
header a { color: inherit; }
header, h1, .directory-info strong {
  font-family: var(--display-font);
  font-weight: 400;
  line-height: 1.2;
}
header { font-size: clamp(1rem, 3vw, 1.45rem); }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin: 1rem 0 .5rem; }
h2 { font-size: 1rem; color: #64f5f5; }
.welcome { max-width: 68ch; }
.channel-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.channel-nav a { background: #1644a3; color: #fff; padding: .3rem .55rem; }
a { color: #64f5f5; text-underline-offset: .15em; }
:focus-visible { outline: 2px solid #ffea63; outline-offset: 3px; }
.channel-title { display: flex; align-items: center; gap: .5rem; }
.icon { display: block; width: 2.5rem; height: 2.5rem; object-fit: contain; }
.channel-directory { width: 100%; border-spacing: 0 .6rem; }
.channel-directory td { padding: 0; }
.directory-channel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding: .5rem;
  border: 4px solid #ffea63;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.directory-channel:hover, .directory-channel:focus-visible { background: #1644a3; }
.directory-channel .icon { width: 7.5rem; height: 7.5rem; flex: none; }
.directory-info { flex: 1; min-width: 0; }
.directory-info strong { display: block; font-size: clamp(1rem, 3.5vw, 1.5rem); }
.directory-description { display: block; color: #f7f7ef; }
.directory-schedule {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: .25rem;
  flex-basis: 100%;
  color: #f7f7ef;
  font-size: .875rem;
}
.directory-upcoming { display: contents; }
.directory-block { background: #25253a; padding: .4rem .5rem; }
.directory-block-current { background: #ffea63; color: #101015; }
.directory-block-label { display: block; font-weight: bold; }
.directory-block time { color: #64f5f5; }
.directory-block-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: #000;
}
.screen > video, .screen > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.screen > video { object-fit: contain; }
button { font: inherit; padding: .3rem .55rem; color: #101015; background: #ffea63; border: 0; cursor: pointer; }
#original { margin-inline-start: .5rem; }
#next { list-style: none; padding: 0; }
#next time { color: #ffea63; }
[hidden] { display: none; }

@media (max-width: 30rem) {
  body { margin-top: .6rem; padding: 0 .6rem; }
  #original { margin: .5rem 0 0; }
}
