/* DJ pages: the directory (/djs), a DJ's page (/dj/{slug}), their page settings and booking requests. */

/* ---------- cards: a square photo, or initials on a colour of their own ---------- */
.dj-card-pic, .dj-hero-pic, .dj-pic-box .pf-logo-img, .dj-av, .dj-mix-stage, .dj-ml-pic {
  background: linear-gradient(140deg, hsl(var(--h, 260) 58% 42%), hsl(calc(var(--h, 260) + 55) 58% 16%));
}
.dj-card-pic { display: grid; place-items: center; }
.dj-card-pic img { transition: transform .25s ease; }
.dj-card:hover .dj-card-pic img { transform: scale(1.03); }
.dj-ini { font: 300 clamp(28px, 3.2vw, 42px)/1 var(--sans); color: rgba(255, 255, 255, .94); letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.dj-card .cat-follow { margin-top: 10px; }
.dj-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.dj-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dj-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 6px 0 34px; padding: 24px; border-radius: var(--r); background: var(--frame); box-shadow: 0 0 0 1px var(--line); }
.dj-cta h2 { font-size: 22px; }
.dj-cta p { margin: 6px 0 0; max-width: 62ch; color: var(--text-2); line-height: 1.55; }

/* ---------- a DJ's page: photo and name, then booking beside the mixes ---------- */
.dj-preview { color: var(--warn); }
.dj-hero { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: end; margin: 14px 0 26px; }
.dj-hero-pic { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
.dj-hero-pic img { width: 100%; height: 100%; object-fit: cover; }
.dj-hero-pic .dj-ini { font-size: clamp(48px, 6vw, 80px); }
.dj-hero-body { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 10px; }
.dj-hero-body h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.dj-hero .kicker { display: flex; align-items: center; gap: 10px; margin: 0; }
.dj-spot { padding: 2px 7px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; letter-spacing: .06em; }
/* "In the Record Pool": under the name on a card and on the page, only while the DJ is in the pool */
.dj-pool { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-top: 6px; padding: 3px 8px 3px 6px; background: rgba(255, 255, 255, .08); color: var(--text); font-size: 11.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-pool svg.i { width: 13px; height: 13px; color: var(--text-2); }
.dj-pool.is-big { margin-top: -2px; padding: 4px 10px 4px 8px; font-size: 12.5px; }
.dj-pool.is-big svg.i { width: 15px; height: 15px; }
/* sample pages (Admin, DJs): a plain tag, a note above, and the photographer's credit */
.dj-spot.is-sample, .dj-tag.is-sample { background: rgba(11, 11, 11, .78); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.dj-sample-note { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); }
.dj-sample-note .i { flex: none; margin-top: 2px; color: var(--text-3); }
.dj-credit { margin: 0; color: var(--text-3); font-size: 12px; }
.dj-credit a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.dj-own { margin-top: 12px; }
.dj-hero .cat-ent-meta b { color: var(--text); font-weight: 500; }
.dj-links { margin-top: 2px; }

.dj-mine-reqs { display: grid; gap: 6px; margin: -8px 0 26px; }
.dj-req-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--frame); box-shadow: 0 0 0 1px var(--line); color: var(--text-2); }
.dj-req-line:hover { background: var(--raised); color: var(--text-2); }
.dj-req-line b { color: var(--text); font-weight: 500; }
.dj-req-line > span:nth-of-type(1) { flex: 1; min-width: 0; }

.dj-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.dj-main { min-width: 0; }
.dj-side { position: sticky; top: calc(var(--top-h) + 10px); margin-bottom: 38px; }
.dj-book, .dj-panel { padding: 20px; border-radius: var(--r); background: var(--frame); box-shadow: 0 0 0 1px var(--line); }
.dj-book h2, .dj-panel h2 { margin: 0 0 14px; font-size: 18px; }
.dj-facts { display: grid; gap: 12px; margin: 0 0 16px; }
.dj-facts > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; }
.dj-facts dt { color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
.dj-facts dd { margin: 0; color: var(--text); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.dj-panel .dj-facts { margin: 0; }
.dj-book-note { margin: 12px 0 0; color: var(--text-3); font-size: 12.5px; line-height: 1.55; }
.dj-bio { max-width: 72ch; color: var(--text-2); font-size: 14.5px; line-height: 1.7; overflow-wrap: anywhere; }

/* mixes: nothing from the other site loads until play is pressed; a playing mix takes the whole row */
.dj-mixes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px 16px; }
.dj-mix { min-width: 0; }
.dj-mix.is-playing { grid-column: 1 / -1; }
.dj-mix-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; }
.dj-mix.is-playing.is-mixcloud .dj-mix-stage { aspect-ratio: auto; height: 120px; }
.dj-mix.is-playing.is-soundcloud .dj-mix-stage { aspect-ratio: auto; height: 300px; }
.dj-mix-start { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.dj-mix-start img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s, transform .3s; }
.dj-mix-start:hover img { opacity: 1; transform: scale(1.02); }
.dj-mix-start .play-sq { position: absolute; left: 14px; bottom: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.dj-mix-src { position: absolute; right: 10px; top: 10px; padding: 2px 7px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.dj-mix-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.dj-mix-meta { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; min-width: 0; }
.dj-mix-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 13.5px; }
.dj-mix-out { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--text-3); font-size: 12px; }
.dj-mix-out:hover { color: var(--text); }

/* ---------- your DJ page (settings) ---------- */
.dj-edit-head h1 { margin: 0 0 16px; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; overflow-wrap: anywhere; }
.dj-edit-head .kicker { margin-top: 14px; }
.dj-status { margin: 0 0 16px; padding: 18px 20px; border-radius: var(--r); background: var(--raised); color: var(--text-2); line-height: 1.6; }
.dj-status p { margin: 0 0 8px; }
.dj-status p:last-child { margin-bottom: 0; }
.dj-status.is-warn > p:first-child { color: var(--warn); }
.dj-status.is-live > p:first-child { color: var(--text); }
.dj-status .form-actions { margin: 14px 0 10px; }
.dj-stats { font-size: 12.5px; }
.dj-note { margin: 10px 0; padding: 12px 14px; border-radius: var(--r); background: var(--frame); color: var(--text); }
.dj-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 600; }
.dj-pic-box .pf-logo-img { box-shadow: none; }
.dj-pic-box .pf-logo-img img { object-fit: cover; padding: 0; }
.dj-pic-box .dj-ini { font-size: 30px; }
.g-pick input:disabled + span { opacity: .4; cursor: default; }
.g-pick input:disabled + span:hover { background: var(--raised); color: var(--text-2); }
.dj-form-actions { margin: 6px 0 22px; }
.dj-form .acc-sec .check small { font-size: 12.5px; }

.dj-mix-list { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.dj-mix-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px; border-radius: var(--r); background: var(--raised); }
.dj-ml-pic { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; color: rgba(255, 255, 255, .75); }
.dj-ml-pic img { width: 100%; height: 100%; object-fit: cover; }
.dj-ml-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; margin: 0; }
.dj-ml-title .input { flex: 1 1 220px; height: 36px; background: var(--frame); }
.dj-ml-title .input:focus { background: var(--base); }
.dj-ml-src { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 12px; }
.dj-ml-src:hover { color: var(--text); }
.dj-ml-acts { display: flex; gap: 2px; }
.dj-ml-acts form { margin: 0; }
.dj-ml-rm:hover { color: var(--danger); }
.dj-mix-add { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 0 14px; align-items: end; }
.dj-mix-add .btn { height: 42px; margin-bottom: 16px; }
.dj-mix-add .field-error { grid-column: 1 / -1; margin: -8px 0 12px; }
.dj-rights { display: block; margin: 4px 0 0; }

/* ---------- a booking request ---------- */
.dj-back { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 14px; color: var(--text-2); font-size: 13px; }
.dj-back:hover { color: var(--text); }
.dj-book-head { display: flex; align-items: center; gap: 18px; margin: 0 0 20px; min-width: 0; }
.dj-book-head > div { min-width: 0; }
.dj-book-head h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; overflow-wrap: anywhere; }
.dj-book-head p { margin: 4px 0 0; }
.dj-av { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: var(--r); overflow: hidden; flex: none; color: #fff; font-weight: 500; }
.dj-av img { width: 100%; height: 100%; object-fit: cover; }
.dj-av.round { border-radius: 999px; background: var(--sel); color: var(--text); }
.dj-book-rules { margin: 4px 0 16px; padding: 14px 16px; border-radius: var(--r); background: var(--raised); color: var(--text-2); font-size: 13px; line-height: 1.6; }
.dj-book-rules p { margin: 0; }
.dj-book-rules p + p { margin-top: 6px; }
.dj-book-form input[type=date] { color-scheme: dark; }

/* Bookings: one row per request */
.dj-tab-n { margin-left: 6px; color: var(--text-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.dj-blist { display: grid; gap: 6px; }
.dj-brow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 96px 150px 76px; grid-template-areas: "av main date pill new"; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--r); background: var(--frame); box-shadow: 0 0 0 1px var(--line); }
.dj-brow:hover { background: var(--raised); }
.dj-brow .dj-av { grid-area: av; width: 44px; height: 44px; font-size: 13px; }
.dj-brow-main { grid-area: main; display: grid; min-width: 0; }
.dj-brow-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.dj-brow.is-unread .dj-brow-main b { font-weight: 600; }
.dj-brow-main small, .dj-brow-date small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 12px; }
.dj-brow-date { grid-area: date; display: grid; }
.dj-brow-date b { font-weight: 500; }
.dj-brow > .dj-pill { grid-area: pill; }
.dj-brow-new { grid-area: new; text-align: right; }
.dj-pill { justify-self: start; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 3px; background: var(--raised); color: var(--text-2); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.dj-pill.is-new { background: rgba(245, 196, 81, .14); color: var(--warn); }
.dj-pill.is-accepted { background: rgba(139, 227, 182, .14); color: var(--ok); }
.dj-pill.is-declined, .dj-pill.is-cancelled, .dj-pill.is-lapsed { color: var(--text-3); }
.dj-dot { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* the conversation */
.dj-bk-wrap { max-width: 1240px; margin: 0 auto; }
.dj-bk-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin: 0 0 22px; }
.dj-bk-head > div { min-width: 0; }
.dj-bk-head h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; overflow-wrap: anywhere; }
.dj-bk-head p { margin: 6px 0 0; }
.dj-bk { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.dj-bk-side { position: sticky; top: calc(var(--top-h) + 10px); display: grid; gap: 14px; }
.dj-thread { display: grid; gap: 12px; min-width: 0; }
.dj-msg { justify-self: start; max-width: 82%; min-width: 0; padding: 14px 16px; border-radius: var(--r); background: var(--frame); box-shadow: 0 0 0 1px var(--line); scroll-margin-top: 90px; }
.dj-msg.is-mine { justify-self: end; background: var(--raised); box-shadow: none; }
.dj-msg-by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--text-3); font-size: 12.5px; }
.dj-msg-by b { color: var(--text); font-weight: 500; }
.dj-msg-body { color: var(--text-2); line-height: 1.6; overflow-wrap: anywhere; }
.dj-sys { justify-self: center; max-width: 82%; color: var(--text-3); font-size: 12.5px; text-align: center; scroll-margin-top: 90px; }
.dj-sys.is-accepted > span { color: var(--ok); }
.dj-sys p { margin: 8px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--frame); color: var(--text-2); font-size: 13.5px; line-height: 1.6; text-align: left; overflow-wrap: anywhere; }
.dj-reply { margin-top: 10px; padding: 18px; border-radius: var(--r); background: var(--frame); box-shadow: 0 0 0 1px var(--line); }
.dj-reply .field { margin-bottom: 10px; }
.dj-closed { margin: 10px 0 0; color: var(--text-3); text-align: center; }
.dj-answer .form-actions { margin: 0 0 10px; }
.dj-answer .field-hint { display: block; line-height: 1.5; }
.dj-fold summary { color: var(--text-2); font-weight: 500; cursor: pointer; }
.dj-fold summary:hover, .dj-fold[open] summary { color: var(--text); }
.dj-fold[open] summary { margin-bottom: 14px; }
.dj-fold form { margin: 0; }
.dj-bk-note { margin: 0; color: var(--text-3); font-size: 12.5px; line-height: 1.55; }

/* ---------- home page and track page ---------- */
.dj-played { display: flex; flex-wrap: wrap; gap: 10px; }
.dj-chip { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 4px; border-radius: var(--r); background: var(--raised); color: var(--text); font-size: 13px; font-weight: 500; max-width: 100%; }
.dj-chip:hover { background: var(--sel); }
.dj-chip .dj-av { width: 36px; height: 36px; font-size: 11.5px; border-radius: 3px; }
.dj-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dj-chip small { color: var(--text-3); font-weight: 400; }

.tp-feat-img.dj-feat-pic { background: linear-gradient(140deg, hsl(var(--h, 260) 58% 42%), hsl(calc(var(--h, 260) + 55) 58% 16%)); color: #fff; font-size: 12px; font-weight: 500; }

/* ---------- narrower screens ---------- */
@container stage (max-width: 980px) {
  .dj-cols, .dj-bk { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dj-side, .dj-bk-side { position: static; }
  .dj-side { order: -1; margin-bottom: 26px; }
  .dj-bk-side { margin-top: 22px; }
}
@container stage (max-width: 700px) {
  .dj-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 6px; }
  .dj-hero-pic { width: min(200px, 62%); }
  .dj-book-btn { width: 100%; }
  .dj-brow { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "av main new" "av date pill"; gap: 4px 12px; }
  .dj-brow .dj-av { width: 40px; height: 40px; align-self: start; }
  .dj-brow-date { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
  .dj-brow > .dj-pill { justify-self: end; }
  .dj-mix-list li { grid-template-columns: 72px minmax(0, 1fr); }
  .dj-ml-acts { grid-column: 1 / -1; justify-content: flex-end; }
  .dj-mix-add { grid-template-columns: minmax(0, 1fr); }
  .dj-mix-add .btn { justify-self: start; }
  .dj-msg, .dj-sys { max-width: 100%; }
  .dj-book-head { align-items: flex-start; }
  .dj-book-head .dj-av { width: 56px; height: 56px; }
  .dj-cta { padding: 20px 16px; }
  .dj-cta .btn { width: 100%; }
}
@container stage (max-width: 560px) {
  .dj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .dj-mixes { grid-template-columns: minmax(0, 1fr); }
}
