/* Paris T’aime V2 — pt-univers-video-rail
   Carousel vidéo spécifique aux univers.
*/

.pt-univers-video-rail {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.pt-univers-video-rail,
.pt-univers-video-rail * {
  box-sizing: border-box;
}

.pt-univers-video-rail__head {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.pt-univers-video-rail__head h2 {
  max-width: 980px;
  margin: 0;
  color: #f4eee1;
  font-family: var(--pt-serif, Georgia, serif);
  font-size: clamp(2.6rem, 5vw, 6.1rem);
  font-weight: 850;
  letter-spacing: -.06em;
  line-height: .88;
}

.pt-univers-video-rail__head p,
.pt-univers-video-rail__empty {
  max-width: 760px;
  margin: 0;
  color: rgba(244, 238, 225, .60);
  font-family: var(--pt-sans, Inter, system-ui, sans-serif);
  font-size: clamp(15px, 1.08vw, 17px);
  line-height: 1.72;
}

.pt-univers-video-rail__grid {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: none;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 0 clamp(18px, 5vw, 72px) 14px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #661919 rgba(255, 255, 255, .08);
}

.pt-univers-video-rail__grid::-webkit-scrollbar {
  height: 8px;
}

.pt-univers-video-rail__grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .08);
  border-radius: 3px;
}

.pt-univers-video-rail__grid::-webkit-scrollbar-thumb {
  background: #661919;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .08);
}

.pt-univers-video-rail__card {
  flex: 0 0 clamp(320px, 34vw, 460px);
  min-width: 0;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(242, 235, 221, .13);
  border-radius: 3px;
  background:
    radial-gradient(circle at 16% 0%, rgba(102, 25, 25, .12), transparent 16rem),
    linear-gradient(145deg, rgba(8, 13, 22, .96), rgba(3, 4, 6, .98));
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.pt-univers-video-rail__card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 235, 221, .22);
  background:
    radial-gradient(circle at 16% 0%, rgba(102, 25, 25, .18), transparent 16rem),
    linear-gradient(145deg, rgba(11, 18, 32, .98), rgba(3, 4, 6, .98));
}

.pt-univers-video-rail__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080d16;
}

.pt-univers-video-rail__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(8, 13, 22, .08) 42%, rgba(3, 4, 6, .46) 100%),
    linear-gradient(180deg, rgba(3, 4, 6, .02), rgba(3, 4, 6, .30));
}

.pt-univers-video-rail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.pt-univers-video-rail__card:hover .pt-univers-video-rail__media img {
  transform: scale(1.04);
  filter: brightness(.84) contrast(1.04);
}

.pt-univers-video-rail__play {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff8ec;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: clamp(40px, 4.2vw, 54px);
  line-height: 1;
  text-shadow: 0 10px 24px rgba(3, 4, 6, .85);
  pointer-events: none;
}

.pt-univers-video-rail__body {
  display: block;
  padding: 18px;
}

.pt-univers-video-rail__body small {
  display: block;
  color: #661919;
  font-family: var(--pt-sans, Inter, system-ui, sans-serif);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.pt-univers-video-rail__body strong {
  display: block;
  margin-top: 10px;
  color: #f4eee1;
  font-family: var(--pt-serif, Georgia, serif);
  font-size: clamp(1.45rem, 1.9vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: .98;
}

@media (max-width: 920px) {
  .pt-univers-video-rail__card {
    flex-basis: clamp(270px, 62vw, 380px);
  }
}

@media (max-width: 560px) {
  .pt-univers-video-rail__grid {
    gap: 12px;
    padding-bottom: 12px;
  }

  .pt-univers-video-rail__card {
    flex-basis: 82vw;
  }

  .pt-univers-video-rail__body {
    padding: 16px;
  }

  .pt-univers-video-rail__play {
    font-size: 42px;
  }

  .pt-univers-video-rail__head h2 {
    font-size: clamp(2.2rem, 12vw, 4.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt-univers-video-rail__card,
  .pt-univers-video-rail__media img {
    transition: none;
  }

  .pt-univers-video-rail__card:hover,
  .pt-univers-video-rail__card:hover .pt-univers-video-rail__media img {
    transform: none;
  }
}
