.sam-library, .sam-conversation-list, .sam-related, .sam-resource-files, .sam-audio-player {
  --sam-ink: var(--samusic-ink, #171b1d);
  --sam-paper: var(--samusic-paper, #f3f0e8);
  --sam-white: #fff;
  --sam-red: var(--samusic-red, #e42e21);
  --sam-teal: var(--samusic-blue, #2469a8);
  --sam-gold: var(--samusic-orange, #f29a25);
  --sam-line: rgba(23, 27, 29, 0.17);
  color: var(--sam-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.sam-library { padding: 84px 5vw 100px; background: var(--sam-white); }
.sam-library.is-compact { padding: 0; background: transparent; }
.sam-library-heading { max-width: 820px; margin: 0 2vw 42px; }
.sam-label, .sam-card-category { margin: 0 0 12px; color: var(--sam-red); text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.sam-library-heading h1, .sam-related h2, .sam-resource-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(40px, 5vw, 70px); line-height: 1; letter-spacing: 0; }
.sam-library-heading > p:last-child { max-width: 680px; margin: 20px 0 0; font-size: 18px; line-height: 1.7; }
.sam-filters { margin: 0 2vw 48px; padding: 22px; display: grid; grid-template-columns: 1.2fr repeat(4, minmax(120px, .75fr)) auto auto; gap: 12px; align-items: end; background: var(--sam-paper); border-top: 4px solid var(--sam-red); }
.sam-filters label { display: grid; gap: 6px; min-width: 0; }
.sam-filters label > span { text-transform: uppercase; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.sam-filters input, .sam-filters select { width: 100%; min-width: 0; height: 44px; padding: 0 10px; border: 1px solid var(--sam-line); border-radius: 0; background: white; color: var(--sam-ink); font: inherit; font-size: 12px; }
.sam-filters button, .sam-primary-action { min-height: 44px; padding: 0 16px; display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 0; background: var(--sam-red); color: white !important; font-size: 12px; font-weight: 800; text-decoration: none !important; cursor: pointer; }
.sam-filters > a { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; }
.sam-song-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sam-song-card { min-width: 0; display: grid; grid-template-rows: 300px 1fr; background: var(--sam-paper); border-top: 4px solid var(--sam-red); }
.sam-song-art { position: relative; display: grid; place-items: center; overflow: hidden; background: #dedbd4; text-decoration: none; }
.sam-song-art img { width: 100%; height: 100%; object-fit: cover; }
.sam-song-art > span { width: 78px; height: 78px; display: grid; place-items: center; background: var(--sam-red); color: white; font-family: Georgia, serif; font-size: 22px; font-weight: 800; }
.sam-access-badge { position: absolute; left: 14px; bottom: 14px; padding: 6px 9px; background: white; color: var(--sam-ink); text-transform: uppercase; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.sam-access-badge.member { background: var(--sam-teal); color: white; }
.sam-access-badge.artist_circle { background: var(--sam-gold); color: #171b1d; }
.sam-song-card-copy { padding: 25px; display: flex; flex-direction: column; align-items: flex-start; }
.sam-song-card h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 29px; line-height: 1.08; letter-spacing: 0; overflow-wrap: anywhere; }
.sam-song-card h2 a { color: inherit; text-decoration: none; }
.sam-card-artist { margin: 0 0 17px; color: #5a6062; font-size: 13px; font-weight: 700; }
.sam-card-excerpt { margin: 0 0 21px; color: #4e5457; font-size: 14px; line-height: 1.6; }
.sam-text-link { margin-top: auto; padding-bottom: 3px; border-bottom: 2px solid var(--sam-red); color: inherit; font-size: 12px; font-weight: 800; text-decoration: none !important; }
.sam-empty, .sam-tab-empty { grid-column: 1 / -1; padding: 38px; border: 1px solid var(--sam-line); }
.sam-empty h2, .sam-tab-empty h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 30px; }

.sam-conversation-list { padding: 70px 7vw 100px; background: white; }
.sam-conversation-list > article { min-height: 180px; padding: 32px 0; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 4vw; align-items: center; border-bottom: 1px solid var(--sam-line); }
.sam-conversation-list > article > span { display: grid; font-family: Georgia, serif; font-size: 40px; text-align: center; }
.sam-conversation-list > article > span small { font-family: Arial, sans-serif; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.sam-conversation-list h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 34px; }
.sam-conversation-list h2 a { color: inherit; text-decoration: none; }
.sam-conversation-list article div > p:last-child { max-width: 720px; margin: 0; color: #50575a; }

.sam-audio-player { margin-top: 27px; padding: 18px; display: grid; grid-template-columns: minmax(130px, .55fr) minmax(220px, 1fr) auto; gap: 18px; align-items: center; background: #fff; border-top: 4px solid var(--sam-teal); color: var(--sam-ink); }
.sam-audio-player .sam-label { margin-bottom: 4px; color: var(--sam-teal); }
.sam-audio-player strong { display: block; font-family: Georgia, serif; font-size: 16px; line-height: 1.25; }
.sam-audio-player audio { width: 100%; min-width: 0; }
.sam-audio-player > a { padding-bottom: 3px; border-bottom: 2px solid var(--sam-red); font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }

.sam-resource-heading { margin-bottom: 26px; display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.sam-resource-heading h2 { font-size: 40px; }
.sam-resource-files { display: grid; border: 1px solid var(--sam-line); }
.sam-resource-file { min-width: 0; padding: 17px; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--sam-line); background: white; }
.sam-resource-file:last-child { border-bottom: 0; }
.sam-file-preview { position: relative; width: 112px; height: 78px; display: grid; place-items: center; overflow: hidden; background: var(--sam-paper); }
.sam-file-preview img { width: 100%; height: 100%; object-fit: contain; }
.sam-file-preview span { min-width: 46px; min-height: 44px; padding: 0 7px; display: grid; place-items: center; color: var(--sam-red); font-size: 9px; font-weight: 800; }
.sam-file-preview.has-image span { position: absolute; left: 0; bottom: 0; min-width: 36px; min-height: 22px; background: var(--sam-red); color: white; }
.sam-resource-file h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 21px; }
.sam-resource-file p { margin: 0 0 5px; color: #565d60; font-size: 13px; }
.sam-resource-file small { color: #6a7073; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.sam-resource-file > a { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; background: var(--sam-red); color: white !important; font-size: 11px; font-weight: 800; text-decoration: none !important; }
.sam-resource-status { max-width: 130px; color: #6a7073; font-size: 10px; font-weight: 800; line-height: 1.35; text-align: right; text-transform: uppercase; }
.sam-related { padding: 90px 5vw; background: white; }
.sam-related > header { margin: 0 2vw 40px; }

.sam-attached-collection { margin: 64px 0 0; padding-top: 44px; border-top: 1px solid var(--sam-line); font-family: Arial, Helvetica, sans-serif; }
.sam-attached-collection > header { margin-bottom: 24px; }
.sam-attached-collection > header h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.sam-attached-songs { display: grid; gap: 16px; }
.sam-attached-song { min-width: 0; padding: 18px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: center; background: white; border-top: 4px solid var(--sam-red); }
.sam-attached-art { width: 150px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: var(--sam-paper); text-decoration: none !important; }
.sam-attached-art img { width: 100%; height: 100%; object-fit: cover; }
.sam-attached-art span { color: var(--sam-red); font-family: Georgia, serif; font-size: 30px; font-weight: 800; }
.sam-attached-copy h3 { margin: 0; font-family: Georgia, serif; font-size: 28px; line-height: 1.08; }
.sam-attached-copy h3 a { color: inherit; text-decoration: none !important; }
.sam-attached-artist { margin: 7px 0 15px; color: #5d6468; font-size: 13px; font-weight: 800; }
.sam-attached-copy audio { width: 100%; margin: 12px 0; }
.sam-collection-open, .sam-collection-access { display: inline-flex; margin-top: 10px; padding-bottom: 3px; border-bottom: 2px solid var(--sam-red); color: inherit !important; font-size: 11px; font-weight: 800; text-decoration: none !important; }

@media (max-width: 1160px) { .sam-filters { grid-template-columns: repeat(3, 1fr); } .sam-filters label:first-child { grid-column: span 2; } }
@media (max-width: 900px) { .sam-song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .sam-library { padding: 62px 18px 76px; }
  .sam-filters { margin: 0 0 36px; padding: 17px; grid-template-columns: 1fr; }
  .sam-filters label:first-child { grid-column: auto; }
  .sam-song-grid { grid-template-columns: 1fr; }
  .sam-song-card { grid-template-columns: 118px minmax(0, 1fr); grid-template-rows: auto; }
  .sam-song-art { min-height: 230px; }
  .sam-song-card-copy { padding: 19px; }
  .sam-song-card h2 { font-size: 23px; }
  .sam-access-badge { left: 8px; bottom: 8px; }
  .sam-conversation-list { padding: 54px 20px 74px; }
  .sam-conversation-list > article { grid-template-columns: 60px minmax(0, 1fr); gap: 18px; }
  .sam-conversation-list > article > .sam-text-link { grid-column: 2; justify-self: start; }
  .sam-resource-heading { align-items: flex-start; flex-direction: column; }
  .sam-resource-file { grid-template-columns: 82px minmax(0, 1fr); gap: 12px; }
  .sam-file-preview { width: 82px; height: 66px; }
  .sam-resource-file > a { grid-column: 1 / -1; justify-content: center; }
  .sam-resource-status { grid-column: 1 / -1; max-width: none; text-align: left; }
  .sam-audio-player { grid-template-columns: 1fr; }
  .sam-audio-player > a { justify-self: start; }
  .sam-attached-song { grid-template-columns: 82px minmax(0, 1fr); gap: 14px; align-items: start; }
  .sam-attached-art { width: 82px; }
  .sam-attached-copy h3 { font-size: 23px; }
}
