/* Protected player — smart crop + invisible shield (no large overlays) */

.edu-lite-player {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: #000;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.edu-lite-player__play {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
  color: #fff;
}

.edu-lite-player__play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0B1426 0%, #1A2942 100%);
  color: #fff;
  font-size: 24px;
  padding-inline-start: 4px;
  box-shadow: 0 12px 32px rgba(11, 20, 38, 0.42);
}

.edu-lite-player__play-text {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.edu-lite-player__play[hidden],
.edu-lite-player--active .edu-lite-player__play {
  display: none;
}

.edu-lite-player__loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
}

.edu-lite-player--loading .edu-lite-player__loader {
  display: grid;
}

.edu-lite-player__loader::after {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  animation: edu-lite-spin 0.8s linear infinite;
}

@keyframes edu-lite-spin {
  to { transform: rotate(360deg); }
}

.edu-lite-player__frame {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Crop branding off-screen without dark bars */
.edu-lite-player__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  clip-path: inset(64px 0 0 0);
  -webkit-clip-path: inset(64px 0 0 0);
}

.edu-lite-player__iframe {
  position: absolute;
  width: 120%;
  height: 145%;
  left: 50%;
  top: 36%;
  transform: translate(-50%, -50%);
  border: 0;
  background: #000;
  pointer-events: none !important;
}

/* Invisible click-blockers on logo hotspots only */
.edu-lite-player__chip {
  position: absolute;
  z-index: 6;
  pointer-events: auto;
  background: transparent;
}

.edu-lite-player__chip--br {
  right: 0;
  bottom: 0;
  width: 88px;
  height: 42px;
}

.edu-lite-player__chip--tr {
  right: 0;
  top: 0;
  width: 100%;
  height: 52px;
}

.edu-lite-player__chip--bl {
  left: 0;
  bottom: 0;
  width: 56px;
  height: 36px;
}

/* Transparent layer — blocks iframe clicks, shows no visual cover */
.edu-lite-player__guard {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: transparent;
  pointer-events: auto;
}

/* Bottom veil — hides YouTube watermark without covering lesson content */
.edu-lite-player__veil {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  pointer-events: none;
}

.edu-lite-player--active::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 64px;
  z-index: 12;
  background: #000;
  pointer-events: none;
}

.edu-lite-player__veil--top {
  top: 0;
  height: 64px;
  z-index: 11;
  background: #000;
}

.edu-lite-player__veil--bottom {
  bottom: 0;
  height: 52px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.88) 55%, transparent 100%);
}

.edu-lite-player--active .edu-lite-player__veil--bottom {
  height: 72px;
}

/* Control bar — taller to cover player chrome / YouTube logo zone */
.edu-lite-player__chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 14px 22px;
  min-height: 72px;
  border-radius: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.92) 42%, rgba(0, 0, 0, 0.55) 78%, transparent 100%);
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.edu-lite-player--playing:not(.edu-lite-player--chrome-open) .edu-lite-player__chrome {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.edu-lite-player--chrome-open .edu-lite-player__chrome,
.edu-lite-player--paused .edu-lite-player__chrome,
.edu-lite-player:hover .edu-lite-player__chrome,
.edu-lite-player:focus-within .edu-lite-player__chrome {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.edu-lite-player__toggle,
.edu-lite-player__rewind,
.edu-lite-player__fs {
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
}

.edu-lite-player__rewind {
  font-size: 18px;
}

.edu-lite-player__track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.edu-lite-player__track--seek-back {
  cursor: pointer;
}

.edu-lite-player__track--seek-back::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--edu-lite-watched, 0%);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.edu-lite-player--fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  min-height: 0 !important;
  z-index: 99990;
  background: #000;
}

.edu-lite-player--native-fs .edu-lite-player__chrome {
  left: 12px;
  right: 12px;
  bottom: 12px;
}

.edu-lite-player__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.edu-lite-player__time {
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 700;
  min-width: 68px;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.pd-card__media .edu-lite-player {
  min-height: 0;
  height: 100%;
}

.pd-card__media .edu-lite-player__play {
  background: rgba(0, 0, 0, 0.62);
}

.pd-card__media .edu-lite-player,
.pd-card__media .edu-lite-player__viewport {
  background: #000;
}

.edu-lesson-embed--protected {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.course-learning-page--udemy .edu-lesson-embed--protected {
  min-height: 220px;
}

.course-preview-cert-link {
  display: inline-flex;
  margin-top: 10px;
  font-size: 13px;
}
