/* Artist profile (themes/_base/sections/artist + components/artist_socials, artist_events). Token-only. */

body.zt-page-artist main { padding-bottom: 56px; }
.zt-artist-wrap { max-width: 1000px; }

/* ---- Banner + identity card ----------------------------------------------------------- */
.zt-artist-header { margin-bottom: 24px; }
.zt-artist-banner { --zt-artist-banner-h: 340px; position: relative; isolation: isolate; height: var(--zt-artist-banner-h); overflow: hidden; background: var(--z-surface-2); }
@media (max-width: 767px) { .zt-artist-banner { --zt-artist-banner-h: 240px; } }
.zt-artist-banner--plain { background: linear-gradient(135deg, var(--z-hero-from), var(--z-hero-to)); }
.zt-artist-banner__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; z-index: -2; }
/* The video covers the band (16:9 player scaled up and centred, no letterbox bars). */
iframe.zt-artist-banner__media {
    inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
    width: max(100%, calc(var(--zt-artist-banner-h) * 16 / 9)); height: max(100%, calc(100vw * 9 / 16));
}
/* A fixed dark wash over the photo/video so the "All artists" pill and the card edge read on any picture. */
.zt-artist-banner__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.2) 55%, rgba(0,0,0,.08)); }
.zt-artist-banner--plain .zt-artist-banner__shade { display: none; }
.zt-artist-banner__top { position: relative; padding-top: 18px; }
.zt-artist-back {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    font-size: .875rem; font-weight: 600; text-decoration: none;
    color: var(--z-text); background: var(--z-surface); border: 1px solid var(--z-border); box-shadow: var(--z-shadow);
}
.zt-artist-back:hover { text-decoration: none; color: var(--z-accent-text); }

.zt-artist-id {
    position: relative; z-index: 2; margin-top: -76px; padding: 20px 22px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
}
.zt-artist-id__avatar {
    width: 104px; height: 104px; flex: 0 0 auto; border-radius: var(--z-radius-lg); object-fit: cover;
    border: 1px solid var(--z-border); background: var(--z-surface-2);
}
.zt-artist-id__avatar--initials {
    display: flex; align-items: center; justify-content: center;
    color: var(--z-accent-text); background: var(--z-accent-soft);
    font-family: var(--z-font-display); font-size: 2rem; font-weight: 800;
}
.zt-artist-id__main { flex: 1 1 240px; min-width: 0; }
.zt-artist-id__name { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 800; overflow-wrap: anywhere; }
.zt-artist-id__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; font-size: .875rem; color: var(--z-muted); }
.zt-artist-id__count i { margin-right: 4px; color: var(--z-accent-text); }
.zt-artist-genre {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: var(--z-accent-text); background: var(--z-accent-soft); border: 1px solid color-mix(in srgb, var(--z-accent) 30%, var(--z-border));
}
@media (max-width: 639px) {
    .zt-artist-id { margin-top: -56px; padding: 16px; gap: 14px; }
    .zt-artist-id__avatar { width: 72px; height: 72px; border-radius: var(--z-radius); }
    .zt-artist-id__avatar--initials { font-size: 1.4rem; }
}

/* ---- Artist links (components/artist_socials.php) -------------------------------------- */
.zt-artist-socials { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.zt-artist-social {
    width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; font-size: .875rem; text-decoration: none;
    color: var(--z-muted); background: var(--z-surface); border: 1px solid var(--z-border);
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.zt-artist-social:hover { text-decoration: none; color: var(--z-accent-text); border-color: var(--z-accent-text); background: var(--z-accent-soft); }
.zt-artist-socials--lg .zt-artist-social { width: 44px; height: 44px; border-radius: 12px; font-size: 1rem; }

/* ---- Panels --------------------------------------------------------------------------- */
.zt-artist-sec { padding-bottom: 22px; }
.zt-artist-panel__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 16px 22px; border-bottom: 1px solid var(--z-border); }
.zt-artist-panel__title { margin: 0; font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.zt-artist-panel__title i { margin-right: 6px; color: var(--z-accent-text); }
.zt-artist-panel__note {
    margin-left: auto; padding: 4px 11px; border-radius: 999px; font-size: .75rem; font-weight: 700;
    color: var(--z-muted); background: var(--z-surface-2); border: 1px solid var(--z-border);
}
.zt-artist-panel__body { padding: 20px 22px; }
.zt-artist-prose { font-size: 1rem; }
.zt-artist-prose :where(img) { border-radius: var(--z-radius); }
.zt-artist-prose > :last-child { margin-bottom: 0; }

/* ---- Event counts --------------------------------------------------------------------- */
.zt-artist-stats { display: flex; }
.zt-artist-stat { flex: 1 1 0; min-width: 0; padding: 18px 16px; text-align: center; border-right: 1px solid var(--z-border); }
.zt-artist-stat:last-child { border-right: 0; }
.zt-artist-stat__num { display: block; font-family: var(--z-font-display); font-size: 1.75rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.zt-artist-stat__label { display: block; margin-top: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--z-muted); }

/* ---- Videos --------------------------------------------------------------------------- */
.zt-artist-videos { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .zt-artist-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zt-artist-video { margin: 0; min-width: 0; }
.zt-artist-video__frame {
    position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer;
    border-radius: var(--z-radius); border: 1px solid var(--z-border); background: var(--z-surface-2);
}
.zt-artist-video__frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.zt-artist-video__frame:hover img { transform: scale(1.04); }
.zt-artist-video__frame--playing { cursor: default; }
.zt-artist-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.zt-artist-video__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); }
.zt-artist-video__play span {
    width: 52px; height: 52px; padding-left: 3px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
    color: var(--z-accent-ink); background: var(--z-accent); box-shadow: var(--z-shadow-lg); font-size: 1rem;
}
.zt-artist-video__title { margin: 8px 0 0; font-size: .875rem; font-weight: 600; color: var(--z-muted); overflow-wrap: anywhere; }

/* ---- Spotify player ------------------------------------------------------------------- */
.zt-artist-embed { display: block; width: 100%; border: 0; }

/* ---- Event rows (components/artist_events.php) ---------------------------------------- */
.zt-artist-events { list-style: none; margin: 0; padding: 0; }
.zt-artist-events li + li { border-top: 1px solid var(--z-border); }
.zt-artist-event { display: flex; align-items: center; gap: 14px; padding: 14px 22px; color: var(--z-text); text-decoration: none; transition: background-color .14s ease; }
.zt-artist-event:hover { text-decoration: none; background: var(--z-surface-2); }
.zt-artist-event__img {
    width: 64px; height: 64px; flex: 0 0 auto; border-radius: var(--z-radius); overflow: hidden;
    display: flex; align-items: center; justify-content: center; color: var(--z-accent-text); background: var(--z-accent-soft);
}
.zt-artist-event__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zt-artist-event__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.zt-artist-event__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-artist-event__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8125rem; color: var(--z-muted); }
.zt-artist-event__meta i { margin-right: 4px; color: var(--z-accent-text); font-size: .75rem; }
.zt-artist-event__go {
    width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: var(--z-muted); border: 1px solid var(--z-border); font-size: .75rem; transition: background-color .14s ease, color .14s ease;
}
.zt-artist-event:hover .zt-artist-event__go { color: var(--z-accent-ink); background: var(--z-accent); border-color: var(--z-accent); }
.zt-artist-events--past .zt-artist-event__img img { filter: grayscale(1); opacity: .85; }
.zt-artist-events--past .zt-artist-event__meta i { color: var(--z-muted); }
@media (max-width: 479px) { .zt-artist-event { padding: 12px 16px; } .zt-artist-event__go { display: none; } }

/* ---- Contact form --------------------------------------------------------------------- */
.zt-artist-errors { margin: 4px 0 0; padding-left: 18px; list-style: disc; }

/* ---- Share ---------------------------------------------------------------------------- */
.zt-artist-share__row { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zt-artist-share__btn {
    height: 44px; border-radius: var(--z-radius); cursor: pointer; font-size: 1rem;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--z-muted); background: var(--z-surface); border: 1px solid var(--z-border);
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.zt-artist-share__btn:hover { color: var(--z-accent-text); border-color: var(--z-accent-text); background: var(--z-accent-soft); }
.zt-artist-share__copy { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
    .zt-artist-video__frame img, .zt-artist-event, .zt-artist-social, .zt-artist-share__btn { transition: none; }
    .zt-artist-video__frame:hover img { transform: none; }
}
