.angela-sampler {
  max-width: 640px;
  margin: 0 auto 18px;
  padding: 2px 0;
  color: #faf9f6;
  font-size: 16px;
  line-height: 1.45;
}
.angela-sampler p { margin: 0 0 8px; }
.angela-sampler .sampler-intro { color: #e5d1aa; font-weight: 700; }
.angela-sampler .sampler-note { color: #e5d1aa; margin: 8px 0 0; }
.angela-sampler .sampler-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e5d1aa;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.sampler-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: #bcae8d;
  color: #17222b;
  font-size: 20px;
}
.sampler-timeline {
  display: grid;
  grid-template-columns: 3ch minmax(0, 1fr) 3ch;
  align-items: center;
  gap: 10px;
  color: #e5d1aa;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.sampler-timeline input { width: 100%; height: 28px; margin: 0; accent-color: #bcae8d; cursor: pointer; }
.angela-sampler :focus-visible { outline: 2px solid #F5A300; outline-offset: 3px; }
.angela-sampler [hidden] { display: none; }
@media (max-width: 600px) {
  .angela-sampler { margin-bottom: 10px; font-size: 14px; line-height: 1.4; }
  .angela-sampler p { margin-bottom: 6px; }
  .angela-sampler .sampler-note { margin-top: 4px; }
}

.angela-sampler { box-sizing: border-box; width: min(100%, 640px); min-width: 0; }
.angela-sampler .sampler-toggle { max-width: 100%; vertical-align: top; }
.angela-sampler .sampler-label { min-width: 0; }
.sampler-timeline {
  width: min(100%, 360px);
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 8px;
}
.sampler-timeline input { box-sizing: border-box; min-width: 0; max-width: 100%; }
.angela-sampler audio { max-width: 100%; }
.angela-sampler .sampler-note { margin: 10px 0 14px; }

/* Compact phone sampler, following the recording navigation. */
@media (max-width: 600px) {
  .angela-sampler {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 22px auto 24px;
    padding: 0 0 20px;
    border-bottom: 2px solid #F5A300;
  }
  .angela-sampler .sampler-controls {
    order: -2;
    position: relative;
    box-sizing: border-box;
    min-height: 48px;
    padding-left: 56px;
    margin-bottom: 16px;
  }
  .angela-sampler .sampler-toggle { display: block; min-height: 20px; width: 100%; }
  .angela-sampler .sampler-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
  }
  .angela-sampler .sampler-label { display: block; text-align: center; font-size: 13px; }
  .angela-sampler .sampler-timeline { width: 100%; gap: 6px; font-size: 12px; }
  .angela-sampler .sampler-intro { margin-bottom: 10px; }
  .angela-sampler audio { order: -1; margin-bottom: 12px; }
  .angela-sampler .sampler-note { margin: 12px 0 0; }
}

/* Align tablet and desktop playback controls with the recording-view buttons. */
@media (min-width: 601px) {
  .angela-sampler { width: 100%; max-width: none; }
  .angela-sampler > p { max-width: 640px; margin-left: auto; margin-right: auto; }
  .angela-sampler .sampler-note { margin-left: auto; margin-right: auto; }
}

@media (min-width: 601px) {
  .angela-sampler .sampler-intro { text-align: center; }
  .angela-sampler .sampler-controls {
    position: relative;
    box-sizing: border-box;
    width: min(100%, 416px);
    min-height: 48px;
    padding-left: 56px;
  }
  .angela-sampler .sampler-toggle { display: block; min-height: 20px; width: 100%; }
  .angela-sampler .sampler-icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
  .angela-sampler .sampler-label { display: block; text-align: center; }
  .angela-sampler .sampler-timeline { width: 100%; }
}

/* Keep recording choices and sampler playback together below the headline. */
.angela-sampler .sampler-navigation-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 24px;
}
.angela-sampler .sampler-navigation-row .song-view-buttons { margin: 0; flex: 0 0 auto; }
.angela-sampler .sampler-navigation-row .sampler-controls { flex: 1 1 360px; max-width: 416px; margin: 0; }
@media (max-width: 850px) {
  .angela-sampler .sampler-navigation-row { flex-wrap: wrap; gap: 18px; }
}
@media (max-width: 600px) {
  .angela-sampler .sampler-navigation-row { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .angela-sampler .sampler-navigation-row .song-view-buttons { justify-content: center; gap: 6px; flex-wrap: nowrap; }
  .angela-sampler .sampler-navigation-row .song-view-buttons :is(a,button) { font-size: clamp(12px,3.8vw,16px); padding: 12px 10px; min-height: 48px; }
  .angela-sampler .sampler-navigation-row .sampler-controls { order: initial; flex: 0 0 auto; width: 100%; }
}

@media (max-width: 600px) {
  .angela-sampler .sampler-note {
    text-transform: uppercase;
    text-align: center;
    color: #F5A300;
  }
}

/* Computer-only sampler panel from Bruce's annotated layout. */
@media (min-width: 601px) {
  body.own-recordings-page main .musicnav { margin-top: 22px !important; }
  body.own-recordings-page .recordings-headline { margin-bottom: 2px; padding-bottom: 8px; }
  .angela-sampler { margin-top: 0; padding-top: 0; }
  .angela-sampler .sampler-box {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 24px;
    border: 2px solid #F5A300;
    padding: 16px;
  }
  .angela-sampler .sampler-box .sampler-controls { width: 100%; max-width: none; margin: 0; }
  .angela-sampler .sampler-copy { min-width: 0; }
  .angela-sampler .sampler-copy .sampler-intro {
    margin: 0 0 12px;
    color: #F5A300;
    font-family: 'Arial Rounded MT Bold', 'Arial Rounded MT', Arial, sans-serif;
    font-size: 16pt;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    text-align: center;
  }
  .angela-sampler .sampler-copy > p:last-child { margin-bottom: 0; font-size: 15px; }
}
@media (min-width: 601px) and (max-width: 700px) {
  .angela-sampler .sampler-box { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 600px) {
  .angela-sampler .sampler-phone-box { border: 1px solid #F5A300; padding: 16px 12px; }
  .angela-sampler .sampler-phone-box > p:last-child { margin-bottom: 0; }
  .angela-sampler .sampler-navigation-row { margin-bottom: 18px; }
}

@media (max-width: 600px) {
  .angela-sampler { margin: 10px auto 14px; padding-bottom: 0; border-bottom: 0; }
  .angela-sampler .sampler-navigation-row { margin-bottom: 12px; }
  .angela-sampler .sampler-phone-box { border-width: 2px; padding: 12px; }
  .angela-sampler .sampler-phone-box .sampler-controls { margin-bottom: 12px; }
  .angela-sampler .sampler-phone-box .sampler-intro { color: #F5A300; text-transform: uppercase; font-weight: 700; text-align: center; font-size: 14px; line-height: 1.35; margin-bottom: 8px; }
  .angela-sampler .sampler-phone-box .sampler-intro span { display: block; }
}

@media (max-width: 600px) {
  .angela-sampler .sampler-phone-box .sampler-intro { text-align: center; }
}

.angela-sampler[hidden] { display: none !important; }

/* The approved individual play/stop button on every screen size. */
body.music-page .angela-sampler .sampler-icon {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  flex: 0 0 24px;
  top: var(--sampler-track-center, calc(100% - 14px));
  bottom: auto;
  transform: translateY(-50%);
  padding: 0;
  border: 1px solid #F5A300;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 1;
}
body.music-page .angela-sampler .sampler-icon::before {
  content: '';
  display: block;
  width: 13px;
  height: 16px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateX(1px);
}
body.music-page .angela-sampler .sampler-icon[data-playing="true"]::before {
  width: 14px;
  height: 14px;
  background: #F5A300;
  clip-path: none;
  transform: none;
}
body.music-page .angela-sampler .sampler-icon::after {
  content: '';
  position: absolute;
  inset: -10px;
}
