/* RTN v1.9: direct-page sizing and the verified RTN YouTube selection only. */
.rtn-direct-v17.rtn-direct-v19 {
  background: #fff;
  border-bottom: 3px solid #0db02b;
}
.rtn-direct-v17.rtn-direct-v19 .rtn-direct-container { max-width: 840px; }
.rtn-direct-v17.rtn-direct-v19 .rtn-channel-controls { gap: 10px; }
.rtn-direct-v17.rtn-direct-v19 .direct-item { border-color: #dce5de; }
.rtn-direct-v17.rtn-direct-v19 .direct-item:hover {
  background: #f0f8f1;
  border-color: #0db02b;
}
.rtn-direct-v17.rtn-direct-v19 .direct-item[aria-current="true"] {
  border-color: #164b3d;
  background: #164b3d;
  box-shadow: inset 0 -3px 0 #e05206;
  color: #fff;
}
.rtn-direct-v17.rtn-direct-v19 .rtn-player-media { min-height: 200px; }
.rtn-direct-v17.rtn-direct-v19 .video-player.rtn-live-shell {
  border-top: 3px solid #e05206;
  box-shadow: 0 12px 32px rgba(19, 43, 42, .08);
}
.rtn-videos-v19 {
  color: #132b2a;
  background: #fff;
  padding: 40px 24px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
.rtn-videos-v19 *, .rtn-videos-v19 *::before, .rtn-videos-v19 *::after { box-sizing: border-box; }
.rtn-videos-v19 [hidden], .rtn-videos-v19[hidden] { display: none !important; }
.rtn-videos-v19 .rtn-vod-container { width: 100%; max-width: 1140px; margin: 0 auto; }
.rtn-videos-v19 .rtn-vod-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dce5de;
}
.rtn-videos-v19 .rtn-vod-section-heading h2 {
  position: static;
  display: block;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 4px solid #e05206;
  color: #164b3d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: normal;
}
.rtn-videos-v19 .rtn-vod-section-heading h2::after { display: none; }
.rtn-videos-v19 .rtn-vod-section-heading h2 span { padding: 0; color: inherit; background: transparent; }
.rtn-videos-v19 .rtn-vod-section-heading p { margin: 8px 0 0 18px; font-size: 14px; color: #43594e; }
.rtn-videos-v19 a { color: #164b3d; }
.rtn-videos-v19 :where(a, button):focus-visible { outline: 3px solid #b74e27; outline-offset: 4px; }
.rtn-videos-v19 .rtn-vod-channel-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rtn-videos-v19 .rtn-vod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rtn-videos-v19 .rtn-vod-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce5de;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(19, 43, 42, .035);
}
.rtn-videos-v19 .rtn-vod-open { display: block; text-decoration: none; }
.rtn-videos-v19 .rtn-vod-open:focus-visible { outline-offset: -4px; }
.rtn-videos-v19 .rtn-vod-image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #132b2a; }
.rtn-videos-v19 .rtn-vod-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rtn-videos-v19 .rtn-vod-play {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 6px;
  background: #164b3d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.rtn-videos-v19 .rtn-vod-open:hover .rtn-vod-play { background: #b74e27; }
.rtn-videos-v19 .rtn-vod-title {
  margin: 0;
  padding: 16px 16px 8px;
  color: #132b2a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.rtn-videos-v19 .rtn-vod-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 0 16px 10px;
  font-size: 12px;
  color: #43594e;
}
.rtn-videos-v19 .rtn-vod-watch { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rtn-videos-v19.rtn-vod-selection { background: #f4f9f4; border-top: 1px solid #dce5de; }
.rtn-videos-v19.rtn-vod-selection .rtn-vod-section-heading h2 { border-left-color: #0db02b; }
.rtn-videos-v19.rtn-vod-viewer { padding-bottom: 0; scroll-margin-top: 144px; }
.rtn-videos-v19.rtn-vod-viewer .rtn-vod-container { max-width: 840px; }
.rtn-videos-v19 .rtn-vod-player-shell { overflow: hidden; border: 1px solid #24383e; border-top: 3px solid #e05206; border-radius: 16px; color: #fff; background: #08151d; }
.rtn-videos-v19 .rtn-vod-player-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 20px; }
.rtn-videos-v19 .rtn-vod-player-header h2 { margin: 0; color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.rtn-videos-v19 .rtn-vod-close { flex: 0 0 auto; min-height: 44px; padding: 9px 14px; border: 1px solid #9bbbaa; border-radius: 7px; color: #fff; background: transparent; font: 700 13px Arial, Helvetica, sans-serif; }
.rtn-videos-v19 .rtn-vod-close:hover { background: #164b3d; }
.rtn-videos-v19 .rtn-vod-player-host { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; background: #000; }
.rtn-videos-v19 .rtn-vod-player-host iframe { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 200px; border: 0; }
.rtn-videos-v19 .rtn-vod-player-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 14px 20px; }
.rtn-videos-v19 .rtn-vod-player-footer p { flex: 1 1 280px; margin: 0; color: #d5e3da; font-size: 13px; }
.rtn-videos-v19 .rtn-vod-player-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 991.98px) {
  .rtn-videos-v19 .rtn-vod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 575.98px) {
  .rtn-videos-v19 { padding: 28px 16px; }
  .rtn-videos-v19 .rtn-vod-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rtn-videos-v19 .rtn-vod-section-heading { margin-bottom: 20px; gap: 8px; }
  .rtn-videos-v19 .rtn-vod-player-header { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .rtn-videos-v19 .rtn-vod-player-header h2 { width: 100%; font-size: 16px; }
  .rtn-videos-v19 .rtn-vod-player-footer { padding: 12px 16px; }
}

/* Only previews that actually failed receive this visual fallback. */
.rtn-videos-v19 .rtn-vod-image--unavailable { background: #164b3d; }
.rtn-videos-v19 .rtn-vod-image--unavailable::before {
  content: "RTN";
  position: absolute;
  top: calc(50% - 36px);
  left: 0;
  width: 100%;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-align: center;
  pointer-events: none;
}
.rtn-videos-v19 .rtn-vod-image--unavailable::after {
  content: "Aperçu indisponible";
  position: absolute;
  top: calc(50% + 7px);
  left: 12px;
  right: 12px;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}
