/* An arranger's page: a stage of their own, then their work.
 *
 * The hero is lit by their own picture — blurred wide behind everything,
 * with the stage's two lamps over it — so no two arrangers' pages are the
 * same colour. Under it the numbers that say the work is being played, the
 * lead song big, the rest as the front page's cards, and the door for the
 * next arranger.
 */

.ar-page { padding-bottom: 60px; }

/* ---- the stage ---- */

.ar-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(380px, 46vw, 560px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #0a0d13;
}
/* Under everything: the picture blurred wide, so the stage is its colours. */
.ar-backdrop {
  position: absolute;
  inset: -12%;
  z-index: -3;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(46px) saturate(1.3);
  opacity: 0.5;
}
/* The picture itself, big and sharp on the left — the side a cover takes
   behind the keys — fading into the blur toward the words on the right. */
.ar-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 42%, rgba(0, 0, 0, 0.55) 68%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 42%, rgba(0, 0, 0, 0.55) 68%, transparent 100%);
}
/* The two lamps, and the fade to the page's own black at the bottom. */
.ar-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 110% at 100% 0%, rgba(90, 176, 255, 0.26), transparent 60%),
    radial-gradient(60% 100% at 30% 100%, rgba(208, 102, 255, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(13, 16, 23, 0.1) 0%, rgba(13, 16, 23, 0.35) 55%, var(--bg) 100%);
}

/* The words take the right half; the left is the picture's. */
.ar-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  width: 100%;
  padding-top: clamp(28px, 6vw, 72px);
  padding-bottom: clamp(28px, 5vw, 56px);
}

.ar-about { min-width: 0; }
.ar-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  background: rgba(255, 209, 102, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}
.ar-about h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
}
.ar-latin { margin: 6px 0 0; color: rgba(232, 236, 244, 0.7); font-size: 1.05rem; text-align: right; }
.ar-bio {
  margin: 16px 0 0;
  max-width: 60ch;
  color: #dbe1ec;
  font-size: 1.02rem;
  line-height: 2;
  white-space: pre-line;
}

/* The numbers: each a small dark tile, the number big and amber. */
.ar-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}
.ar-stat {
  display: grid;
  gap: 2px;
  min-width: 96px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 16, 23, 0.55);
  backdrop-filter: blur(10px);
}
.ar-stat b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ar-stat span { font-size: 0.8rem; color: var(--muted); }

.ar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
}
.ar-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #14181f;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(255, 209, 102, 0.28);
  transition: transform 0.15s, filter 0.15s;
}
.ar-play:hover { filter: brightness(1.05); transform: translateY(-1px); }
.ar-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(13, 16, 23, 0.5);
  color: var(--text);
  font-size: 0.92rem;
  text-decoration: none;
}
.ar-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---- the lead song ---- */

.ar-featured {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  margin: clamp(26px, 4vw, 44px) 0;
  padding: clamp(16px, 2.5vw, 26px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 100% at 0% 50%, rgba(90, 176, 255, 0.1), transparent 60%),
    var(--bg-card);
  flex-wrap: wrap;
}
.ar-featured-art {
  flex: 0 0 auto;
  width: clamp(120px, 24vw, 220px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.ar-featured-body { flex: 1 1 260px; min-width: 0; }
.ar-eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 0.85rem; font-weight: 700; }
.ar-featured h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.3; }
.ar-featured-latin { margin: 2px 0 0; color: var(--muted); text-align: right; }
.ar-featured-artist { margin: 6px 0 0; color: #cfd6e4; }
.ar-featured-facts { margin: 10px 0 16px; color: var(--muted); font-size: 0.92rem; }

/* ---- the rest ---- */

.ar-songs { margin-top: clamp(26px, 4vw, 44px); }
.ar-songs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.ar-songs-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.ar-songs-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.ar-empty { color: var(--muted); }

/* ---- send it on ---- */

.ar-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: clamp(30px, 5vw, 50px) 0 0;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.ar-share p { margin: 0; }
.ar-share-row { display: flex; gap: 8px; }
.ar-share-row a, .ar-share-row button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}
.ar-share-row a:hover, .ar-share-row button:hover { border-color: var(--accent); color: var(--accent); }
.ar-share-row button.is-done { border-color: var(--good); color: var(--good); }

/* ---- the door for the next arranger ---- */

.ar-join {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 0;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 22px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 209, 102, 0.12), transparent 60%),
    radial-gradient(80% 120% at 0% 100%, rgba(208, 102, 255, 0.12), transparent 60%),
    var(--bg-raise);
}
.ar-join h2 { margin: 0 0 6px; font-size: 1.4rem; font-weight: 800; }
.ar-join p { margin: 0; max-width: 60ch; color: #cfd6e4; line-height: 1.9; }
.ar-join-cta {
  flex: 0 0 auto;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #14181f;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(255, 209, 102, 0.25);
}
.ar-join-cta:hover { filter: brightness(1.05); }

/* ---- phones ---- */

@media (max-width: 720px) {
  /* The picture on top, full width, fading down into the words. */
  .ar-hero { min-height: 0; display: block; }
  .ar-photo {
    position: relative;
    display: block;
    width: 100%;
    height: min(78vw, 420px);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  }
  .ar-hero-inner { grid-template-columns: 1fr; padding-top: 0; margin-top: -60px; text-align: center; }
  .ar-about h1, .ar-latin, .ar-featured-latin { text-align: center; }
  .ar-bio { margin-inline: auto; }
  .ar-stats, .ar-actions, .ar-links { justify-content: center; }
  .ar-featured { flex-direction: column; text-align: center; }
  .ar-featured-art { width: min(60vw, 220px); }
  .ar-share { justify-content: center; text-align: center; }
  .ar-join { text-align: center; justify-content: center; }
}
