body.modern-site.video-enhanced {
  background: var(--theme-page-background, #f6f7f2) !important;
}

body.modern-site.video-enhanced .modern-main {
  width: min(100% - 2rem, 1360px);
  margin: 1.5rem auto 3.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.video-library [hidden],
.video-dialog [hidden] {
  display: none !important;
}

body.modern-site .video-library p,
body.modern-site .video-library h2,
body.modern-site .video-library h3 {
  margin: 0;
}

body.modern-site .video-library h2 {
  font: 400 clamp(2.1rem, 3.6vw, 3.5rem)/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

.video-library h2 em {
  color: var(--theme-accent, #946237);
}

body.modern-site .video-eyebrow {
  margin: 0 0 0.8rem;
  color: var(--theme-accent, #80603c);
  font: 800 0.7rem/1.5 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 4.5vw, 4.5rem);
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(ellipse at 0 0, #3f6962, transparent 65%), #193e3f;
  color: #fffefa;
}

.video-hero__copy {
  animation: video-rise 650ms ease both;
}

.video-hero .video-eyebrow {
  color: #eac89a;
}

.video-hero h1 {
  margin: 0 0 1.25rem;
  color: #fffefa;
  font: 400 clamp(3.5rem, 6.5vw, 6.7rem)/1.04 Georgia, "Times New Roman", serif;
  letter-spacing: -0.05em;
}

.video-hero h1 em {
  display: block;
  color: #eac89a;
}

.video-hero__lead {
  max-width: 35rem;
  color: #e7eee5;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

body.modern-site .video-hero__facts {
  margin-top: 1.5rem;
  color: #eac89a;
  font-size: 0.76rem;
  font-weight: 750;
}

.video-hero__facts span {
  padding-inline: 0.4rem;
}

body.modern-site .video-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 48px;
  margin-top: 1.8rem;
  padding: 0.75rem 1.1rem;
  border-radius: 9px;
  background: #eac89a;
  color: #193e3f;
  font-size: 0.87rem;
  font-weight: 750;
  text-decoration: none;
}

.video-button:hover {
  transform: translateY(-3px);
}

.video-hero__feature {
  overflow: hidden;
  border: 1px solid #64847c;
  border-radius: 18px;
  background: var(--theme-surface, #fffefa);
  color: var(--theme-ink, #193e3f);
  box-shadow: 0 18px 35px #082d2c44;
  animation: video-rise 750ms 80ms ease both;
}

body.modern-site .video-hero__feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  border-radius: 0;
  object-fit: cover;
  object-position: 50% 35%;
}

.video-hero__feature > div {
  padding: 1.25rem 1.5rem;
}

body.modern-site .video-hero__feature .video-eyebrow {
  color: var(--theme-accent, #80603c);
  font-size: 0.61rem;
}

body.modern-site .video-hero__feature h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.video-feature-play {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  min-height: 44px;
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--theme-ink, #166562);
  font-weight: 750 !important;
  font-size: 0.85rem !important;
  cursor: pointer;
}

.video-feature-play span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--theme-raised, #e8eee1);
  font-size: 0.75rem;
}

body.modern-site .video-credit {
  max-width: 63rem;
  margin: 1.2rem auto 0;
  padding: 0 0.6rem;
  color: var(--theme-muted, #526a63);
  font-size: 0.77rem;
  text-align: center;
}

.video-catalog {
  margin-top: clamp(3rem, 6vw, 5rem);
  scroll-margin-top: 120px;
}

.video-catalog__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.video-catalog__heading > a {
  padding-block: 0.65rem;
  font-size: 0.8rem;
}

.video-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--theme-line, #d8e2d6);
  border-radius: 15px;
  background: var(--theme-surface, #fffefa);
}

.video-filters label {
  display: grid;
  gap: 0.45rem;
  color: var(--theme-ink, #3e5e57);
  font-size: 0.78rem;
  font-weight: 700;
}

.video-filters input,
.video-filters select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--theme-line, #bbcec4);
  border-radius: 8px;
  background: var(--theme-surface, #fff);
  color: var(--theme-ink, #193e3f);
  font-size: 0.92rem !important;
}

.video-filter-row,
.video-series-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.video-filter-row {
  justify-content: space-between;
  margin: 1.25rem 0;
}

.video-series-filters button,
.video-reset {
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--theme-line, #c9d9cc);
  border-radius: 30px;
  background: var(--theme-surface, #fffefa);
  color: var(--theme-ink, #193e3f);
  font-size: 0.8rem !important;
  cursor: pointer;
}

.video-series-filters button[aria-pressed="true"] {
  border-color: #193e3f;
  background: #193e3f;
  color: #fffefa;
}

.video-reset {
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body.modern-site .video-results {
  margin: 1rem 0;
  color: var(--theme-muted, #526a63);
  font-size: 0.79rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--theme-line, #d6e0d4);
  border-radius: 17px;
  background: var(--theme-surface, #fffefa);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 32px #173f4114;
}

.video-card__art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  padding: 1.25rem;
  border: 0;
  background: radial-gradient(ellipse at 80% 10%, #426e63, transparent 75%), #234b4b;
  color: #eac89a;
  text-align: left;
  cursor: pointer;
}

.video-card__art::after {
  position: absolute;
  top: -25%;
  right: -15%;
  width: 80%;
  height: 150%;
  border: 1px solid #eac89a33;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.video-card--romans .video-card__art {
  background: var(--theme-warm, radial-gradient(ellipse at 90% 15%, #dac9a5, transparent 80%), #d5dfc6);
  color: var(--theme-ink, #304f43);
}

.video-card__series {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.video-card__number {
  position: absolute;
  bottom: -0.6rem;
  left: 1.1rem;
  opacity: 0.35;
  font: italic 5.8rem/1 Georgia, serif;
  letter-spacing: -0.06em;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding-left: 3px;
  transform: translate(-50%, -35%);
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
  transition: background-color 180ms ease;
}

.video-card__art:hover .video-card__play {
  background: #ffffff24;
}

.video-card__duration {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  background: #102c2c;
  color: #fffefa;
  font-size: 0.72rem;
}

.video-card__body {
  padding: 1.3rem 1.4rem 1.5rem;
}

.video-card__label {
  color: var(--theme-accent, #7f603d);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.modern-site .video-card h3 {
  margin: 0.65rem 0 1.2rem;
  font: 400 clamp(1.4rem, 2vw, 1.7rem)/1.25 Georgia, serif;
  letter-spacing: -0.025em;
}

body.modern-site .video-card h3 a {
  color: var(--theme-ink, #193e3f);
  text-decoration: none;
}

.video-card h3 a:hover {
  text-decoration: underline;
}

.video-card__provider {
  color: var(--theme-muted, #526a63);
  font-size: 0.73rem;
}

.video-empty {
  padding: 3rem 1.5rem;
  border: 1px dashed var(--theme-line, #bacdbd);
  border-radius: 14px;
  text-align: center;
}

.video-viewing-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 3.5rem;
  padding: clamp(1.4rem, 3vw, 3rem);
  border: 1px solid var(--theme-line, #e0d4bd);
  border-radius: 20px;
  background: var(--theme-warm, #f3ecde);
}

body.modern-site .video-viewing-note h2 {
  font-size: 2.1rem;
}

body.modern-site .video-viewing-note p {
  margin-top: 0.7rem;
  color: var(--theme-ink, #4b6057);
  font-size: 0.88rem;
}

.video-viewing-note details {
  margin-top: 1rem;
}

.video-viewing-note summary {
  padding-block: 0.5rem;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
}

.video-study-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 0;
}

.video-study-links a {
  padding-block: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.video-study-links span {
  margin-left: 0.5rem;
}

.video-original {
  border-top: 1px solid var(--theme-line, #cfdccd);
}

.video-original > summary {
  padding: 1.2rem 0;
  color: var(--theme-muted, #526a63);
  font-size: 0.8rem;
  cursor: pointer;
}

.video-original__body {
  padding-block: 1.3rem;
}

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

.video-dialog {
  width: min(96vw, 1120px);
  max-width: none;
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 16px;
  background: var(--theme-surface, #fffefa);
  color: var(--theme-ink, #193e3f);
  box-shadow: 0 25px 90px #061b1ac4;
}

.video-dialog::backdrop {
  background: #081e20cf;
}

.video-dialog__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  background: #193e3f;
  color: #fffefa;
}

.video-dialog__header .video-eyebrow {
  margin: 0 0 0.3rem;
  color: #eac89a;
  font-size: 0.6rem;
}

.video-dialog__header h2 {
  margin: 0;
  font: 500 clamp(1.1rem, 2vw, 1.65rem)/1.2 Georgia, serif;
}

.video-dialog__meta {
  margin: 0.4rem 0 0;
  color: #d3e0d3;
  font-size: 0.7rem;
}

.video-dialog button,
.video-dialog input {
  font: inherit;
}

.video-dialog button,
.video-playback-tools a {
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--theme-line, #bacdc3);
  border-radius: 8px;
  background: var(--theme-surface, #fffefa);
  color: var(--theme-ink, #193e3f);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.video-dialog button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.video-dialog .video-dialog__close {
  flex: 0 0 auto;
  border-color: #77918a;
  background: transparent;
  color: #fffefa;
}

.video-dialog__close span {
  margin-left: 0.4rem;
  font-size: 1rem;
}

.video-stage {
  position: relative;
  width: 100%;
  min-height: 200px;
  max-height: 62dvh;
  aspect-ratio: 16 / 9;
  background: #111e1e;
}

.video-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-dialog__body {
  padding: 1rem 1.3rem 1.4rem;
}

.video-player-status {
  margin: 0 0 0.8rem;
  color: var(--theme-ink, #46635d);
  font-size: 0.8rem;
}

.video-playback-tools,
.video-playback-tools > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.video-playback-tools {
  justify-content: space-between;
}

body.modern-site .video-original-link {
  color: var(--theme-ink, #075e73);
  text-decoration: none;
}

.video-breaks {
  margin-top: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--theme-line, #d3dfcf);
  border-radius: 12px;
  background: var(--theme-raised, #f1f5ee);
}

.video-breaks summary {
  padding-block: 0.6rem;
  font-size: 0.87rem;
  font-weight: 750;
  cursor: pointer;
}

.video-breaks p,
.video-break-list {
  margin: 0.65rem 0;
  color: var(--theme-ink, #46635d);
  font-size: 0.8rem;
}

.video-skip-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  margin: 0.8rem 0;
  font-size: 0.83rem;
  font-weight: 650;
}

.video-skip-toggle input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  accent-color: #126f75;
}

.video-break-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
}

.video-break-form > div {
  display: grid;
  flex: 1 1 180px;
  gap: 0.35rem;
}

.video-break-form label {
  font-size: 0.75rem;
  font-weight: 700;
}

.video-break-form input {
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--theme-line, #b8cabe);
  border-radius: 7px;
  background: var(--theme-surface, white);
  color: var(--theme-ink, #193e3f);
  font-size: 1rem;
}

.video-break-form button[type="submit"] {
  align-self: center;
  background: #193e3f;
  color: #fffefa;
}

.video-break-list {
  padding: 0;
  list-style: none;
}

.video-break-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--theme-line, #d1decf);
}

.video-dialog .video-modal-note {
  margin: 1rem 0;
  color: var(--theme-muted, #526a63);
  font-size: 0.74rem;
}

.video-message-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--theme-line, #d3dfcf);
}

.video-message-nav span {
  color: var(--theme-muted, #526a63);
  font-size: 0.75rem;
}

@keyframes video-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 950px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-hero {
    gap: 2rem;
    padding: 2.2rem;
  }
}

@media (max-width: 650px) {
  body.modern-site.video-enhanced .modern-main {
    width: calc(100% - 1.25rem);
    margin-top: 0.65rem;
  }

  .video-hero {
    grid-template-columns: 1fr;
    padding: 2rem 1.3rem 1.3rem;
    border-radius: 18px;
  }

  .video-hero h1 {
    font-size: clamp(3.4rem, 14vw, 5rem);
  }

  .video-hero__feature {
    max-width: 400px;
  }

  .video-filters,
  .video-viewing-note {
    grid-template-columns: 1fr;
  }

  .video-filters {
    padding: 1rem;
  }

  .video-series-filters {
    gap: 0.4rem;
  }

  .video-series-filters button {
    padding-inline: 0.8rem;
    font-size: 0.74rem !important;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card__art {
    aspect-ratio: 2.25 / 1;
  }

  .video-dialog {
    width: 98vw;
    max-height: 96dvh;
    border-radius: 10px;
  }

  .video-dialog__header,
  .video-dialog__body {
    padding: 0.9rem;
  }

  .video-message-nav span {
    order: -1;
    flex-basis: 100%;
  }

  .video-breaks {
    padding-inline: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-library *,
  .video-dialog * {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .video-hero,
  .video-card {
    break-inside: avoid;
  }

  .video-hero {
    background: var(--theme-surface, white);
    color: black;
  }

  .video-hero h1,
  .video-hero p,
  .video-hero em {
    color: black !important;
  }

  .video-filters,
  .video-filter-row,
  .video-dialog,
  .video-card__art,
  .video-feature-play {
    display: none !important;
  }
}
