.teaser-player {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.teaser-player--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.teaser-player__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(18, 12, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.teaser-player__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(14px, 2.4vw, 22px);
  border-radius: 24px;
  background: linear-gradient(165deg, #fef2e1 0%, #ffe8bf 42%, #ffd281 100%);
  box-shadow:
    0 24px 80px rgba(72, 38, 8, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s ease;
}

.teaser-player--open .teaser-player__dialog {
  transform: translateY(0) scale(1);
}

.teaser-player__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.teaser-player__title {
  margin: 0;
  font-family: "TikTok Sans", Nunito, system-ui, sans-serif;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #141414;
}

.teaser-player__close {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #141414;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.teaser-player__close:hover {
  background: rgba(255, 255, 255, 0.85);
}

.teaser-player__close:active {
  transform: scale(0.96);
}

.teaser-player__close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.teaser-player__frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #120c08;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.teaser-player__frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.teaser-player__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.teaser-player__video::-webkit-media-controls-panel {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}

body.teaser-player-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .teaser-player {
    padding: max(12px, env(safe-area-inset-top, 0px)) 10px max(12px, env(safe-area-inset-bottom, 0px));
  }

  .teaser-player__dialog {
    width: 100%;
    border-radius: 20px;
    padding: 14px;
    gap: 10px;
  }

  .teaser-player__frame {
    border-radius: 14px;
  }

  .teaser-player__close {
    width: 40px;
    height: 40px;
  }
}
