.ctm-library, .ctm-conversation-list, .ctm-related, .ctm-resource-files {
  --ctm-ink: var(--ctmusic-ink, #171b1d);
  --ctm-paper: var(--ctmusic-paper, #f3f0e8);
  --ctm-white: #fff;
  --ctm-red: var(--ctmusic-red, #af3d32);
  --ctm-teal: var(--ctmusic-teal, #167082);
  --ctm-gold: var(--ctmusic-gold, #d29a2e);
  --ctm-line: rgba(23, 27, 29, 0.17);
  color: var(--ctm-ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

.ctm-conversation-list { padding: 70px 7vw 100px; background: white; }
.ctm-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(--ctm-line); }
.ctm-conversation-list > article > span { display: grid; font-family: Georgia, serif; font-size: 40px; text-align: center; }
.ctm-conversation-list > article > span small { font-family: Arial, sans-serif; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.ctm-conversation-list h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 34px; }
.ctm-conversation-list h2 a { color: inherit; text-decoration: none; }
.ctm-conversation-list article div > p:last-child { max-width: 720px; margin: 0; color: #50575a; }

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

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