.gaiamath-tv {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  padding: clamp(72px, 8vw, 128px) 0 clamp(82px, 9vw, 142px);
  color: #eadbb9;
  background:
    radial-gradient(circle at 50% 44%, rgba(45, 143, 137, .12), transparent 32%),
    radial-gradient(circle at 18% 70%, rgba(173, 121, 51, .09), transparent 26%),
    linear-gradient(180deg, #020303, #080806 48%, #020303);
  border-block: 1px solid rgba(201, 153, 76, .19);
}

.gaiamath-tv-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .44;
  background:
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, .018) 5px),
    linear-gradient(90deg, transparent 49.94%, rgba(106, 221, 211, .07) 50%, transparent 50.06%);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.gaiamath-tv-stage {
  position: relative;
  isolation: isolate;
  width: min(1760px, 100vw);
  aspect-ratio: 1677 / 938;
  margin-inline: auto;
  overflow: hidden;
  outline: none;
}

.gaiamath-tv-screen {
  position: absolute;
  z-index: 1;
  inset: 18.2% 12.8% 14.1%;
  overflow: hidden;
  background: #020505;
  border: 1px solid rgba(239, 203, 126, .5);
  border-radius: 2px;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, .76),
    0 0 0 3px rgba(4, 8, 8, .82),
    0 0 34px rgba(232, 188, 93, .2);
}

.gaiamath-tv-channel,
.gaiamath-tv-channel video,
.gaiamath-tv-scanlines,
.gaiamath-tv-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gaiamath-tv-channel {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition: opacity 900ms ease, visibility 900ms, transform 6s ease-out;
}

.gaiamath-tv-channel.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.gaiamath-tv-channel video {
  display: block;
  object-fit: cover;
  object-position: center;
  background: #020303;
  filter: contrast(1.08) saturate(.98) brightness(.9);
}

.gaiamath-tv-scanlines {
  z-index: 3;
  pointer-events: none;
  opacity: .26;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(126, 230, 221, .075) 4px),
    linear-gradient(115deg, rgba(255, 255, 255, .07), transparent 18% 77%, rgba(109, 224, 215, .04));
  mix-blend-mode: screen;
}

.gaiamath-tv-frame {
  z-index: 5;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.gaiamath-tv-logo-motion {
  position: absolute;
  z-index: 4;
  top: .4%;
  left: 40.2%;
  width: 19.6%;
  height: 14.5%;
  overflow: hidden;
  pointer-events: none;
  background: #030606;
  border-radius: 0 0 42% 42%;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, .72),
    0 0 18px rgba(104, 226, 215, .14);
  clip-path: polygon(9% 0, 91% 0, 100% 62%, 82% 100%, 18% 100%, 0 62%);
}

.gaiamath-tv-logo-motion video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: scale(.96);
  filter: contrast(1.12) saturate(1.08) brightness(.96);
}

.gaiamath-tv-arrow {
  position: absolute;
  z-index: 8;
  top: 51%;
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  color: #e8cf98;
  background: rgba(3, 7, 7, .84);
  border: 1px solid rgba(212, 166, 84, .58);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, .35), 0 0 20px rgba(0, 0, 0, .72);
  cursor: pointer;
  font: 400 1.35rem/1 Georgia, "Times New Roman", serif;
  transform: translateY(-50%);
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}

.gaiamath-tv-prev { left: 7.7%; }
.gaiamath-tv-next { right: 7.7%; }

.gaiamath-tv-arrow:hover,
.gaiamath-tv-arrow:focus-visible {
  color: #fff1cc;
  background: rgba(10, 34, 32, .92);
  border-color: rgba(112, 230, 220, .85);
  outline: none;
  transform: translateY(-50%) scale(1.08);
}

.gaiamath-tv-console {
  width: min(1320px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: clamp(20px, 2.2vw, 34px) auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(206, 159, 78, .28);
}

.gaiamath-tv-now span {
  display: block;
  margin-bottom: 8px;
  color: rgba(111, 222, 213, .76);
  font: 800 8px/1.3 Arial, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.gaiamath-tv-now strong {
  display: block;
  color: #ead9b6;
  font: 400 clamp(1.5rem, 2.2vw, 2.25rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.gaiamath-tv-navigation,
.gaiamath-tv-dots {
  display: flex;
  align-items: center;
}

.gaiamath-tv-navigation {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.gaiamath-tv-dots {
  gap: 9px;
}

.gaiamath-tv-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(220, 177, 96, .62);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.gaiamath-tv-dot.is-active {
  background: #72ddd5;
  border-color: #bffff9;
  box-shadow: 0 0 13px rgba(102, 233, 223, .8);
  transform: scale(1.35);
}

.gaiamath-tv-dot:focus-visible {
  outline: 1px solid #edd49e;
  outline-offset: 4px;
}

.gaiamath-tv-count {
  color: rgba(233, 216, 182, .58);
  font: 800 8px/1 Arial, sans-serif;
  letter-spacing: .14em;
}

.gaiamath-tv-sound {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  color: rgba(232, 216, 183, .72);
  background: rgba(3, 8, 8, .78);
  border: 1px solid rgba(212, 166, 84, .34);
  cursor: pointer;
  font: 800 8px/1 Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gaiamath-tv-sound i {
  width: 22px;
  height: 10px;
  background: repeating-linear-gradient(90deg, #72ddd5 0 2px, transparent 2px 5px);
  clip-path: polygon(0 44%, 14% 44%, 14% 18%, 28% 18%, 28% 82%, 42% 82%, 42% 0, 56% 0, 56% 100%, 70% 100%, 70% 28%, 84% 28%, 84% 44%, 100% 44%, 100% 56%, 84% 56%, 84% 74%, 70% 74%, 70% 100%, 56% 100%, 56% 0, 42% 0, 42% 88%, 28% 88%, 28% 12%, 14% 12%, 14% 56%, 0 56%);
}

.gaiamath-tv-sound:hover,
.gaiamath-tv-sound:focus-visible,
.gaiamath-tv-sound[aria-pressed="true"] {
  color: #fff0cb;
  background: rgba(9, 29, 27, .9);
  border-color: rgba(106, 224, 215, .78);
  outline: none;
}

.gaiamath-tv-sound[aria-pressed="true"] i {
  filter: drop-shadow(0 0 7px rgba(102, 233, 223, .9));
  animation: gaiamathTvAudio .48s ease-in-out infinite alternate;
}

@keyframes gaiamathTvAudio {
  to { transform: scaleY(1.35); }
}

@media (max-width: 720px) {
  .gaiamath-tv {
    padding: 70px 0 86px;
  }

  .gaiamath-tv-stage {
    width: 100vw;
  }

  .gaiamath-tv-arrow {
    width: 34px;
    font-size: 1rem;
  }

  .gaiamath-tv-prev { left: 5.5%; }
  .gaiamath-tv-next { right: 5.5%; }

  .gaiamath-tv-console {
    width: calc(100% - 32px);
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .gaiamath-tv-navigation {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gaiamath-tv-channel,
  .gaiamath-tv-arrow,
  .gaiamath-tv-dot {
    transition-duration: .001ms;
  }

  .gaiamath-tv-sound[aria-pressed="true"] i {
    animation: none;
  }
}
