/* Secondary pages inside the shared shell: carbon background, dark glass cards, violet pill buttons,
   Space Grotesk 500/700 everywhere (see charte.css), and a glass dock. Loaded after the page sheets. */
html.lm-site:has(body.lm-page) { background: #09090c; }

html.lm-site:not(#lm-pages) body.lm-page {
  --lm-violet: #8a2be2;
  --lm-yellow: #ffd600;
  --lm-glass: rgb(255 255 255 / 3.5%);
  --lm-line: rgb(255 255 255 / 9%);
  margin: 0;
  padding-top: calc(var(--lm-topbar-height, 72px) + 12px);
  background: #09090c !important;
  color: #e9e9ee;
  font-family: 'LM Charte Sans', system-ui, sans-serif;
}

html.lm-site:not(#lm-pages) body.lm-page :is(.discovery-skip, .skip-link):not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}

/* Titles, text, data */
html.lm-site:not(#lm-pages) body.lm-page main :is(h1, h2, h3, h4) {
  font-family: 'LM Charte Sans', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}
html.lm-site:not(#lm-pages) body.lm-page main h1 { font-size: clamp(2rem, 5vw, 3.4rem) !important; line-height: 1.02; }
html.lm-site:not(#lm-pages) body.lm-page main h2 { font-size: 1.25rem !important; text-transform: uppercase; letter-spacing: .05em; color: #f5f5f7; }
html.lm-site:not(#lm-pages) body.lm-page main :is(p, li, dd, summary, label) { font-family: 'LM Charte Sans', system-ui, sans-serif; }
html.lm-site:not(#lm-pages) body.lm-page main :is(time, .weekly-day, .international-meta, .radio-libertine-meta, .international-session-stats, .radio-live-badge, .weekly-masthead p:first-child, .discovery-kicker) {
  font-family: 'LM Charte Sans', sans-serif;
  font-size: .75rem !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Dark glass cards: no thick yellow frames, no offset shadows */
html.lm-site:not(#lm-pages) body.lm-page main :is(
  .discovery-card, .weekday-focus-card, .international-card, .weekly-slot, .schedule-player, .radio-live-next,
  .weekly-masthead, .weekly-signal, .radio-libertine-card, .discovery-section > details, .radio-editorial-install, .weekly-mix-tracklist
) {
  border: 1px solid var(--lm-line) !important;
  border-radius: 10px !important;
  background: var(--lm-glass) !important;
  box-shadow: none !important;
  outline: 0;
}
html.lm-site:not(#lm-pages) body.lm-page main *:not(:focus-visible) { box-shadow: none !important; }
html.lm-site:not(#lm-pages) body.lm-page main :is(.programme-art, .weekday-focus-art, .international-art, .radio-live-cover, .radio-programme-art) {
  border: 0 !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: none !important;
}
html.lm-site:not(#lm-pages) body.lm-page main :is(.programme-art, .weekday-focus-art, .international-art) img { border: 0 !important; border-radius: 8px; }
html.lm-site:not(#lm-pages) body.lm-page main .discovery-section { border: 0 !important; background: transparent !important; box-shadow: none !important; }

/* Buttons */
html.lm-site:not(#lm-pages) body.lm-page main :is(.discovery-button, .schedule-player-toggle, .weekly-masthead-link) {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 40px; padding: .55rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 18%) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #f5f5f7 !important;
  font: 500 .875rem/1.1 'LM Charte Sans', system-ui, sans-serif !important;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
html.lm-site:not(#lm-pages) body.lm-page main :is(.discovery-button--primary, .schedule-player-toggle) {
  border-color: transparent !important;
  background: var(--lm-violet) !important;
  color: #fff !important;
}
html.lm-site:not(#lm-pages) body.lm-page main :is(.discovery-button, .schedule-player-toggle, .weekly-masthead-link):is(:hover, :focus-visible) {
  border-color: rgb(255 255 255 / 34%) !important;
  background: rgb(138 43 226 / 22%) !important;
}
html.lm-site:not(#lm-pages) body.lm-page main :is(.discovery-button--primary, .schedule-player-toggle):is(:hover, :focus-visible) { background: #9d4bf0 !important; }
html.lm-site:not(#lm-pages) body.lm-page main :is(.radio-live-badge, .international-on-air) {
  border: 0 !important; border-radius: 999px !important;
  background: rgb(255 214 0 / 12%) !important; color: var(--lm-yellow) !important;
  padding: .25rem .6rem;
}

/* Fixed radio dock: dark glass, violet round toggle */
html.lm-site:not(#lm-pages) body.lm-page .radio-dock {
  border: 0 !important;
  border-top: 1px solid var(--lm-line) !important;
  background: rgb(10 10 14 / 86%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 -12px 40px rgb(0 0 0 / 45%) !important;
}
html.lm-site:not(#lm-pages) body.lm-page .radio-dock :is(strong, span) { font-family: 'LM Charte Sans', sans-serif; }
html.lm-site:not(#lm-pages) body.lm-page .radio-dock-toggle {
  width: 46px; height: 46px; border: 0 !important; border-radius: 50% !important;
  background: var(--lm-violet) !important; color: #fff !important; box-shadow: 0 0 0 4px rgb(138 43 226 / 20%) !important;
}
html.lm-site:not(#lm-pages) body.lm-page .radio-dock img { border: 0 !important; border-radius: 6px; }
html.lm-site:not(#lm-pages) body.lm-page .radio-dock-progress { accent-color: var(--lm-violet); }
html.lm-site:not(#lm-pages) body.lm-page .radio-track-panel-trigger {
  border: 1px solid rgb(255 255 255 / 18%) !important; border-radius: 999px !important;
  background: transparent !important; color: #f5f5f7 !important; box-shadow: none !important;
  font: 500 .8125rem/1 'LM Charte Sans', system-ui, sans-serif !important;
}

/* Session pills replacing the native audio bars */
.lm-session-play {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 42px; margin: .4rem 0 .2rem; padding: .55rem 1.15rem .55rem .9rem;
  border: 0; border-radius: 999px;
  background: #8a2be2; color: #fff;
  font: 700 .75rem/1 'LM Charte Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease;
}
.lm-session-play:hover { background: #9d4bf0; }
.lm-session-play:active { transform: scale(.97); }
.lm-session-play:focus-visible { outline: 2px solid #ffd600; outline-offset: 3px; }
.lm-session-play[data-variant="yellow"] { background: #ffd600; color: #09090c; }
.lm-session-play[data-variant="yellow"]:hover { background: #ffe24d; }
.lm-session-play-icon { display: block; width: 0; height: 0; border-block: 6px solid transparent; border-inline-start: 10px solid currentColor; }
.lm-session-play[aria-pressed="true"] .lm-session-play-icon { width: 10px; height: 12px; border: 0; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.lm-session-wave { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.lm-session-wave i { display: block; width: 2px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: bottom; animation: lm-session-wave .9s ease-in-out infinite; }
.lm-session-wave i:nth-child(2) { animation-delay: -.3s; }
.lm-session-wave i:nth-child(3) { animation-delay: -.6s; }
.lm-session-wave i:nth-child(4) { animation-delay: -.15s; }
.lm-session-play[data-playing] .lm-session-wave { display: inline-flex; }
@keyframes lm-session-wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .lm-session-wave i { animation: none; transform: scaleY(.7); } }
[data-lm-session-card] { cursor: pointer; }
[data-lm-session-card][data-playing] { border-color: rgb(138 43 226 / 55%) !important; }

/* Inline listening reminder */
.lm-anywhere--inline { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .5rem 0 1.25rem; padding: 0; list-style: none; }
.lm-anywhere--inline .lm-anywhere-item {
  display: inline-flex; align-items: center; gap: .5rem; color: #c9c9d2;
  font: 400 .75rem/1 'LM Charte Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase;
}
.lm-anywhere--inline svg { color: #a970ff; }

/* Content scrolls under the fixed bar on long pages: a denser fade keeps the logo readable. */
html.lm-site:not(#lm-pages) body.lm-page .lm-topbar::before {
  background: linear-gradient(180deg, #09090c 0, rgb(9 9 12 / 97%) 70%, rgb(9 9 12 / 0) 100%);
}
