.record {
  --ink: #271f2c;
  --muted: #655b68;
  --line: #cfc6d1;
  --accent: #663b68;
  background: #f6f3f8;
  color-scheme: light;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.record .record-head, .record .record-body, .record figcaption { max-width: 68rem; }
.record .record-head { padding-block: clamp(1.25rem, 3vw, 2.8rem) 1.4rem; }
.record .back { display: inline-block; font-size: .92rem; color: var(--muted); margin-bottom: 1.65rem; }
.record .eyebrow { color: var(--accent); margin: 0 0 .45rem; }
.record h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1.03; margin: 0; }
.record-head h1 + p { margin: .7rem 0 0; line-height: 1.55; }
.record .manual-shortcut {
  display: inline-flex; gap: .55rem; align-items: center; min-height: 44px;
  margin-top: .45rem; color: var(--accent); font-weight: 700;
}
.record .record-cover { margin: 0; width: 100%; max-width: none; }
.record-cover > .image-frame { width: 100%; background: #211d25; }
.record-cover > .image-frame > img { display: block; width: 100%; height: auto; border-radius: 0; }
.artistes .record-cover .image-frame { height: clamp(9.5rem, 24vw, 19rem); }
.styles .record-cover .image-frame { height: clamp(11rem, 30vw, 24rem); }
:is(.artistes,.styles) .record-cover .image-frame > img { height: 100%; object-fit: cover; object-position: center var(--focus-y,50%); }
.record .record-cover.integral .image-frame > img { object-fit: contain; }
.record .record-cover.integral .image-frame {
  background: linear-gradient(110deg, #211d25, #3e3542 48%, #211d25);
}
.record .record-cover figcaption { width: min(92%,68rem); margin: .6rem auto 0; }
.record figcaption { font-size: .83rem; color: var(--muted); line-height: 1.55; }
.record figcaption span { display: block; }
.record .record-body { padding-block: 1.5rem clamp(3rem, 6vw, 6rem); }
.record-section {
  display: grid;
  grid-template-columns: minmax(12rem,.85fr) minmax(0,2fr);
  gap: clamp(1.5rem,4vw,4.5rem);
  border-top: 1px solid var(--line);
  padding-block: clamp(1.3rem,2.8vw,2.3rem);
}
.record-section h2 { font-size: clamp(1.2rem,2.3vw,1.8rem); line-height: 1.18; letter-spacing: -.025em; margin: 0; }
.record .section-body { line-height: 1.65; min-width: 0; max-width: 46rem; }
.record .section-body :is(p,ul,dl) { margin: 0; }
.record .section-body p + p { margin-top: .9rem; }
.record .section-body ul { padding-inline-start: 1.25rem; }
.record .section-body li + li { margin-top: .45rem; }
.record a { text-underline-offset: .15em; }
.record #en-bref {
  padding: clamp(1.05rem,2.5vw,1.9rem); margin-bottom: clamp(1.25rem,3vw,2.25rem);
  border: 1px solid #d5cadb; border-radius: .55rem;
  background: linear-gradient(115deg,#ece1f0,#f3edf6 55%,#edf1f0);
  scroll-margin-block-start: 1rem;
}
.record .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1.5rem; }
.facts > div { padding: .25rem 0 .75rem; border-bottom: 1px solid var(--line); }
.facts dt, .record .labelled b { color: var(--muted); font-size: .84rem; font-weight: 650; }
.facts dd { margin: .18rem 0 0; }
.record .labelled b { display: block; }
.record .manual-panel {
  grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1rem 2rem;
  margin: 0 0 clamp(1.25rem,3vw,2.25rem); padding: clamp(1.2rem,3vw,2.2rem);
  border: 0; border-radius: .55rem;
  background: #302133; color: #fff; scroll-margin-block-start: 1rem;
}
.manual-panel h2 { color: #fff; }
.manual-panel p { margin: .45rem 0 0; color: #ebdfea; line-height: 1.5; }
.record .manual-button {
  display: inline-flex; min-height: 46px; gap: .9rem; align-items: center; justify-content: center;
  padding: .65rem 1rem; border-radius: .4rem; background: #ffe1ef; color: #302133;
  font-weight: 700; text-decoration: none;
}
.record .manual-button:hover { background: white; text-decoration: underline; }
.record .manual-button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.manual-panel > .missing { justify-self: start; }
.record .section-body .style-cards {
  display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none;
}
.record .section-body .style-cards li { margin: 0; max-width: 100%; }
.style-cards a {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  min-height: 46px; padding: .6rem .9rem; border: 1px solid #c7b9cc; border-radius: .5rem;
  background: #fff; color: var(--ink); text-decoration: none;
}
.style-cards a:hover,.style-cards a:focus-visible { border-color: var(--accent); background: #f2e7f2; }
.style-cards a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.style-cards a span { color: var(--accent); }
.missing {
  display: inline-block; color: #574e5b; background: #ede8ee; border: 1px solid #d5cdd7;
  border-radius: 1rem; padding: .1rem .5rem; font: 500 .77rem/1.45 system-ui,sans-serif;
}
.record .gear-grid,.record .gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: .85rem; }
.record .gear-card {
  display: flex; align-items: flex-start; gap: .8rem; text-decoration: none; color: var(--ink); background: #fff;
  padding: .85rem; border: 1px solid var(--line); border-radius: .65rem;
}
.gear-card:hover strong,.gear-card:focus-visible strong { text-decoration: underline; }
.gear-card img { width: clamp(3.2rem,6vw,4.7rem); height: 3.2rem; object-fit: contain; flex: none; }
.gear-card :is(small,strong,span span) { display: block; }
.gear-card small { font-size: .75rem; color: var(--muted); }
.gear-card span span { margin-top: .2rem; font-size: .9rem; }
.record .record-media { margin: 0; }
.record-media .image-frame { background: #e6e1e7; border-radius: .5rem; }
.record-media img { display: block; width: 100%; height: 9.5rem; object-fit: contain; }
.record-media figcaption { margin-top: .4rem; }
.record .empty-photo { padding: 1rem 0; background: #eee9ed; }
.record .empty-photo figcaption { margin-block: 0; }
.spotify-credit { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem 0; color: inherit; }
.record .spotify-credit img { width: 80px; height: auto; }
@media (max-width: 680px) {
  .record-section { grid-template-columns: minmax(0,1fr); gap: .7rem; }
  .record .manual-panel { grid-template-columns: minmax(0,1fr); justify-items: start; }
  .record .record-head > .back { margin-bottom: 1rem; }
}
@media (max-width: 420px) { .record .facts { grid-template-columns: minmax(0,1fr); gap: .35rem; } }
.record .discovery-note { color: var(--muted); line-height: 1.5; margin: .25rem 0 .85rem; }
.artist-carousel { min-width: 0; }
.rail-controls { display: flex; justify-content: flex-end; gap: .5rem; margin-bottom: .65rem; }
.rail-controls[hidden] { display: none; }
.rail-controls button {
  appearance: none; width: 44px; height: 44px; border: 1px solid var(--accent);
  border-radius: 50%; background: #fff; color: var(--accent); cursor: pointer; font: 1.35rem/1 system-ui,sans-serif;
}
.rail-controls button:disabled { border-color: var(--line); color: #777078; opacity: .58; cursor: default; }
.rail-controls button:not(:disabled):hover { background: #efe5ef; }
.record .section-body .artist-rail {
  display: flex; align-items: stretch; gap: .9rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; list-style: none; padding: 0 0 .6rem; margin: 0;
  scrollbar-color: #9f819e transparent; scrollbar-width: thin;
}
.record .section-body .artist-slide {
  flex: 0 0 min(73%, 30rem); scroll-snap-align: start; margin: 0; min-width: 0;
  border: 1px solid var(--line); border-radius: .65rem; background: white; overflow: hidden;
}
.record .section-body .artist-slide:only-child { flex-basis: min(100%, 24rem); }
.slide-link { display: block; color: var(--ink); text-decoration: none; }
.slide-link:focus-visible { outline-offset: -4px; }
.slide-link strong,.slide-link span { display: block; padding-inline: .9rem; }
.slide-link strong { font-size: 1.14rem; padding-top: .65rem; }
.slide-link span { margin-top: .2rem; line-height: 1.46; }
.slide-link:hover strong,.slide-link:focus-visible strong { text-decoration: underline; }
.slide-link img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center var(--focus-y,50%); }
.slide-link img.integral { object-fit: contain; background: #211d25; }
.slide-credit { display: block; padding: .5rem .9rem .8rem; color: var(--muted); font-size: .73rem; }
@media (max-width: 540px) { .record .section-body .artist-slide { flex-basis: 84%; } }
