.rq-tv {
  position: relative;
  width: 260px;
  aspect-ratio: 4 / 3;
  z-index: 22;
  border-radius: 10px;
  padding: 7px;
  box-sizing: border-box;
  background:
    linear-gradient(165deg, rgba(34, 58, 78, 0.95), rgba(10, 19, 30, 0.94)),
    radial-gradient(circle at 18% 8%, rgba(164, 214, 244, 0.24), rgba(164, 214, 244, 0));
  border: 1px solid rgba(130, 178, 208, 0.34);
  box-shadow:
    0 14px 30px rgba(4, 10, 18, 0.58),
    0 0 0 1px rgba(170, 214, 240, 0.16),
    inset 0 1px 0 rgba(220, 242, 255, 0.22);
  overflow: hidden;
  backdrop-filter: blur(1.5px);
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  transition:
    transform 320ms ease,
    opacity 220ms ease;
}
.rq-tv::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(182, 232, 255, 0.14) 0 1px,
    rgba(182, 232, 255, 0) 1px 4px
  );
  mix-blend-mode: screen;
  opacity: 0.36;
  transition: opacity 240ms ease;
}
.rq-tv-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  display: block;
  background: transparent;
  border: 1px solid rgba(132, 186, 218, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(162, 214, 242, 0.12),
    inset 0 0 18px rgba(86, 150, 196, 0.2);
  transition: opacity 190ms ease;
}
.rq-tv-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transition: opacity 190ms ease;
}
.rq-tv-badge {
  position: absolute;
  left: 0.55rem;
  bottom: 0.42rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(174, 220, 246, 0.78);
  text-shadow: 0 0 8px rgba(110, 188, 236, 0.36);
  pointer-events: none;
  transition: opacity 180ms ease;
}
.rq-tv-toggle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(132, 186, 218, 0.46);
  background: radial-gradient(circle at 35% 28%, rgba(174, 224, 248, 0.26), rgba(10, 19, 30, 0.94));
  color: rgba(194, 236, 255, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 9px rgba(122, 200, 240, 0.45);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.rq-tv-toggle::before {
  content: none;
}
.rq-tv.rq-tv-loading .rq-tv-toggle {
  opacity: 1;
  pointer-events: none;
  cursor: wait;
  color: transparent;
}
.rq-tv.rq-tv-loading .rq-tv-toggle::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(184, 230, 250, 0.86);
  border-top-color: rgba(184, 230, 250, 0.2);
  animation: rq-tv-spin 0.8s linear infinite;
}
.rq-tv-toggle:focus-visible {
  outline: 2px solid rgba(160, 224, 250, 0.78);
  outline-offset: -2px;
}
.rq-tv.rq-tv-collapsed {
  width: 34px;
  padding: 0;
  border-radius: 6px;
  transform: translate3d(0, 2vh, 0);
  background: linear-gradient(165deg, rgba(34, 58, 78, 0.9), rgba(10, 19, 30, 0.92));
  box-shadow:
    0 10px 20px rgba(4, 10, 18, 0.42),
    0 0 0 1px rgba(168, 214, 240, 0.2);
}
.rq-tv.rq-tv-collapsed::before {
  opacity: 0;
}
.rq-tv.rq-tv-collapsed .rq-tv-screen,
.rq-tv.rq-tv-collapsed .rq-tv-stage,
.rq-tv.rq-tv-collapsed .rq-tv-badge {
  opacity: 0;
  pointer-events: none;
}
.rq-tv.rq-tv-collapsed .rq-tv-toggle {
  opacity: 1;
  pointer-events: auto;
}
.rq-tv-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-left: 0.35rem;
  background: rgba(254, 84, 108, 0.98);
  box-shadow: 0 0 8px rgba(254, 90, 120, 0.7);
  animation: rq-tv-dot-blink 1.3s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes rq-tv-dot-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.28;
  }
}
@keyframes rq-tv-spin {
  to {
    transform: rotate(360deg);
  }
}
