/* --------- WRAPPER GÉNÉRAL ---------- */
.rk-channel-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* --------- CARTE PLAYER ---------- */
.rk-channel-player {
  width: 100%;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.70);
  color: #fff;
  border-radius: 24px;
  padding: 22px 26px 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px) brightness(0.90);
  -webkit-backdrop-filter: blur(10px) brightness(0.90);
  box-sizing: border-box;
}

/* --------- HEADER ---------- */
.rk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.rk-logo-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rk-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rk-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rk-title-meta {
  display: flex;
  flex-direction: column;
}

.rk-channel-name {
  font-size: 18px;
  font-weight: 700;
}

.rk-channel-meta {
  font-size: 13px;
  opacity: 0.75;
}

.rk-header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rk-icon {
  font-size: 18px;
  opacity: 0.7;
}

/* --------- CONTENU ---------- */
.rk-content {
  margin-top: 8px;
  margin-bottom: 18px;
}

.rk-program-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.rk-program-subtitle {
  font-size: 13px;
  opacity: 0.8;
}

/* --------- TIMELINE ---------- */
.rk-timeline-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 16px;
}

.rk-time {
  font-size: 12px;
  opacity: 0.8;
}

.rk-bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: #2f2f2f;
  border-radius: 999px;
  overflow: hidden;
}

.rk-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #ff4b4b, #ff2a2a);
  border-radius: 999px;
  transition: width 0.3s linear;
}

.rk-bar-knob {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #ff4b4b;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(255, 75, 75, 0.6);
}

.rk-live-pill {
  background: #ff4444;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* --------- CTA ---------- */
.rk-cta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.rk-live-badge {
  background: #ff4444;
  color: #fff;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: 0.18s ease;
  white-space: nowrap;
}

.rk-live-badge:hover {
  background: #cc0000;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(255, 70, 70, 0.6);
}

.rk-cta-row .rk-watch-btn {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
}

.rk-cta-row .rk-replay-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  color: #f4c542 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(244, 197, 66, 0.35) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rk-cta-row .rk-replay-btn:hover {
  background: rgba(244, 197, 66, 0.14) !important;
  border-color: rgba(244, 197, 66, 0.55) !important;
  color: #ffd86a !important;
  transform: translateY(-1px);
}

.rk-cta-row .rk-replay-btn img,
.rk-cta-row .rk-replay-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
}

/* --------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .rk-channel-wrapper {
    margin: 20px 12px 28px;
    display: block;
  }

  .rk-channel-player {
    width: 100%;
    max-width: 100%;
    padding: 16px 14px 18px;
    border-radius: 18px;
    overflow: hidden;
  }

  .rk-header-icons {
    display: none;
  }

  .rk-header {
    gap: 10px;
  }

  .rk-logo-title {
    min-width: 0;
    gap: 10px;
  }

  .rk-title-meta {
    min-width: 0;
  }

  .rk-channel-name,
  .rk-channel-meta,
  .rk-program-title,
  .rk-program-subtitle {
    word-break: break-word;
  }

  .rk-program-title {
    font-size: 14px;
    line-height: 1.35;
  }

  .rk-program-subtitle {
    font-size: 12px;
    line-height: 1.4;
  }

  .rk-timeline-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "start live"
      "bar bar"
      "end end";
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
    margin-bottom: 14px;
  }

  .rk-time-start {
    grid-area: start;
    justify-self: start;
  }

  .rk-live-pill {
    grid-area: live;
    justify-self: end;
    align-self: center;
    padding: 6px 12px;
    font-size: 11px;
  }

  .rk-bar {
    grid-area: bar;
    width: 100%;
  }

  .rk-time-end {
    grid-area: end;
    justify-self: start;
  }

  .rk-cta-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .rk-cta-row .rk-watch-btn,
  .rk-cta-row .rk-live-badge,
  .rk-cta-row .rk-replay-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .rk-cta-row .rk-watch-btn {
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
  }

  .rk-cta-row .rk-replay-btn {
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
    line-height: 1.2;
  }
}