/**
 * GKZiD player card slot — single source of truth for homepage showcase + The Roster thumbnails.
 * Linked from index.html and roster.html. Do not duplicate these rules in page-specific CSS.
 */
.lp-live-card-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: min(184px, 29vw);
  flex-shrink: 0;
}

/* Thumbnail + embed: same ~2:3 frame as standalone /card handset (see web/card/card.css) */
.lp-live-card-slot__viewport {
  position: relative;
  width: 100%;
  container-type: size;
  container-name: lp-live-slot;
  aspect-ratio: 2 / 3;
  height: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 42, 0.35);
  box-shadow: 0 8px 40px var(--gk-shadow-soft, rgba(0, 245, 42, 0.12));
  background: #07090c;
  transform: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

@media (hover: hover) {
  .lp-live-card-slot:not(.lp-live-card-slot--empty):hover > .lp-live-card-slot__viewport {
    border-color: rgba(0, 245, 42, 0.75);
    box-shadow:
      0 0 0 1px rgba(0, 245, 42, 0.35),
      0 12px 52px rgba(0, 245, 42, 0.18),
      0 8px 40px var(--gk-shadow-soft, rgba(0, 245, 42, 0.12));
    transform: translateY(-2px) scale(1.008);
  }
}

.lp-live-card-slot:not(.lp-live-card-slot--empty):focus-within > .lp-live-card-slot__viewport {
  border-color: rgba(0, 245, 42, 0.75);
  box-shadow:
    0 0 0 1px rgba(0, 245, 42, 0.35),
    0 12px 52px rgba(0, 245, 42, 0.18),
    0 8px 40px var(--gk-shadow-soft, rgba(0, 245, 42, 0.12));
  transform: translateY(-2px) scale(1.006);
}

.lp-live-card-slot:not(.lp-live-card-slot--empty):active > .lp-live-card-slot__viewport {
  border-color: rgba(0, 245, 42, 0.9);
  box-shadow:
    0 0 0 2px rgba(0, 245, 42, 0.42),
    0 10px 48px rgba(0, 245, 42, 0.24),
    0 8px 40px var(--gk-shadow-soft, rgba(0, 245, 42, 0.12));
  transform: translateY(1px) scale(0.993);
  transition-duration: 0.09s;
}

@media (prefers-reduced-motion: reduce) {
  .lp-live-card-slot__viewport {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .lp-live-card-slot:not(.lp-live-card-slot--empty):hover > .lp-live-card-slot__viewport,
  .lp-live-card-slot:not(.lp-live-card-slot--empty):focus-within > .lp-live-card-slot__viewport,
  .lp-live-card-slot:not(.lp-live-card-slot--empty):active > .lp-live-card-slot__viewport {
    transform: none;
  }
}

.lp-live-card-slot__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 12px;
  font-size: 0.7rem;
  line-height: 1.45;
  color: rgba(234, 242, 255, 0.42);
  text-align: center;
}

.lp-live-card-slot__placeholder code {
  color: rgba(0, 245, 42, 0.55);
  font-size: 0.65rem;
}

.lp-live-card-slot:not(.lp-live-card-slot--empty) .lp-live-card-slot__placeholder {
  display: none;
}

.lp-live-card-slot__iframe-host {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.lp-live-card-slot__iframe-scale-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 530px;
  height: 874px;
  transform-origin: 0 0;
  pointer-events: none;
  transform: scale(min(100cqw / 530, 100cqh / 874));
}

.lp-live-card-slot__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #05080c;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.18s ease;
}

.lp-live-card-slot__iframe.is-loading {
  opacity: 0;
}

.lp-live-card-slot__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  z-index: 2;
  background: #05080c;
}

.lp-live-card-slot__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  z-index: 2;
  background: #05080c;
}

/* The Roster discovery thumbs: fill the portrait frame (homepage showcase keeps contain above). */
.roster-tile--lp-slot .lp-live-card-slot__image {
  object-fit: cover;
  object-position: center top;
}

.lp-live-card-slot__tap-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  cursor: pointer;
  background: transparent;
  text-decoration: none;
  color: transparent;
}

.lp-live-card-slot__tap-cover:focus-visible {
  outline: 2px solid rgba(0, 245, 42, 0.9);
  outline-offset: 3px;
}

.lp-live-card-slot--has-tap .lp-live-card-slot__link,
.lp-live-card-slot--lite:not(.lp-live-card-slot--empty) .lp-live-card-slot__link {
  display: none !important;
}

.lp-live-card-slot--empty .lp-live-card-slot__iframe-host {
  visibility: hidden;
  pointer-events: none;
}

.lp-live-card-slot--lite .lp-live-card-slot__iframe-host {
  visibility: hidden;
  pointer-events: none;
}

.lp-live-card-slot.lp-live-card-slot--lite .lp-live-card-slot__placeholder {
  display: flex;
  color: rgba(234, 242, 255, 0.6);
  font-weight: 600;
}

.lp-live-card-slot--lite .lp-live-card-slot__viewport {
  cursor: pointer;
}

.lp-live-card-slot__link {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gk, #00f52a);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.lp-live-card-slot__link:hover,
.lp-live-card-slot__link:focus-visible {
  text-decoration: underline;
}

/* LIVE chip inside slot (Roster + future feeds; sits under tap-cover, pointer-events none) */
.lp-live-card-slot__live-pill {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 3;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 25, 90, 0.88);
  box-shadow: 0 0 16px rgba(255, 40, 100, 0.45);
}

.lp-live-card-slot__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: gkz-live-slot-pulse 1.2s ease-in-out infinite;
}

@keyframes gkz-live-slot-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-live-card-slot__live-dot {
    animation: none;
  }
}

/* Skeleton reserved slots (The Roster) — not a fake “your card” tile */
.lp-live-card-slot--skeleton .lp-live-card-slot__placeholder--skeleton {
  display: block;
  width: 42%;
  height: 42%;
  min-height: 5rem;
  margin: auto;
  border-radius: 12px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(0, 245, 42, 0.12) 42%,
    rgba(255, 255, 255, 0.05) 88%
  );
  background-size: 200% 100%;
  animation: gkz-slot-skel-shimmer 1.35s ease-in-out infinite;
}

@keyframes gkz-slot-skel-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-live-card-slot--skeleton .lp-live-card-slot__placeholder--skeleton {
    animation: none;
    background: rgba(255, 255, 255, 0.06);
  }
}
