/* ============================================================
   LyricTribe — Browse Artists page (fresh build, new namespace)
   Fully independent from artist.css (which the /artist/{slug} show
   page uses). Class prefix: ltArt   |   No "artist-card", no "grad-N",
   no "az-bar--page", no "artists-index-*" — clean break from any
   prior catalogue/CMS styling.
   ============================================================ */

.page-artists-browse { background: #fafafa; color: #0f172a; }

.ltArt {
    --vermillion: #FF3B5C;
    --vermillion-soft: rgba(255,59,92,0.10);
    --vermillion-deep: #d62b48;
    --ink: #0f172a;
    --ink-2: #475569;
    --ink-3: #8a96a3;
    --line: #e6e8ec;
    --line-strong: #cfd2d8;
    --paper: #ffffff;
    --paper-2: #f4f5f7;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 18px;
    --max: 1240px;
    --shadow-s: 0 1px 2px rgba(15,23,42,0.04);
    --shadow-m: 0 8px 24px rgba(15,23,42,0.08);
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ltArt__wrap { max-width: var(--max); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

/* =========================================================
   1. DARK HERO BANNER — centered, vignette + glass search
   (matches the screenshot the user uploaded)
   ========================================================= */
.ltArt__hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    text-align: center;
    padding: 4.5rem 1.25rem 4rem;
    background:
        radial-gradient(ellipse 800px 460px at 50% 30%, rgba(140, 50, 80, 0.55) 0%, rgba(60, 18, 38, 0.30) 50%, transparent 80%),
        radial-gradient(circle 280px at 8% 110%, rgba(255, 59, 92, 0.18), transparent 70%),
        radial-gradient(circle 320px at 100% 0%, rgba(124, 77, 255, 0.18), transparent 70%),
        linear-gradient(180deg, #2a0f1f 0%, #1b0a14 100%);
    overflow: hidden;
}
.ltArt__hero::after {
    /* subtle film grain via SVG noise */
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.55;
    mix-blend-mode: overlay;
    pointer-events: none;
}
.ltArt__hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}
.ltArt__hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.025em;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.ltArt__hero-sub {
    margin: 0 auto 2rem;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.80);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.55;
}
.ltArt__hero-find {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 560px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-radius: 9999px;
    padding: 0.55rem 1.25rem;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.ltArt__hero-find:focus-within {
    border-color: rgba(255, 59, 92, 0.65);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 4px rgba(255, 59, 92, 0.16);
}
.ltArt__hero-find svg { color: rgba(255, 255, 255, 0.65); flex-shrink: 0; }
.ltArt__hero-find input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    padding: 0.45rem 0;
    font: inherit;
}
.ltArt__hero-find input::placeholder { color: rgba(255, 255, 255, 0.50); }

/* Breadcrumb strip sits on the light bg right below the hero */
.ltArt__crumbs-strip {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.ltArt__crumbs {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    color: var(--ink-3);
    font-size: 0.82rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}
.ltArt__crumbs a { color: var(--ink-2); text-decoration: none; }
.ltArt__crumbs a:hover { color: var(--vermillion); }
.ltArt__crumbs span:last-child { color: var(--ink); font-weight: 600; }

/* =========================================================
   2. FEATURED RAIL — top-published artists, brand-new section
   ========================================================= */
.ltArt__band { padding: 2rem 0 0.5rem; }
.ltArt__band-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.1rem; gap: 1rem; }
.ltArt__band-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.005em; color: var(--ink); }
.ltArt__band-hint { color: var(--ink-3); font-size: 0.8rem; font-weight: 600; }
.ltArt__rail {
    list-style: none; margin: 0; padding: 0 0 0.4rem;
    display: grid; grid-template-columns: repeat(8, 1fr);
    gap: 0.85rem 1rem;
}
.ltArt__rail-pad { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); padding: 0.4rem 0.2rem; border-radius: var(--radius); transition: transform 0.18s ease; }
.ltArt__rail-pad:hover { transform: translateY(-2px); }
.ltArt__rail-photo {
    position: relative;
    width: 100%; aspect-ratio: 1; max-width: 110px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #3d1a2e);
    margin-bottom: 0.55rem;
    box-shadow: var(--shadow-s);
    /* Vermillion → indigo ring outline */
    outline: 3px solid transparent;
    outline-offset: 3px;
    transition: outline-color 0.18s ease;
}
.ltArt__rail-pad:hover .ltArt__rail-photo { outline-color: var(--vermillion); }
.ltArt__rail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ltArt__rail-mono { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.03em; }
.ltArt__rail-name { font-weight: 700; font-size: 0.82rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.ltArt__rail-meta { color: var(--ink-3); font-size: 0.72rem; margin-top: 0.1rem; }

/* =========================================================
   3. A-Z CHIP BAR with letter counts
   ========================================================= */
.ltArt__chips {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    margin-top: 1.75rem;
}
.ltArt__chips-wrap {
    display: flex; flex-wrap: wrap; gap: 0.35rem;
    padding-top: 0.7rem; padding-bottom: 0.7rem;
}
/* Each letter chip pulls its colour from --h (set inline per chip).
   Soft pastel background + saturated text + matching tint border.
   "All" and "#" stay neutral; active overrides to vermillion;
   empty letters keep the neutral muted look. */
.ltArt__chip {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 42px; padding: 0.32rem 0.6rem;
    border: 1px solid hsl(var(--h, 220), 30%, 88%);
    background: hsl(var(--h, 220), 72%, 96%);
    color: hsl(var(--h, 220), 55%, 32%);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700; line-height: 1;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.ltArt__chip:hover {
    background: hsl(var(--h, 220), 80%, 92%);
    border-color: hsl(var(--h, 220), 60%, 70%);
    color: hsl(var(--h, 220), 60%, 28%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px hsl(var(--h, 220), 60%, 80%);
}
.ltArt__chip-key { font-size: 0.95rem; font-weight: 800; }
.ltArt__chip-num { font-size: 0.62rem; margin-top: 0.25rem; font-variant-numeric: tabular-nums; font-weight: 700; opacity: 0.75; }

/* Neutral chips: "All" and "#" — keep them quiet so the letters pop */
.ltArt__chip--all,
.ltArt__chip--hash {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    color: var(--ink);
}
.ltArt__chip--all:hover,
.ltArt__chip--hash:hover {
    background: var(--paper);
    border-color: var(--vermillion);
    color: var(--vermillion);
    box-shadow: 0 4px 10px rgba(255, 59, 92, 0.18);
}

/* Active letter — solid vermillion, overrides any per-letter colour */
.ltArt__chip.is-on {
    background: var(--vermillion);
    color: #fff;
    border-color: var(--vermillion);
    box-shadow: 0 6px 14px rgba(255, 59, 92, 0.30);
    transform: translateY(-1px);
}
.ltArt__chip.is-on:hover {
    background: var(--vermillion-deep);
    border-color: var(--vermillion-deep);
    color: #fff;
}
.ltArt__chip.is-on .ltArt__chip-num { opacity: 0.85; color: rgba(255, 255, 255, 0.92); }

/* Letters with zero artists — muted, not clickable */
.ltArt__chip.is-empty {
    background: var(--paper-2);
    border-color: var(--line);
    color: var(--ink-3);
    opacity: 0.55;
    pointer-events: none;
    box-shadow: none;
}

/* =========================================================
   4. RESULT + SORT BAR
   ========================================================= */
.ltArt__resultbar { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.ltArt__resultbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 0.7rem; padding-bottom: 0.7rem; gap: 1rem; flex-wrap: wrap; }
.ltArt__resultcount { color: var(--ink-2); font-size: 0.88rem; }
.ltArt__resultcount strong { color: var(--ink); font-weight: 700; }
.ltArt__sort { display: flex; gap: 0.55rem; align-items: center; }
.ltArt__sort label { color: var(--ink-3); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ltArt__sort select { background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; padding: 0.4rem 0.85rem; font: inherit; font-weight: 600; cursor: pointer; }

/* =========================================================
   5. AD ROWS
   ========================================================= */
.ltArt__ad { padding-top: 1.25rem; padding-bottom: 0; }
.ltArt__ad--top { padding-top: 1.5rem; }
.ltArt__ad--bottom { padding-top: 1.5rem; padding-bottom: 3rem; }

/* =========================================================
   6. MAIN GRID — fresh tile design (no "artist-card")
   ========================================================= */
.ltArt__main { padding-top: 1.75rem; padding-bottom: 3rem; }
.ltArt__grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem 1rem;
}
.ltArt__grid-ad { grid-column: 1 / -1; }
.ltArt__tile { transition: transform 0.18s ease; }
.ltArt__tile:hover { transform: translateY(-3px); }
.ltArt__tile-link { display: block; text-decoration: none; color: var(--ink); }
.ltArt__tile-photo {
    position: relative;
    display: block;
    width: 100%; aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #3d1a2e);
    box-shadow: var(--shadow-s);
    margin-bottom: 0.65rem;
}
.ltArt__tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.ltArt__tile:hover .ltArt__tile-photo img { transform: scale(1.04); }

/* Initials monogram — single tasteful design, not 12 random gradients */
.ltArt__mono {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    color: #fff;
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: 0.04em;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.10), transparent 55%),
        linear-gradient(135deg, var(--vermillion) 0%, var(--vermillion-deep) 100%);
}

.ltArt__tile-body { display: block; padding: 0 0.15rem; }
.ltArt__tile-name { display: block; font-weight: 700; font-size: 0.92rem; line-height: 1.25; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltArt__tile:hover .ltArt__tile-name { color: var(--vermillion); }
.ltArt__tile-stat { display: block; color: var(--ink-3); font-size: 0.76rem; margin-top: 0.15rem; font-variant-numeric: tabular-nums; }

/* No-results (client filter) */
.ltArt__noresults { text-align: center; padding: 2rem 0; color: var(--ink-3); }

/* Empty server state */
.ltArt__empty { text-align: center; padding: 4rem 1rem; }
.ltArt__empty-mark { font-size: 3rem; color: var(--ink-3); line-height: 1; margin-bottom: 0.85rem; }
.ltArt__empty h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 0.45rem; }
.ltArt__empty p { color: var(--ink-2); margin: 0 0 1rem; }
.ltArt__empty-btn { display: inline-block; background: var(--vermillion); color: #fff; padding: 0.65rem 1.25rem; border-radius: 9999px; text-decoration: none; font-weight: 700; }
.ltArt__empty-btn:hover { background: var(--vermillion-deep); }

/* Pagination */
.ltArt__pages { display: flex; justify-content: center; margin-top: 2rem; }

/* =========================================================
   7. Responsive
   ========================================================= */
@media (max-width: 1024px) {
    .ltArt__rail { grid-template-columns: repeat(6, 1fr); }
    .ltArt__grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 820px) {
    .ltArt__head-row { grid-template-columns: 1fr; }
    .ltArt__find { min-width: 0; width: 100%; }
    .ltArt__rail { grid-template-columns: repeat(4, 1fr); }
    .ltArt__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
    .ltArt__head { padding: 1.5rem 0 1.5rem; }
    .ltArt__rail { grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
    .ltArt__grid { grid-template-columns: repeat(3, 1fr); }
    .ltArt__chip { min-width: 32px; padding: 0.2rem 0.4rem; }
    .ltArt__chip-key { font-size: 0.78rem; }
    .ltArt__chip-num { font-size: 0.58rem; }
}
@media (max-width: 380px) {
    .ltArt__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Editorial / SEO content (rendered below the grid)
   ============================================================ */
.ltArt__editorial {
    padding-top: 8px;
    padding-bottom: 56px;
    color: var(--ink-2, #334155);
}
.ltArt__editorial .ltArt__lead {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--ink, #0f172a);
    max-width: 80ch;
    margin: 0 0 8px;
}
.ltArt__editorial h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ink, #0f172a);
    margin: 34px 0 12px;
}
.ltArt__editorial p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink-2, #334155);
    margin: 0 0 14px;
    max-width: 80ch;
}
.ltArt__editorial a { color: var(--vermillion); font-weight: 600; text-decoration: none; }
.ltArt__editorial a:hover { text-decoration: underline; }

/* Information-gain table */
.ltArt__table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0 18px;
    font-size: 0.94rem;
    background: var(--paper, #fff);
    border: 1px solid var(--line, #e7e7ee);
    border-radius: var(--radius, 12px);
    overflow: hidden;
}
.ltArt__table th,
.ltArt__table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line, #ededf2);
    vertical-align: top;
    line-height: 1.55;
}
.ltArt__table thead th {
    background: rgba(0, 0, 0, 0.03);
    color: var(--ink, #0f172a);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ltArt__table tbody tr:last-child td { border-bottom: 0; }
.ltArt__table td:first-child { font-weight: 600; color: var(--ink, #0f172a); }

/* FAQ accordion (uses global details.tribe-faq) */
.ltArt__editorial-faqh {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink, #0f172a);
    margin: 38px 0 14px;
}
.ltArt__faq { max-width: 860px; }
.ltArt__faq .tribe-faq { border-color: var(--line, #e7e7ee); }
.ltArt__faq .qa-icon { font-size: 1.25rem; line-height: 1; font-weight: 400; }
