.welcome-scene {
  --welcome-gold: #e5bd79;
  --welcome-inset: clamp(14px, 3vw, 42px);
  --welcome-visual-height: clamp(16rem, 100svh - 14rem, 42rem);
  --welcome-fit-width: calc(var(--welcome-visual-height) * 16 / 9);
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: grid;
  grid-template-columns: var(--welcome-inset) minmax(0, 24%) minmax(0, 1fr);
  grid-template-rows: minmax(12px, .42fr) auto auto minmax(12px, 1fr);
  width: 100%;
  max-width: min(100%, var(--welcome-fit-width));
  min-width: 0;
  margin-inline: auto;
  overflow: hidden;
  color: #fff5ee;
  background: #1d1021;
  border: 1px solid #634a64;
  border-radius: 12px;
}

.station-scene .air:has(.welcome-home) {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.station-scene .air:has(.welcome-home) .antenna-panel {
  max-width: none;
}

.listening-app .welcome-radio {
  max-width: min(1080px, var(--welcome-fit-width));
  margin: clamp(14px, 3vw, 32px) auto 0;
}

.welcome-media {
  position: relative;
  grid-area: 1 / 1 / -1 / -1;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  height: 56.25cqw;
  overflow: hidden;
  background: #251635;
}

.welcome-media picture,
.welcome-media img,
.welcome-video {
  display: block;
  width: 100%;
  height: 100%;
}

.welcome-media img,
.welcome-video {
  object-fit: contain;
  object-position: center;
}

.welcome-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.welcome-scene[data-video-visible] .welcome-video { opacity: 1; }

.welcome-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #150918c7, #190a1f80 19%, transparent 38%);
}

.welcome-copy {
  position: relative;
  z-index: 1;
  grid-area: 2 / 2;
  min-width: 0;
  margin: 0;
}

.station-scene .welcome-home .welcome-copy { padding: 0 0 .85rem; }
.station-scene .welcome-home #station-title.station-wordmark { width: min(100%, 19rem); }
.welcome-home .welcome-copy .poster-caption { align-items: start; margin-top: .65rem; }
.welcome-home .welcome-copy .poster-caption strong {
  color: #fff0f8;
  font-size: clamp(.78rem, 1.25vw, 1rem);
  letter-spacing: .15em;
}
.welcome-home .welcome-copy .poster-caption span { display: none; }
.welcome-home .welcome-copy .artist-intro { display: none; }

.welcome-radio .welcome-copy h1 {
  margin: 0 0 .85rem;
  color: inherit;
  font: clamp(1.75rem, 4vw, 4rem) / .95 'LM Charte Sans', system-ui, sans-serif;
  letter-spacing: -.075em;
}

.welcome-radio .welcome-copy h1 em {
  display: block;
  color: #d9b4ff;
  font-style: normal;
}

.welcome-radio-desktop-tag { display: none; }

.welcome-actions {
  z-index: 2;
  grid-area: 3 / 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-self: start;
  gap: .55rem;
  width: 100%;
  max-width: 14rem;
}

.welcome-play,
.welcome-actions .welcome-film-open,
.welcome-motion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .58em;
  min-width: 0;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
  cursor: pointer;
}

.welcome-actions .welcome-film-open {
  padding: .5em .72em;
  color: #fff6ef;
  background: #251526e6;
  border-color: #d1aabf;
  font-size: .875rem;
}

.welcome-actions .welcome-film-open:hover { background: #402443; }
.welcome-actions .welcome-film-open[hidden] { display: none; }

@container (min-width: 54rem) {
  .welcome-actions:has(.welcome-film-open:not([hidden])) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
  .welcome-actions .welcome-play { font-size: .9rem; }
}

.welcome-play {
  padding: .5em .72em;
  color: #200c28;
  background: #fff0e7;
  border-color: #ffdec1;
  font-weight: 800;
  box-shadow: 0 3px 14px #10070de0;
}

.welcome-play:hover { background: #fff8ef; }

.welcome-motion {
  position: absolute;
  z-index: 3;
  inset: .75rem var(--welcome-inset) auto auto;
  min-height: 44px;
  padding: .35em .62em;
  color: #fff5ee;
  background: #1c101cdb;
  border-color: #947587;
  font-size: .875rem;
}

.welcome-motion[hidden] { display: none; }
.welcome-motion:hover { background: #311a38; }

.welcome-actions button:focus-visible,
.welcome-motion:focus-visible {
  outline: 2px solid #fff1b7;
  outline-offset: 3px;
}

.welcome-play-icon {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-top: .39em solid transparent;
  border-bottom: .39em solid transparent;
  border-left: .61em solid currentColor;
}

.welcome-play[aria-pressed="true"] .welcome-play-icon {
  width: .65em;
  height: .73em;
  border: 0 solid currentColor;
  border-inline-width: .21em;
}

.welcome-gold {
  position: absolute;
  z-index: 1;
  top: 60.9%;
  left: 0;
  width: 30%;
  height: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(4px, 1.25vw, 16px);
  color: var(--welcome-gold);
  background: linear-gradient(90deg, #e9b16b 9%, #ffe2ab 71%, transparent);
  box-shadow: 0 0 7px #f7c4865e;
  transform: rotate(4deg);
  transform-origin: left;
  pointer-events: none;
}

.welcome-gold i {
  --bar-height: clamp(9px, 2vw, 26px);
  width: 2px;
  height: var(--bar-height);
  border-radius: 10px;
  background: currentColor;
  transform: scaleY(.035);
}

.welcome-scene[data-on-air] .welcome-gold i {
  animation: welcome-wave .62s ease-in-out infinite alternate var(--wave-delay, 0s);
}

.welcome-scene[data-still] .welcome-gold i { animation: none; }

.welcome-gold i:nth-child(3n + 1) { --wave-delay: -.31s; --bar-height: clamp(9px, 3vw, 31px); }
.welcome-gold i:nth-child(3n + 2) { --wave-delay: -.51s; --bar-height: clamp(11px, 3.5vw, 34px); }
.welcome-gold i:nth-child(odd) { transform-origin: center 40%; }

@keyframes welcome-wave {
  from { transform: scaleY(.12); }
  to { transform: scaleY(.85); }
}

@media (min-width: 741px) {
  .welcome-home {
    /* The programme links sit above the image, and the player stays fixed below it. */
    --welcome-visual-height: clamp(16rem, 100svh - 18.5rem, 42rem);
  }

  .welcome-radio-title {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
  }

  .welcome-radio-desktop-tag {
    display: block;
    width: min(100%, 19rem);
    margin-inline-start: -4px;
    color: #fff0f8;
    font: 750 clamp(.78rem, 1.25vw, 1rem) / 1.2 system-ui, sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
  }

  .welcome-radio-desktop-tag img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: .65rem;
    filter: drop-shadow(0 9px 13px #0b0318b0);
  }
}

@media (min-width: 1341px) {
  .welcome-home { --welcome-visual-height: clamp(16rem, 100svh - 22.5rem, 42rem); }
}

@media (min-width: 741px) and (max-height: 800px) {
  .welcome-scene { grid-template-rows: minmax(12px, .18fr) auto auto minmax(12px, 1fr); }
}

@media (max-width: 1020px) {
  .station-nav .app-lookbook-in-header { display: none; }
}

@media (max-width: 740px) {
  .welcome-scene,
  .listening-app .welcome-radio {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    max-width: min(100%, 32rem, calc(1.1 * max(295px, 50svh)));
  }
  .welcome-media {
    grid-area: 1 / 1;
    aspect-ratio: 4 / 5;
    height: min(125cqw, max(295px, 50svh));
    max-height: max(295px, 50svh);
    container-type: inline-size;
  }
  .welcome-media img,
  .welcome-video {
    object-fit: cover;
    object-position: center top;
  }
  .welcome-media::after {
    background: linear-gradient(180deg, transparent 78%, #1d1021bb);
  }
  .welcome-copy {
    grid-area: 1 / 1;
    align-self: end;
    margin: 0 12px 10px;
    max-width: 50%;
  }
  .station-scene .welcome-home .welcome-copy { padding: 0; }
  .station-scene .welcome-home #station-title.station-wordmark { width: min(145px, 100%); }
  .welcome-home .welcome-copy .poster-caption {
    margin-top: 3px;
    gap: 0;
  }
  .welcome-home .welcome-copy .poster-caption strong { font-size: .75rem; }
  .welcome-radio .welcome-copy h1 { margin: 0; font-size: clamp(1.5rem, 5.8vw, 2.8rem); }
  .welcome-actions {
    grid-area: 2 / 1;
    max-width: none;
    min-height: 0;
    gap: 8px;
    padding: 10px 12px;
    background: #1d1021;
  }
  .welcome-actions:has(.welcome-film-open:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-actions .welcome-play { font-size: .94rem; }
  .welcome-motion {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    align-self: end;
    justify-self: end;
    max-width: 40%;
    margin: 0 10px 10px 0;
    font-size: .75rem;
  }
  .welcome-gold { top: 63.5%; top: 79.3cqw; width: 15.5%; gap: 4px; }
  .welcome-gold i:nth-child(n+9) { display: none; }
}

@media (max-width: 335px) {
  .welcome-actions:has(.welcome-film-open:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-scene[data-on-air] .welcome-gold i { animation: none; }
}
