/* Video section (T9654). Loaded only on /{lang}/videos/ pages; everything is scoped under .wrv. */
.wrv {
  --wrv-navy: var(--wr-navy, #0f3554);
  --wrv-navy-dark: var(--wr-navy-dark, #0a2740);
  --wrv-red: var(--wr-red, #b8292f);
  --wrv-muted: var(--wr-text-muted, #5a7a8c);
  --wrv-border: var(--wr-card-border, #e7ecf1);
  --wrv-surface: #f5f7fa;
  --wrv-stage: #071a2b;
  --wrv-radius: 12px;
  background: #fff;
  color: var(--wrv-navy-dark);
  padding-block: 24px 72px;
}
.wrv [hidden] { display: none !important; }
.wrv a { color: inherit; }
.wrv :focus-visible { outline: 3px solid var(--wrv-red); outline-offset: 3px; border-radius: 4px; }

.wrv-eyebrow {
  margin: 0 0 8px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wrv-red);
}
.wrv-title { margin: 0 0 12px; font-weight: 700; line-height: 1.15; color: var(--wrv-navy); text-wrap: balance; }
.wrv-summary { margin: 0; font-size: 1.125rem; line-height: 1.55; color: #33506a; max-width: 68ch; }
.wrv-fact-label { color: var(--wrv-muted); }

/* Thumbnails: the box is reserved before the image arrives. */
.wrv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--wrv-surface); }
.wrv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wrv-duration {
  position: absolute; inset-block-end: 8px; inset-inline-end: 8px;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(7, 26, 43, .86); color: #fff;
  font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ catalog */
.wrv-hero { padding-block: 32px 28px; max-width: 760px; }
.wrv-hero .wrv-title { font-size: clamp(2rem, 4.2vw, 3rem); }
.wrv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-block-end: 28px; }
.wrv-search {
  flex: 1 1 260px; max-width: 380px; min-height: 44px; padding: 8px 14px;
  border: 1px solid #c9d4de; border-radius: 10px; background: #fff; color: inherit; font: inherit;
}
.wrv-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.wrv-chip {
  min-height: 40px; padding: 6px 14px;
  border: 1px solid #c9d4de; border-radius: 999px; background: #fff; color: var(--wrv-navy);
  font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer;
}
.wrv-chip:hover { border-color: var(--wrv-navy); }
.wrv-chip.is-active { background: var(--wrv-navy); border-color: var(--wrv-navy); color: #fff; }
.wrv-empty { margin: 0 0 24px; color: var(--wrv-muted); }

.wrv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 36px 28px; margin: 0; padding: 0; list-style: none; }
.wrv-card-link { display: block; text-decoration: none; }
.wrv-card-link .wrv-thumb { margin-block-end: 14px; box-shadow: 0 1px 2px rgba(10, 39, 64, .08); transition: box-shadow .2s, transform .2s; }
.wrv-card-link:hover .wrv-thumb { box-shadow: 0 10px 28px rgba(10, 39, 64, .18); transform: translateY(-2px); }
.wrv-card-title { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: var(--wrv-navy); }
.wrv-card-link:hover .wrv-card-title { text-decoration: underline; text-underline-offset: 3px; }
.wrv-card-summary { margin: 0; font-size: .9688rem; line-height: 1.5; color: #33506a; }
.wrv-card-action { display: inline-block; margin-block-start: 10px; font-size: .9375rem; font-weight: 600; color: var(--wrv-red); }
.wrv-card-langs { margin: 10px 0 0; font-size: .875rem; color: #33506a; }
.wrv-card-langs a { text-underline-offset: 3px; }

/* ------------------------------------------------------------ watch */
.wrv-breadcrumb { display: flex; gap: 8px; margin-block-end: 14px; font-size: .875rem; color: var(--wrv-muted); }
.wrv-breadcrumb a { text-underline-offset: 3px; }
.wrv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 992px) {
  .wrv-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
  .wrv-layout-single { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
}

/* The dark stage is only the picture area. Its height is capped so the video is
   fully visible on load; aspect-ratio keeps the box before any media arrives. */
.wrv-player { position: relative; width: 100%; max-height: min(74vh, 760px); overflow: hidden; border-radius: var(--wrv-radius); background: var(--wrv-stage); }
.wrv-video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--wrv-stage); }

.wrv-head { padding-block-start: 22px; }
.wrv-head .wrv-title { font-size: clamp(1.625rem, 3vw, 2.25rem); }
.wrv-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .9375rem; }
.wrv-versions { margin-block-start: 18px; }
.wrv-versions-title { margin: 0 0 8px; font-size: .9375rem; font-weight: 600; color: var(--wrv-muted); }
.wrv-version-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wrv-version {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
  border: 1px solid #c9d4de; border-radius: 999px; background: #fff; color: var(--wrv-navy);
  font-size: .9375rem; font-weight: 500; text-decoration: none;
}
a.wrv-version:hover { border-color: var(--wrv-navy); }
.wrv-version.is-current { background: var(--wrv-navy); border-color: var(--wrv-navy); color: #fff; }
.wrv-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 22px; }
.wrv-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px;
  border: 1px solid var(--wrv-navy); border-radius: 10px; background: #fff; color: var(--wrv-navy);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.wrv a.wrv-button { color: var(--wrv-navy); }
.wrv-button:hover { background: #eef2f6; }
.wrv-button-primary, .wrv a.wrv-button-primary { background: var(--wrv-red); border-color: var(--wrv-red); color: #fff; }
.wrv-button-primary:hover { background: #9d2127; border-color: #9d2127; }

.wrv-section { margin-block-start: 36px; padding-block-start: 28px; border-block-start: 1px solid var(--wrv-border); max-width: 72ch; }
.wrv-section h2 { margin: 0 0 14px; font-size: 1.375rem; font-weight: 700; color: var(--wrv-navy); }
.wrv-section p { margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.65; color: #24405a; }

.wrv-side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 14px; }
.wrv-side-head h2 { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--wrv-navy); }
.wrv-switch { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .875rem; color: #33506a; cursor: pointer; }
.wrv-switch input { width: 18px; height: 18px; margin: 0; accent-color: var(--wrv-navy); cursor: pointer; }
.wrv-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.wrv-item-link { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 12px; align-items: start; padding: 6px; margin: -6px; border-radius: 12px; text-decoration: none; }
.wrv-item-link:hover { background: var(--wrv-surface); }
.wrv-item-text { display: grid; gap: 4px; }
.wrv-item-title { font-size: .9688rem; font-weight: 600; line-height: 1.3; color: var(--wrv-navy); }
.wrv-item-meta { font-size: .8125rem; line-height: 1.4; color: var(--wrv-muted); }
.wrv-item-note { color: var(--wrv-red); font-weight: 600; }
.wrv-item.is-seen .wrv-thumb img { opacity: .55; }
.wrv-seen { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--wrv-navy); font-size: .75rem; font-weight: 600; }
.wrv-all { display: inline-block; margin-block-start: 18px; font-weight: 600; color: var(--wrv-navy); text-underline-offset: 3px; }
@media (max-width: 991.98px) {
  .wrv-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
}

/* End screen and messages, drawn over the picture by videos.js. */
.wrv-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; padding: 16px; overflow: auto;
  background: rgba(7, 26, 43, .93); color: #fff;
}
.wrv-overlay-box { width: min(100%, 560px); display: grid; gap: 14px; text-align: start; }
.wrv-overlay-label { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b9c8d6; }
.wrv-next { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px; align-items: center; }
.wrv-next-title { margin: 0 0 4px; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: #fff; }
.wrv-next-meta { margin: 0; font-size: .875rem; color: #b9c8d6; }
.wrv-countdown { margin: 0; font-size: .9375rem; color: #dbe5ee; font-variant-numeric: tabular-nums; }
.wrv-overlay-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wrv-overlay .wrv-button { min-height: 42px; background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.wrv-overlay .wrv-button:hover { background: rgba(255, 255, 255, .12); }
.wrv-overlay .wrv-button-primary { background: #fff; border-color: #fff; color: var(--wrv-navy-dark); }
.wrv-overlay .wrv-button-primary:hover { background: #e6edf3; }
.wrv-overlay :focus-visible { outline-color: #fff; }
.wrv-alternatives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.wrv-alternatives a { display: grid; gap: 6px; text-decoration: none; color: #fff; font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.wrv-alternatives a:hover span:last-child { text-decoration: underline; }
.wrv-message { text-align: center; justify-items: center; }
.wrv-message p { margin: 0; font-size: 1rem; }
.wrv-message a { color: #fff; text-underline-offset: 3px; }
@media (max-width: 575.98px) {
  .wrv-next { grid-template-columns: 112px minmax(0, 1fr); }
  .wrv-alternatives { display: none; }
  .wrv-item-link { grid-template-columns: 132px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .wrv-card-link .wrv-thumb { transition: none; }
  .wrv-card-link:hover .wrv-thumb { transform: none; }
}
