.modvod-page {
  margin: 0;
  overflow: hidden;
  background: #030406;
  color: #d7d9d4;

  .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}

.modvod-viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #030406;
  touch-action: manipulation;
  user-select: none;
}

.modvod-artboard {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1672px;
  height: 941px;
  overflow: hidden;
  transform-origin: center center;
  background: #030406;
  opacity: 0;
  transition: opacity 240ms ease;
  will-change: left, opacity;

  &.is-ready {
    opacity: 1;
  }

  &.is-changing {
    opacity: 0;
  }
}

.modvod-pan-controls {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;

  &.is-visible {
    display: flex;
  }

  button {
    display: grid;
    width: 54px;
    height: 88px;
    border: 2px solid rgba(178, 210, 207, .46);
    border-radius: 0;
    padding: 0 0 8px;
    place-items: center;
    background: rgba(3, 8, 10, .74);
    color: rgba(204, 229, 221, .92);
    font: 400 68px/1 "Courier New", monospace;
    cursor: pointer;
    opacity: .76;
    pointer-events: auto;
    text-shadow: 0 0 9px rgba(79, 145, 155, .75);

    &:hover,
    &:focus-visible {
      border-color: rgba(178, 210, 207, .9);
      outline: 3px solid rgba(178, 210, 207, .45);
      outline-offset: 3px;
      opacity: 1;
    }

    &:disabled {
      cursor: default;
      opacity: .18;
    }
  }
}

.modvod-background,
.modvod-interactions {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.modvod-player {
  position: absolute;
  left: 188px;
  top: 104px;
  z-index: 1;
  width: 698px;
  height: 462px;
  overflow: hidden;
  background: #000;
  opacity: 0;
  pointer-events: none;

  &.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }

  &.is-promo {
    background: #000;
  }

  &.is-radio {
    background:
      radial-gradient(circle at 50% 45%, rgba(28, 71, 74, .45), transparent 58%),
      repeating-linear-gradient(0deg, rgba(178, 210, 207, .025) 0 2px, transparent 2px 5px),
      #020607;
  }
}

.modvod-promo {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.modvod-start-feature {
  position: absolute;
  left: 403px;
  top: 300px;
  z-index: 5;
  width: 270px;
  min-height: 70px;
  border: 3px solid rgba(178, 210, 207, .82);
  border-radius: 0;
  padding: 14px 20px;
  background: rgba(2, 8, 9, .92);
  color: rgba(218, 234, 228, .96);
  font: 700 22px/1.2 "Courier New", monospace;
  letter-spacing: 2px;
  cursor: pointer;
  pointer-events: auto;
  text-shadow: 0 0 9px rgba(79, 145, 155, .75);

  &:hover,
  &:focus-visible {
    background: rgba(34, 67, 68, .94);
    outline: 4px solid rgba(178, 210, 207, .5);
    outline-offset: 4px;
  }
}

.modvod-background {
  z-index: 2;
  object-fit: fill;
  pointer-events: none;
}

.modvod-interactions {
  z-index: 3;
  pointer-events: none;
}

.modvod-youtube {
  position: absolute;
  left: 991px;
  top: 475px;
  width: 193px;
  height: 132px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: rotate(2deg);

  &:focus-visible {
    outline: 4px solid rgba(255, 214, 49, .9);
    outline-offset: 3px;
  }
}

.modvod-radio-cassette {
  position: absolute;
  left: 1125px;
  top: 746px;
  width: 475px;
  height: 136px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: rotate(1deg);

  &:hover,
  &:focus-visible {
    background: rgba(255, 218, 121, .12);
    outline: 4px solid rgba(255, 218, 121, .72);
    outline-offset: 3px;
  }
}

.modvod-tape {
  position: absolute;
  display: block;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: rgba(54, 33, 18, .92);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  mix-blend-mode: multiply;
  pointer-events: auto;

  &:hover,
  &:focus-visible {
    background: rgba(255, 232, 164, .24);
    color: rgba(15, 8, 2, 1);
    outline: 3px solid rgba(255, 218, 121, .75);
    outline-offset: 1px;
  }
}



/* Top shelf: JSON items 1-12. */
.modvod-tape--1 { left: 976px; top: 246px; width: 45px; height: 171px; }
.modvod-tape--2 { left: 1029px; top: 246px; width: 43px; height: 171px; }
.modvod-tape--3 { left: 1080px; top: 246px; width: 44px; height: 171px; }
.modvod-tape--4 { left: 1133px; top: 246px; width: 43px; height: 171px; }
.modvod-tape--5 { left: 1189px; top: 246px; width: 43px; height: 171px; }
.modvod-tape--6 { left: 1240px; top: 246px; width: 44px; height: 171px; }
.modvod-tape--7 { left: 1292px; top: 246px; width: 43px; height: 171px; }
.modvod-tape--8 { left: 1350px; top: 246px; width: 44px; height: 171px; }
.modvod-tape--9 { left: 1398px; top: 246px; width: 44px; height: 171px; }
.modvod-tape--10 { left: 1455px; top: 246px; width: 44px; height: 171px; }
.modvod-tape--11 { left: 1510px; top: 246px; width: 44px; height: 171px; }
.modvod-tape--12 { left: 1575px; top: 246px; width: 44px; height: 171px; }

/* Bottom shelf upright tapes: JSON items 13-21. */
.modvod-tape--13 { left: 978px; top: 543px; width: 43px; height: 168px; }
.modvod-tape--14 { left: 1030px; top: 543px; width: 44px; height: 168px; }
.modvod-tape--15 { left: 1082px; top: 543px; width: 44px; height: 168px; }
.modvod-tape--16 { left: 1135px; top: 543px; width: 44px; height: 168px; }
.modvod-tape--17 { left: 1189px; top: 543px; width: 43px; height: 168px; }
.modvod-tape--18 { left: 1243px; top: 543px; width: 44px; height: 168px; }
.modvod-tape--19 { left: 1296px; top: 543px; width: 44px; height: 168px; }
.modvod-tape--20 { left: 1349px; top: 543px; width: 45px; height: 168px; }
.modvod-tape--21 { left: 1408px; top: 573px; width: 42px; height: 138px; }

/* Bottom shelf leaning cases: JSON items 22-25. */
.modvod-tape--22 { left: 1480px; top: 545px; width: 43px; height: 174px; }
.modvod-tape--23 { left: 1523px; top: 543px; width: 43px; height: 177px; }
.modvod-tape--24 { left: 1561px; top: 544px; width: 42px; height: 177px; }
.modvod-tape--25 { left: 1603px; top: 545px; width: 41px; height: 177px; }

.modvod-tape--22 {
  transform: rotate(-7deg);
}

.modvod-tape--23 {
  transform: rotate(-5deg);
}

.modvod-tape--24 {
  transform: rotate(-4deg);
}

.modvod-tape--25 {
  transform: rotate(-3deg);
}

.modvod-tape-title {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 145px;
  overflow: hidden;
  color: inherit;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.modvod-tape-title--medium {
  font-size: 13px;
}

.modvod-tape-title--small {
  font-size: 11px;
}

.modvod-tape--navigation .modvod-tape-title {
  color: rgba(87, 31, 17, .98);
  font-weight: 700;
}

/* Safari rasterizes transformed text more aggressively when an ancestor is fractionally */
/* scaled and the tape also creates a blend layer. Keep Chrome's ink treatment, but let */
/* WebKit paint the label text directly with its clearer native handwriting face. */
@supports (-webkit-touch-callout: none) {
  .modvod-tape {
    mix-blend-mode: normal;
  }

  .modvod-tape-title {
    font-family: "Marker Felt", "Bradley Hand", cursive;
    font-weight: 400;
  }
}

.modvod-youtube-fallback {
  position: absolute;
  left: 689px;
  top: 515px;
  display: block;
  width: 170px;
  height: 34px;
  padding: 8px 10px;
  background: rgba(8, 11, 13, .78);
  color: rgba(223, 230, 226, .88);
  font: 700 14px/18px "Courier New", monospace;
  letter-spacing: .5px;
  text-align: center;
  text-decoration: none;
  opacity: .68;
  pointer-events: auto;

  &:hover,
  &:focus-visible {
    color: #fff;
    opacity: 1;
    outline: 3px solid rgba(178, 210, 207, .85);
    outline-offset: 2px;
  }
}

.modvod-power {
  position: absolute;
  left: 194px;
  top: 686px;
  display: block;
  width: 53px;
  height: 58px;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;

  &:focus-visible {
    outline: 4px solid rgba(178, 210, 207, .85);
    outline-offset: 3px;
  }
}

.modvod-eject {
  position: absolute;
  left: 247px;
  top: 686px;
  width: 82px;
  height: 58px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;

  &:focus-visible {
    outline: 4px solid rgba(178, 210, 207, .85);
    outline-offset: 3px;
  }
}

.modvod-radio-indicator {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.modvod-radio-screen {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 85px 62px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  color: rgba(178, 210, 207, .88);
  font: 400 22px/1.25 "Courier New", monospace;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 0 10px rgba(79, 145, 155, .7);

  strong {
    max-width: 100%;
    overflow: hidden;
    color: rgba(204, 229, 221, .96);
    font-size: 38px;
    line-height: 1.08;
    text-overflow: ellipsis;
  }
}

.modvod-radio-kicker {
  color: rgba(113, 179, 175, .9);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 3px;
}

.modvod-radio-error {
  color: rgba(227, 159, 120, .92);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
}

.modvod-radio-shared-message {
  max-width: 540px;
  margin: 2px 0 0;
  padding: 8px 14px;
  border-left: 3px solid rgba(117, 211, 192, .65);
  background: rgba(117, 211, 192, .08);
  color: rgba(218, 234, 228, .9);
  font-size: 16px;
  line-height: 1.25;

  span {
    display: block;
    margin-bottom: 3px;
    color: rgba(117, 211, 192, .78);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
  }
}

.modvod-radio-progress {
  width: min(460px, 88%);
  margin-top: 8px;

  progress {
    display: block;
    width: 100%;
    height: 13px;
    overflow: hidden;
    border: 1px solid rgba(178, 210, 207, .62);
    appearance: none;
    background: rgba(1, 7, 8, .82);
    box-shadow: 0 0 8px rgba(79, 145, 155, .35);

    &::-webkit-progress-bar {
      background: rgba(1, 7, 8, .82);
    }

    &::-webkit-progress-value {
      background: rgba(117, 211, 192, .82);
      box-shadow: 0 0 8px rgba(117, 211, 192, .65);
    }

    &::-moz-progress-bar {
      background: rgba(117, 211, 192, .82);
      box-shadow: 0 0 8px rgba(117, 211, 192, .65);
    }
  }
}

.modvod-radio-progress-time {
  display: flex;
  margin-top: 6px;
  justify-content: space-between;
  color: rgba(148, 195, 190, .82);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.modvod-radio-control {
  position: absolute;
  top: 785px;
  width: 35px;
  height: 20px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;

  &:focus-visible {
    outline: 4px solid rgba(178, 210, 207, .1);
    outline-offset: 3px;
  }

  &[aria-pressed="true"] {
    background: rgba(117, 211, 192, .1);
    box-shadow: 0 0 4px rgba(117, 211, 192, .2);
  }

  &:disabled {
    cursor: default;
  }
}

/* Provisional bounds follow the current VCR artwork and are intentionally isolated */
/* here so the refined button artwork can be calibrated without changing player logic. */
.modvod-radio-control--play {
  left: 637px;
}

.modvod-radio-control--stop {
  left: 682px;
}

.modvod-radio-control--previous {
  left: 723px;
}

.modvod-radio-control--next {
  left: 765px;
}

.modvod-radio-control--shuffle {
  left: 810px;
}

.modvod-radio-control--record {
  left: 855px;
}

.modvod-write-protect {
  position: absolute;
  left: 188px;
  top: 104px;
  z-index: 4;
  box-sizing: border-box;
  width: 698px;
  height: 462px;
  overflow: hidden;
  border: 0;
  background: #000;
  color: rgba(204, 229, 221, .94);
  font: 700 19px/1.35 "Courier New", monospace;
  letter-spacing: .5px;
  pointer-events: auto;

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    user-select: none;
  }

  button {
    position: absolute;
    right: 18px;
    top: 12px;
    border: 2px solid rgba(178, 210, 207, .72);
    padding: 9px 18px;
    background: rgba(7, 14, 15, .88);
    color: inherit;
    font: inherit;
    cursor: pointer;

    &:hover,
    &:focus-visible {
      background: rgba(178, 210, 207, .14);
      outline: 3px solid rgba(178, 210, 207, .65);
      outline-offset: 3px;
    }
  }
}

.modvod-message {
  position: absolute;
  left: 191px;
  top: 245px;
  z-index: 3;
  width: 640px;
  color: rgba(178, 210, 207, .82);
  font: 700 25px/1.2 "Courier New", monospace;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 0 0 10px rgba(79, 145, 155, .75);
  opacity: 0;
  pointer-events: none;

  &.is-visible {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modvod-artboard {
    transition: none;
  }
}

@media (max-width: 700px), (pointer: coarse) {
  .modvod-pan-controls {
    padding: 0 8px;

    button {
      width: 44px;
      height: 72px;
      font-size: 56px;
    }
  }
}

* { box-sizing: border-box; }
.modvod-local-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
