/*
 * ln-home-shows.css - the Shows section of the home page (shows overhaul, step D1)
 * Loaded only on a home page that prints the section (inc/shows-entry.php), so a
 * site without a public show loads nothing new.
 *
 * The home page is print: cream paper, plum ink, article cards. This band is the
 * one place where it changes to the streaming surface of the Shows views: the
 * same deep canvas, the show's 16:9 art as the object, one action. The brand's
 * gradient rule opens it, as it opens every page, so it still belongs.
 * Self-contained: css/ln-shows.css is not loaded here.
 */

.ln-home-shows {
  --hs-canvas: #1A0D17;
  --hs-ink: #F5EDD8;
  --hs-ink-soft: #CFC2B6;
  --hs-accent: var(--show-on-canvas, #D4A853);
  --hs-line: rgba(245, 237, 216, 0.18);
  position: relative;
  padding: 72px 56px 80px;
  background: var(--hs-canvas);
  color: var(--hs-ink);
  font-family: var(--font-sans);
}
.ln-home-shows::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tierra, #C4622D), var(--oro, #D4A853), var(--teal, #2A9D8F), var(--plum, #5C2D4E));
}
.ln-home-shows__in {
  max-width: 1300px;
  margin: 0 auto;
}
.ln-home-shows p { margin: 0; color: inherit; }
.ln-home-shows a { color: inherit; }
.ln-home-shows :focus-visible {
  outline: 3px solid #F5EDD8;
  outline-offset: 3px;
}

.ln-home-shows__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: 32px;
}
.ln-home-shows__eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hs-accent) !important;
}
.ln-home-shows__h {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--hs-ink);
}
.ln-home-shows__all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.ln-home-shows__all:hover { color: var(--hs-accent); }

.ln-home-shows__feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

/* The picture: always 16:9, the show's art or its wordmark on its own colour. */
.ln-home-shows__art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--show-surface, #3D1D34);
  color: var(--show-ink, #F5EDD8);
  text-decoration: none;
  outline: 1px solid var(--hs-line);
  outline-offset: -1px;
}
.ln-home-shows__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ln-home-shows__img.ln-focus-top { object-position: 50% 0; }
.ln-home-shows__img.ln-focus-bottom { object-position: 50% 100%; }
.ln-home-shows__img.ln-focus-left { object-position: 0 50%; }
.ln-home-shows__img.ln-focus-right { object-position: 100% 50%; }
.ln-home-shows__feature:hover .ln-home-shows__img { transform: scale(1.03); }
.ln-home-shows__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(25deg, var(--show-surface, #3D1D34) 0%, transparent 62%);
}
.ln-home-shows .ln-lockup { display: block; }
.ln-home-shows .ln-lockup--mask {
  width: min(100%, var(--lockup-w, 340px));
  aspect-ratio: var(--lockup-ratio, 3 / 1);
  background-color: var(--show-mark, currentColor);
  -webkit-mask: var(--lockup-src) left center / contain no-repeat;
  mask: var(--lockup-src) left center / contain no-repeat;
  forced-color-adjust: none;
}
.ln-home-shows .ln-lockup--img { width: auto; height: auto; max-width: min(100%, var(--lockup-w, 340px)); max-height: var(--lockup-h, 170px); }
.ln-home-shows .ln-lockup--text {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  font-weight: 700;
  line-height: 0.95;
}
.ln-home-shows__lockup {
  position: absolute;
  left: 6%;
  bottom: 8%;
  --lockup-w: 46%;
  --lockup-h: 36%;
  max-width: 46%;
}
.ln-home-shows--type .ln-home-shows__art { border-bottom: 5px solid var(--show-rule, #D4A853); }
.ln-home-shows--type .ln-home-shows__lockup {
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  --lockup-w: 62%;
  --lockup-h: 60%;
  max-width: 76%;
  text-align: center;
}
.ln-home-shows--type .ln-lockup--mask { -webkit-mask-position: center; mask-position: center; }
/* The play mark says "this plays", only when an episode can be played. */
.ln-home-shows__play {
  position: absolute;
  right: 5%;
  bottom: 8%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(14, 6, 12, 0.82);
  box-shadow: 0 0 0 2px #F5EDD8;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.ln-home-shows__play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -11px 0 0 -6px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #F5EDD8;
}
.ln-home-shows__feature:hover .ln-home-shows__play { transform: scale(1.08); background: #0E060C; }
.ln-home-shows__runtime {
  position: absolute;
  right: calc(5% + 78px);
  bottom: calc(8% + 18px);
  padding: 4px 9px;
  background: rgba(14, 6, 12, 0.88);
  color: #F5EDD8;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.ln-home-shows__kicker {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hs-ink-soft) !important;
}
.ln-home-shows__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  font-weight: 600;
  line-height: 1.02;
  color: var(--hs-ink);
}
.ln-home-shows__title a { text-decoration: none; }
.ln-home-shows__title a:hover { text-decoration: underline; text-underline-offset: 6px; }
.ln-home-shows__synopsis {
  margin-top: 14px !important;
  max-width: 32rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem) !important;
  line-height: 1.3 !important;
}
.ln-home-shows__meta {
  margin-top: 14px !important;
  font-size: 0.8125rem !important;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hs-ink-soft) !important;
}
.ln-home-shows__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 26px;
}
.ln-home-shows__note {
  flex: 1 1 100%;
  max-width: 30rem;
  padding-left: 16px;
  border-left: 3px solid var(--hs-accent);
  font-size: 1.0625rem !important;
  line-height: 1.5 !important;
}
.ln-home-shows__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  min-height: 52px;
  padding: 10px 24px;
  border: 2px solid transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.ln-home-shows__btn--primary {
  background: #F5EDD8;
  border-color: #F5EDD8;
  color: #24121F !important;
}
.ln-home-shows__btn--primary:hover { transform: translateY(-2px); }
.ln-home-shows__btn--ghost { border-color: currentColor; }
.ln-home-shows__btn--ghost:hover { background: rgba(245, 237, 216, 0.12); }
.ln-home-shows__btn-icon {
  flex: none;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent currentColor;
}
.ln-home-shows__btn-text { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.ln-home-shows__btn-what {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}

@media (min-width: 900px) {
  .ln-home-shows__feature {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 64px);
  }
}
@media (max-width: 1100px) {
  .ln-home-shows { padding: 64px 40px 72px; }
}
@media (max-width: 760px) {
  .ln-home-shows { padding: 48px 24px 56px; }
  .ln-home-shows__head { margin-bottom: 22px; }
  /* Edge to edge on a phone: the picture carries the band. */
  .ln-home-shows__art { margin-left: -24px; margin-right: -24px; outline: 0; }
  .ln-home-shows__play { width: 52px; height: 52px; }
  .ln-home-shows__runtime { right: calc(5% + 64px); bottom: calc(8% + 12px); }
}

@media (prefers-reduced-motion: reduce) {
  .ln-home-shows * { transition: none !important; }
  .ln-home-shows__feature:hover .ln-home-shows__img,
  .ln-home-shows__feature:hover .ln-home-shows__play,
  .ln-home-shows__btn--primary:hover { transform: none; }
}
@media (forced-colors: active) {
  .ln-home-shows .ln-lockup--mask { background-color: CanvasText; }
  .ln-home-shows__btn { border: 2px solid ButtonText; }
}
