/* Jamming.Live Artist: Manage Artist screens and the public Artist profile. Builds on jl-auth.css tokens. */

/* ---------- Manage Artist shell ---------- */
.artist-wrap { width: 100%; max-width: 1180px; }
.artist-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin: 0 0 18px; }
.artist-head h1 { margin: 0; overflow-wrap: anywhere; }
.artist-head .head-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.artist-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.artist-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; padding: 12px; background: rgba(13, 13, 17, 0.94); border: 1px solid var(--line); border-radius: var(--radius); }
.artist-nav .nav-title { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin: 2px 8px 8px; overflow-wrap: anywhere; }
.artist-nav a, .artist-nav .side-off { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 10px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; border-left: 3px solid transparent; }
.artist-nav a:hover, .artist-nav a:focus-visible { background: var(--panel-2); color: #fff; }
.artist-nav a[aria-current="page"] { background: #261116; color: #fff; border-left-color: var(--accent); }
.artist-nav .side-off { color: var(--ink-faint); cursor: default; }
.artist-nav .side-off small, .artist-nav a small { font-size: 0.74rem; color: var(--ink-faint); }
.artist-main { min-width: 0; }
.artist-main h2 { margin: 0 0 6px; font-size: 1.35rem; }
.artist-main .panel h2 + .muted { margin-top: 0; }
.private-note { padding: 12px 14px; border: 1px solid #624249; border-left: 4px solid var(--accent); background: #1c1114; border-radius: 6px; margin: 0 0 18px; line-height: 1.45; }
.banner { padding: 12px 14px; border-radius: 8px; border: 1px solid; margin: 0 0 18px; line-height: 1.45; }
.banner-warn { background: #241d12; border-color: #71552b; }
.banner-danger { background: rgba(255, 42, 42, 0.1); border-color: rgba(255, 42, 42, 0.55); }
.banner-info { background: rgba(255, 255, 255, 0.05); border-color: var(--line); }

/* Setup stepper */
.stepper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 20px; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.stepper li { border-right: 1px solid var(--line); }
.stepper li:last-child { border-right: 0; }
.stepper a { display: block; padding: 12px 10px; color: var(--ink-soft); text-decoration: none; font-size: 0.86rem; height: 100%; }
.stepper a strong { display: block; color: var(--ink); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.stepper li.is-current a { background: #211115; box-shadow: inset 0 -3px 0 var(--accent); color: #fff; }
.stepper li.is-done a strong::after { content: " \2713"; color: var(--ok); }
.stepper a:hover { background: var(--panel-2); }

/* Forms */
textarea, input[type="url"], input[type="search"], input[type="number"], input[type="file"] {
  width: 100%; background: var(--panel-2); color: var(--ink); border: 1px solid #3a3a45; border-radius: 8px; padding: 11px 14px; font: inherit;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input[type="file"] { padding: 10px; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--accent-bright); }
.field-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 700px) { .field-row-3, .field-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-actions .spacer { margin-left: auto; }
.btn-auto { width: auto; }
.btn-red { background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: #fff; border-color: var(--accent); }
.btn-red:hover { filter: brightness(1.1); color: #fff; }
.btn-ghost-danger { background: transparent; color: var(--accent-ink); border-color: #6b2a2d; }
.btn-ghost-danger:hover { border-color: var(--accent-bright); color: #fff; }
.form-errors { margin: 0 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Taxonomy picker: searchable multi-select with one Primary */
.tax-picker { border: 1px solid #3a3a45; border-radius: 10px; background: var(--panel-2); padding: 12px; }
.tax-picker legend { font-weight: 600; padding: 0 6px; }
.tax-picker .tax-search { margin: 0 0 10px; }
.tax-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; max-height: 260px; overflow: auto; padding: 2px; }
.tax-option { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; font-weight: 400; margin: 0; }
.tax-option:hover { background: var(--panel); }
.tax-option.is-selected { border-color: #5b2a30; background: #1f1013; }
.tax-option input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.tax-option .tax-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tax-option .tax-primary { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--ink-faint); margin: 0; font-weight: 400; }
.tax-option .tax-primary input { accent-color: var(--accent); }
.tax-option .tax-inactive { font-size: 0.72rem; color: var(--ink-faint); }
.tax-empty { color: var(--ink-soft); margin: 4px 0; }
.tax-picker .hint { margin-top: 10px; }

/* Biography editor */
.rte-toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.rte-toolbar button { min-width: 42px; min-height: 38px; background: var(--panel-2); border: 1px solid #4d535b; color: var(--ink); border-radius: 6px; font: inherit; cursor: pointer; }
.rte-toolbar button:hover { border-color: #fff; }
.rte-surface { min-height: 160px; max-height: 420px; overflow: auto; background: var(--panel-2); border: 1px solid #3a3a45; border-radius: 8px; padding: 12px 14px; line-height: 1.55; }
.rte-surface:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rte-surface p, .bio p { margin: 0 0 0.9em; }
.rte-surface ul, .rte-surface ol, .bio ul, .bio ol { margin: 0 0 0.9em; padding-left: 1.4em; }

/* Lists of members, videos, photos */
.row-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.row-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.row-item.no-thumb { grid-template-columns: minmax(0, 1fr) auto; }
.row-item .row-title { font-weight: 700; overflow-wrap: anywhere; }
.row-item .row-sub { color: var(--ink-soft); font-size: 0.9rem; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form { display: inline; }
.avatar { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: radial-gradient(circle at 40% 30%, #d34b52, #2d1115 42%, #11191d 70%); display: block; }
.row-edit { grid-column: 1 / -1; }
.row-edit summary { cursor: pointer; color: var(--accent-ink); width: max-content; padding: 4px 0; }
.row-edit form { margin-top: 12px; }
@media (max-width: 640px) { .row-item { grid-template-columns: 56px minmax(0, 1fr); } .row-item .row-actions { grid-column: 1 / -1; justify-content: flex-start; } .avatar { width: 56px; height: 56px; } }

.cover-preview { display: block; width: 100%; max-width: 520px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); }
.thumb-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.thumb-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.thumb-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; background: var(--panel); }
.thumb-card .row-actions { justify-content: flex-start; margin-top: 8px; }
.thumb-card details { margin-top: 8px; }
.usage { display: inline-block; font-weight: 600; color: var(--ink-soft); font-size: 0.95rem; }

/* Overview */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.stat { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.stat b { display: block; font-size: 1.4rem; }
.stat span { color: var(--ink-soft); font-size: 0.86rem; }
/* Artist cover, shown whole: the Artist-only "fit" modifiers (Manage Artist preview, Overview, public hero). Venue and every other surface keep their own crop. */
.cover-preview.cover-fit { height: auto; object-fit: contain; background: var(--bg); }
.overview-top img.cover-fit { height: auto; object-fit: contain; background: var(--bg); }
.overview-top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.overview-top img, .overview-top .cover-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); display: grid; place-items: center; color: var(--ink-faint); font-size: 0.85rem; text-align: center; padding: 6px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 14px 0 0; }
.kv dt { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 700; }
.kv dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.todo-list { margin: 10px 0 0; padding-left: 1.2em; }
.todo-list li { margin: 4px 0; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .overview-top { grid-template-columns: 1fr; } }

/* Rates */
.rate-summary { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.95rem; }
.rate-summary th, .rate-summary td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.rate-summary th { color: var(--ink-faint); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; border-top: 0; }
.rate-card { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); padding: 14px; margin-top: 12px; }
.rate-card.is-open { border-color: #5b2a30; }
.rate-card > summary { cursor: pointer; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; list-style: none; }
.rate-card > summary::-webkit-details-marker { display: none; }
.rate-card > summary .rate-name { font-weight: 700; flex: 1; min-width: 160px; }
.rate-card > summary .rate-current { color: var(--ink-soft); }
.rate-body { margin-top: 14px; }
.money { display: flex; align-items: stretch; background: var(--panel); border: 1px solid #3a3a45; border-radius: 8px; overflow: hidden; }
.money > span { padding: 0 12px; display: flex; align-items: center; color: var(--ink-soft); border-right: 1px solid #3a3a45; }
.money input { border: 0; border-radius: 0; background: transparent; min-width: 0; }
.money input[aria-invalid="true"] { outline: 2px solid var(--accent-bright); }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.day-grid label { font-size: 0.82rem; margin-bottom: 4px; }
.day-grid[hidden], [data-day-fields][hidden] { display: none; }
.saved-note { color: #e6c979; font-size: 0.9rem; margin: 10px 0 0; }

/* Access & Managers */
.person-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.person-row:first-of-type { border-top: 0; }
.person-row .grow { flex: 1; min-width: 200px; overflow-wrap: anywhere; }
.invite-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
@media (max-width: 560px) { .invite-form { grid-template-columns: 1fr; } }
.badge-pending { border-color: #71552b; color: #ffdca1; }
.badge-expired, .badge-revoked, .badge-declined { border-color: #555c65; color: var(--ink-soft); }

/* Review */
.check-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.check-list .mark { font-weight: 700; width: 1.2em; text-align: center; }
.check-list .ok .mark { color: var(--ok); }
.check-list .todo .mark { color: var(--accent-ink); }

/* Invitation page */
.invite-card { max-width: 560px; }

/* ---------- Public Artist profile ---------- */
.pa-main { flex: 1; background: var(--bg); }
.pa-preview-bar { background: #261116; border-bottom: 1px solid #5b2a30; padding: 10px clamp(16px, 4vw, 56px); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pa-preview-bar a { margin-left: auto; }
.pa-eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; color: var(--accent-bright); margin: 0 0 6px; }
.pa-loc { color: var(--ink-soft); margin: 0 0 12px; font-size: 1.05rem; }
.pa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #171f24; border: 1px solid #39434a; font-size: 0.86rem; color: var(--ink); text-decoration: none; }
.chip.is-primary { border-color: #ee3540; background: #321116; }
a.chip:hover { border-color: #fff; color: #fff; }
.pa-body { max-width: 1240px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr); gap: 24px; }
.pa-card { background: linear-gradient(180deg, #11181c, #0d1215); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.pa-card h2 { display: flex; align-items: center; gap: 14px; font-size: 1.4rem; margin: 0 0 16px; }
.pa-card h2::after { content: ""; height: 1px; background: #9a252c; flex: 1; }
.bio { line-height: 1.65; overflow-wrap: anywhere; }
.bio a { color: var(--accent-ink); }
.pa-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pa-member { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #0b1013; }
.pa-member .avatar { flex: none; }
.pa-member b { overflow-wrap: anywhere; }
.pa-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid #3c464b; background: #0f171c; }
.yt button, .yt iframe, .yt .yt-link { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt button { cursor: pointer; background: #0f171c center / cover no-repeat; color: #fff; display: grid; place-items: center; font-size: 0; }
.yt button::before { content: ""; width: 68px; height: 48px; border-radius: 12px; background: var(--accent); }
.yt button::after { content: ""; position: absolute; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.yt-title { font-size: 0.86rem; color: var(--ink-soft); margin: 6px 0 0; overflow-wrap: anywhere; }
.pa-songs { columns: 2; column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.pa-songs li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid #273036; overflow-wrap: anywhere; }
.pa-aside .pa-songs { columns: 1; }
.pa-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 900px) { .pa-body { grid-template-columns: 1fr; } .pa-songs { columns: 1; } }

@media (max-width: 900px) {
  .artist-layout { grid-template-columns: 1fr; }
  .artist-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; }
  .artist-nav .nav-title { display: none; }
  .artist-nav a, .artist-nav .side-off { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .artist-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stepper li:nth-child(3) { border-right: 0; }
  .stepper li:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .form-actions .btn, .artist-head .head-actions .btn { width: 100%; }
  .form-actions .spacer { margin-left: 0; }
}
@media print { .artist-nav, .stepper, .form-actions { display: none !important; } }
