/* =========================================================
   KLASROYAL — Popüler slot kartları video katmanı
   Poster kartın kalıcı görsel tabanıdır; video yalnızca gerçekten oynarken
   onun üzerine görünür.
   ========================================================= */
.kr-pop-reference-card[data-slot-motion] {
  isolation: isolate;
}

.kr-pop-reference-card[data-slot-motion].kr-pop-reference-feature {
  aspect-ratio: 739 / 810;
}

.kr-slot-motion-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  overflow: hidden;
  color: inherit;
}

.kr-slot-motion-poster,
.kr-slot-motion-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
}

.kr-slot-title-guard {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  -webkit-mask-image: var(--kr-slot-title-mask, linear-gradient(to bottom, transparent 0%, transparent 58%, #000 67%, #000 100%));
  mask-image: var(--kr-slot-title-mask, linear-gradient(to bottom, transparent 0%, transparent 58%, #000 67%, #000 100%));
}

.kr-pop-reference-card[data-slot-motion].kr-pop-reference-feature .kr-slot-title-guard {
  -webkit-mask-image: var(--kr-slot-title-mask, linear-gradient(to bottom, transparent 0%, transparent 50%, #000 60%, #000 100%));
  mask-image: var(--kr-slot-title-mask, linear-gradient(to bottom, transparent 0%, transparent 50%, #000 60%, #000 100%));
}

/* Video dokunma/tıklama hedefi olmaz; kartın tamamı her zaman bağlantıdır. */
.kr-slot-motion-video {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.kr-pop-reference-card[data-slot-motion].kr-slot-motion-playing .kr-slot-motion-video {
  opacity: 1;
}

.kr-slot-motion-toggle {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 9px;
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 244, 203, .66);
  border-radius: 50%;
  color: #fff7d8;
  background: rgba(10, 14, 24, .72);
  box-shadow: 0 2px 9px rgba(0, 0, 0, .38);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(.86);
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
}

.kr-slot-motion-icon {
  width: 15px;
  height: 15px;
}

.kr-pop-reference-card[data-slot-motion]:hover .kr-slot-motion-toggle,
.kr-pop-reference-card[data-slot-motion]:focus-within .kr-slot-motion-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.kr-slot-motion-toggle:hover {
  background: rgba(38, 32, 18, .92);
}

.kr-slot-motion-link:focus-visible,
.kr-slot-motion-toggle:focus-visible {
  outline: 2px solid #f5d777;
  outline-offset: -3px;
}

.kr-slot-motion-toggle:disabled {
  cursor: not-allowed;
  opacity: .56;
  pointer-events: auto;
}

.kr-pop-reference-card[data-slot-motion].kr-slot-motion-unavailable .kr-slot-motion-toggle {
  opacity: .64;
  transform: none;
}

@media (max-width: 850px), (hover: none) {
  .kr-slot-motion-toggle {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kr-slot-motion-video,
  .kr-slot-motion-toggle {
    transition: none;
  }
}
