/* Cinematic tablet presentation — Arlington Park 2 */

.cinematic-tablet-scene {
  --cts-screen-left: 44%;
  --cts-screen-top: 28%;
  --cts-screen-width: 12%;
  --cts-screen-height: 44%;
  --cts-radius: 12px;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
  background: #1a1814;
  isolation: isolate;
}

.cinematic-tablet-scene__viewport {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: #1c1915;
}

.cinematic-tablet-scene__camera {
  position: absolute;
  inset: 0;
}

.cinematic-tablet-scene__stage {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cinematic-tablet-scene__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  background: #1c1915;
}

.cinematic-tablet-scene__tablet {
  position: absolute;
  left: var(--cts-screen-left);
  top: var(--cts-screen-top);
  width: var(--cts-screen-width);
  height: var(--cts-screen-height);
  z-index: 5;
  overflow: hidden;
  padding: 0;
  border-radius: var(--cts-radius);
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
  aspect-ratio: 9 / 16;
  transform-origin: 50% 50%;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cinematic-tablet-scene.is-zooming .cinematic-tablet-scene__tablet {
  will-change: transform;
}

.cinematic-tablet-scene__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
}

.cinematic-tablet-scene__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000;
}

.cinematic-tablet-scene__glass {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.015) 24%,
    transparent 48%
  );
}

.cinematic-tablet-scene.is-debug .cinematic-tablet-scene__tablet {
  outline: 2px solid #3b82f6;
}

.cinematic-tablet-scene__sound {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.55);
  color: #f4f1ea;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cinematic-tablet-scene.is-tablet-playing .cinematic-tablet-scene__sound,
.cinematic-tablet-scene.is-sound-blocked .cinematic-tablet-scene__sound {
  opacity: 1;
  pointer-events: auto;
}

.cinematic-tablet-scene.is-sound-on .cinematic-tablet-scene__sound span {
  display: none;
}

.cinematic-tablet-scene__sound i {
  font-size: 15px;
}
