/* ══════════════════════════════════════════════════════════════
   VIDEO: course preview player, preview chip, course form uploader,
   site-media upload progress, home welcome video. Ported from Rand and
   recoloured to Monia's teal. Desktop layouts are untouched; only the
   new elements are styled here.
   ══════════════════════════════════════════════════════════════ */
:root {
  --mp-accent: var(--teal-500);
  --mp-accent-light: var(--teal-300);
  --mp-grad: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-700) 100%);
  --mp-rgb: 30, 150, 164;
  --mp-on-grad: #fff;
}

/* ── PREVIEW VIDEO (optional trailer) ─────────────────────────
   Only rendered when the owner uploaded one; without it every page
   above looks exactly as before. Triggers: a chip on catalogue cards,
   a pill in the course hero, and the cover in the buy card. The player
   grows out of the pressed thumbnail (course-preview.js). */
.pv-play { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.pv-play svg { width: 42%; height: 42%; margin-left: 8%; }  /* play arrows never mirror in RTL */

/* Catalogue chip: sits on the cover, above the card's stretched link */
.pv-chip { position: absolute; z-index: 2; bottom: var(--sp-3); inset-inline-start: var(--sp-3); display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding-block: 4px; padding-inline: 4px 12px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius-full); background: rgba(9, 22, 40, 0.62); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); color: #fff; font: inherit; font-size: 0.75rem; font-weight: var(--fw-bold); line-height: 1; cursor: pointer; transition: background var(--transition-base), transform 0.35s var(--ease-out-soft), box-shadow var(--transition-base); }
.pv-chip__icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mp-grad); color: var(--mp-on-grad); }
.pv-chip__icon svg { width: 11px; height: 11px; margin-left: 1px; }
.pv-chip:hover, .pv-chip:focus-visible { background: rgba(9, 22, 40, 0.86); transform: scale(1.05); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.6); }
.pv-chip:focus-visible { outline: 2px solid var(--mp-accent-light); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .cl-card:hover .pv-chip__icon { animation: pv-pulse 1.6s ease-out infinite; }
}

/* Course hero pill */
.cd-watch { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: 52px; margin-top: var(--sp-6); padding-block: 6px; padding-inline: 6px var(--sp-5); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-weight: var(--fw-bold); cursor: pointer; transition: background var(--transition-base), border-color var(--transition-base), transform 0.35s var(--ease-out-soft); }
.cd-watch:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(var(--mp-rgb), 0.6); transform: translateY(-2px); }
.cd-watch:focus-visible { outline: 3px solid var(--mp-accent-light); outline-offset: 3px; }
.cd-watch__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mp-grad); color: var(--mp-on-grad); }
.cd-watch__icon svg { width: 16px; height: 16px; margin-left: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .cd-watch__icon { animation: pv-pulse 2.4s ease-out infinite; }
}
.cd-pv-note { display: inline-block; margin: var(--sp-5) 0 0; padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-lg); background: rgba(var(--mp-rgb), 0.16); color: var(--mp-accent-light); font-size: 0.875rem; font-weight: var(--fw-semibold); }
.cd-pv-note.is-failed { background: rgba(196, 57, 44, 0.2); color: #ffc9c2; }

/* Buy-card cover becomes a play button */
.pv-cover { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; cursor: pointer; font: inherit; color: #fff; }
.pv-cover img { transition: transform 0.8s var(--ease-out-soft); }
.pv-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, rgba(9, 22, 40, 0.1), rgba(9, 22, 40, 0.62)); }
.pv-cover__play { position: absolute; z-index: 1; top: 46%; left: 50%; width: 64px; height: 64px; background: rgba(255, 255, 255, 0.96); color: var(--navy-800); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.55); transform: translate(-50%, -50%); transition: transform 0.45s var(--ease-out-soft); }
.pv-cover__label { position: absolute; z-index: 1; inset-inline: 0; bottom: var(--sp-3); font-size: 0.9375rem; font-weight: var(--fw-bold); text-align: center; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.pv-cover:hover img { transform: scale(1.05); }
.pv-cover:hover .pv-cover__play { transform: translate(-50%, -50%) scale(1.1); }
.pv-cover:focus-visible { outline: 3px solid var(--mp-accent-light); outline-offset: -3px; }
@media (prefers-reduced-motion: no-preference) {
  .pv-cover__play { animation: pv-pulse-light 2.4s ease-out infinite; }
}

@keyframes pv-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--mp-rgb), 0.55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(var(--mp-rgb), 0); } }
@keyframes pv-pulse-light { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5), 0 12px 30px -8px rgba(0, 0, 0, 0.55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0), 0 12px 30px -8px rgba(0, 0, 0, 0.55); } }

/* The player */
html.pv-lock { overflow: hidden; }
.pv { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: var(--sp-4); border: 0; background: transparent; color: #fff; overflow: auto; }
.pv[open] { display: grid; place-items: center; }
.pv::backdrop { background: rgba(5, 12, 22, 0.8); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
@media (prefers-reduced-motion: no-preference) {
  .pv[open]::backdrop { animation: pv-fade 0.4s ease-out; }
  .pv.is-closing::backdrop { animation: pv-fade-out 0.34s ease-in forwards; }
}
@keyframes pv-fade { from { opacity: 0; } }
@keyframes pv-fade-out { to { opacity: 0; } }

.pv__panel { position: relative; isolation: isolate; width: min(1040px, 100%); padding: clamp(1rem, 0.75rem + 1vw, 1.5rem); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; background: linear-gradient(160deg, #0f2440 0%, #0a1729 60%, #081321 100%); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8); }
/* Ambient light from the cover, like a screen glowing on a dark room */
.pv__glow { position: absolute; z-index: -1; inset: -20%; background-position: center; background-size: cover; filter: blur(70px) saturate(1.6) brightness(0.7); opacity: 0.16; pointer-events: none; }
.pv__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.pv__heading { min-width: 0; }
.pv__eyebrow { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0 0 4px; color: var(--mp-accent-light); font-size: 0.8125rem; font-weight: var(--fw-bold); letter-spacing: 0.04em; }
.pv__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mp-accent); }
@media (prefers-reduced-motion: no-preference) {
  .pv[data-state="playing"] .pv__dot { animation: pv-pulse 1.6s ease-out infinite; }
}
.pv__title { margin: 0; color: #fff !important; font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.375rem); font-weight: var(--fw-extrabold); line-height: 1.45; overflow-wrap: anywhere; }
.pv__close { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; transition: background var(--transition-fast), transform 0.35s var(--ease-out-soft); }
.pv__close svg { width: 18px; height: 18px; }
.pv__close:hover { background: rgba(255, 255, 255, 0.16); transform: rotate(90deg); }
.pv__close:focus-visible { outline: 2px solid var(--mp-accent-light); outline-offset: 2px; }

.pv__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.pv__video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pv__loader { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity var(--transition-base); }
.pv__loader span { width: 46px; height: 46px; border: 3px solid rgba(255, 255, 255, 0.16); border-top-color: var(--mp-accent); border-radius: 50%; animation: pv-spin 0.8s linear infinite; }
.pv[data-state="loading"] .pv__loader { opacity: 1; }
@keyframes pv-spin { to { transform: rotate(360deg); } }
.pv__msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--sp-4); padding: var(--sp-6); background: rgba(5, 12, 22, 0.85); text-align: center; }
.pv__msg[hidden] { display: none; }
.pv__msg p { margin: 0; max-width: 36ch; color: rgba(255, 255, 255, 0.86); }
.pv__retry { min-height: 44px; padding: 0 var(--sp-5); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: var(--radius-full); background: transparent; color: #fff; font: inherit; font-weight: var(--fw-bold); cursor: pointer; }
.pv__retry:hover { background: rgba(255, 255, 255, 0.1); }
/* Leaves the bottom strip free so the native controls stay usable */
.pv__replay { position: absolute; inset: 0 0 56px; display: grid; place-items: center; padding: 0; border: 0; background: radial-gradient(circle, rgba(5, 12, 22, 0.6), rgba(5, 12, 22, 0.2) 70%); cursor: pointer; }
.pv__replay[hidden] { display: none; }
.pv__replay .pv-play { width: 76px; height: 76px; background: rgba(255, 255, 255, 0.96); color: var(--navy-800); transition: transform 0.4s var(--ease-out-soft); }
.pv__replay:hover .pv-play { transform: scale(1.08); }
@media (prefers-reduced-motion: no-preference) {
  .pv__replay:not([hidden]) .pv-play { animation: pv-pop 0.5s var(--ease-out-soft) both, pv-pulse-light 2.4s 0.5s ease-out infinite; }
}
@keyframes pv-pop { from { opacity: 0; transform: scale(0.6); } }

.pv__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-4); }
.pv__foot .hbtn { min-width: 200px; border: 0; cursor: pointer; font-family: inherit; }
.pv__price { display: inline-flex; align-items: baseline; gap: var(--sp-2); margin-inline-end: auto; color: #fff; font-size: 1.625rem; font-weight: var(--fw-extrabold); font-variant-numeric: tabular-nums; }
.pv__price del { color: rgba(255, 255, 255, 0.55); font-size: 1rem; font-weight: var(--fw-medium); }
.pv__price--free { color: #8fe0bf; font-size: 1.25rem; }
/* The end of the preview is the moment to act: the button calls for attention */
@media (prefers-reduced-motion: no-preference) {
  .pv[data-state="ended"] .pv__foot .hbtn { animation: pv-pulse 1.8s ease-out infinite; }
}

@media (max-width: 640px) {
  .pv { padding: var(--sp-2); }
  .pv__panel { padding: var(--sp-3); border-radius: 20px; }
  .pv__head { margin-bottom: var(--sp-3); }
  .pv__stage { border-radius: 12px; }
  .pv__foot .hbtn { flex: 1; min-width: 0; }
  .pv__price { font-size: 1.375rem; }
  .cd-watch { width: 100%; justify-content: center; }
  .cd-card .pv-cover { display: none; }   /* the hero pill does this job on phones */
}


/* ── Preview video uploader (course form, section 4) ──────────────────
   One block whose data-state decides what shows: the current video, the
   drop zone, the upload progress, or the "will be removed" notice. */
.pvu { display: grid; gap: var(--sp-3); }
.pvu > .pvu__current, .pvu > .pvu__removed, .pvu > .pvu__drop, .pvu > .pvu__progress, .pvu > .pvu__cancel { display: none; }
.pvu:is([data-state="ready"], [data-state="processing"], [data-state="failed"]) > .pvu__current { display: flex; }
.pvu:is([data-state="empty"], [data-state="pick"], [data-state="uploaded"]) > .pvu__drop { display: flex; }
.pvu[data-state="pick"] > .pvu__cancel { display: inline-flex; }
.pvu:is([data-state="uploading"], [data-state="uploaded"]) > .pvu__progress { display: flex; }
.pvu[data-state="removed"] > .pvu__removed { display: flex; }
.pvu[data-state="uploaded"] > .pvu__drop { order: 2; min-height: 0; padding: var(--sp-4); }

.pvu__current, .pvu__progress, .pvu__removed { align-items: center; gap: var(--sp-4); padding: var(--sp-4); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); background: var(--color-surface); }
.pvu__badge { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }
.pvu__badge svg { width: 20px; height: 20px; }
.pvu__badge--ready { background: var(--color-success-bg); color: var(--color-success-text); }
.pvu__badge--processing { background: var(--color-accent-bg); color: var(--color-accent-text); }
.pvu__badge--failed { background: var(--color-error-bg); color: var(--color-error-text); }
.pvu__info { display: grid; flex: 1; gap: 2px; min-width: 0; }
.pvu__info strong { font-size: var(--fs-sm); color: var(--color-text); }
.pvu__info a { width: fit-content; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--color-primary); }
.pvu__remove { padding-inline: var(--sp-3); }
.pvu__remove svg { width: 18px; height: 18px; }
.pvu__remove:hover { border-color: var(--color-error); color: var(--color-error); }
.pvu__removed { justify-content: space-between; background: var(--color-warning-bg); border-color: transparent; font-size: var(--fs-sm); color: var(--color-warning-text); }
.pvu__link { width: fit-content; padding: var(--sp-1) 0; border: 0; background: none; color: var(--color-primary); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-bold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.pvu__vid { flex-shrink: 0; width: 112px; aspect-ratio: 16 / 9; border-radius: var(--radius-md); object-fit: cover; background: var(--mp-on-grad); }
.pvu__meta { display: grid; flex: 1; gap: var(--sp-2); min-width: 0; }
.pvu__row { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-sm); }
.pvu__name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: var(--fw-semibold); color: var(--color-text); }
.pvu__pct { flex-shrink: 0; font-variant-numeric: tabular-nums; color: var(--color-text-secondary); }
.pvu__bar { position: relative; height: 6px; overflow: hidden; border-radius: var(--radius-full); background: var(--color-background-alt); }
.pvu__bar span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: inherit; background: var(--mp-grad); transition: width 0.3s ease-out; }
.pvu[data-state="uploading"] .pvu__bar span { background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%), var(--mp-grad); background-size: 200% 100%, 100% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .pvu[data-state="uploading"] .pvu__bar span { animation: pvu-shine 1.4s linear infinite; }
  .pvu__progress, .pvu__current, .pvu__removed { animation: sf-in 0.3s ease-out; }
}
@keyframes pvu-shine { from { background-position: 200% 0, 0 0; } to { background-position: -200% 0, 0 0; } }
.pvu__status { font-size: var(--fs-xs); color: var(--color-text-secondary); }
.pvu[data-state="uploaded"] .pvu__status { color: var(--color-success-text); font-weight: var(--fw-semibold); }
.pvu[data-state="uploaded"] .pvu__bar span { background: var(--color-success); }

@media (max-width: 640px) {
  .pvu__current { flex-wrap: wrap; }
  .pvu__current .pvu__info { flex-basis: calc(100% - 60px); }
  .pvu__vid { width: 84px; }
}

/* Home welcome video slot: upload progress and encoding state */
.ow-slot__progress { display: none; height: 6px; overflow: hidden; border-radius: var(--radius-full); background: var(--color-background-alt); }
.ow-slot.is-sending .ow-slot__progress { display: block; }
.ow-slot__progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--mp-grad); transition: width 0.3s ease-out; }
.ow-slot__hint.is-error { color: var(--color-error); font-weight: var(--fw-semibold); }
.ow-slot__placeholder--video.is-ready span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; background: #5fd3a3; box-shadow: 0 0 0 4px rgba(95, 211, 163, 0.25); }
.ow-slot__placeholder--video.is-processing { background: linear-gradient(145deg, #5a4520, var(--navy-900)); }
.ow-slot__placeholder--video.is-failed { background: linear-gradient(145deg, #6b211a, var(--navy-900)); }

/* ── HOME WELCOME VIDEO PLAYER ─────────────────────────────────
   Lives inside the existing .hero-media-frame (its size, shape and the
   page layout stay exactly as they were). Plays muted on a loop like a
   living portrait; one tap restarts it with sound and these controls. */
.hv > :not(video) { line-height: 1.45; }
.hv .hv__video { cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .hv .hv__video { transform: scale(1.04); transition: transform 1.6s var(--ease-out-soft); }
  .hv.is-live .hv__video { transform: none; }
}
.hv__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(6, 27, 46, 0.78) 0%, rgba(6, 27, 46, 0.16) 40%, transparent 62%); pointer-events: none; transition: opacity 0.5s; }
.hv[data-state="watching"] .hv__shade { opacity: 0.5; }

/* Watch button: glass pill with a pulsing teal play button */
.hv__cta { position: absolute; z-index: 3; inset-inline-start: 14px; bottom: 14px; max-width: calc(100% - 28px); display: flex; align-items: center; gap: 12px; padding-block: 8px; padding-inline: 8px 18px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-full); background: rgba(6, 27, 46, 0.5); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); color: #fff; font: inherit; text-align: start; cursor: pointer; transition: transform 0.45s var(--ease-out-soft), opacity 0.35s, background 0.3s, visibility 0s; }
.hv__cta:hover { background: rgba(6, 27, 46, 0.72); transform: translateY(-2px); }
.hv__cta:focus-visible { outline: 3px solid var(--mp-accent-light); outline-offset: 3px; }
.hv__cta-icon { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mp-grad); color: #fff; box-shadow: 0 8px 20px -6px rgba(var(--mp-rgb), 0.75); }
.hv__cta-icon svg { width: 18px; height: 18px; margin-left: 3px; }   /* play arrows never mirror */
.hv__cta-icon::before, .hv__cta-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(var(--mp-rgb), 0.75); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hv__cta-icon::before { animation: hv-ring 2.4s ease-out infinite; }
  .hv__cta-icon::after { animation: hv-ring 2.4s 1.2s ease-out infinite; }
}
@keyframes hv-ring { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.75); } }
.hv__cta-text { display: grid; gap: 1px; min-width: 0; }
.hv__cta-text strong { font-size: 0.9688rem; font-weight: var(--fw-bold); }
.hv__cta-text small { display: flex; gap: 8px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.8); }
.hv__dur { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.hv__dur:not(:empty)::before { content: "·"; margin-inline-end: 8px; opacity: 0.6; }
.hv:is([data-state="watching"], [data-state="paused"]) .hv__cta,
.hv.is-broken .hv__cta { opacity: 0; visibility: hidden; transform: translateY(12px); transition: transform 0.35s, opacity 0.25s, visibility 0s 0.35s; }

/* Player bar */
.hv__bar { position: absolute; z-index: 3; inset-inline: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 6px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-full); background: rgba(6, 27, 46, 0.55); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s, transform 0.4s var(--ease-out-soft), visibility 0s 0.4s; }
.hv:is([data-state="watching"], [data-state="paused"]) .hv__bar { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s 0.15s, transform 0.45s 0.15s var(--ease-out-soft), visibility 0s; }
@media (hover: hover) {
  .hv[data-state="watching"]:not(:hover):not(:focus-within):not(.is-seeking) .hv__bar { opacity: 0; transform: translateY(10px); transition-delay: 1.2s; }
}
.hv__btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background 0.2s; }
.hv__btn:hover { background: rgba(255, 255, 255, 0.14); }
.hv__btn:focus-visible { outline: 2px solid var(--mp-accent-light); outline-offset: 1px; }
.hv__btn svg { width: 18px; height: 18px; }
.hv__btn .hv-i-play { margin-left: 2px; }
.hv[data-state="paused"] .hv-i-pause, .hv:not([data-state="paused"]) [data-hv="toggle"] .hv-i-play,
.hv.is-muted .hv-i-sound, .hv:not(.is-muted) .hv-i-muted { display: none; }
.hv__track { position: relative; flex: 1; min-width: 40px; height: 24px; cursor: pointer; touch-action: none; }
.hv__track::before, .hv__fill { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; transition: height 0.2s, margin 0.2s; }
.hv__track::before { background: rgba(255, 255, 255, 0.24); }
.hv__fill { background: var(--mp-grad); transform: scaleX(0); transform-origin: left; }
.hv__track:hover::before, .hv__track:hover .hv__fill, .hv.is-seeking .hv__track::before, .hv.is-seeking .hv__fill { height: 6px; margin-top: -3px; }
.hv__track:focus-visible { outline: 2px solid var(--mp-accent-light); outline-offset: 2px; border-radius: 6px; }
.hv__time { flex-shrink: 0; min-width: 38px; font-size: 0.75rem; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; text-align: center; color: rgba(255, 255, 255, 0.85); }

/* Sound bars while she speaks */
.hv__eq { position: absolute; z-index: 3; top: 14px; inset-inline-end: 14px; display: flex; align-items: flex-end; gap: 3px; height: 16px; padding: 8px 9px; box-sizing: content-box; border-radius: var(--radius-full); background: rgba(6, 27, 46, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: scale(0.8); transition: opacity 0.3s, transform 0.4s var(--ease-out-soft); }
.hv__eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--mp-accent-light); transform-origin: bottom; transform: scaleY(0.35); }
.hv[data-state="watching"]:not(.is-muted) .hv__eq { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .hv[data-state="watching"]:not(.is-muted) .hv__eq i { animation: hv-eq 0.9s ease-in-out infinite alternate; }
  .hv__eq i:nth-child(2) { animation-delay: -0.3s !important; }
  .hv__eq i:nth-child(3) { animation-delay: -0.6s !important; }
  .hv__eq i:nth-child(4) { animation-delay: -0.15s !important; }
}
@keyframes hv-eq { 0% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0.5); } }

/* Big play while paused; a short pulse on every play/pause */
.hv__big, .hv__flash { position: absolute; z-index: 2; top: 50%; left: 50%; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; pointer-events: none; }
.hv__big { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: rgba(255, 255, 255, 0.95); color: var(--navy-800); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.6); opacity: 0; transform: scale(0.7); transition: opacity 0.25s, transform 0.4s var(--ease-out-soft); }
.hv__big svg { width: 28px; height: 28px; margin-left: 4px; }
.hv[data-state="paused"] .hv__big { opacity: 1; transform: none; }
.hv__flash { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(6, 27, 46, 0.55); color: #fff; opacity: 0; }
.hv__flash svg { width: 26px; height: 26px; }
.hv__flash .hv-i-play { margin-left: 3px; }
.hv__flash.is-on { animation: hv-flash 0.6s ease-out; }
.hv[data-state="paused"] .hv__flash { display: none; }
@keyframes hv-flash { 0% { opacity: 0.95; transform: scale(0.7); } 100% { opacity: 0; transform: scale(1.35); } }
.hv.is-broken .hv__bar, .hv.is-broken .hv__eq { display: none; }

/* Theater mode on wide screens: the headline steps back while she speaks */
@media (min-width: 901px) {
  .hero-content { transition: opacity 0.6s var(--ease-out-soft), filter 0.6s; }
  .hero-grid.is-theater .hero-content { opacity: 0.35; filter: saturate(0.5); }
  .hero-grid.is-theater .hero-content:hover, .hero-grid.is-theater .hero-content:focus-within { opacity: 1; filter: none; }
}

/* Full screen: letterboxed */
.hv.is-full { max-width: none; border-radius: 0; display: flex; align-items: center; background: #000; }
.hv.is-full .hv__video { width: 100%; height: 100%; object-fit: contain; }
.hv.is-full .hv__bar { inset-inline: 50% auto; width: min(720px, calc(100% - 32px)); bottom: 24px; transform: translateX(-50%); }
[dir="rtl"] .hv.is-full .hv__bar { transform: translateX(50%); }

@media (max-width: 640px) {
  .hv__cta { inset-inline-start: 10px; bottom: 10px; max-width: calc(100% - 20px); gap: 10px; padding-block: 6px; }
  .hv__cta-icon { width: 40px; height: 40px; }
  .hv__cta-text strong { font-size: 0.875rem; }
  .hv__cta-text small { font-size: 0.75rem; }
  .hv__bar { inset-inline: 8px; bottom: 8px; gap: 2px; padding: 4px; }
  .hv__btn { width: 34px; height: 34px; }
  .hv__big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}

/* ── Monia fit ─────────────────────────────────────────────── */
/* Card covers are links: the chip sits beside the link in this box */
.pv-mediawrap { position: relative; }
.pv-mediawrap .pv-chip { z-index: 5; }
/* The player footer reuses the page's own buttons */
.pv__foot .btn-card, .pv__foot .btn-cd { min-width: 200px; }
.pv__foot .cd-action-form { display: contents; }
/* The purchase card's cover keeps its own centring when it becomes a button */
.cd-card .pv-cover { display: flex; }
@media (max-width: 640px) { .cd-card .pv-cover { display: none; } }
