:root {
  color-scheme: light dark;
}

.ayari-video-hub-v3 {
  --ayvh3-bg: #f5f8fc;
  --ayvh3-panel: #ffffff;
  --ayvh3-panel-strong: #edf4fb;
  --ayvh3-panel-soft: #f8fafc;
  --ayvh3-text: #111827;
  --ayvh3-muted: #4b5563;
  --ayvh3-subtle: #6b7280;
  --ayvh3-line: rgba(15, 23, 42, .14);
  --ayvh3-accent: #0f766e;
  --ayvh3-accent-strong: #115e59;
  --ayvh3-accent-soft: rgba(15, 118, 110, .12);
  --ayvh3-focus: #0891b2;
  --ayvh3-shadow: 0 22px 64px rgba(15, 23, 42, .12);
  width: min(100%, 1560px);
  max-width: 100%;
  margin: clamp(1rem, 2vw, 1.75rem) auto;
  padding: clamp(.9rem, 2vw, 1.45rem);
  color: var(--ayvh3-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(15, 118, 110, .12), transparent 22rem),
    radial-gradient(circle at 100% 10%, rgba(37, 99, 235, .10), transparent 28rem),
    linear-gradient(180deg, var(--ayvh3-bg), #edf3f8);
  border: 1px solid var(--ayvh3-line);
  border-radius: 28px;
  isolation: isolate;
  overflow-x: clip;
}

[data-ayari-theme="dark"] .ayari-video-hub-v3 {
  color-scheme: dark;
  --ayvh3-bg: #080d16;
  --ayvh3-panel: #111827;
  --ayvh3-panel-strong: #172033;
  --ayvh3-panel-soft: #0b1220;
  --ayvh3-text: #f8fafc;
  --ayvh3-muted: #cbd5e1;
  --ayvh3-subtle: #94a3b8;
  --ayvh3-line: rgba(226, 232, 240, .13);
  --ayvh3-accent: #5eead4;
  --ayvh3-accent-strong: #99f6e4;
  --ayvh3-accent-soft: rgba(94, 234, 212, .12);
  --ayvh3-focus: #67e8f9;
  --ayvh3-shadow: 0 24px 72px rgba(0, 0, 0, .36);
}

@media (prefers-color-scheme: dark) {
  .ayari-video-hub-v3 {
    color-scheme: dark;
    --ayvh3-bg: #080d16;
    --ayvh3-panel: #111827;
    --ayvh3-panel-strong: #172033;
    --ayvh3-panel-soft: #0b1220;
    --ayvh3-text: #f8fafc;
    --ayvh3-muted: #cbd5e1;
    --ayvh3-subtle: #94a3b8;
    --ayvh3-line: rgba(226, 232, 240, .13);
    --ayvh3-accent: #5eead4;
    --ayvh3-accent-strong: #99f6e4;
    --ayvh3-accent-soft: rgba(94, 234, 212, .12);
    --ayvh3-focus: #67e8f9;
    --ayvh3-shadow: 0 24px 72px rgba(0, 0, 0, .36);
  }
}

.ayari-video-hub-v3 *,
.ayari-video-hub-v3 *::before,
.ayari-video-hub-v3 *::after {
  box-sizing: border-box;
}

/* The Engage Mag page wrappers can keep the RTL viewport scrolled to the wide
   content edge on small screens. This stylesheet is enqueued only by APB on
   /videotheque/, so the guard is scoped to that page ID and avoids a theme edit. */
body.page-id-12211,
body.page-id-12211 #page,
body.page-id-12211 #content,
body.page-id-12211 .container-inner,
body.page-id-12211 #primary,
body.page-id-12211 #main,
body.page-id-12211 .card-single-article,
body.page-id-12211 .engage-mag-content-container,
body.page-id-12211 .engage-mag-content-area,
body.page-id-12211 .entry-content {
  max-width: 100vw;
  overflow-x: clip;
}

.ayvh3-screen-reader-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ayari-video-hub-v3 :focus-visible {
  outline: 3px solid var(--ayvh3-focus);
  outline-offset: 4px;
}

.ayari-video-hub-v3 img {
  max-width: 100%;
}

.ayari-video-hub-v3 h1,
.ayari-video-hub-v3 h2,
.ayari-video-hub-v3 h3,
.ayari-video-hub-v3 p,
.ayari-video-hub-v3 span,
.ayari-video-hub-v3 button {
  overflow-wrap: anywhere;
}

/* Scoped to the video page because this stylesheet is only enqueued by the APB
   video renderer. It neutralizes the old red masthead wrapper without touching
   the theme, CSP, or site-wide dark CSS. */
.logo-wrapper-block {
  background: #080d16 !important;
}

.logo-wrapper-block .custom-logo-link {
  display: block;
  width: min(100%, 1560px);
  margin-inline: auto;
  padding: clamp(.45rem, 1.4vw, 1.25rem);
}

.logo-wrapper-block .custom-logo,
.logo-wrapper-block img.custom-logo {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.ayvh3-kicker,
.ayvh3-section-meta,
.ayvh3-video-date {
  margin: 0;
  color: var(--ayvh3-accent-strong);
  font-size: .9rem;
  font-weight: 950;
}

.ayvh3-title {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.02em;
}

.ayvh3-lede,
.ayvh3-counts {
  max-width: 82ch;
  margin: 0;
  color: var(--ayvh3-muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.85;
}

.ayvh3-counts {
  color: var(--ayvh3-subtle);
  font-weight: 850;
}

.ayari-video-hub-v3 .ayvh3-playlist-card,
.ayari-video-hub-v3 .ayvh3-picker,
.ayari-video-hub-v3 .ayvh3-open-player,
.ayari-video-hub-v3 .ayvh3-close-player,
.ayari-video-hub-v3 .ayvh3-footer-primary-button,
.ayari-video-hub-v3 .ayvh3-secondary-playlist-button,
.ayari-video-hub-v3 .ayvh3-close-secondary-player {
  font: inherit !important;
  text-transform: none !important;
}

.ayvh3-feature-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ayvh3-feature-no-thumb {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(94, 234, 212, .12), transparent 13rem),
    #020617;
}

.ayvh3-feature-no-thumb-label {
  max-width: 24rem;
  color: var(--ayvh3-muted);
  font-size: clamp(.95rem, 1.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.7;
}

.ayvh3-workbench {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.45rem);
  margin-block: clamp(.35rem, 1vw, .8rem) clamp(1rem, 2vw, 1.5rem);
}

.ayvh3-playlist-panel[hidden],
.ayvh3-secondary-player-shell[hidden] {
  display: none !important;
}

.ayvh3-collection {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  content-visibility: auto;
  contain-intrinsic-size: auto 62rem;
  overflow: hidden;
  padding: clamp(.9rem, 1.8vw, 1.35rem);
  border: 1px solid var(--ayvh3-line);
  border-radius: 26px;
  background: linear-gradient(180deg, var(--ayvh3-panel), var(--ayvh3-panel-strong));
  box-shadow: var(--ayvh3-shadow);
  scroll-margin-top: 5rem;
}

.ayvh3-collection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1rem;
  text-align: right;
}

.ayvh3-collection-head h2 {
  margin: .15rem 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.1;
}

.ayvh3-collection-head p {
  max-width: 78ch;
  margin: 0;
  color: var(--ayvh3-muted);
  line-height: 1.75;
}

.ayvh3-magazine-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(20rem, .76fr);
  gap: clamp(.85rem, 1.8vw, 1.2rem);
  align-items: start;
  min-width: 0;
}

.ayvh3-feature {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--ayvh3-line);
  border-radius: 22px;
  background: var(--ayvh3-panel-soft);
}

.ayvh3-feature-media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.ayvh3-feature-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  cursor: pointer;
}

.ayvh3-feature-play {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  width: clamp(3rem, 6vw, 4.3rem);
  height: clamp(3rem, 6vw, 4.3rem);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 999px;
  background: rgba(15, 23, 42, .68);
  color: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.ayvh3-feature-copy {
  display: grid;
  gap: .7rem;
  padding: clamp(.9rem, 1.8vw, 1.25rem);
  text-align: right;
}

.ayvh3-feature-title {
  margin: 0;
  color: var(--ayvh3-text);
  font-size: clamp(1.45rem, 2.45vw, 2.55rem);
  line-height: 1.22;
}

.ayvh3-feature-description {
  margin: 0;
  color: var(--ayvh3-muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.75;
}

.ayari-video-hub-v3 .ayvh3-open-player,
.ayari-video-hub-v3 .ayvh3-close-player,
.ayari-video-hub-v3 .ayvh3-close-secondary-player {
  min-height: 46px;
  width: fit-content;
  justify-self: start;
  padding: .68rem 1rem !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: var(--ayvh3-accent) !important;
  color: #ffffff !important;
  font-weight: 950 !important;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 118, 110, .18);
}

[data-ayari-theme="dark"] .ayari-video-hub-v3 .ayvh3-open-player,
[data-ayari-theme="dark"] .ayari-video-hub-v3 .ayvh3-close-player,
[data-ayari-theme="dark"] .ayari-video-hub-v3 .ayvh3-close-secondary-player {
  color: #06121f !important;
}

.ayvh3-feature-media-frame iframe,
.ayvh3-secondary-player-stage {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.ayvh3-secondary-player-stage {
  overflow: hidden;
  border: 1px solid var(--ayvh3-line);
  border-radius: 18px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.ayvh3-picker-list {
  max-block-size: min(70vh, 38rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: .42rem;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: .15rem .2rem .15rem .5rem;
  scrollbar-color: var(--ayvh3-accent) transparent;
  min-width: 0;
}

.ayari-video-hub-v3 .ayvh3-picker {
  min-width: 0;
  min-height: 0;
  display: block;
  align-items: center;
  padding: .55rem .7rem !important;
  border: 1px solid var(--ayvh3-line) !important;
  border-radius: 14px !important;
  background: var(--ayvh3-panel-soft) !important;
  color: var(--ayvh3-text) !important;
  box-shadow: none !important;
  cursor: pointer;
  text-align: right;
}

.ayari-video-hub-v3 .ayvh3-picker:hover,
.ayari-video-hub-v3 .ayvh3-picker:focus-visible,
.ayari-video-hub-v3 .ayvh3-picker.is-selected {
  border-color: var(--ayvh3-accent) !important;
  background: var(--ayvh3-accent-soft) !important;
}

.ayvh3-picker-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .22rem .55rem;
  align-items: center;
}

.ayvh3-picker-title {
  grid-column: 1;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ayvh3-text);
  font-size: .95rem;
  font-weight: 950;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ayvh3-picker-action {
  grid-column: 2;
  grid-row: 1;
  width: fit-content;
  padding: .2rem .48rem;
  border: 1px solid var(--ayvh3-line);
  border-radius: 999px;
  color: var(--ayvh3-accent-strong);
  font-size: .72rem;
  font-weight: 950;
}

.ayvh3-footer-nav {
  margin-block-start: clamp(1.15rem, 2vw, 1.7rem);
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--ayvh3-line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--ayvh3-panel), var(--ayvh3-panel-strong));
  box-shadow: var(--ayvh3-shadow);
  text-align: right;
}

.ayvh3-footer-head {
  display: grid;
  gap: .4rem;
  margin-block-end: 1rem;
}

.ayvh3-footer-head h2,
.ayvh3-extra-details summary,
.ayvh3-secondary-player-title {
  margin: 0;
  color: var(--ayvh3-text);
  line-height: 1.2;
}

.ayvh3-footer-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.ayvh3-footer-head p {
  margin: 0;
  color: var(--ayvh3-muted);
  line-height: 1.75;
}

.ayvh3-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: .62rem;
}

.ayari-video-hub-v3 .ayvh3-footer-primary-button,
.ayari-video-hub-v3 .ayvh3-secondary-playlist-button {
  min-height: 68px;
  display: grid;
  gap: .22rem;
  align-content: center;
  padding: .76rem .9rem !important;
  border: 1px solid var(--ayvh3-line) !important;
  border-radius: 15px !important;
  background: var(--ayvh3-panel-soft) !important;
  color: var(--ayvh3-text) !important;
  cursor: pointer;
  text-align: right;
}

.ayari-video-hub-v3 .ayvh3-footer-primary-button:hover,
.ayari-video-hub-v3 .ayvh3-footer-primary-button:focus-visible,
.ayari-video-hub-v3 .ayvh3-footer-primary-button.is-active,
.ayari-video-hub-v3 .ayvh3-secondary-playlist-button:hover,
.ayari-video-hub-v3 .ayvh3-secondary-playlist-button:focus-visible,
.ayari-video-hub-v3 .ayvh3-secondary-playlist-button.is-active {
  border-color: var(--ayvh3-accent) !important;
  background: var(--ayvh3-accent-soft) !important;
}

.ayvh3-footer-primary-button span,
.ayvh3-secondary-playlist-button span {
  font-weight: 950;
  line-height: 1.35;
}

.ayvh3-footer-primary-button small,
.ayvh3-secondary-playlist-button small {
  color: var(--ayvh3-muted);
  font-weight: 850;
}

.ayvh3-extra-details {
  margin-block-start: 1rem;
}

.ayvh3-extra-details summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .9rem;
  border: 1px solid var(--ayvh3-line);
  border-radius: 16px;
  background: var(--ayvh3-panel-soft);
  cursor: pointer;
  font-weight: 950;
}

.ayvh3-extra-details summary small {
  color: var(--ayvh3-muted);
  font-size: .9rem;
}

.ayvh3-extra-details[open] summary {
  margin-block-end: .75rem;
}

.ayvh3-secondary-player-shell {
  display: grid;
  gap: .8rem;
  margin-block-start: 1rem;
  padding: .85rem;
  border: 1px solid var(--ayvh3-line);
  border-radius: 18px;
  background: var(--ayvh3-panel-soft);
}

.ayvh3-secondary-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
}

@media (max-width: 1120px) {
  .ayvh3-magazine-gallery {
    grid-template-columns: 1fr;
  }

  .ayvh3-picker-list {
    max-block-size: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 0;
  }

  .ayari-video-hub-v3 .ayvh3-picker {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html {
    overflow-x: hidden;
  }

  body.page-id-12211 {
    overflow-x: hidden !important;
  }

  body.page-id-12211,
  body.page-id-12211 #page,
  body.page-id-12211 #content,
  body.page-id-12211 .site-content,
  body.page-id-12211 .container-inner,
  body.page-id-12211 .ct-container-main,
  body.page-id-12211 #primary,
  body.page-id-12211 #main,
  body.page-id-12211 .card-single-article,
  body.page-id-12211 .engage-mag-content-container,
  body.page-id-12211 .engage-mag-content-area,
  body.page-id-12211 .entry-content {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    overflow-x: hidden !important;
  }

  body.page-id-12211 .container-inner,
  body.page-id-12211 .entry-content {
    padding-inline: 0 !important;
  }

  body.page-id-12211 .entry-title {
    box-sizing: border-box !important;
    width: calc(100vw - 2px) !important;
    max-width: calc(100vw - 2px) !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-inline: .75rem !important;
    text-align: center !important;
    font-size: clamp(1.7rem, 8vw, 2.25rem) !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
  }

  .ayari-video-hub-v3 {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding: .5rem;
    border-radius: 20px;
    direction: rtl;
    overflow-x: hidden !important;
  }

  .ayvh3-collection,
  .ayvh3-footer-nav {
    border-radius: 18px;
  }

  .ayvh3-collection,
  .ayvh3-feature,
  .ayvh3-feature-media-frame,
  .ayvh3-feature-copy,
  .ayvh3-picker-list,
  .ayvh3-picker {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .ayvh3-magazine-gallery {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: .75rem;
  }

  .ayvh3-picker-list,
  .ayvh3-footer-grid {
    grid-template-columns: 1fr;
  }

  .ayvh3-picker-list {
    max-block-size: 24rem;
    overflow-y: auto;
    padding-inline: 0 .2rem;
  }

  .ayvh3-collection {
    padding: .55rem;
  }

  .ayvh3-collection-head,
  .ayvh3-secondary-player-head {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .ayvh3-collection-head h2 {
    font-size: clamp(1.45rem, 7.2vw, 2.05rem);
    line-height: 1.22;
    max-width: 100%;
  }

  .ayvh3-feature-copy {
    padding: .68rem .58rem;
    text-align: center;
  }

  .ayvh3-feature-title {
    font-size: clamp(.98rem, 4.75vw, 1.28rem);
    line-height: 1.45;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: none;
  }

  .ayvh3-feature-description {
    font-size: .92rem;
    line-height: 1.65;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .ayvh3-picker-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .ayvh3-picker-action {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .ayari-video-hub-v3 .ayvh3-open-player,
  .ayari-video-hub-v3 .ayvh3-close-player,
  .ayari-video-hub-v3 .ayvh3-close-secondary-player {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch;
    justify-content: center;
  }
}
