/* C1 course cover: a muted 8 s loop sits where the intro video was; one click starts the real intro
   from 0:00 WITH sound. Pairs with course-cover-player.js. Target: .course-cover-wrap on /course/. */
.epi-cv {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: calc(var(--radius-xl, 20px) - 4px); background: #0a0e1a;
}
.epi-cv__loop, .epi-cv__intro {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover;
  border-radius: inherit; background: #0a0e1a;
}
.epi-cv__intro { z-index: 2; }
.epi-cv.is-playing .epi-cv__loop, .epi-cv.is-playing .epi-cv__play { visibility: hidden; }

/* the play control: sits in the band the loop keeps empty (58.8% from the top) */
.epi-cv__play {
  position: absolute; z-index: 3; left: 50%; top: 58.8%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 24px 10px 10px;
  border: 1px solid rgba(217,180,106,.55); border-radius: 999px; cursor: pointer;
  background: rgba(10,14,26,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #f4ede0; font: 600 16px/1.2 Inter, "Segoe UI", Arial, sans-serif !important; letter-spacing: .01em;
  white-space: nowrap; text-transform: none; margin: 0; min-height: 0; width: auto;
  box-shadow: 0 10px 34px rgba(0,0,0,.45);
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.epi-cv__play:hover, .epi-cv__play:focus-visible {
  border-color: #f1d491; background: rgba(10,14,26,.86);
  box-shadow: 0 10px 34px rgba(0,0,0,.45), 0 0 0 6px rgba(217,180,106,.14);
}
.epi-cv__play:focus-visible { outline: 2px solid #f1d491; outline-offset: 3px; }
.epi-cv__icon {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #f1d491, #c9a24e);
}
.epi-cv__icon::before {                                   /* play triangle */
  content: ""; position: absolute; left: 17px; top: 13px;
  border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #0a0e1a;
}
.epi-cv__icon::after {                                    /* one slow ring, every 4 s */
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(241,212,145,.7);
  opacity: 0; animation: epiCvRing 4s ease-out infinite 1.5s;
}
.epi-cv__label small { display: block; margin-top: 2px; font-weight: 500; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(244,237,224,.72); }
@keyframes epiCvRing { 0% { opacity: .9; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.55); } }

@media (max-width: 600px) {
  .epi-cv__play { gap: 10px; padding: 6px 16px 6px 6px; font-size: 14px !important; }
  .epi-cv__label small { display: inline; margin: 0 0 0 8px; font-size: 11px; }   /* phone: one line, "sound on" stays visible */
  .epi-cv__len { display: none; }
  .epi-cv__icon { width: 36px; height: 36px; }
  .epi-cv__icon::before { left: 14px; top: 10px; border-width: 8px 0 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .epi-cv__icon::after { animation: none; }
}
