/* Written for the old WebKit browser in MAG 322: no CSS variables, grid, flex or fetch. */
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: transparent; }
body { font-family: "DejaVu Sans", Verdana, Arial, sans-serif; color: #EEF1F7; }
body.desktop { background: #000; }

/* Desktop test player only. On the MAG the video plays on a layer behind the page. */
#video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #000; display: none; }
body.playing #video { display: block; }

#bootLoader { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; z-index: 50; background: #2A6CFF; display: flex; align-items: center; justify-content: center; transition: opacity .35s ease, visibility .35s ease; }
#bootLoader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#bootLoaderInner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; width: 520px; height: 250px; padding: 18px 22px;
  background: rgba(13, 20, 36, 0.52); border: 2px solid rgba(255,255,255,.12);
  -webkit-border-radius: 12px; border-radius: 12px; box-shadow: none;
}
#bootLogo { height: 150px; width: auto; max-width: 80%; }
#bootSpinner { width: 52px; height: 52px; border: 4px solid rgba(255,255,255,.25); border-top-color: #2A6CFF; border-radius: 50%; -webkit-animation: spin 1s linear infinite; animation: spin 1s linear infinite; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
@keyframes spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }

/* Everything is laid out on a fixed 1280x720 stage that JS scales to the screen. */
#stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px;
  -webkit-transform-origin: 0 0; transform-origin: 0 0; }
#portal { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; background: #0D1424; }
body.playing #portal { display: none; }

#head { position: absolute; left: 56px; right: 56px; top: 0; height: 82px; border-bottom: 2px solid #1F2A45; }
#brand { position: absolute; left: 0; top: 0; height: 82px; line-height: 82px; white-space: nowrap; }
#logo { height: 56px; width: auto; vertical-align: middle; }
#tv { margin-left: 16px; font-size: 34px; font-weight: bold; vertical-align: middle; }
.plate { background: #EEF1F7; padding: 6px 12px; -webkit-border-radius: 8px; border-radius: 8px; }
#clock { position: absolute; right: 0; top: 24px; font-size: 28px; line-height: 36px; color: #8B95AD; }

#list { position: absolute; left: 56px; top: 108px; width: 330px; }
.row { position: relative; height: 70px; margin-bottom: 10px; background: #141C30; }
.row .dot { position: absolute; left: 22px; top: 28px; width: 14px; height: 14px;
  -webkit-border-radius: 7px; border-radius: 7px; background: #4A5573; }
.row .dot.live { background: #E5322D; }
.row .rname { position: absolute; left: 52px; right: 16px; top: 10px; font-size: 26px; line-height: 32px;
  font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .rstat { position: absolute; left: 52px; top: 42px; font-size: 16px; line-height: 22px; color: #8B95AD; }
.row.sel { background: #EEF1F7; color: #0D1424; }
.row.sel .rstat { color: #4A5573; }

#hero { position: absolute; left: 430px; top: 108px; width: 794px; }
#still { position: relative; width: 794px; height: 447px; background: #0A0F1B center center no-repeat;
  -webkit-background-size: cover; background-size: cover; }
#badge { position: absolute; left: 18px; top: 18px; height: 34px; line-height: 34px; padding: 0 16px 0 14px;
  background: #E5322D; color: #fff; font-size: 18px; font-weight: bold; }
#badge i { display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: #fff;
  -webkit-border-radius: 5px; border-radius: 5px;
  -webkit-animation: pulse 2s infinite; animation: pulse 2s infinite; }
#badge.off { background: #39435F; }
#badge.off i { -webkit-animation: none; animation: none; opacity: .5; }
@-webkit-keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { #badge i { -webkit-animation: none; animation: none; } }
#play { position: absolute; left: 349px; top: 175px; width: 96px; height: 96px; background: rgba(13, 20, 36, .72);
  -webkit-border-radius: 48px; border-radius: 48px; }
#play:after { content: ""; position: absolute; left: 35px; top: 26px; width: 0; height: 0;
  border-left: 34px solid #fff; border-top: 22px solid transparent; border-bottom: 22px solid transparent; }
#hname { margin-top: 18px; font-size: 30px; line-height: 34px; font-weight: bold;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmeta, #hdesc { font-size: 18px; line-height: 26px; color: #8B95AD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#empty { position: absolute; left: 56px; top: 150px; width: 900px; display: none; }
#empty h1 { margin: 0 0 14px; font-size: 40px; line-height: 48px; font-weight: bold; }
#empty p { margin: 0; font-size: 22px; line-height: 32px; color: #8B95AD; }

#foot { position: absolute; left: 56px; right: 56px; top: 672px; height: 48px; }
.hint { display: inline-block; margin-right: 34px; font-size: 18px; line-height: 30px; color: #8B95AD; }
.key { display: inline-block; min-width: 24px; padding: 1px 10px; margin-right: 10px; border: 2px solid #39435F;
  -webkit-border-radius: 5px; border-radius: 5px; color: #EEF1F7; font-size: 15px; font-weight: bold; text-align: center; }

/* Connection lost screen */
#offline { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; background: #0D1424; display: none; }
body.offline #offline, body.outage #offline { display: block; }
#olw { position: absolute; left: 0; top: 52px; width: 1280px; height: 104px; line-height: 104px; text-align: center; }
#ologo { height: 96px; width: auto; vertical-align: middle; }
#globe, #server { position: absolute; left: 540px; top: 186px; }
#server { display: none; }
body.outage #globe { display: none; }
body.outage #server { display: block; }
#otitle { position: absolute; left: 0; top: 408px; width: 1280px; text-align: center; font-size: 46px; line-height: 54px; font-weight: bold; }
#osub { position: absolute; left: 240px; top: 478px; width: 800px; text-align: center; font-size: 22px; line-height: 32px; color: #8B95AD; }
#oretry { position: absolute; left: 140px; top: 566px; width: 1000px; text-align: center; font-size: 18px; line-height: 26px; color: #8B95AD; }
#ohint { position: absolute; left: 0; top: 620px; width: 1280px; text-align: center; }

/* Playback overlay */
#osd { position: absolute; left: 48px; top: 40px; padding: 16px 24px; background: rgba(13, 20, 36, .84); display: none; }
body.playing.osd #osd { display: block; }
#osd .otop { font-size: 26px; line-height: 32px; font-weight: bold; }
#osd .odot { display: inline-block; width: 12px; height: 12px; margin-right: 12px; background: #E5322D;
  -webkit-border-radius: 6px; border-radius: 6px; }
#osdhint { margin-top: 10px; }
#osdhint .hint { color: #B9C1D6; margin-right: 26px; }

#msg { position: absolute; left: 0; right: 0; bottom: 84px; text-align: center; display: none; }
#msg span { display: inline-block; padding: 14px 28px; background: rgba(13, 20, 36, .9); font-size: 22px; line-height: 30px; }
body.msg #msg { display: block; }