/* ============================================================
   LyricTribe — Genres index (fresh build, ltGenres__ namespace)
   ============================================================ */
.page-genres-browse { background: #fafafa; color: #0f172a; }

.ltGenres {
    --vermillion: #FF3B5C;
    --vermillion-deep: #d62b48;
    --ink: #0f172a;
    --ink-2: #475569;
    --ink-3: #8a96a3;
    --line: #e6e8ec;
    --line-strong: #cfd2d8;
    --paper: #fff;
    --paper-2: #f4f5f7;
    --max: 1240px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.ltGenres__wrap { max-width: var(--max); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

/* Dark hero */
.ltGenres__hero {
    position: relative; isolation: isolate;
    text-align: center; color: #fff;
    padding: 4rem 1.25rem 3.5rem;
    background:
        radial-gradient(ellipse 800px 460px at 50% 30%, rgba(140, 50, 80, 0.55), 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%);
}
.ltGenres__hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.ltGenres__hero-title { margin: 0 0 0.85rem; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1; letter-spacing: -0.025em; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,0.35); }
.ltGenres__hero-sub { margin: 0; color: rgba(255,255,255,0.80); font-size: 1rem; line-height: 1.55; }

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

/* Ads */
.ltGenres__ad--top { padding-top: 1.5rem; }
.ltGenres__ad--bottom { padding-top: 1.5rem; padding-bottom: 3rem; }

/* Genre tile grid */
.ltGenres__main { padding: 2rem 0 1rem; }
.ltGenres__grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.ltGenres__grid-ad { grid-column: 1 / -1; }

.ltGenres__tile {
    position: relative;
    background: hsl(var(--h, 220), 72%, 96%);
    border: 1px solid hsl(var(--h, 220), 35%, 86%);
    border-radius: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
    isolation: isolate;
}
.ltGenres__tile:hover {
    transform: translateY(-3px);
    border-color: hsl(var(--h, 220), 60%, 70%);
    box-shadow: 0 10px 24px hsla(var(--h, 220), 60%, 70%, 0.35);
}
.ltGenres__tile-link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem 1.35rem;
    text-decoration: none;
    color: hsl(var(--h, 220), 55%, 22%);
}
.ltGenres__tile-glow {
    position: absolute; inset: -40% -40% auto auto;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: hsl(var(--h, 220), 80%, 80%);
    opacity: 0.5;
    filter: blur(40px);
    z-index: -1;
}
.ltGenres__tile-body { display: block; }
.ltGenres__tile-name { display: block; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.15; color: hsl(var(--h, 220), 60%, 20%); }
.ltGenres__tile-count { display: block; margin-top: 0.3rem; font-size: 0.82rem; color: hsl(var(--h, 220), 30%, 35%); font-weight: 600; }
.ltGenres__tile-arrow { font-size: 1.2rem; color: hsl(var(--h, 220), 55%, 30%); transition: transform 0.18s ease; }
.ltGenres__tile:hover .ltGenres__tile-arrow { transform: translateX(4px); }

.ltGenres__empty { text-align: center; padding: 4rem 1rem; color: var(--ink-3); }

@media (max-width: 1024px) { .ltGenres__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .ltGenres__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .ltGenres__grid { grid-template-columns: 1fr; } }

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

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

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