
/* ============================================================
   RigarduMás Highlights — v2.1.0
   Style premium inspiré Canal+ / Orange TV
   ============================================================ */

.rgd-hl {
  --stroke: rgba(255,255,255,.10);
  --text: #fff;
  --muted: rgba(255,255,255,.78);
  --card-r: 16px;
  --card-h: 404px;
  max-width: 1360px;
  margin: 0 auto;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.rgd-hl__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
}

.rgd-hl__title {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  color: #fff;
}

.rgd-hl__viewport {
  position: relative;
}

.rgd-hl__arrow {
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,8,8,.55);
  color: #fff;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, opacity .18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.rgd-hl__arrow--left { left: 12px; }
.rgd-hl__arrow--right { right: 12px; }
.rgd-hl__arrow:hover {
  background: rgba(20,20,20,.82);
  border-color: rgba(255,255,255,.22);
}
.rgd-hl__arrow span{
  font-size: 24px;
  line-height: 1;
  margin-top: -2px;
}
.rgd-hl__arrow.is-disabled{
  opacity: .35;
  pointer-events: none;
}

/* Slider track */
.rgd-hl__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 16px) / 2);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rgd-hl__track::-webkit-scrollbar { display: none; }
.rgd-hl__slide { scroll-snap-align: start; }

/* Card */
.rgd-hl__card {
  position: relative;
  display: block;
  height: var(--card-h);
  border-radius: var(--card-r);
  overflow: hidden;
  background: #0c0d12;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 32px rgba(0,0,0,.42);
  transition: transform .22s ease, box-shadow .22s ease;
}
.rgd-hl__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0,0,0,.56);
}
.rgd-hl__media {
  position: absolute;
  inset: 0;
  background: #0d0d18 center/cover no-repeat;
  transition: transform .4s ease;
}
.rgd-hl__card:hover .rgd-hl__media { transform: scale(1.03); }

.rgd-hl__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.00) 0%,
      rgba(0,0,0,.10) 36%,
      rgba(0,0,0,.68) 70%,
      rgba(0,0,0,.92) 100%
    );
  z-index: 1;
}
.rgd-hl__overlay-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 28%);
  z-index: 1;
}

.rgd-hl__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px 20px;
}

.rgd-hl__topline {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rgd-hl__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.16);
  color: #fff;
  backdrop-filter: blur(6px);
}

.rgd-hl__logo {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0,0,0,.56);
  border: 1px solid rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.rgd-hl__logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.rgd-hl__card-title {
  font-family: "DM Sans", sans-serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 0 0 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
  max-width: 92%;
}

.rgd-hl__subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.42;
  max-width: 88%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rgd-hl__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 56px;
}
.rgd-hl__meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(5px);
}

.rgd-hl__slide.is-pinned .rgd-hl__card {
  outline: 2px solid rgba(255,255,255,.22);
}

@media (max-width: 980px) {
  .rgd-hl { --card-h: 350px; }
  .rgd-hl__track { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
  .rgd-hl__card-title { font-size: 24px; max-width: 95%; }
  .rgd-hl__subtitle { font-size: 13px; }
}

@media (max-width: 767px) {
  .rgd-hl { --card-h: 290px; }
  .rgd-hl__title { font-size: 22px; }
  .rgd-hl__track { grid-auto-columns: calc(100% - 46px); gap: 12px; }
  .rgd-hl__arrow { width: 40px; height: 40px; }
  .rgd-hl__arrow--left { left: 8px; }
  .rgd-hl__arrow--right { right: 8px; }
  .rgd-hl__content { padding: 16px; }
  .rgd-hl__topline { top: 14px; left: 14px; right: 14px; }
  .rgd-hl__logo {
    left: 16px;
    bottom: 16px;
    width: 38px;
    height: 38px;
  }
  .rgd-hl__card-title { font-size: 20px; margin-bottom: 8px; max-width: 100%; }
  .rgd-hl__subtitle { display: none; }
  .rgd-hl__meta { padding-left: 48px; gap: 6px; }
  .rgd-hl__meta-pill { min-height: 24px; font-size: 11px; padding: 0 8px; }
}
