/* LIBERTINE · RED ROOM — square sleeves and neon signature across the series. */
:root {
  --rr-neon: #ff1e42;
  --rr-ink: #0d0d0d;
  --rr-glow: 0 0 18px rgb(255 30 66 / 45%);
}

html.lm-site:not(#lm-redroom) .redroom-capsule {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  width: max-content;
  margin: 0;
  padding: .42em 1em .38em;
  border: 1px solid var(--rr-neon);
  border-radius: 999px;
  background: var(--rr-ink);
  box-shadow: var(--rr-glow), inset 0 0 10px rgb(255 30 66 / 18%);
  color: #fff;
  font: 800 .72rem/1 'LM Charte Sans', system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

html.lm-site:not(#lm-redroom) .redroom-capsule::before {
  content: "";
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: var(--rr-neon);
  box-shadow: 0 0 8px var(--rr-neon);
}

/* Square sleeve frames: the sleeve number sits in the bottom band, never crop it. */
html.lm-site:not(#lm-redroom) :is(
  .home-libertine .home-cover,
  .actu-card[data-entry^="libertine-"] .home-cover,
  body.libertine-index .discovery-card .lm-vinyl,
  body[data-libertine-set] .discovery-hero-art
) {
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
}

html.lm-site:not(#lm-redroom) :is(
  .home-libertine .home-cover img,
  .actu-card[data-entry^="libertine-"] img,
  body.libertine-index .discovery-card-image,
  body[data-libertine-set] .discovery-hero-art img
) {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  transform: none;
}

html.lm-site:not(#lm-redroom) body[data-libertine-set] .discovery-hero-art picture { display: block; height: 100%; }

/* The sleeve already carries "LIBERTINE NNN": keep the heading for assistive tech only. */
html.lm-site:not(#lm-redroom) :is(
  .actu-card[data-entry^="libertine-"]:has(img[src^="/assets/libertine/libertine-"]) :is(h2, h3),
  body.libertine-index .discovery-card h3
) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Neon signature on every LIBERTINE card. */
html.lm-site:not(#lm-redroom) :is(
  .home-libertine .home-set-card > a,
  .actu-card[data-entry^="libertine-"] > a,
  body.libertine-index .discovery-card
) {
  border-color: rgb(255 30 66 / 32%);
  background: var(--rr-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}

html.lm-site:not(#lm-redroom) :is(
  .home-libertine .home-set-card > a,
  .actu-card[data-entry^="libertine-"] > a,
  body.libertine-index .discovery-card
):is(:hover, :focus-within) {
  border-color: var(--rr-neon);
  box-shadow: var(--rr-glow);
}

html.lm-site:not(#lm-redroom) :is(.home-libertine, .actu-card[data-entry^="libertine-"]) .home-cover-play {
  background: var(--rr-neon);
  color: #fff;
  box-shadow: 0 0 14px rgb(255 30 66 / 60%);
}

html.lm-site:not(#lm-redroom) .home-libertine .section-heading { flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
html.lm-site:not(#lm-redroom) .home-libertine .section-heading .redroom-capsule { order: 1; flex-basis: auto; }
html.lm-site:not(#lm-redroom) .home-libertine .section-heading .text-link { margin-inline-start: auto; }

html.lm-site:not(#lm-redroom) :is(body.libertine-index, body[data-libertine-set]) .discovery-hero .redroom-capsule { margin-block: .25rem .9rem; }

html.lm-site:not(#lm-redroom) body[data-libertine-set] .discovery-hero-art,
html.lm-site:not(#lm-redroom) body.libertine-index .discovery-hero-art {
  border: 1px solid rgb(255 30 66 / 45%);
  border-radius: 12px;
  box-shadow: var(--rr-glow);
}

@media (prefers-reduced-motion: reduce) {
  html.lm-site:not(#lm-redroom) :is(.home-libertine .home-set-card > a, .actu-card[data-entry^="libertine-"] > a, body.libertine-index .discovery-card) { transition: none; }
}

/* Homepage set cards: duration pill top right, one caption line under the sleeve. */
html.lm-site:not(#lm-redroom) body.editorial-home .home-libertine .home-set-card .home-cover-duration {
  inset: .6rem .6rem auto auto;
  padding: .3rem .6rem;
  border: 1px solid rgb(255 30 66 / 55%);
  border-radius: 999px;
  background: rgb(13 13 13 / 82%);
  box-shadow: 0 0 10px rgb(255 30 66 / 35%);
  font-size: .72rem;
}

html.lm-site:not(#lm-redroom) body.editorial-home .home-libertine .home-set-card .home-cover-play {
  opacity: 0;
  transition: opacity .2s ease;
}

html.lm-site:not(#lm-redroom) body.editorial-home .home-libertine .home-set-card > a:is(:hover, :focus-visible) .home-cover-play { opacity: 1; }

html.lm-site:not(#lm-redroom) body.editorial-home .home-libertine .home-set-card .home-set-line {
  margin: .7rem 0 0;
  overflow: hidden;
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.lm-site:not(#lm-redroom) body.editorial-home .home-libertine .home-set-card .home-set-line span { color: var(--rr-neon); font-weight: 600; }

@media (hover: none) {
  html.lm-site:not(#lm-redroom) body.editorial-home .home-libertine .home-set-card .home-cover-play { opacity: 1; inset: .6rem auto auto .6rem; width: 2.6rem; height: 2.6rem; translate: none; }
}


/* LIBERTINE · BOOTH 16:9 (2026-12-02) — every set is shown as the filmed Red Room booth, full frame. */
html.lm-site:not(#lm-redroom) :is(.home-libertine .home-cover.lm-booth, body.libertine-index .discovery-card .lm-booth, body.libertine-index .discovery-hero-art.lm-booth) {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  border-radius: 14px;
  background: #120306;
}
html.lm-site:not(#lm-redroom) :is(.home-libertine .home-cover.lm-booth img, body.libertine-index .discovery-card .lm-booth img, body.libertine-index .discovery-hero-art.lm-booth img) {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 0;
  transform: none;
  margin: 0;
}
html.lm-site:not(#lm-redroom) .lm-live-badge {
  position: absolute;
  z-index: 2;
  top: .6rem;
  left: .6rem;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .38em .75em .34em;
  border: 1px solid var(--rr-neon);
  border-radius: 999px;
  background: rgb(13 13 13 / 82%);
  box-shadow: var(--rr-glow);
  color: #fff;
  font: 800 .68rem/1 'LM Charte Sans', system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
html.lm-site:not(#lm-redroom) .lm-live-badge::before {
  content: "";
  width: .6em;
  height: .6em;
  border-radius: 50%;
  background: var(--rr-neon);
  box-shadow: 0 0 8px var(--rr-neon);
}
/* The episode number must stay readable under each 16:9 card. */
html.lm-site:not(#lm-redroom) body.libertine-index .discovery-card h3 {
  position: static;
  width: auto;
  height: auto;
  margin: .7rem 0 .2rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}
html.lm-site:not(#lm-redroom) body.libertine-index .discovery-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
