#labView.labPlaying {
  position: fixed;
  inset: 0;
  z-index: 30;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 47, 145, .2), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(248, 201, 109, .13), transparent 30%),
    linear-gradient(115deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 18px),
    linear-gradient(24deg, #2a1022, #10070c 42%, #050204 100%);
  padding: 0;
  overflow: hidden;
}

#labView.labPlaying .labIntro {
  display: none;
}

#labView.labPlaying #carousel {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 66px;
  align-items: stretch;
}

#labView.labPlaying #carousel::before,
#labView.labPlaying #carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#labView.labPlaying #carousel::before {
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 237, 168, .95) 0 2px, transparent 4px),
    radial-gradient(circle at 76% 18%, rgba(255, 77, 172, .82) 0 2px, transparent 5px),
    radial-gradient(circle at 86% 64%, rgba(255, 237, 168, .8) 0 1px, transparent 4px),
    radial-gradient(circle at 22% 78%, rgba(255, 77, 172, .72) 0 2px, transparent 5px),
    radial-gradient(circle at 47% 38%, rgba(255, 255, 255, .86) 0 1px, transparent 4px);
  filter: drop-shadow(0 0 12px rgba(255, 210, 106, .85));
  animation: labStarsTwinkle 5.8s ease-in-out infinite alternate;
}

#labView.labPlaying #carousel::after {
  background:
    linear-gradient(110deg, transparent 18%, rgba(255, 47, 145, .14), transparent 34%),
    linear-gradient(68deg, transparent 60%, rgba(255, 220, 130, .12), transparent 76%);
  mix-blend-mode: screen;
  animation: labSoftLights 9s linear infinite;
}

#labView.labPlaying .photo {
  position: relative;
  width: 100vw;
  height: calc(100vh - 66px);
  max-width: none;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(0, 0, 0, .12), transparent 23%),
    radial-gradient(ellipse at 50% 54%, rgba(255, 214, 125, .1), transparent 42%),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 22px),
    linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 24px),
    #12080d;
  box-shadow: none;
  transform: none;
  display: grid;
  place-items: center;
  overflow: hidden;
}

#labView.labPlaying .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent),
    radial-gradient(circle at 50% 50%, transparent 50%, rgba(0, 0, 0, .55));
  mix-blend-mode: screen;
}

#labView.labPlaying .photo.is-developing::after {
  animation: labDeveloperWash 5.2s ease-in-out both;
}

#labView.labPlaying .photo img {
  width: auto;
  height: auto;
  max-width: min(92vw, 1180px);
  max-height: calc(100vh - 122px);
  object-fit: contain;
  background: #050208;
  box-sizing: border-box;
  border: clamp(10px, 1.7vw, 22px) solid #080509;
  border-bottom-width: clamp(34px, 5.2vw, 76px);
  border-radius: 5px;
  box-shadow:
    0 0 0 1px rgba(248, 201, 109, .38),
    0 0 0 7px rgba(255, 255, 255, .035),
    0 0 55px rgba(255, 47, 145, .22),
    0 34px 120px rgba(0, 0, 0, .92);
}

#labView.labPlaying .photo img.developing {
  animation: developNegativePhoto 5.2s cubic-bezier(.2, .72, .2, 1) both;
}

#labView.labPlaying .photo img.is-ready {
  animation: readyPhotoFloat 6s ease-in-out infinite alternate;
}

#labView.labPlaying .photo footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 76px clamp(18px, 5vw, 72px) 24px;
  color: white;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
  align-items: flex-end;
}

#labView.labPlaying .photo footer b {
  display: inline-flex;
  width: fit-content;
  max-width: min(76vw, 720px);
  padding: 8px 13px;
  border: 1px solid rgba(255, 231, 162, .46);
  border-radius: 999px;
  color: rgba(255, 231, 162, .92);
  background: rgba(5, 2, 8, .38);
  font: 800 clamp(10px, 1.15vw, 15px) "DM Mono", monospace;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px #000, 0 0 14px rgba(255, 47, 145, .35);
  backdrop-filter: blur(6px);
}

#labView.labPlaying .photo footer span {
  margin-top: 10px;
  display: block;
  color: #fff1c1;
  font: 800 clamp(15px, 1.75vw, 26px) "DM Mono", monospace;
  letter-spacing: .1em;
  text-shadow: 0 2px 16px #000, 0 0 22px rgba(255, 201, 109, .52);
}

#labView.labPlaying .controls {
  height: 66px;
  margin: 0;
  background: rgba(7, 2, 9, .96);
  border-top: 1px solid rgba(248, 201, 109, .28);
  gap: 30px;
  z-index: 5;
}

#labView.labPlaying .controls button {
  color: #ffe7a2;
  border-color: rgba(248, 201, 109, .55);
}

@keyframes developNegativePhoto {
  0% {
    filter: brightness(.02) grayscale(1) contrast(.7) blur(8px);
    opacity: .08;
    transform: translate3d(-74vw, 16vh, 0) rotate(-11deg) scale(.54);
  }
  18% {
    filter: brightness(.03) grayscale(1) contrast(.75) blur(7px);
    opacity: .82;
    transform: translate3d(-8vw, 5vh, 0) rotate(-5deg) scale(.68);
  }
  34% {
    filter: brightness(.04) grayscale(1) contrast(.85) blur(6px);
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-1.8deg) scale(.78);
  }
  48% {
    filter: invert(1) grayscale(1) contrast(1.5) brightness(.74) blur(7px);
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  68% {
    filter: invert(.55) grayscale(.65) sepia(.4) saturate(1.35) hue-rotate(250deg) contrast(1.18) blur(3px);
    opacity: .92;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1.01);
  }
  86% {
    filter: invert(.12) grayscale(.18) sepia(.12) saturate(1.08) contrast(1.08) blur(1px);
    opacity: 1;
  }
  100% {
    filter: none;
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes labDeveloperWash {
  0% {
    opacity: 0;
    transform: translateX(-42%);
  }
  20% {
    opacity: .62;
  }
  56% {
    opacity: .34;
    transform: translateX(38%);
  }
  100% {
    opacity: 0;
    transform: translateX(72%);
  }
}

@keyframes readyPhotoFloat {
  0% {
    transform: scale(1) translate3d(0, 0, 0) rotate(0deg);
    filter: brightness(1) saturate(1.02) contrast(1.02);
  }
  45% {
    transform: scale(1.018) translate3d(-.45vw, -.25vh, 0) rotate(-.35deg);
    filter: brightness(1.05) saturate(1.08) contrast(1.03);
  }
  100% {
    transform: scale(1.028) translate3d(.45vw, .18vh, 0) rotate(.32deg);
    filter: brightness(1.02) saturate(1.06) contrast(1.04);
  }
}

@keyframes labStarsTwinkle {
  0% {
    opacity: .25;
    transform: scale(.98);
  }
  45% {
    opacity: .85;
  }
  100% {
    opacity: .4;
    transform: scale(1.02);
  }
}

@keyframes labSoftLights {
  0% {
    opacity: .18;
    transform: translateX(-18%);
  }
  50% {
    opacity: .42;
  }
  100% {
    opacity: .18;
    transform: translateX(18%);
  }
}

@media (max-width: 760px) {
  #labView.labPlaying #carousel {
    grid-template-rows: minmax(0, 1fr) 58px;
  }

  #labView.labPlaying .photo {
    height: calc(100vh - 58px);
  }

  #labView.labPlaying .photo img {
    max-width: 100vw;
    max-height: calc(100vh - 96px);
    border-width: 9px;
    border-bottom-width: 38px;
  }

  #labView.labPlaying .photo footer {
    padding: 58px 16px 15px;
  }

  #labView.labPlaying .photo footer b {
    max-width: 82vw;
    font-size: 10px;
  }

  #labView.labPlaying .photo footer span {
    font-size: 14px;
  }

  #labView.labPlaying .controls {
    height: 58px;
  }
}
