/* v673 — landing playlist + iPad-safe video layer */
.gl-media-frame,
.gl-media-frame-video {
  aspect-ratio: 9 / 16 !important;
  width: 100% !important;
  max-width: 22rem !important;
  max-height: min(70vh, 36rem) !important;
  min-height: 0 !important;
  margin-inline: auto !important;
  background: #000 !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 1.15rem !important;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
/* iPad/tablet landscape: keep player from eating the whole tab width */
@media (min-width: 768px) and (max-width: 1180px) {
  .gl-media-frame,
  .gl-media-frame-video {
    max-width: min(20rem, 42vw) !important;
    max-height: min(62vh, 32rem) !important;
  }
}
.gl-media-video {
  /* iOS/iPad: avoid layer thrash when swapping clips */
  -webkit-playsinline: true;
  pointer-events: auto;
}
.gl-media-main { display: flex !important; justify-content: center !important; }
@media (min-width: 820px) {
  .gl-media-layout {
    grid-template-columns: minmax(16rem, 22rem) 1fr !important;
    align-items: start !important;
  }
}
.gl-media-video,
.gl-media-frame-video .gl-media-video,
.gl-media-img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
.gl-media-progress-track {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.18);
  z-index: 4;
}
.gl-media-progress {
  height: 100%;
  width: 0%;
  background: #34d399;
  transition: width 0.15s linear;
}
.gl-media-thumb.is-active {
  outline: 2px solid #10b981;
  outline-offset: 2px;
  opacity: 1 !important;
}
.gl-media-thumb {
  opacity: 0.72;
  transition: opacity 0.15s ease, outline 0.15s ease;
}
.gl-media-thumb:hover { opacity: 1; }
.gl-media-frame.needs-tap::after {
  content: 'Tap to play';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  pointer-events: none;
  z-index: 5;
}
.gl-media-counter {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
