:root {
  --sag-blue: #1761ae;
  --sag-orange: #ef4a22;
  --sag-gold: #f89c1c;
  --sag-pink: #e20f61;
  --sag-purple: #982b76;
  --sag-teal: #00ae9c;
  --sag-ink: #111015;
  --sag-paper: #fffdf7;
  --sag-soft: #f4f0e8;
  --sag-line: rgba(17, 16, 21, .13);
  --sag-shadow: 0 18px 55px rgba(17, 16, 21, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sag-page {
  margin: 0;
  color: var(--sag-ink);
  background: var(--sag-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.sag-confetti {
  position: fixed;
  inset: 0 0 auto;
  height: 8px;
  z-index: 100;
  background: linear-gradient(90deg, var(--sag-blue) 0 16.6%, var(--sag-orange) 16.6% 33.2%, var(--sag-gold) 33.2% 49.8%, var(--sag-pink) 49.8% 66.4%, var(--sag-purple) 66.4% 83%, var(--sag-teal) 83%);
}
.sag-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.sag-brandbar { min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sag-brandbar a { display: inline-flex; }
.sag-logo { display: block; width: 92px; height: 92px; object-fit: contain; }
.sag-brandbar > span { text-transform: uppercase; letter-spacing: .18em; font-weight: 850; font-size: .76rem; }

.sag-eyebrow { margin: 0 0 10px; color: var(--sag-pink); font-size: .78rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.sag-hero {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(36px, 7vw, 82px);
  color: white;
  background:
    radial-gradient(circle at 88% 15%, var(--sag-gold) 0 7%, transparent 7.2%),
    radial-gradient(circle at 80% 76%, var(--sag-pink) 0 11%, transparent 11.2%),
    linear-gradient(135deg, #111015 0 46%, #26212b 100%);
  border-radius: 34px;
  box-shadow: var(--sag-shadow);
}
.sag-hero::after { content: ""; position: absolute; right: -60px; top: -75px; width: 320px; height: 320px; border: 38px solid var(--sag-teal); border-radius: 48% 52% 62% 38%; transform: rotate(22deg); opacity: .92; }
.sag-hero.has-cover { background-image: linear-gradient(90deg, rgba(10,9,13,.92), rgba(10,9,13,.25)), var(--sag-cover); background-size: cover; background-position: center; }
.sag-hero.has-cover::after { opacity: .72; mix-blend-mode: screen; }
.sag-hero-copy { position: relative; z-index: 1; max-width: 720px; }
.sag-hero h1, .sag-lock-card h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 8vw, 7.2rem); font-weight: 500; line-height: .91; letter-spacing: -.055em; }
.sag-hero .sag-eyebrow { color: var(--sag-gold); }
.sag-date { margin: 20px 0 0; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.sag-intro { max-width: 620px; margin: 20px 0 0; color: rgba(255,255,255,.83); font-size: clamp(1rem, 2vw, 1.2rem); }

.sag-player-card { position: relative; z-index: 2; width: calc(100% - clamp(20px, 7vw, 90px)); margin: -28px auto 68px; padding: 22px 26px; display: grid; grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.2fr); gap: 26px; align-items: center; background: white; border: 1px solid var(--sag-line); border-radius: 22px; box-shadow: 0 16px 38px rgba(17,16,21,.14); }
.sag-now-playing { display: flex; align-items: center; min-width: 0; gap: 14px; }
.sag-disc { flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; color: white; background: var(--sag-purple); border-radius: 50%; box-shadow: inset 0 0 0 12px rgba(0,0,0,.12); }
.sag-disc span { display: grid; place-items: center; width: 12px; height: 12px; color: var(--sag-ink); background: var(--sag-gold); border-radius: 50%; font-size: 0; }
.sag-player-label { display: block; color: #6d6872; font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.sag-now-playing strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sag-player-card audio { width: 100%; accent-color: var(--sag-pink); }

.sag-library { padding: 0 clamp(0px, 3vw, 28px) 50px; }
.sag-library-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.sag-library h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(2.1rem, 5vw, 4rem); letter-spacing: -.04em; }
.sag-search-wrap input { width: min(290px, 36vw); min-height: 46px; padding: 10px 15px; border: 1px solid var(--sag-line); border-radius: 999px; background: white; outline: none; }
.sag-search-wrap input:focus { border-color: var(--sag-blue); box-shadow: 0 0 0 3px rgba(8,116,201,.15); }

.sag-bulkbar { display: flex; align-items: center; gap: 18px; min-height: 58px; margin-bottom: 12px; padding: 9px 10px 9px 18px; background: var(--sag-soft); border-radius: 14px; font-size: .9rem; }
.sag-bulkbar label { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.sag-bulkbar input, .sag-track-check { accent-color: var(--sag-pink); }
#sag-selection-count { color: #6d6872; margin-right: auto; }
.sag-bulkbar button, .sag-password-row button { border: 0; padding: 10px 16px; color: white; background: var(--sag-ink); border-radius: 999px; font-weight: 800; cursor: pointer; }
.sag-bulkbar button:disabled { opacity: .4; cursor: not-allowed; }
.sag-bulkbar .sag-download-all { background: var(--sag-pink); }
.sag-all-form { margin: 0; }

.sag-track-list { border-top: 1px solid var(--sag-line); }
.sag-track { min-height: 82px; display: grid; grid-template-columns: 32px 48px 42px minmax(0,1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--sag-line); transition: background .2s ease, transform .2s ease; }
.sag-track[hidden] { display: none; }
.sag-track:hover, .sag-track.is-playing { background: rgba(0,184,174,.065); }
.sag-track.is-playing { box-shadow: inset 4px 0 var(--sag-teal); }
.sag-check { display: grid; place-items: center; }
.sag-check input { width: 17px; height: 17px; }
.sag-play { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 2px solid var(--sag-ink); border-radius: 50%; background: white; cursor: pointer; }
.sag-play:hover { color: white; background: var(--sag-blue); border-color: var(--sag-blue); }
.sag-play span { margin-left: 2px; font-size: .75rem; }
.sag-number { color: #89838d; font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.sag-track-info { min-width: 0; }
.sag-track-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sag-track-info span { display: block; color: #77717b; font-size: .83rem; }
.sag-single-download { padding: 8px 12px; color: var(--sag-blue); font-size: .82rem; font-weight: 850; text-decoration: none; border-radius: 999px; }
.sag-single-download:hover { color: white; background: var(--sag-blue); }

.sag-lock-card, .sag-empty { max-width: 800px; margin: 42px auto 100px; padding: clamp(36px, 7vw, 78px); text-align: center; background: white; border: 1px solid var(--sag-line); border-radius: 30px; box-shadow: var(--sag-shadow); }
.sag-lock-card h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
.sag-lock-mark, .sag-empty > span { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 24px; color: white; background: var(--sag-purple); border: 8px solid var(--sag-gold); border-radius: 50%; font-size: 1.7rem; transform: rotate(-7deg); }
.sag-unlock-form { margin: 32px auto 0; text-align: left; max-width: 520px; }
.sag-unlock-form > label { display: block; margin: 0 0 7px; font-weight: 800; }
.sag-password-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.sag-password-row input { min-width: 0; height: 50px; padding: 10px 14px; border: 2px solid var(--sag-ink); border-radius: 10px; }
.sag-password-row button { background: var(--sag-pink); border-radius: 10px; }
.sag-error { padding: 10px 14px; color: #7c0c25; background: #ffe3e9; border-radius: 8px; font-weight: 700; }
.sag-empty h2 { margin-bottom: 6px; font-family: Georgia, "Times New Roman", serif; font-size: 2.2rem; }
.sag-empty p { margin-top: 0; color: #77717b; }

.sag-footer { margin-top: 40px; padding: 52px 20px 64px; text-align: center; border-top: 1px solid var(--sag-line); }
.sag-footer p { margin: 0 0 4px; color: #77717b; font-size: .82rem; }
.sag-footer a { color: var(--sag-ink); font-weight: 900; text-decoration-color: var(--sag-gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }

@media (max-width: 720px) {
  .sag-shell { width: min(100% - 20px, 1180px); }
  .sag-brandbar { min-height: 105px; }
  .sag-logo { width: 72px; height: 72px; }
  .sag-brandbar > span { font-size: .65rem; }
  .sag-hero { min-height: 390px; padding: 38px 24px 48px; border-radius: 24px; }
  .sag-hero::after { right: -145px; top: -95px; }
  .sag-player-card { width: calc(100% - 20px); grid-template-columns: 1fr; gap: 16px; padding: 18px; margin-bottom: 48px; }
  .sag-library-head { align-items: stretch; flex-direction: column; }
  .sag-search-wrap input { width: 100%; }
  .sag-bulkbar { align-items: stretch; flex-wrap: wrap; gap: 10px 16px; }
  #sag-selection-count { flex: 1; }
  .sag-bulkbar button { width: 100%; }
  .sag-all-form { width: 100%; }
  .sag-track { grid-template-columns: 24px 42px 30px minmax(0,1fr); gap: 8px; padding: 8px 4px; }
  .sag-single-download { grid-column: 4; justify-self: start; padding: 2px 0 6px; }
  .sag-password-row { grid-template-columns: 1fr; }
}
