:root {
  --accent: #c35037;
}

/* =========================
   ScoreStore
   Clean standalone stylesheet
   ========================= */

.scorestore-page {
  background: #000;
  color: #fff;
}

.scorestore-page .bg {
  background: #000 !important;
}

.scorestore-page .title {
  white-space: normal;
}

.scorestore-page .title a {
  color: inherit;
  text-decoration: none;
}

.scorestore-page .title a:hover {
  text-decoration: none;
}

/* Intro + controls */

.scorestore-intro {
  margin: 0 auto 22px;
  max-width: 780px;
  text-align: center;
  color: #fff;
  line-height: 1.55;
  font-size: 15px;
}

.scorestore-controls {
  margin: 0 auto 28px;
  max-width: 1100px;
}

.scorestore-search {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
}

.scorestore-search::placeholder {
  color: rgba(255,255,255,0.7);
}

.scorestore-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.score-pill {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.07);
  color: #fff;
  padding: 9px 12px;
  border-radius: 999px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 14px;
  cursor: pointer;
}

.score-pill.is-active,
.score-pill:hover {
  background: rgba(255,255,255,0.16);
}

.scorestore-summary {
  margin-top: 12px;
  text-align: center;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}

/* Grid */

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  margin-bottom: 56px;
}

/* Card */

.score-card {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
  border-radius: 8px;
  text-align: left;
  color: #000;
  background: linear-gradient(to bottom, #f3eddc, #e8dec2);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.65);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.score-card--leadsheet {
  background: linear-gradient(to bottom, #f0e8d3, #e5dbc0);
}

.score-card--arrangement {
  background: linear-gradient(to bottom, #ede3cc, #e1d3b7);
}

.score-card::before {
  display: none;
}

.score-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 36px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.65);
  filter: brightness(1.02);
}

.score-card:active {
  transform: translateY(-1px);
  box-shadow:
    0 8px 20px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.65);
}

/* Header */

.score-title {
  text-align: center;
  color: #000;
  font-size: 30px;
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.score-title + .score-group-extra {
  margin-top: -8px;
}

.score-group-extra {
  margin: 0 0 6px;
  text-align: center;
  min-height: 19px;
  color: rgba(0,0,0,0.60);
  font-size: 13.5px;
  line-height: 1.32;
  font-style: italic;
}

.score-title-duration {
  margin: 0 0 14px;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: rgba(0,0,0,0.52);
  opacity: 0.7;
}

.score-title-duration::before {
  font-size: 1.1em;
}

.score-title-duration-mark {
  display: inline-block;
  margin-right: 0.38em;
  font-size: 1.15em;
  transform: translateY(-0.02em);
  color: rgba(0,0,0,0.52);
}

/* Versions */

.score-versions-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0;
}

.score-version-block {
  display: flex;
  flex-direction: column;
  padding: 8px 0 4px;
}

.score-version-block + .score-version-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px solid red;
}

.score-version-divider {
  height: 2px;
  margin: 14px 18% 18px;
  background: rgba(0,0,0,0.28);
  border-radius: 1px;
}

/* Instrumentation + duration */

.score-version-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 8px;
}

.score-version-meta-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.score-version-meta-right {
  justify-self: end;
}

.score-version-instrumentation {
  color: #000;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.32;
  text-align: left;
}

.score-version-duration {
  margin: 2px 0 8px;
  font-size: 14px;
  line-height: 1.35;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.6);
  text-align: left;
  padding-left: 0.5px;
}

/* Links row */

.score-version-links {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 12px;
}

.score-version-links .score-btn {
  justify-self: end;
  font-size: 12.5px;
  opacity: 0.72;
}

.score-version-links .score-btn:hover {
  opacity: 1;
}

.score-version-links a:first-child {
  justify-self: start;
}

.score-version-links a:last-child {
  justify-self: end;
}

.score-version-links a[href*="youtu"],
.score-version-links a[href*="vimeo"],
.score-version-links a[href*="fb.watch"],
.score-version-links a[href$=".mp3"],
.score-version-links a[href$=".wav"],
.score-version-links a[href$=".m4a"],
.score-version-links a[href$=".aif"],
.score-version-links a[href$=".aiff"] {
  justify-self: end;
}

.score-version-links a:not([href*="youtu"]):not([href*="vimeo"]):not([href$=".mp3"]):not([href$=".wav"]):not([href$=".m4a"]):not([href$=".aif"]):not([href$=".aiff"]) {
  justify-self: start;
}

/* Bottom purchase area */

.score-version-bottom {
  margin-top: auto;
}

.score-version-purchase {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 6px 14px;
  padding-top: 6px;
  border-top: none;
}

.score-version-purchase + .score-version-purchase {
  margin-top: 8px;
}

.score-version-purchase-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: rgba(0,0,0,0.88);
  text-align: left;
}

.score-version-purchase-label:empty {
  display: none;
}

.score-version-purchase-price {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: rgba(0,0,0,0.78);
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: lining-nums;
  text-transform: uppercase;
}

.score-version-purchase-buy {
  justify-self: end;
  text-align: right;
}

.score-version-purchase-buy .score-btn {
  margin-left: auto;
  font-size: 13px;
  padding: 4px 10px;
  min-height: 30px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.28);
}

.score-version-purchase-buy .score-btn:hover {
  background: rgba(0,0,0,0.06);
}

.score-version-purchase:has(.score-version-purchase-label:empty) {
  grid-template-columns: auto auto;
}

.score-version-purchase:has(.score-version-purchase-label:empty) .score-version-purchase-buy {
  justify-self: end;
}

/* Buttons */

.score-btn,
.score-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  height: 34px;
  box-sizing: border-box;
  border-radius: 10px;
  color: #000;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", Times, serif;
  cursor: pointer;
}

.score-btn {
  padding: 6px 11px;
  border: 1px solid rgba(195,80,55,0.34);
  background: rgba(195,80,55,0.12);
  color: #000;
  font-size: 13.5px;
  line-height: 1.2;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 120ms ease;
}

.score-btn:hover {
  background: rgba(195,80,55,0.20);
  border-color: rgba(195,80,55,0.46);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
  text-decoration: none;
  transform: translateY(-1px);
}

.score-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.score-btn-primary {
  background: rgba(195,80,55,0.16);
  border-color: rgba(195,80,55,0.42);
}

.score-version-meta-right .score-btn {
  font-size: 13px;
  opacity: 0.82;
}

.score-version-meta-right .score-btn:hover {
  opacity: 1;
}

/* Empty */

.scorestore-empty {
  width: 100%;
  padding: 24px 0;
  text-align: center;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
}

/* Force correct title + composer color */

.scorestore-page .column .title {
  font-size: clamp(24px, 5vw, 72px) !important;
  letter-spacing: 0.22em !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: var(--accent) !important;
  text-shadow: 0 1px 14px rgba(255,255,255,0.35) !important;
  white-space: normal !important;
}

.scorestore-page .column .title a {
  color: var(--accent) !important;
  text-decoration: none !important;
}

.score-card .score-superlabel {
  margin: 0 0 10px !important;
  text-align: center !important;
  text-transform: uppercase !important;
  font-size: 14px !important;
  letter-spacing: 0.12em !important;
  color: var(--accent) !important;
  text-shadow: 0 1px 14px rgba(255,255,255,0.28) !important;
}

@media (max-width: 768px) {

  /* ===== GRID ===== */

  .score-grid {
    grid-template-columns: 1fr;
  }

  /* ===== CARD ===== */

  .score-card {
    padding: 22px 18px 18px;
    border-radius: 14px;
    box-shadow:
      0 8px 22px rgba(0,0,0,0.16),
      inset 0 1px 0 rgba(255,255,255,0.6);
  }

  /* ===== HEADER ===== */

  .score-superlabel {
    margin-bottom: 8px !important;
    font-size: 12px !important;
    letter-spacing: 0.11em !important;
    opacity: 0.92;
  }

  .score-title {
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
    text-wrap: balance;
  }

  .score-group-extra {
    margin-bottom: 8px;
    min-height: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(0,0,0,0.56);
  }

  .score-title-duration {
    margin-bottom: 16px;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: rgba(0,0,0,0.44);
  }

  /* ===== VERSION BLOCK ===== */

  .score-version-block {
    padding: 10px 0 6px;
  }

  .score-version-divider {
    margin: 16px 22% 18px;
    background: rgba(0,0,0,0.18);
  }

  /* ===== META (instrumentation + sample) ===== */

  .score-version-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 12px;
    margin-bottom: 8px;
  }

  .score-version-meta-left {
    grid-column: 1;
  }

  .score-version-meta-right {
    grid-column: 2;
    justify-self: end;
    align-self: start;
  }

  .score-version-instrumentation {
    font-size: 14.5px;
    line-height: 1.34;
    letter-spacing: 0.01em;
    font-weight: 500;
  }

  .score-version-duration {
    margin: 3px 0 10px;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: rgba(0,0,0,0.60);
    text-align: left;
  }

  /* ===== MEDIA (ligger under Sample, högerjusterad) ===== */

  .score-version-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    margin-top: -2px;
    margin-bottom: 14px;
  }

  .score-version-links::before {
    content: "";
  }

  .score-version-links .score-btn {
    justify-self: end;
  }

  /* ===== PURCHASE (EN RAD) ===== */

  .score-version-purchase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px 10px;
    padding-top: 8px;
    border-top: none;
  }

  .score-version-purchase-label {
    font-size: 13.5px;
    line-height: 1.28;
    color: rgba(0,0,0,0.82);
    min-width: 0;
  }

  .score-version-purchase-price {
  font-size: 15px;
  color: rgba(0,0,0,0.68);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: right;

  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.35em;
  flex-wrap: wrap;
}


.price-main {
  white-space: nowrap;
}

.price-approx {
  font-size: 9px;
  line-height: 1;
  color: rgba(0,0,0,0.5);
  letter-spacing: 0.01em;
  font-variant: normal;
  white-space: nowrap;
  text-transform: none !important;
}



  /* ===== BUTTONS ===== */

  .score-btn {
    border-radius: 999px;
    background: rgba(255,255,255,0.34);
    border-color: rgba(0,0,0,0.16);
  }

  .score-version-meta-right .score-btn,
  .score-version-links .score-btn,
  .score-version-purchase-buy .score-btn {
    min-width: 104px;
    height: 29px;
    padding: 4px 8px;
    font-size: 12px;
  }
}

.scorestore-name a {
  color: var(--accent);
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(255,255,255,0.35);
}

.scorestore-name a:hover {
  text-shadow: 0 1px 18px rgba(255,255,255,0.45);
}

/* =========================
   Warm text instead of white
   ========================= */

.scorestore-page {
  color: #f6f1e4;
}

.scorestore-intro,
.scorestore-summary {
  color: rgba(243,237,220,0.85);
}

/* Search field */

.scorestore-search {
  color: #f6f1e4;
}

.scorestore-search::placeholder {
  color: rgba(243,237,220,0.65);
}

/* Filter pills */

.score-pill {
  color: #f6f1e4;
  border: 1px solid rgba(243,237,220,0.28);
  background: rgba(243,237,220,0.08);
}

.score-pill.is-active,
.score-pill:hover {
  background: rgba(243,237,220,0.18);
}
.price-main {
  white-space: nowrap;
}

.price-approx {
  font-size: 9px;
  line-height: 1;
  color: rgba(0,0,0,0.5);
  letter-spacing: 0.01em;
  font-variant: normal;
  white-space: nowrap;
  text-transform: none !important;
}

.price-approx-label {
  text-transform: lowercase;
}

/* =========================
   Subtle “paper glow” hover
   ========================= */

.score-pill {
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 180ms ease;
}

/* Hover = lite ljusare papper + subtilt lyft */

.score-pill:hover {
  background: rgba(243,237,220,0.20);
  border-color: rgba(243,237,220,0.38);

  box-shadow:
    0 6px 14px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.25);

  transform: translateY(-1px);
}

/* Active = nästan tillbaka */

.score-pill:active {
  transform: translateY(0);
  box-shadow:
    0 3px 8px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.20);
}

/* Active filter (selected) = stabil, inte hoverig */

.score-pill.is-active {
  background: rgba(243,237,220,0.16);
  border-color: rgba(243,237,220,0.34);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20);
}

.score-seo {
  text-align: center;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(0,0,0,0.4);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .score-seo {
    max-width: 28ch;
    margin: 6px auto 0;
    font-size: 11.5px;
    line-height: 1.35;
    text-align: center;
    color: rgba(0,0,0,0.42);
    text-wrap: balance;
  }
}

.score-micro {
  text-align: center;
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(0,0,0,0.45);
  margin-top: 6px;
}

@media (max-width: 768px) {
  .score-micro {
    max-width: 28ch;
    margin: 6px auto 0;
    text-wrap: balance;
  }
}

.score-card {
  will-change: transform;
}

.score-card {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.score-grid.is-ready .score-card {
  opacity: 1;
  transform: translateY(0);
}

.score-subtitles {
  font-size: 14.5px;
  line-height: 1.34;
  letter-spacing: 0.01em;
  font-weight: 500;
  margin-bottom: 6px;
  text-align: center;
}

/* Inline media players */

.score-media-toggle.is-open {
  opacity: 1;
}

.score-media-player {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 10px;
}

.score-media-player audio {
  width: 100%;
  height: 34px;
  display: block;
}

.score-media-player--video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,0.08);
}

.score-media-player--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* Desktop: keep inline media button above player and use full card width */
.score-version-links:has(.score-media-toggle) {
  grid-template-columns: 1fr;
}

.score-version-links:has(.score-media-toggle) .score-media-toggle {
  justify-self: end;
}

.score-version-links:has(.score-media-toggle) .score-media-player {
  grid-column: 1 / -1;
  justify-self: stretch;
}
