/* Backline — a musician's profile as an artist page (js/artist.js). It follows the device's
   light or dark mode like the rest of the app; only the photo/cover keeps its stage-dark shade. */


.artist { padding-bottom: 8px; }
.artist__body { display: flex; flex-direction: column; gap: 14px; }

/* Hero: the photo, fading into the page, with the name over it */
.artist__hero {
  position: relative; height: min(56vh, 440px); margin: calc(-1 * var(--main-top, 20px)) calc(-1 * var(--gutter)) 0;
  overflow: hidden; background: var(--stage); border-radius: 0 0 24px 24px;
}
.artist__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.artist__hero--cover .artist__photo { filter: grayscale(1) contrast(1.1); cursor: default; }
.artist__hero--cover::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--gink, #C2410C); mix-blend-mode: multiply; opacity: .75; pointer-events: none; }
.artist__hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 1; background: linear-gradient(180deg, rgba(18, 16, 14, 0), rgba(18, 16, 14, .82)); pointer-events: none; }
.artist__back {
  position: absolute; z-index: 3; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 14px;
  width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(18, 16, 14, .55); color: #F4F0E6; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.artist__back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.artist__name { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 14px; }
.artist__name h1 { margin: 0; font-family: var(--f-display); font-size: clamp(38px, 11vw, 56px); font-weight: 900; letter-spacing: -.03em; line-height: 1; color: #F4F0E6; overflow-wrap: anywhere; }
.artist__name h1 .vtag--demo { font-size: 11px; vertical-align: middle; }
.artist__badge { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; color: rgba(244, 240, 230, .85); }
.artist__badge svg { width: 17px; height: 17px; flex: none; }
.artist__badge .seal { fill: #3B82F6; }
.artist__badge .tick { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.artist__meta { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* Actions: one row, all the same height. Invite (wide, orange) · Message · friendship. */
.artist__actions { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 48px; gap: 8px; align-items: stretch; }
.artist__actions--me { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.artist__cta, .artist__btn, .artist__friend {
  height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0;
  border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.artist__cta { padding: 0 12px; background: var(--accent); color: var(--on-accent); }
.artist__cta:hover { color: var(--on-accent); text-decoration: none; filter: brightness(1.06); }
.artist__btn { padding: 0 10px; background: var(--ink); color: var(--bg); }
.artist__btn:hover { color: var(--bg); text-decoration: none; opacity: .88; }
.artist__cta svg, .artist__btn svg, .artist__friend svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.artist__friend { padding: 0; background: var(--fill); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--sep); }
.artist__friend svg { width: 24px; height: 24px; stroke-width: 1.8; }
.artist__friend:hover { background: var(--fill-strong); }
.artist__friend.is-friends { background: rgba(48, 209, 88, .16); color: var(--ok, #1E9E45); box-shadow: none; }
.artist__friend.is-accept { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.artist__friend.is-sent { color: var(--muted); }
.artist__actions > * > span, .artist__btn { overflow: hidden; text-overflow: ellipsis; }

/* The demo */
.artist__demo { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--panel); }
.artist__play { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); cursor: pointer; }
.artist__play svg { width: 18px; height: 18px; fill: currentColor; }
.artist__play .i-pause, .artist__demo.is-playing .artist__play .i-play { display: none; }
.artist__demo.is-playing .artist__play .i-pause { display: block; }
.artist__demotext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.artist__demotext b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist__wave {
  display: flex; align-items: center; gap: 2px; height: 24px;
  -webkit-mask: linear-gradient(90deg, #000 var(--p), rgba(0, 0, 0, .3) var(--p)); mask: linear-gradient(90deg, #000 var(--p), rgba(0, 0, 0, .3) var(--p));
}
.artist__wave i { flex: 1; min-height: 3px; border-radius: 2px; background: var(--accent); }
.artist__time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.artist__card { padding: 16px; border-radius: 16px; background: var(--panel); }
.artist__card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.artist__nodemo { display: grid; gap: 4px; }
.artist__nodemo b { font-size: 16px; }
.artist__nodemo .btn { justify-self: start; }
.artist__match { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; }

/* Sections */
.artist__sec { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.artist__sec h2, .artist__card h2 { margin: 0; font-family: var(--f-display); font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.artist__head { display: flex; align-items: baseline; justify-content: space-between; }
.artist__head span { font-size: 13px; color: var(--muted); }

.artist__insts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.artist__inst { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel); min-width: 0; }
.artist__inst > span:last-child { min-width: 0; }
.artist__inst b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist__inst small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.artist__iico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; }
.artist__iico.is-light { color: #2a2620; }
.artist__iico .iico { width: 26px; height: 26px; }
.artist__pips { display: flex; gap: 3px; margin-top: 5px; }
.artist__pips i { width: 12px; height: 5px; border-radius: 2px; background: var(--fill-strong); }
.artist__pips i.on { background: var(--accent); }

/* Rails that slide sideways (gear, people) run to the screen edge */
.artist__rail { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
.artist__rail::-webkit-scrollbar { display: none; }
.artist__gear { width: 156px; flex: none; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.artist__gearimg { position: relative; width: 156px; height: 156px; border-radius: 14px; overflow: hidden; background: var(--panel); display: grid; place-items: center; }
.artist__gearimg img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.artist__gearimg.is-empty { background: color-mix(in srgb, var(--c) 22%, var(--panel)); color: var(--c); }
.artist__gearimg.is-empty .iico { width: 64px; height: 64px; }
.artist__lend { position: absolute; top: 8px; left: 8px; padding: 4px 8px; border-radius: 999px; background: #1E7A3C; color: #fff; font-size: 11px; font-weight: 700; }
.artist__gear figcaption b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist__gear figcaption span { font-size: 12px; color: var(--muted); }

.artist__top { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.artist__top li { display: flex; align-items: center; gap: 14px; }
.artist__rank { width: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.artist__thumb { width: 44px; height: 44px; flex: none; border-radius: 6px; display: grid; place-items: center; background: hsl(var(--h) 45% 35%); color: rgba(255, 255, 255, .9); font-family: var(--f-poster); font-size: 22px; }
.artist__topname { min-width: 0; }
.artist__topname b { display: block; font-size: 15px; }
.artist__topname small { font-size: 13px; color: var(--muted); }
.artist__topname small.artist__both { display: block; color: var(--accent-text, var(--accent)); font-weight: 600; }

.artist__dates { display: flex; flex-direction: column; gap: 10px; }
.artist__date { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.artist__date:hover { text-decoration: none; color: var(--ink); }
.artist__day { width: 48px; flex: none; padding: 6px 0; border-radius: 8px; background: var(--panel); text-align: center; line-height: 1.15; }
.artist__day small { display: block; font-size: 11px; text-transform: uppercase; color: var(--accent-text); }
.artist__day b { font-size: 20px; }
.artist__datetext { flex: 1; min-width: 0; }
.artist__datetext b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist__datetext small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist__need { flex: none; max-width: 40%; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist__full { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 12px; }

.artist__mates a { width: 68px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-decoration: none; scroll-snap-align: start; }
.artist__mates .avatar { width: 62px; height: 62px; }

.artist__about { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.artist__bio { margin: 0 !important; color: var(--ink) !important; line-height: 1.45; }
.artist__genres { display: flex; flex-wrap: wrap; gap: 6px; }
.artist__genres span { padding: 6px 12px; border-radius: 999px; background: var(--fill); font-size: 13px; }
.artist__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.artist__nums div { padding: 10px 4px; border-radius: 10px; background: var(--fill); }
.artist__nums b { display: block; font-size: 20px; }
.artist__nums span { font-size: 11px; color: var(--muted); }
.artist__bands { margin: 0 !important; font-size: 14px; color: var(--muted); }
.artist__bands a { color: var(--ink); font-weight: 600; }
.artist__since { margin: 0 !important; font-size: 12px; color: var(--muted); }

.artist .posts { gap: 12px; }
.artist .safetyrow { margin-top: 8px; }

@media (min-width: 1024px) {
  .artist__hero { margin: 0; border-radius: 24px; height: 460px; }
  .artist__back { display: none; }
  .artist__name { left: 28px; right: 28px; bottom: 22px; }
}

/* Computers: the cover as a band across the top, the ID card over it on the left (it follows you
   down when it fits on the screen) and the rest in tabs on the right (js/artist.js artistDesk) */
@media (min-width: 1024px) {
  .adesk__cover { position: relative; height: 240px; border-radius: 24px; overflow: hidden; background: var(--stage); }
  .adesk__cover .pcover { position: absolute; inset: 0; height: 100%; border-radius: 0; }
  .adesk__cover::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18, 16, 14, .45), rgba(18, 16, 14, 0) 40%, rgba(18, 16, 14, 0) 60%, rgba(18, 16, 14, .5)); pointer-events: none; }
  .adesk__actions { position: absolute; z-index: 3; top: 20px; right: 24px; display: flex; gap: 8px; }
  .adesk__actions .artist__cta, .adesk__actions .artist__btn { height: 42px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
  .adesk__actions .artist__btn { background: #F4F0E6; color: #12100E; }
  .adesk__actions .adesk__ghost { background: rgba(244, 240, 230, .16); color: #F4F0E6; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .adesk__actions .artist__friend { width: 42px; height: 42px; border-radius: 12px; background: rgba(18, 16, 14, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

  .adesk__cols { display: grid; grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); gap: 32px; align-items: start; padding: 0 28px; }
  .adesk__id { position: relative; z-index: 2; margin-top: -120px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .adesk__id.is-sticky { position: sticky; top: 16px; }
  .adesk__card { display: grid; gap: 14px; padding: 72px 20px 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(21, 19, 15, .12); }
  .adesk__photo { position: relative; z-index: 1; display: block; width: 140px; height: 140px; margin: 0 0 -70px 20px; border-radius: 28px; overflow: hidden; background: var(--stage); box-shadow: 0 0 0 5px var(--panel), 0 10px 28px rgba(18, 16, 14, .3); }
  .adesk__photo img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
  .adesk__photo .avatar { width: 100%; height: 100%; border-radius: 0; font-size: 52px; }
  .adesk__who h1 { margin: 0; font-family: var(--f-display); font-size: 34px; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); overflow-wrap: anywhere; }
  .adesk__who h1 .vtag--demo { font-size: 11px; vertical-align: middle; }
  .adesk__who p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
  .adesk__bio { margin: 0; line-height: 1.45; color: var(--ink); }
  .adesk__card .artist__match { font-size: 13px; }
  .adesk__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
  .adesk__nums span { display: grid; gap: 2px; padding: 10px 4px; border-radius: 12px; background: var(--fill); }
  .adesk__nums b { font-size: 20px; white-space: nowrap; }
  .adesk__nums small { font-size: 11px; color: var(--muted); }
  .adesk__genres { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
  .adesk__genres span { padding: 5px 11px; border-radius: 999px; background: var(--fill); font-size: 13px; }
  .adesk__line { margin: 0; font-size: 14px; line-height: 1.4; }
  .adesk__line > span:first-child { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .adesk__line a { color: var(--ink); font-weight: 600; }
  .adesk__since { margin: 0; font-size: 12px; color: var(--muted); }
  .adesk__fill { display: grid; gap: 8px; padding: 16px; border-radius: 16px; border: 1.5px dashed var(--sep); }
  .adesk__fill h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .adesk__bar { height: 6px; border-radius: 3px; background: var(--fill-strong); overflow: hidden; }
  .adesk__bar i { display: block; height: 100%; background: var(--accent); }
  .adesk__fill p { margin: 0; font-size: 14px; line-height: 1.4; }
  .adesk__fill a, .adesk__fill .linkbtn { color: var(--accent-text); font-weight: 700; }
  .adesk__id .safetyrow { margin: 0; }

  .adesk__main { min-width: 0; padding-top: 18px; display: flex; flex-direction: column; gap: 18px; }
  .adesk__tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
  .adesk__tabs button { margin-bottom: -1px; padding: 10px 0; border: 0; border-bottom: 2.5px solid transparent; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
  .adesk__tabs button:hover { color: var(--ink); }
  .adesk__tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
  .adesk__tabs small { font-size: 12px; font-weight: 600; color: var(--muted); }
  .adesk__panel { display: flex; flex-direction: column; gap: 16px; }
  .adesk__panel[hidden] { display: none; }
  .adesk__panel > .artist__sec:first-child { margin-top: 0; }
  .adesk__panel .artist__rail { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .adesk__panel .artist__insts { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .adesk__past { border-radius: 16px; background: var(--panel); overflow: hidden; }
  .adesk__past a { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
  .adesk__past a:first-child { border-top: 0; }
  .adesk__past a:hover { background: var(--fill); color: var(--ink); text-decoration: none; }
  .adesk__pdate { width: 116px; flex: none; font-size: 13px; color: var(--muted); }
  .adesk__past b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .adesk__pwith { flex: none; max-width: 45%; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .adesk__empty p { margin: 0 0 12px; }
  .adesk__empty p:last-child { margin: 0; }

  .mewide__head { grid-column: 1 / -1; }
  .mewide__head .title { margin: 4px 0 0; }
}

/* Upcoming dates: the place may take two lines, and what the jam needs wraps instead of cutting */
.artist__datetext small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.artist__need { white-space: normal; text-align: center; border-radius: 12px; line-height: 1.25; }
