/* RTN v1.11: styles are restricted to video widgets and the video dialog. */
.rtn111-widget {
  --rtn111-green: #176b42;
  --rtn111-orange: #cf5b15;
  --rtn111-ink: #213c30;
  --rtn111-muted: #596c61;
  --rtn111-line: #dce7df;
  color: var(--rtn111-ink);
  margin-block: 1rem 1.5rem;
  min-width: 0;
}
.rtn111-widget *, .rtn111-modal * { box-sizing: border-box; }
.rtn111-widget [hidden], .rtn111-modal[hidden] { display: none !important; }
.rtn111-widget .rtn111-label {
  color: var(--rtn111-green);
  font: inherit;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 750;
  line-height: 1.35;
  margin: 0 0 1rem;
}
.rtn111-widget .rtn111-notice, .rtn111-widget .rtn111-status {
  color: var(--rtn111-muted);
  font-size: .85rem;
  line-height: 1.55;
  margin: .65rem 0;
  overflow-wrap: anywhere;
}
.rtn111-widget .rtn111-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  width: 100%;
}
.rtn111-widget .rtn111-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  color: var(--rtn111-ink);
  background: #fff;
  border: 1px solid var(--rtn111-line);
  border-radius: .8rem;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 3px 12px rgb(30 74 48 / 5%);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.rtn111-widget .rtn111-card:hover {
  border-color: var(--rtn111-green);
  color: var(--rtn111-green);
  box-shadow: 0 5px 18px rgb(30 74 48 / 10%);
}
.rtn111-widget .rtn111-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9f0eb;
}
.rtn111-widget .rtn111-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rtn111-widget .rtn111-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  padding-left: .1rem;
  border-radius: 50%;
  color: #fff;
  background: rgb(16 57 35 / 88%);
  border: 1px solid rgb(255 255 255 / 85%);
  font-size: 1rem;
}
.rtn111-widget .rtn111-card-body { display: block; padding: .9rem 1rem 1.05rem; }
.rtn111-widget .rtn111-card-title {
  display: block;
  font-size: .93rem;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.rtn111-widget .rtn111-widget-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .2rem 1rem;
  margin-top: .5rem;
}
.rtn111-widget .rtn111-source, .rtn111-modal .rtn111-source {
  color: #176b42;
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.rtn111-widget .rtn111-empty {
  padding: 1.1rem 1.2rem;
  margin: 0;
  border: 1px solid var(--rtn111-line);
  border-left: 3px solid var(--rtn111-orange);
  border-radius: .4rem;
  background: #f7faf8;
  color: var(--rtn111-muted);
  line-height: 1.6;
}
.rtn111-widget .rtn111-no-image::before {
  content: "RTN";
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  color: #176b42;
  background: linear-gradient(145deg, #f4f8f5, #e5eee8);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: .06em;
}
.rtn111-hero .rtn111-hero-card.rtn111-no-image { position: relative; }
.rtn111-hero .rtn111-hero-card > img { aspect-ratio: 16 / 9; object-fit: cover; }
.rtn111-hero .rtn111-hero-card.rtn111-no-image > img { display: block !important; visibility: hidden; }
.rtn111-hero .rtn111-hero-card.rtn111-no-image::before { height: 100%; }
.rtn111-hero .rtn111-hero-card.rtn111-no-image::before { color: #fff; background: #164b3d; }
.rtn111-hero .rtn111-hero-card.rtn111-no-image .video-text { color: #fff; }
.rtn111-hero .video-text { z-index: 1; }
.rtn111-hero .video-text .rtn111-group {
  display: block;
  margin-bottom: .25rem;
  font-size: .78em;
  font-weight: 700;
  letter-spacing: .02em;
}
.rtn111-widget a:focus-visible, .rtn111-modal a:focus-visible, .rtn111-modal button:focus-visible {
  outline: 3px solid #cf5b15;
  outline-offset: 3px;
}
.rtn111-modal {
  width: min(960px, calc(100vw - 2rem));
  max-width: 960px;
  max-height: calc(100dvh - 2rem);
  padding: 1.15rem;
  margin: auto;
  border: 1px solid #dce7df;
  border-top: 4px solid #cf5b15;
  border-radius: .9rem;
  background: #fff;
  color: #213c30;
  box-shadow: 0 24px 80px rgb(0 0 0 / 32%);
  overflow: auto;
}
.rtn111-modal::backdrop { background: rgb(10 29 19 / 78%); }
.rtn111-modal.rtn111-modal-fallback[open] {
  position: fixed;
  inset: 1rem;
  z-index: 2147483000;
  box-shadow: 0 0 0 100vmax rgb(10 29 19 / 78%);
}
.rtn111-modal .rtn111-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.rtn111-modal .rtn111-modal-title { margin: 0; font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.45; overflow-wrap: anywhere; }
.rtn111-modal .rtn111-close {
  flex: 0 0 auto;
  padding: .6rem .9rem;
  min-height: 44px;
  border: 1px solid #176b42;
  border-radius: .4rem;
  background: #176b42;
  color: #fff;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.rtn111-modal .rtn111-player-host { aspect-ratio: 16 / 9; width: 100%; background: #102218; border-radius: .35rem; overflow: hidden; }
.rtn111-modal .rtn111-player-host iframe { display: block; width: 100%; height: 100%; border: 0; }
.rtn111-modal .rtn111-player-help { color: #596c61; font-size: .87rem; line-height: 1.6; margin: .8rem 0 .35rem; }
@media (max-width: 991px) {
  .rtn111-widget .rtn111-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media (max-width: 575px) {
  .rtn111-widget .rtn111-grid { grid-template-columns: minmax(0, 1fr); }
  .rtn111-widget .rtn111-card-title { font-size: .96rem; }
  .rtn111-modal { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); padding: .8rem; border-radius: .6rem; }
  .rtn111-modal .rtn111-modal-header { gap: .6rem; }
  .rtn111-modal .rtn111-close { padding-inline: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rtn111-widget .rtn111-card { transition: none; }
}

/* New single-video channel covers; existing station branding remains outside. */
.rtn-v111-channel-hero .rtn111-widget { max-width: 900px; margin-inline: auto; }
.rtn-v111-channel-hero .rtn111-grid { grid-template-columns: minmax(0, 1fr); }
.rtn-v111-channel-hero .rtn111-thumb { aspect-ratio: 16 / 9; }
.rtn-v111-channel-hero .rtn111-card-title { font-size: clamp(1rem, 1.6vw, 1.2rem); }
.rtn-site--telesahel .slider:has(.rtn-v111-channel-hero) { height: auto; min-height: 0; max-height: none; }
.rtn-site--telesahel .slider > .main-slider:has(.rtn-v111-channel-hero),
.rtn-site--telesahel .slider > .main-slider:has(.rtn-v111-channel-hero) .slick-list,
.rtn-site--telesahel .slider > .main-slider:has(.rtn-v111-channel-hero) .slick-track,
.rtn-site--telesahel .slider > .main-slider:has(.rtn-v111-channel-hero) .slick-slide {
  height: auto !important;
  max-height: none;
}
.rtn-site--telesahel .slider > .main-slider .rtn-v111-channel-hero { height: auto; min-height: 0; }
/* The former character picker now contains a normal video collection. */
.rtn-site--taltv .popular-chars .homePicker {
  position: relative !important;
  inset: auto !important;
  height: auto;
  margin: 0;
  z-index: 1;
}
.rtn-site--taltv .popular-chars .vswiper { height: auto; padding-bottom: 0 !important; }
.rtn-site--taltv .popular-chars .swiper-wrapper {
  display: block;
  height: auto;
  width: 100% !important;
  transform: none !important;
}
.rtn-site--taltv .popular-chars .swiper-slide { width: 100% !important; height: auto; flex: none; }
.rtn-site--taltv .popular-chars .rtn111-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 991px) {
  .rtn-site--taltv .popular-chars .rtn111-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .rtn-site--taltv .popular-chars .rtn111-grid { grid-template-columns: minmax(0, 1fr); }
}
