/* Song Writing page (and /song-writing/private/). Scoped to .sw so it cannot affect other pages.
   Black and white like the rest of the site; the only "colour" is ink weight, so nothing relies on hue. */
.sw { --muted: #5f6772; --line: #e6e6e3; --soft: #f6f6f4; --ink: #111; }
.sw-wrap { width: min(1080px, 100% - 32px); margin: 0 auto; padding: 40px 0 140px; }

/* Hero */
.sw-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.sw-hero h1 { font-size: 56px; }
.sw-hero .sw-lead { font-size: 18px; margin-top: 18px; max-width: 46ch; }
.sw-hero .sw-memo { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 46ch; font-style: italic; }
.sw-hero picture img { width: 100%; height: auto; aspect-ratio: 1212 / 832; object-fit: cover; border-radius: 20px; }
.sw-stats { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sw-stats li { background: var(--soft); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--muted); }
.sw-stats b { color: var(--ink); font-weight: 400; font-size: 18px; margin-right: 4px; font-variant-numeric: tabular-nums; }
.sw-playall { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  font: inherit; font-size: 16px; padding: 12px 22px 12px 16px; cursor: pointer; transition: transform .15s; }
.sw-playall:hover, .sw-playall:focus-visible { transform: translateY(-1px); }
.sw-playall svg { width: 22px; height: 22px; }

/* Releases */
.sw-h { font-size: 28px; margin: 80px 0 8px; }
.sw-sub { color: var(--muted); font-size: 14px; }
.sw-rel { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.sw-rel:first-of-type { border-top: 0; }
.sw-cover { font-family: var(--font); position: relative; align-self: start; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 16px; overflow: hidden;
  aspect-ratio: 1; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); transition: transform .2s; }
.sw-cover:hover, .sw-cover:focus-visible { transform: translateY(-3px) rotate(-.5deg); }
.sw-cover img { width: 100%; height: 100%; object-fit: cover; }
.sw-cover .sw-ov { position: absolute; right: 14px; bottom: 14px; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); opacity: 0; transform: translateY(6px); transition: .2s; }
.sw-cover:hover .sw-ov, .sw-cover:focus-visible .sw-ov, .sw-rel.on .sw-ov { opacity: 1; transform: none; }
.sw-ov svg { width: 26px; height: 26px; }
.sw-type { display: block; width: 100%; height: 100%; background: var(--ink); color: #fff; padding: 26px; text-align: left; font-size: 30px; line-height: 1.15; }
.sw-type small { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-bottom: 14px; }

.sw-meta { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sw-rel h3 { font-size: 36px; margin: 6px 0 4px; }
.sw-note { color: var(--muted); font-size: 15px; max-width: 60ch; }
.sw-links { margin-top: 10px; font-size: 14px; }
.sw-links a { color: var(--muted); }

.sw-tracks { list-style: none; padding: 0; margin: 22px 0 0; counter-reset: t; }
.sw-tracks li + li { border-top: 1px solid var(--line); }
.sw-tr { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; padding: 11px 10px; border-radius: 10px; cursor: pointer; }
.sw-tr:hover, .sw-tr:focus-visible { background: var(--soft); }
.sw-n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; text-align: center; }
.sw-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-tag { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid #c9c9c4; color: var(--muted); border-radius: 999px; padding: 2px 8px; }
.sw-d { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.sw-tr.on { font-weight: 700; }
.sw-tr.on .sw-n { color: var(--ink); }
/* "Now playing" bars instead of the number */
.sw-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.sw-eq i { width: 3px; background: var(--ink); border-radius: 1px; animation: sw-eq 0.9s ease-in-out infinite; }
.sw-eq i:nth-child(2) { animation-delay: -.3s; } .sw-eq i:nth-child(3) { animation-delay: -.6s; }
.paused .sw-eq i { animation-play-state: paused; }
@keyframes sw-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* Player bar */
.sw-player { position: fixed; left: 50%; bottom: 14px; transform: translate(-50%, 140%); width: min(1080px, 100% - 20px); z-index: 40;
  background: rgba(17,17,17,.96); color: #fff; border-radius: 20px; padding: 10px 16px 10px 10px; box-shadow: 0 14px 40px -10px rgba(0,0,0,.5);
  display: grid; grid-template-columns: 56px minmax(0, 220px) auto minmax(0, 1fr) auto; gap: 16px; align-items: center; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.sw-player.show { transform: translate(-50%, 0); }
.sw-pc { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #333; }
.sw-pinfo { min-width: 0; }
.sw-pinfo b, .sw-pinfo span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-pinfo b { font-weight: 400; font-size: 16px; }
.sw-pinfo span { font-size: 13px; opacity: .6; }
.sw-ctl { display: flex; align-items: center; gap: 6px; }
.sw-ctl button { border: 0; background: none; color: #fff; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; }
.sw-ctl button:hover, .sw-ctl button:focus-visible { background: rgba(255,255,255,.12); }
.sw-ctl svg { width: 22px; height: 22px; }
.sw-ctl .sw-pp { width: 46px; height: 46px; background: #fff; color: #111; }
.sw-ctl .sw-pp:hover, .sw-ctl .sw-pp:focus-visible { background: #e9e9e9; }
.sw-seek { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.sw-seek > span { opacity: .6; min-width: 34px; }
.sw-wave { position: relative; height: 40px; display: flex; align-items: center; gap: 2px; cursor: pointer; touch-action: none; }
.sw-wave i { flex: 1 1 0; min-width: 1px; border-radius: 2px; background: rgba(255,255,255,.28); }
.sw-wave i.p { background: #fff; }
.sw-wave:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.sw-close { border: 0; background: none; color: #fff; opacity: .6; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; }
.sw-close:hover, .sw-close:focus-visible { opacity: 1; background: rgba(255,255,255,.12); }

.sw-owner { margin-top: 56px; text-align: right; font-size: 12px; color: #cfcfcf; }
.sw-owner a { color: #cfcfcf; text-decoration: none; }
.sw-owner a:hover, .sw-owner a:focus-visible { color: var(--muted); text-decoration: underline; }

@media (max-width: 900px) {
  .sw-hero { grid-template-columns: 1fr; gap: 28px; }
  .sw-hero picture { order: -1; }
  .sw-hero h1 { font-size: 40px; }
  .sw-rel { grid-template-columns: 1fr; gap: 22px; padding: 32px 0; }
  .sw-cover { width: min(320px, 100%); }
  .sw-rel h3 { font-size: 30px; }
  .sw-h { margin-top: 56px; }
  .sw-player { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 8px 12px; padding: 10px 12px; border-radius: 18px; }
  .sw-pc { width: 48px; height: 48px; }
  .sw-seek { grid-column: 1 / -1; grid-row: 2; }
  .sw-wave { height: 30px; }
  .sw-close { display: none; }
  .sw-ctl .sw-prev, .sw-ctl .sw-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-eq i { animation: none; height: 10px; }
  .sw-player, .sw-cover, .sw-ov { transition: none; }
}
