/* RTN v1.7 — only the shared direct.php player and channel-control region. */
.rtn-direct-v17 {
  color: #132b2a;
  background: #f6f6f0;
  padding: 36px 24px 48px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
.rtn-direct-v17 *, .rtn-direct-v17 *::before, .rtn-direct-v17 *::after { box-sizing: border-box; }
.rtn-direct-v17 [hidden] { display: none !important; }
.rtn-direct-v17 .rtn-direct-container { width: 100%; max-width: 1000px; margin: 0 auto; }
.rtn-direct-v17 :where(a, button):focus-visible { outline: 3px solid #b74e27; outline-offset: 4px; }
.rtn-direct-v17 .rtn-channel-controls { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0 0 24px; }
.rtn-direct-v17 .rtn-channel-option { display: flex; flex: 0 1 auto; min-width: 0; }
.rtn-direct-v17 .direct-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 168px;
  min-height: 58px;
  width: auto;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid #d9e2dc;
  border-radius: 8px;
  background: #fff;
  color: #164b3d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}
.rtn-direct-v17 .direct-item img { display: block; width: 42px; height: 32px; max-width: 42px; margin: 0; padding: 2px; border-radius: 3px; background: #fff; object-fit: contain; }
.rtn-direct-v17 .direct-item:hover { color: #164b3d; background: #eaf1eb; border-color: #aebfb5; transform: none; }
.rtn-direct-v17 .direct-item[aria-current="true"] { background: #164b3d; border-color: #164b3d; color: #fff; }
.rtn-direct-v17 .video-player.rtn-live-shell {
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #24383e;
  border-radius: 22px;
  background: #08151d;
  color: #fff;
  box-shadow: 0 12px 36px rgba(8, 21, 29, .1);
}
.rtn-direct-v17 .rtn-player-heading { padding: 22px 26px; }
.rtn-direct-v17 .rtn-player-heading .line-title { display: block; position: static; margin: 0; overflow: visible; color: #bfd3c8; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; }
.rtn-direct-v17 .rtn-player-heading .line-title::after { display: none; }
.rtn-direct-v17 .rtn-player-heading .line-title span { margin: 0; padding: 0; background: transparent; color: inherit; }
.rtn-direct-v17 .rtn-player-identity { display: none; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; }
.rtn-direct-v17 .rtn-player-identity p { margin: 0; color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: clamp(22px, 2.5vw, 28px); font-weight: 700; line-height: 1.25; }
.rtn-direct-v17 .rtn-player-identity img { display: block; width: 64px; height: 48px; padding: 4px; border-radius: 6px; background: #fff; object-fit: contain; }
/* Existing core JS updates aria-current. No player event handler is added. */
@supports selector(:has(*)) {
  .rtn-direct-v17:has(.direct-item[data-rtn-channel="telesahel"][aria-current="true"]) .rtn-player-identity--telesahel,
  .rtn-direct-v17:has(.direct-item[data-rtn-channel="taltv"][aria-current="true"]) .rtn-player-identity--taltv { display: flex; }
}
.rtn-direct-v17 .rtn-player-media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.rtn-direct-v17 .rtn-player-media > .video-js:not(.vjs-fullscreen) { position: absolute; inset: 0; width: 100% !important; height: 100% !important; padding-top: 0 !important; }
.rtn-direct-v17 .video-js { font-family: Arial, Helvetica, sans-serif; background-color: #000 !important; }
.rtn-direct-v17 .vjs-poster { background-color: #000 !important; }
.rtn-direct-v17 .vjs-control-bar { background-color: rgba(8, 21, 29, .92); }
.rtn-direct-v17 .vjs-big-play-button { border: 1px solid rgba(255, 255, 255, .8); border-radius: 12px; background: rgba(22, 75, 61, .94); }
.rtn-direct-v17 .rtn-player-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 15px 24px; }
.rtn-direct-v17 #rtn-live-status { flex: 1 1 240px; margin: 0; color: #c8ddd1; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5; }
.rtn-direct-v17 #rtn-live-retry { min-height: 40px; margin: 0; padding: 8px 14px; border: 1px solid #9bbbaa; border-radius: 7px; background: transparent; color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: 600; }
.rtn-direct-v17 #rtn-live-retry:hover { background: #164b3d; }
@media (max-width: 767.98px) {
  .rtn-direct-v17 { padding: 24px 16px 32px; }
  .rtn-direct-v17 .rtn-channel-controls { gap: 8px; margin-bottom: 18px; }
  .rtn-direct-v17 .rtn-channel-option { flex: 1 1 calc(33.333% - 8px); }
  .rtn-direct-v17 .direct-item { flex-direction: column; width: 100%; min-width: 0; min-height: 84px; padding: 10px 8px; gap: 7px; font-size: 13px; text-align: center; }
  .rtn-direct-v17 .direct-item img { width: 40px; height: 30px; }
  .rtn-direct-v17 .video-player.rtn-live-shell { border-radius: 16px; }
  .rtn-direct-v17 .rtn-player-heading { padding: 18px; }
  .rtn-direct-v17 .rtn-player-identity { gap: 16px; }
  .rtn-direct-v17 .rtn-player-identity img { width: 56px; height: 42px; }
  .rtn-direct-v17 .rtn-player-feedback { padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .rtn-direct-v17 *, .rtn-direct-v17 *::before, .rtn-direct-v17 *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
