/* SoloFire overview video: branded click-to-play player (Oct 2026).
   Used inline (homepage, /why-solofire/, /what-is-solofire/) and inside the lightbox. */

.ovid {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--r-card); overflow: hidden; background: var(--ink);
  box-shadow: 0 24px 48px rgba(0,22,40,.18);
  outline: none;
}
.ovid video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; object-fit: cover; }

/* Poster state */
.ovid-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0; cursor: pointer; background: var(--ink);
  display: block; text-align: left; font: inherit; color: #fff;
}
.ovid-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ovid-poster:hover img, .ovid-poster:focus-visible img { transform: scale(1.03); }
.ovid-poster::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,22,40,0) 45%, rgba(0,22,40,.78) 100%);
}
.ovid-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; background: var(--coral);
  display: flex; align-items: center; justify-content: center; z-index: 2;
  box-shadow: 0 16px 40px rgba(239,71,111,.45), 0 0 0 10px rgba(255,255,255,.14);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ovid-play::after { content: ''; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 6px; }
.ovid-poster:hover .ovid-play, .ovid-poster:focus-visible .ovid-play { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 20px 48px rgba(239,71,111,.55), 0 0 0 14px rgba(255,255,255,.18); }
.ovid-poster:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.ovid-label {
  position: absolute; left: 28px; right: 28px; bottom: 24px; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.ovid-label .t { font: 500 clamp(17px, 1.6vw, 22px)/1.25 var(--font-head); color: #fff; text-shadow: 0 2px 12px rgba(0,22,40,.5); }
.ovid-label .s { display: block; margin-top: 4px; font: 400 13px/1.4 var(--font-body); color: rgba(255,255,255,.82); }
.ovid-dur {
  flex: none; font: 600 12px/1 var(--font-label); letter-spacing: .08em;
  color: #fff; background: rgba(0,22,40,.55); border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: 8px 12px; backdrop-filter: blur(6px);
}

/* Playing state: custom control bar */
.ovid-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 36px 18px 14px; display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 12px; align-items: center;
  background: linear-gradient(180deg, rgba(0,22,40,0), rgba(0,22,40,.82));
  opacity: 0; transition: opacity .25s; color: #fff;
}
.ovid.is-playing:hover .ovid-bar, .ovid.is-playing:focus-within .ovid-bar, .ovid.is-paused .ovid-bar, .ovid.show-bar .ovid-bar { opacity: 1; }
.ovid-bar button {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14);
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.ovid-bar button:hover { background: rgba(255,255,255,.26); }
.ovid-bar button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ovid-bar svg { width: 18px; height: 18px; fill: #fff; }
.ovid-seek { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: rgba(255,255,255,.28); accent-color: var(--coral); cursor: pointer; margin: 0; }
.ovid-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); border: 2px solid #fff; }
.ovid-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--coral); border: 2px solid #fff; }
.ovid-time { font: 500 12px/1 var(--font-label); letter-spacing: .04em; color: rgba(255,255,255,.9); white-space: nowrap; }

/* End card */
.ovid-end {
  position: absolute; inset: 0; z-index: 4; display: none; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px; color: #fff;
  background:
    radial-gradient(640px 320px at 12% 115%, rgba(0,193,200,.22), transparent 70%),
    radial-gradient(560px 300px at 90% -15%, rgba(239,71,111,.18), transparent 70%),
    linear-gradient(115deg, rgba(0,22,40,.94) 20%, rgba(0,49,88,.94) 100%);
}
.ovid.is-ended .ovid-end { display: flex; }
.ovid-end .k { font: 600 12px/1 var(--font-label); letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.ovid-end h3 { color: #fff; font-size: clamp(22px, 2.6vw, 34px); margin-bottom: 10px; max-width: 560px; }
.ovid-end p { color: rgba(255,255,255,.82); font-size: 16px; max-width: 520px; margin-bottom: 22px; }
.ovid-end .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }
.ovid-end .replay { display: inline-flex; align-items: center; gap: 8px; color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,.45); border-radius: 999px; padding: 13px 24px; font: 500 14px/1 var(--font-body); cursor: pointer; }
.ovid-end .replay:hover { border-color: var(--teal); color: var(--teal); }

/* Chapter chips (seek) */
.ovid-chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ovid-chapters button {
  border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px;
  padding: 8px 14px; font: 500 13px/1 var(--font-label); cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.ovid-chapters button b { font-weight: 600; color: var(--coral); }
.ovid-chapters button:hover, .ovid-chapters button.is-current { border-color: var(--coral); background: var(--tint-coral); }

/* Inline section (homepage, why-solofire) */
.ovid-section { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.ovid-section .copy .badge { margin-bottom: 16px; }
.ovid-section .copy h2 { margin-bottom: 14px; }
.ovid-section .copy > p { font-size: 17px; }
.ovid-section .covers { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 10px; }
.ovid-section .covers li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: var(--body); }
.ovid-section .covers li b { flex: none; font: 600 12px/1.6 var(--font-label); letter-spacing: .06em; color: var(--teal); min-width: 36px; }
.ovid-section .covers li a { color: var(--navy); font-weight: 500; }
.ovid-section .covers li a:hover { color: var(--coral); }
.ovid-section .actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ovid-section--dark { color: #fff; }
.ovid-section--dark .copy h2 { color: #fff; }
.ovid-section--dark .copy > p, .ovid-section--dark .covers li { color: #E6E6E7; }
.ovid-section--dark .covers li a { color: #fff; }
.ovid-section--dark .ovid { box-shadow: 0 30px 60px rgba(0,0,0,.35); }

/* Lightbox host (reuses the site's .video-modal) */
.video-modal .ovid { border-radius: 16px; box-shadow: 0 40px 90px rgba(0,22,40,.5); }
.video-modal .ovid-caption { margin-top: 14px; text-align: center; color: rgba(255,255,255,.8); font: 400 14px/1.5 var(--font-body); }
.video-modal .ovid-caption a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Dedicated page */
.wis-hero { padding-bottom: calc(clamp(120px, 16vw, 240px) + 24px); }
.wis-player { margin-top: calc(-1 * clamp(120px, 16vw, 240px)); padding-bottom: 8px; }
.wis-player .ovid-wrap { max-width: 1040px; margin: 0 auto; }
.wis-chapters { max-width: 1040px; margin: 0 auto; }
.wis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wis-card { background: var(--tint-navy); border-radius: var(--r-sm); padding: 24px; }
.wis-card .at { display: block; font: 600 12px/1 var(--font-label); letter-spacing: .08em; color: var(--coral); margin-bottom: 10px; }
.wis-card h3 { font-size: 19px; margin-bottom: 8px; }
.wis-card p { font-size: 14.5px; }
.wis-card .link-more { margin-top: 12px; }
.wis-transcript { max-width: 820px; margin: 0 auto; }
.wis-transcript h3 { font-size: 20px; margin: 28px 0 8px; display: flex; gap: 12px; align-items: baseline; }
.wis-transcript h3 button { border: 0; background: var(--tint-coral); color: var(--coral); border-radius: 999px; padding: 4px 10px; font: 600 12px/1 var(--font-label); cursor: pointer; }
.wis-transcript p { font-size: 16px; line-height: 1.7; }
.wis-note { max-width: 820px; margin: 20px auto 0; font-size: 14px; color: var(--muted); }

@media (max-width: 1080px) {
  .ovid-section { grid-template-columns: 1fr; gap: 32px; }
  .wis-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ovid { border-radius: var(--r-sm); }
  .ovid-play { width: 64px; height: 64px; }
  .ovid-play::after { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; }
  .ovid-label { left: 16px; right: 16px; bottom: 14px; }
  .ovid-label .s { display: none; }
  .ovid-bar { grid-template-columns: auto 1fr auto auto; padding: 28px 10px 10px; gap: 8px; }
  .ovid-time { display: none; }
  .wis-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ovid-poster img, .ovid-play { transition: none; }
}
