/* Onboarding video welcome — see app/ielts/onboarding-video.js */

body.onb-video-open {
  overflow: hidden;
}

.onb-video {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  animation: onbVideoIn 0.18s ease-out;
}

.onb-video--closing {
  opacity: 0;
  transition: opacity 0.18s ease-in;
}

@keyframes onbVideoIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.onb-video-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 26px 26px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.onb-video-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.onb-video-eyebrow {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2563eb;
}

.onb-video-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.onb-video-desc {
  margin: 6px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #64748b;
}

.onb-video-dur {
  flex-shrink: 0;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 12px;
}

.onb-video-frame {
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

.onb-video-play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: none;
  background: #0f172a;
  cursor: pointer;
  overflow: hidden;
}

.onb-video-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.onb-video-play iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.onb-video-play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.onb-video-play-btn > span {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: #1d4ed8;
  font-size: 1.5rem;
  padding-left: 5px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}

.onb-video-play:hover .onb-video-play-btn > span {
  transform: scale(1.06);
  background: #fff;
}

.onb-video-play--playing {
  cursor: default;
}

.onb-video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.onb-video-skip {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.onb-video-skip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.onb-video-note {
  font-size: 0.85rem;
  color: #64748b;
}

.onb-video-note strong {
  color: #334155;
}

@media (max-width: 620px) {
  .onb-video {
    padding: 12px;
  }

  .onb-video-card {
    padding: 20px 18px 16px;
    border-radius: 16px;
  }

  .onb-video-title {
    font-size: 1.15rem;
  }

  .onb-video-head {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }

  .onb-video-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }

  .onb-video-skip {
    width: 100%;
  }
}
