/* ============================================================
   LyricTribe — Single genre page (ltGenre__ namespace)
   --h is set inline per page based on the genre's accent hue
   ============================================================ */
.page-genre-detail { background: #fafafa; color: #0f172a; }

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

/* Hero — tinted by genre hue */
.ltGenre__hero {
    color: #fff;
    padding: 3.5rem 1.25rem 3rem;
    background:
        radial-gradient(ellipse 800px 420px at 50% 30%, hsla(var(--h, 354), 55%, 40%, 0.55), transparent 80%),
        linear-gradient(180deg, hsl(var(--h, 354), 35%, 12%) 0%, #15080d 100%);
    text-align: center;
}
.ltGenre__hero-inner { max-width: 720px; margin: 0 auto; }
.ltGenre__kicker { display: inline-block; padding: 0.3rem 0.85rem; border-radius: 9999px; background: hsla(var(--h, 354), 80%, 70%, 0.18); color: hsl(var(--h, 354), 80%, 85%); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; margin-bottom: 1rem; }
.ltGenre__title { margin: 0 0 0.75rem; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1; letter-spacing: -0.025em; text-shadow: 0 4px 24px rgba(0,0,0,0.35); }
.ltGenre__lede { margin: 0 auto 1.25rem; max-width: 560px; color: rgba(255,255,255,0.80); line-height: 1.55; }
.ltGenre__stats { display: inline-flex; gap: 1.5rem; color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.ltGenre__stats strong { color: #fff; font-weight: 800; }

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

.ltGenre__ad--top { padding-top: 1.25rem; }
.ltGenre__ad--bottom { padding-top: 1.5rem; padding-bottom: 3rem; }

/* Two-col main + sidebar */
.ltGenre__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    padding-top: 1.75rem;
}
.ltGenre__main { min-width: 0; }

/* Featured card */
.ltGenre__featured { margin-bottom: 2rem; }
.ltGenre__featured-tag { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.15em; color: hsl(var(--h, 354), 70%, 40%); margin-bottom: 0.6rem; }
.ltGenre__featured-card { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; text-decoration: none; color: var(--ink); transition: transform 0.2s, box-shadow 0.2s; }
.ltGenre__featured-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.10); }
.ltGenre__featured-cover { aspect-ratio: 1; border-radius: 10px; background: hsl(var(--h, 354), 40%, 25%) center/cover no-repeat; box-shadow: 0 12px 28px rgba(0,0,0,0.18); }
.ltGenre__featured-body { display: flex; flex-direction: column; justify-content: center; }
.ltGenre__featured-title { margin: 0 0 0.4rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; }
.ltGenre__featured-by { color: var(--ink-2); margin-bottom: 0.5rem; font-size: 0.95rem; }
.ltGenre__featured-by strong { color: var(--ink); }
.ltGenre__featured-meta { color: var(--ink-3); font-size: 0.85rem; margin-bottom: 0.85rem; }
.ltGenre__featured-cta { color: hsl(var(--h, 354), 70%, 40%); font-weight: 700; font-size: 0.88rem; }

/* Song list */
.ltGenre__songs { margin-bottom: 2rem; }
.ltGenre__section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; gap: 1rem; }
.ltGenre__section-head h2 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
.ltGenre__section-count { color: var(--ink-3); font-size: 0.85rem; font-weight: 600; }

.ltGenre__song-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ltGenre__song { border-top: 1px solid var(--line); }
.ltGenre__song:first-child { border-top: 0; }
.ltGenre__song-link { display: grid; grid-template-columns: 36px 56px 1fr auto 22px; gap: 0.9rem; align-items: center; padding: 0.7rem 1rem; text-decoration: none; color: var(--ink); transition: background 0.15s, padding 0.15s; }
.ltGenre__song-link:hover { background: hsla(var(--h, 354), 80%, 96%, 0.7); padding-left: 1.4rem; }
.ltGenre__song-num { font-weight: 800; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.ltGenre__song-cover { width: 56px; height: 56px; border-radius: 6px; background: hsl(var(--h, 354), 30%, 92%) center/cover no-repeat; }
.ltGenre__song-meta { min-width: 0; }
.ltGenre__song-title { font-weight: 700; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltGenre__song-link:hover .ltGenre__song-title { color: hsl(var(--h, 354), 70%, 40%); }
.ltGenre__song-artist { color: var(--ink-3); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.15rem; }
.ltGenre__song-views { color: var(--ink-3); font-size: 0.8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ltGenre__song-arrow { color: var(--ink-3); transition: transform 0.15s, color 0.15s; }
.ltGenre__song-link:hover .ltGenre__song-arrow { color: hsl(var(--h, 354), 70%, 40%); transform: translateX(3px); }
.ltGenre__song-ad { padding: 0.85rem 1rem; border-top: 1px solid var(--line); background: var(--paper-2); }

.ltGenre__pages { display: flex; justify-content: center; margin-top: 1.5rem; }

/* About + FAQ */
.ltGenre__about, .ltGenre__faq { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem 2rem; margin-bottom: 1.5rem; }
.ltGenre__about h2, .ltGenre__faq h2 { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.ltGenre__prose { color: var(--ink-2); line-height: 1.7; font-size: 0.97rem; }
.ltGenre__prose p { margin: 0 0 0.85em; }
.ltGenre__prose strong { color: var(--ink); }
.ltGenre__prose a { color: hsl(var(--h, 354), 70%, 40%); text-decoration: none; }
.ltGenre__faq-list details { border-top: 1px solid var(--line); padding: 1rem 0; }
.ltGenre__faq-list details:first-child { border-top: 0; padding-top: 0; }
.ltGenre__faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; color: var(--ink); }
.ltGenre__faq-list summary::-webkit-details-marker { display: none; }
.ltGenre__faq-list summary::after { content: '＋'; color: hsl(var(--h, 354), 70%, 40%); }
.ltGenre__faq-list details[open] summary::after { content: '−'; }
.ltGenre__faq-list details div { padding-top: 0.65rem; color: var(--ink-2); line-height: 1.6; font-size: 0.92rem; }

/* Sidebar */
.ltGenre__side { min-width: 0; }
.ltGenre__side-sticky { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.ltGenre__side-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.4rem; }
.ltGenre__side-card--ad { padding: 0.5rem; }
.ltGenre__side-card h3 { margin: 0 0 0.85rem; font-size: 0.95rem; font-weight: 800; color: var(--ink); padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }

.ltGenre__artist-list, .ltGenre__recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.ltGenre__artist-list a, .ltGenre__recent-list a { display: grid; grid-template-columns: 40px 1fr; gap: 0.7rem; align-items: center; text-decoration: none; color: var(--ink); padding: 0.3rem; border-radius: 8px; transition: background 0.15s; }
.ltGenre__artist-list a:hover, .ltGenre__recent-list a:hover { background: hsla(var(--h, 354), 80%, 96%, 0.7); }
.ltGenre__artist-photo { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: hsl(var(--h, 354), 40%, 30%); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.78rem; }
.ltGenre__artist-photo img { width: 100%; height: 100%; object-fit: cover; }
.ltGenre__artist-name, .ltGenre__recent-title { font-weight: 700; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltGenre__artist-sub, .ltGenre__recent-by { color: var(--ink-3); font-size: 0.76rem; }
.ltGenre__recent-cover { width: 40px; height: 40px; border-radius: 6px; background: hsl(var(--h, 354), 30%, 90%) center/cover no-repeat; }

@media (max-width: 1024px) {
    .ltGenre__layout { grid-template-columns: 1fr; }
    .ltGenre__side-sticky { position: static; }
}
@media (max-width: 640px) {
    .ltGenre__featured-card { grid-template-columns: 1fr; }
    .ltGenre__song-link { grid-template-columns: 30px 48px 1fr; gap: 0.7rem; padding: 0.65rem 0.85rem; }
    .ltGenre__song-views, .ltGenre__song-arrow { display: none; }
}
