/*
 * ArtisticPurity.com — Premium Dark Theme
 * Mobile-first responsive design
 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:root {
    --bg-primary: #f8f5d7;
    --bg-card: #ffffff;
    --bg-card-hover: #ede9c4;
    --bg-surface: #f2efd0;
    --text-primary: #1f1f1f;
    --text-secondary: #4a4a4a;
    --text-muted: #6a6a6a;
    --accent: #2f3a44;
    --accent-hover: #1f2a33;
    --accent-glow: #dbe3ea;
    --accent-bronze: #8a6f3d;
    --accent-bronze-hover: #725a30;
    --border: #e2dec2;
    --border-hover: #d4d0b5;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --max-width: 800px;
    --max-width-wide: 1200px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font); line-height: 1.6; color: var(--text-primary);
    background: #f8f5d7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}

a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-bronze); text-underline-offset: 3px; transition: all var(--transition); }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

.hidden { display: none !important; }

/* ===== HOMEPAGE ===== */
.home-container {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center;
    background: #f8f5d7;
    color: var(--text-primary);
}

/* ===== HERO SECTION ===== */
.hero {
    width: 100%; display: flex; align-items: center; justify-content: center;
    padding: 4rem 1rem 2rem; text-align: center;
}

.hero-glow { display: none; }

.hero-content {
    width: 100%; max-width: 680px; text-align: center;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: var(--radius-full);
    background: var(--accent-glow); border: 1px solid rgba(47,58,68,0.2);
    font-size: 0.78rem; font-weight: 600; color: var(--accent-hover);
    margin-bottom: 1.25rem; letter-spacing: 0.02em;
}

.site-title {
    font-size: clamp(2.5rem, 8vw, 4rem); font-weight: 900; letter-spacing: -0.04em;
    line-height: 1.1; margin-bottom: 0.4rem; color: var(--text-primary);
}

.title-accent {
    color: var(--accent);
}

.site-tagline {
    font-size: clamp(1rem, 2.5vw, 1.15rem); color: var(--text-secondary);
    margin-bottom: 2rem; font-weight: 400;
}

/* ===== SEARCH ===== */
.search-form { width: 100%; max-width: 600px; margin: 0 auto 1.25rem; }

.search-input-wrapper {
    display: flex; align-items: center; position: relative;
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: 25px; padding: 4px 4px 4px 0;
    transition: all var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
    display: flex; align-items: center; justify-content: center;
    padding: 0 6px 0 18px; color: var(--text-muted); flex-shrink: 0;
}

.search-input {
    flex: 1; font-size: 16px; padding: 13px 12px; height: 50px; border: none;
    background: transparent; color: var(--text-primary);
    font-family: var(--font); font-weight: 500; outline: none;
}
.search-input::placeholder { color: var(--text-muted); }

.search-button {
    font-size: 0.9rem; padding: 12px 24px; border: none; border-radius: 22px;
    background: var(--accent); color: #fff; cursor: pointer; font-weight: 700;
    font-family: var(--font); transition: all var(--transition); white-space: nowrap;
}
.search-button:hover { background: var(--accent-hover); transform: scale(1.03); }

/* Search suggestions */
.search-suggestions {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--bg-card); border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg); max-height: 380px; overflow-y: auto;
    z-index: 1000; box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.suggestion-item {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
    cursor: pointer; transition: background var(--transition);
    border-bottom: 1px solid var(--border);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover, .suggestion-item.active { background: var(--accent-glow); }

.suggestion-album-art {
    width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
}
.suggestion-album-art img { width: 100%; height: 100%; object-fit: cover; }
.suggestion-album-art-placeholder { font-size: 1.3rem; opacity: 0.3; }
.suggestion-info { flex: 1; min-width: 0; }
.suggestion-title { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-artist { font-size: 0.82rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-loading, .suggestion-empty { padding: 1rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* ===== POPULAR SEARCHES ===== */
.song-examples { margin-bottom: 0.5rem; }
.example-songs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.song-pill {
    padding: 7px 16px; background: transparent; border: 1px solid var(--border);
    border-radius: var(--radius-full); font-size: 0.8rem; cursor: pointer;
    color: var(--text-secondary); font-family: var(--font); font-weight: 500;
    transition: all var(--transition);
}
.song-pill:hover {
    color: var(--accent); background: var(--accent-glow); border-color: var(--accent);
    transform: translateY(-1px);
}

/* ===== LOADING STATE ===== */
.loading-state {
    text-align: center; padding: 2rem 1.5rem; min-height: 200px;
    display: flex; align-items: center; justify-content: center;
}
.loading-content { width: 100%; max-width: 440px; }
.loading-song-title {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    margin-bottom: 1.5rem; font-size: 1.1rem; font-weight: 700;
}
.loading-icon { font-size: 1.4rem; animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
#loading-song-name { color: var(--accent-hover); }

.progress-container { margin-bottom: 1.5rem; }
.progress-bar {
    width: 100%; height: 4px; background: rgba(0,0,0,0.06); border-radius: 10px;
    overflow: hidden; position: relative;
}
.progress-fill {
    height: 100%; background: var(--accent);
    border-radius: 10px; width: 0%; transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.progress-shimmer {
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer { to { left: 100%; } }
.progress-percentage { text-align: center; margin-top: 0.5rem; font-size: 0.82rem; font-weight: 700; color: var(--accent-hover); }

.music-fact-card {
    background: var(--bg-surface); border-radius: var(--radius-md); padding: 1rem;
    border: 1px solid var(--border);
}
.fact-content {
    font-size: 0.85rem; line-height: 1.5; color: var(--text-secondary); font-style: italic;
    min-height: 40px;
}

/* Error state */
.error-state {
    text-align: center; padding: 1.5rem; background: rgba(239,68,68,0.08);
    border-radius: var(--radius-md); border: 1px solid rgba(239,68,68,0.2);
}
#error-message { color: #dc2626; margin-bottom: 1rem; font-size: 0.95rem; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 1.5rem; }

.section-label { display: none; }

.section-title {
    font-size: 1.3rem; font-weight: 700; color: var(--text-primary);
    margin-bottom: 0.3rem; letter-spacing: -0.02em;
}

.section-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }

/* ===== RECENT SONGS ===== */
.recent-songs-section {
    max-width: var(--max-width-wide); margin: 0 auto; padding: 2rem 1rem 3rem; width: 100%;
}

/* Sort buttons */
.sort-controls { display: flex; justify-content: center; gap: 6px; }
.sort-btn {
    padding: 6px 16px; background: transparent; border: 1px solid var(--border);
    border-radius: var(--radius-full); font-size: 0.78rem; cursor: pointer;
    color: var(--text-muted); font-family: var(--font); font-weight: 600;
    transition: all var(--transition);
}
.sort-btn.active { background: var(--accent-bronze); color: #fff; border-color: transparent; }
.sort-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

/* Song grid */
.recent-songs-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 640px) { .recent-songs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .recent-songs-grid { grid-template-columns: repeat(4, 1fr); } }

.loading-recent {
    grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--text-muted);
    background: var(--bg-card); border-radius: var(--radius-lg); border: 1px dashed var(--border);
}

/* Song cards */
.song-card {
    background: var(--bg-card); border-radius: var(--radius-lg); text-decoration: none;
    color: var(--text-primary); border: 1px solid var(--border);
    display: flex; flex-direction: column; overflow: hidden;
    transition: all var(--transition);
}
.song-card:hover {
    border-color: var(--border-hover); transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.song-card-album-art {
    aspect-ratio: 1; background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.song-card-album-art img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
.song-card:hover .song-card-album-art img { transform: scale(1.04); }
.song-card-album-art-placeholder { font-size: 2.5rem; opacity: 0.15; }

.song-card-content {
    padding: 0.75rem; display: flex; flex-direction: column; gap: 2px; flex: 1;
}
.song-card-title {
    font-size: 0.85rem; font-weight: 700; margin: 0; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.song-card-artist {
    font-size: 0.75rem; color: var(--text-muted); margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.song-card-meta {
    display: flex; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 4px;
    font-size: 0.68rem; color: var(--text-muted);
}
.song-card-views {
    display: inline-flex; align-items: center; gap: 3px; font-weight: 600;
    background: rgba(138,111,61,0.08); padding: 2px 7px; border-radius: 6px; color: var(--accent-bronze);
}
.song-card-views-icon { font-size: 0.75rem; }
.song-card-date { opacity: 0.7; }

/* ===== FEATURED ARTICLES ===== */
.featured-articles-section {
    max-width: var(--max-width-wide); margin: 0 auto; padding: 1rem 1rem 2rem; width: 100%;
}

.featured-articles-grid {
    display: grid; grid-template-columns: 1fr; gap: 0.75rem;
}
@media (min-width: 640px) { .featured-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .featured-articles-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
    background: var(--bg-card); border-radius: var(--radius-md); text-decoration: none;
    color: var(--text-primary); border: 1px solid var(--border);
    border-left: 3px solid var(--accent-bronze); padding: 1.25rem;
    transition: all var(--transition); display: flex; flex-direction: column; gap: 0.4rem;
}
.article-card::before { display: none; }
.article-card:hover {
    border-color: var(--border-hover); border-left-color: var(--accent-hover);
    transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.article-card-tag {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--accent-hover); display: flex; align-items: center; gap: 0.3rem;
}
.article-card-title { font-size: 0.95rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-snippet { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: auto; }

/* ===== FOOTER ===== */
.home-footer {
    text-align: center; padding: 2rem 1rem; color: var(--text-muted);
    font-size: 0.8rem; width: 100%;
}
.home-footer p { margin: 0; }
.footer-inner { display: none; }

/* ===== SONG DETAIL PAGE ===== */
header nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem; background: rgba(248,245,215,0.9); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
}
.back-link {
    color: #7a7a7a; font-size: 0.82rem; padding: 6px 14px;
    border-radius: 20px; font-weight: 600; background: transparent;
    border: 1px solid #e2dec2; transition: all 0.2s;
    text-decoration: none !important;
}
.back-link:hover { color: #2f3a44; border-color: #2f3a44; }

.logo-link { display: none; }
.nav-logo { display: none; }
.nav-brand { font-size: 1.5rem; font-weight: 900; color: var(--text-primary); text-decoration: none !important; letter-spacing: -0.03em; }
.nav-brand span { color: #2f3a44; }

.nav-spacer { width: 70px; }

.share-btn {
    background: transparent; border: 1px solid #e2dec2; padding: 6px 14px;
    border-radius: 20px; font-size: 0.82rem; cursor: pointer;
    color: #7a7a7a; font-weight: 600; font-family: var(--font);
    transition: all 0.2s;
}
.share-btn:hover { color: #2f3a44; border-color: #2f3a44; }

/* Breadcrumb */
.breadcrumb { padding: 0.75rem 0; margin-bottom: 0.5rem; }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; font-size: 0.75rem; }
.breadcrumb-item a { color: var(--text-muted); padding: 3px 6px; border-radius: 4px; transition: all var(--transition); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--text-primary); background: var(--bg-card); }
.breadcrumb-item span { padding: 3px 6px; }
.breadcrumb-item.active span { color: var(--text-secondary); }
.breadcrumb-separator { color: var(--text-muted); opacity: 0.3; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 1.5rem 1rem; }
@media (min-width: 768px) { .container { padding: 2rem; } }

.song-detail {
    background: transparent; border: none; padding: 0; margin-bottom: 2rem;
}

/* Song hero — side by side */
.song-hero-row {
    display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2rem;
}
.song-hero-art {
    flex-shrink: 0; width: 160px; height: 160px;
    border-radius: var(--radius-md); overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
    .song-hero-art { width: 200px; height: 200px; }
}
.song-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.song-hero-info { flex: 1; min-width: 0; }
.song-hero-info .breadcrumb { padding: 0; margin-bottom: 0.5rem; }
.song-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; margin-bottom: 0.2em;
    line-height: 1.1; letter-spacing: -0.03em;
}
.artist-name {
    font-size: 1rem; color: var(--text-secondary); font-weight: 400; margin-bottom: 0.75rem;
}
.artist-link { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-bronze); }
.hero-spotify { margin-top: 0.5rem; }
.hero-spotify iframe { border-radius: 8px; }
@media (max-width: 480px) {
    .song-hero-row { flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
    .song-hero-art { width: 120px; height: 120px; }
    .song-hero-info .breadcrumb { justify-content: center; }
    .breadcrumb-list { justify-content: center; }
    .artist-name { margin-bottom: 0.5rem; }
}

/* Legacy compat */
.song-hero { display: none; }
.artist-link:hover { color: #c4b5fd; }

/* Spotify (legacy full-width) */
.spotify-section { margin: 1.5rem 0; display: none; }
.spotify-embed {
    border-radius: var(--radius-md); overflow: hidden;
    border: 1px solid var(--border); max-width: var(--max-width);
}
.spotify-embed iframe { display: block; border-radius: var(--radius-md); }

/* Section divider */
.section-divider {
    display: flex; align-items: center; gap: 1rem; margin: 2rem 0 1.25rem;
}
.section-divider::before, .section-divider::after {
    content: ''; flex: 1; height: 1px; background: #d4d0b5;
}
.section-divider-label {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent-bronze); white-space: nowrap;
}

/* Summary card */
.summary-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.summary-label {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent-bronze); margin-bottom: 0.75rem;
}
.tldr-text {
    font-size: 1rem; line-height: 1.75; margin: 0; color: var(--text-primary);
    padding: 0; background: none; border: none;
}
.tldr-text::before { display: none; }
.tldr-section { margin-bottom: 1.5rem; }

/* Analysis */
.analysis-section {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.analysis-label {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent-bronze); margin-bottom: 1rem;
    padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.chat-label {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent-bronze); margin-bottom: 0.75rem;
}
.full-analysis-section { margin-bottom: 1.5rem; }
.meaning-content { font-size: 1rem; line-height: 1.8; color: var(--text-secondary); }
.meaning-heading {
    font-size: 1.15rem; font-weight: 800; color: var(--text-primary); margin-top: 2rem;
    margin-bottom: 0.6rem; padding-left: 0; position: relative;
}
.meaning-heading::before { display: none; }
.meaning-heading:first-child { margin-top: 0; }
.meaning-paragraph { margin-bottom: 1.25em; line-height: 1.8; }
.meaning-paragraph:last-child { margin-bottom: 0; }

/* Lyrics in analysis — visually distinct */
.meaning-content em, .meaning-paragraph em {
    color: #666; font-style: italic;
    padding-left: 1.5rem; display: block;
    border-left: 2px solid var(--border);
    margin: 0.75rem 0; line-height: 1.7;
    background: none;
}

.meaning-content blockquote, .meaning-paragraph blockquote {
    margin: 1.25rem 0; padding: 1rem 1.25rem;
    background: transparent;
    border-left: 2px solid var(--accent-bronze);
    border-radius: 0;
    font-style: italic; color: #666;
}

/* Lyrics collapsible */
.lyrics-section { margin: 1.5rem 0; }
.lyrics-details {
    background: var(--bg-card); border-radius: var(--radius-md);
    border: 1px solid var(--border); overflow: hidden;
}
.lyrics-details[open] { border-color: var(--border-hover); }
.lyrics-summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 1rem; cursor: pointer; list-style: none;
    transition: background var(--transition);
}
.lyrics-summary::-webkit-details-marker { display: none; }
.lyrics-summary:hover { background: rgba(0,0,0,0.02); }
.lyrics-heading { font-size: 0.9rem; font-weight: 700; margin: 0; }
.lyrics-toggle { color: var(--accent-hover); font-size: 0.8rem; transition: transform 0.3s; }
.lyrics-details[open] .lyrics-toggle { transform: rotate(180deg); }
.lyrics-content {
    padding: 1rem; padding-top: 0; font-size: 0.9rem;
    line-height: 1.8; color: var(--text-secondary); border-top: 1px solid var(--border);
    max-height: 500px; overflow-y: auto;
}
.lyrics-content::-webkit-scrollbar { width: 4px; }
.lyrics-content::-webkit-scrollbar-track { background: transparent; }
.lyrics-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 10px; }

/* ===== ARTICLES ON SONG PAGE ===== */
.song-articles-section { margin-top: 0.5rem; }
.song-articles-grid { display: flex; flex-direction: column; gap: 0.6rem; }

.song-article-card {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); text-decoration: none; color: var(--text-primary);
    transition: all var(--transition);
}
.song-article-card:hover {
    border-color: var(--accent); background: var(--bg-card-hover); transform: translateX(3px);
}
.song-article-icon { font-size: 1.1rem; flex-shrink: 0; }
.song-article-info { flex: 1; min-width: 0; }
.song-article-title { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.song-article-snippet { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.song-article-arrow { color: var(--text-muted); font-size: 0.85rem; transition: all var(--transition); }
.song-article-card:hover .song-article-arrow { color: var(--accent-hover); transform: translateX(3px); }

/* Chat */
.chat-section { margin-top: 0.5rem; }
.chat-intro {
    background: var(--bg-surface); border-radius: var(--radius-md); padding: 1rem;
    margin-bottom: 1rem; border: 1px solid var(--border);
}
.chat-intro-text { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

#chat-messages { margin-bottom: 0.75rem; max-height: 500px; overflow-y: auto; }
.chat-message {
    margin-bottom: 0.6rem; padding: 0.85rem 1rem; border-radius: var(--radius-md);
}
.chat-message.user {
    background: var(--accent); color: #fff; margin-left: 2rem;
    border-radius: var(--radius-md) var(--radius-md) 4px var(--radius-md);
}
.chat-message.ai {
    background: var(--bg-card); border: 1px solid var(--border); margin-right: 2rem;
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
}
.chat-message-label { font-size: 0.65rem; font-weight: 700; margin-bottom: 0.25rem; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.06em; }
.chat-message-content { line-height: 1.6; font-size: 0.92rem; }

.typing-indicator .chat-message-content::after {
    content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-hover); animation: typingDot 1.4s infinite; margin-left: 4px;
}
@keyframes typingDot { 0%,60%,100% { opacity: 0.3; } 30% { opacity: 1; } }

.chat-form {
    display: flex; gap: 0.5rem;
}
#chat-input {
    flex: 1; font-size: 16px; padding: 10px 16px; border: 1.5px solid var(--border);
    border-radius: var(--radius-full); background: var(--bg-card); color: var(--text-primary);
    font-family: var(--font); outline: none; transition: all var(--transition);
}
#chat-input::placeholder { color: var(--text-muted); }
#chat-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.chat-form button[type="submit"] {
    font-size: 1rem; padding: 10px 18px; border: none; border-radius: var(--radius-full);
    background: var(--accent); color: #fff; cursor: pointer;
    transition: all var(--transition); font-weight: 700;
}
.chat-form button[type="submit"]:hover { background: var(--accent-hover); }

/* Buttons */
.btn-secondary {
    padding: 8px 18px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-full); font-size: 0.88rem; cursor: pointer;
    color: var(--text-primary); font-family: var(--font); font-weight: 600; transition: all var(--transition);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-hover); }

/* More by artist */
.more-by-section { margin-top: 0.5rem; }
.more-by-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (max-width: 600px) { .more-by-grid { grid-template-columns: repeat(2, 1fr); } }
.more-by-card { display: flex; align-items: center; gap: 0.65rem; padding: 0.7rem; background: #fff; border: 1px solid #e2dec2; border-radius: 10px; text-decoration: none; color: #1f1f1f; transition: all 0.2s; }
.more-by-card:hover { border-color: #2f3a44; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.more-by-img { width: 44px; height: 44px; min-width: 44px; max-width: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.more-by-img-placeholder { width: 44px; height: 44px; border-radius: 8px; background: #e2dec2; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.more-by-info { flex: 1; min-width: 0; }
.more-by-title { font-size: 0.82rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more-by-artist-name { font-size: 0.7rem; color: #7a7a7a; margin-top: 2px; }
.more-by-all { text-align: center; margin-top: 0.75rem; }
.more-by-all a { font-size: 0.85rem; color: #8a6f3d; font-weight: 600; text-decoration: none; }
.more-by-all a:hover { color: #2f3a44; }

/* Legacy more-by (keep for static pages) */
.more-by-artist {
    max-width: var(--max-width); margin: 1.5rem auto; padding: 1.25rem;
    background: var(--bg-card); border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.more-by-artist h3 { font-size: 0.95rem; margin: 0 0 0.6rem; color: var(--text-secondary); font-weight: 600; }
.more-by-artist h3 a { color: var(--accent-hover); }
.more-by-links { margin: 0; line-height: 2; color: var(--text-muted); }
.more-by-links a {
    color: var(--accent); white-space: nowrap; padding: 4px 12px;
    background: var(--accent-glow); border-radius: var(--radius-full);
    font-size: 0.85rem; font-weight: 500; transition: all var(--transition);
    display: inline-block; margin: 2px; text-decoration: none;
}
.more-by-links a:hover { background: rgba(47,58,68,0.2); color: var(--accent-hover); }

/* Related songs */
.related-songs-section { margin: 1.5rem 0; }
.related-songs-heading { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.related-songs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .related-songs-grid { grid-template-columns: repeat(3, 1fr); } }

.related-song-card {
    display: flex; flex-direction: column; text-decoration: none; color: var(--text-primary);
    background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border);
    overflow: hidden; transition: all var(--transition);
}
.related-song-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.related-song-image { aspect-ratio: 1; overflow: hidden; background: var(--bg-surface); }
.related-song-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.related-song-card:hover .related-song-img { transform: scale(1.04); }
.related-song-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; opacity: 0.15; }
.related-song-info { padding: 0.6rem; }
.related-song-title { font-size: 0.8rem; font-weight: 600; display: block; line-height: 1.3; }
.related-song-artist { font-size: 0.7rem; color: var(--text-muted); display: block; margin-top: 2px; }

/* Scroll to top */
.scroll-to-top {
    position: fixed; bottom: 24px; right: 24px; width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent); color: #fff; border: none; cursor: pointer;
    opacity: 0; visibility: hidden; transition: all var(--transition); z-index: 999;
    display: flex; align-items: center; justify-content: center;
}
.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: var(--accent-hover); transform: translateY(-2px); }
.scroll-to-top { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.scroll-to-top svg { width: 18px; height: 18px; }

/* ===== ARTICLE PAGE ===== */
.article-hero { text-align: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.article-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; line-height: 1.25;
    margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.article-meta { color: var(--text-muted); font-size: 0.85rem; }
.article-meta strong { color: var(--text-secondary); }

.article-content {
    max-width: 700px; margin: 0 auto; line-height: 1.8; color: var(--text-secondary);
    font-size: 1rem;
}
.article-content h2 {
    font-size: 1.3rem; font-weight: 800; color: var(--text-primary);
    margin: 2.5rem 0 0.6rem; letter-spacing: -0.02em;
}
.article-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin: 1.75rem 0 0.5rem; }
.article-content p { margin-bottom: 1.1rem; }
.article-content ul, .article-content ol { margin-bottom: 1.1rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
    margin: 1.25rem 0; padding: 1rem 1.25rem;
    background: transparent;
    border-left: 3px solid var(--accent-bronze);
    font-style: italic; color: #bbbbcc;
}

.song-backlink {
    display: inline-flex; align-items: center; gap: 0.5rem; margin: 1.5rem 0; padding: 0.75rem 1.25rem;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-full);
    color: var(--text-primary); font-weight: 600; font-size: 0.88rem; transition: all var(--transition);
    text-decoration: none;
}
.song-backlink:hover { border-color: var(--accent); color: var(--accent-hover); }

.related-articles-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.related-articles-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.related-article-link {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
    color: var(--text-primary); font-size: 0.88rem; font-weight: 500;
    transition: all var(--transition); margin-bottom: 0.4rem; text-decoration: none;
}
.related-article-link:hover { border-color: var(--accent); color: var(--accent-hover); transform: translateX(3px); }

.related-articles { margin-top: 1.5rem; padding: 1rem 0; }
.related-articles h3 { margin-bottom: 0.8rem; }

/* ===== ARTIST PAGE ===== */
.artist-detail {
    background: transparent; padding: 0; border: none; margin-bottom: 2rem;
}
.artist-page-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 900; text-align: center;
    margin-bottom: 0.25rem; letter-spacing: -0.03em; color: var(--text-primary);
}
.artist-page-subtitle {
    font-size: 0.95rem; color: var(--text-muted); text-align: center;
    margin-bottom: 1.5rem;
}

.songs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .songs-grid { grid-template-columns: repeat(3, 1fr); } }

.artist-song-card {
    background: var(--bg-card); border-radius: var(--radius-md); text-decoration: none;
    color: var(--text-primary); border: 1px solid var(--border); display: flex;
    flex-direction: column; overflow: hidden; transition: all var(--transition);
}
.artist-song-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.artist-song-card-image-wrapper {
    width: 100%; padding-top: 100%; position: relative; overflow: hidden; background: var(--bg-surface);
}
.artist-song-card-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s;
}
.artist-song-card:hover .artist-song-card-image { transform: scale(1.04); }
.artist-song-card-placeholder {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: 0.1;
}
.artist-song-card-info { padding: 0.75rem; display: flex; flex-direction: column; gap: 4px; }
.artist-song-card-title {
    font-size: 0.88rem; font-weight: 700; margin: 0; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.artist-song-card-views { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; margin: 0; }
.artist-song-card-views::before { content: '👁'; font-size: 0.8rem; margin-right: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .hero { padding: 2.5rem 0.75rem 1.5rem; }
    .search-button { padding: 10px 16px; font-size: 0.85rem; }
    header nav { padding: 0.6rem 0.5rem; gap: 4px; }
    .nav-brand { font-size: 1.15rem; }
    .back-link { font-size: 0.72rem; padding: 5px 10px; }
    .share-btn { font-size: 0.72rem; padding: 5px 10px; }
    .nav-auth-btn { font-size: 0.75rem; padding: 6px 12px; gap: 5px; }
    .nav-auth-btn svg { width: 13px; height: 13px; }
    .nav-auth-btn.logout { font-size: 0.7rem; padding: 5px 8px; }
    .song-title { font-size: 1.6rem; }
    .song-hero-art { width: 120px; height: 120px; }
    .song-layout { padding: 1rem 0.75rem; }
    .song-hero-row { margin-bottom: 1.25rem; }
    .summary-card { padding: 1rem 1.15rem; margin-bottom: 1.25rem; }
    .analysis-section { padding: 1rem 1.15rem; margin-bottom: 1.25rem; }
    .hero-spotify iframe { height: 80px; }
    .meaning-content { font-size: 0.92rem; }
    .tldr-text { font-size: 0.92rem; }
}

@media (min-width: 768px) {
    .hero { padding: 5rem 2rem 2.5rem; }
    .search-input { padding: 14px; font-size: 17px; }
    .search-button { padding: 12px 28px; }
}

/* ===== GLOBAL ===== */
::selection { background: var(--accent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@media print {
    .scroll-to-top, .spotify-section, .chat-section, header nav { display: none; }
    body { background: #fff; color: #222; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

.divider { border: none; height: 1px; background: var(--border); margin: 1.5rem 0; }

/* Article page elements */
.lyric-quote { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--bg-surface); border-left: 3px solid var(--accent-bronze); border-radius: 0 8px 8px 0; font-style: italic; color: var(--text-secondary); }
.lyric-quote p { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.callout { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.callout p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }

/* Compat classes */
.about-section { text-align: center; padding: 1rem 0; }
.about-text { color: var(--text-muted); font-size: 0.85rem; font-style: italic; }
.glass-card { max-width: 680px; width: 100%; }
.home-header { text-align: center; margin-bottom: 1.5rem; }
.examples-title { display: none; }
.recent-songs-header { text-align: center; margin-bottom: 1.5rem; }
.recent-songs-title { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.3rem; }
.recent-songs-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.featured-articles-header { text-align: center; margin-bottom: 1.5rem; }
.featured-articles-title { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.3rem; }
.featured-articles-subtitle { font-size: 0.85rem; color: var(--text-muted); }

/* ===== HOMEPAGE WARM BEIGE THEME ===== */
.home-container {
    background: #f8f5d7;
}

.home-container .hero {
    padding-top: 5rem;
    padding-bottom: 3rem;
}

.home-container .glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem;
}

.home-container .hero-badge {
    background: rgba(47, 58, 68, 0.1);
    border-color: rgba(47, 58, 68, 0.25);
    color: var(--accent);
}

.home-container .site-title {
    color: #2d2d2d;
    font-family: Georgia, 'Times New Roman', serif, var(--font);
}

.home-container .title-accent {
    color: var(--accent);
}

.home-container .site-tagline {
    color: #555;
}

.home-container .search-input-wrapper {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

.home-container .search-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 58, 68, 0.12);
}

.home-container .search-icon {
    color: #999;
}

.home-container .search-input {
    color: #2d2d2d;
}

.home-container .search-input::placeholder {
    color: #aaa;
}

.home-container .search-button {
    background: var(--accent);
}

.home-container .search-button:hover {
    background: var(--accent-hover);
}

.home-container .search-suggestions {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.home-container .suggestion-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.home-container .suggestion-item:hover,
.home-container .suggestion-item.active {
    background: rgba(47, 58, 68, 0.06);
}

.home-container .suggestion-title {
    color: #2d2d2d;
}

.home-container .suggestion-artist {
    color: #777;
}

.home-container .suggestion-album-art {
    background: #f0ebe5;
}

.home-container .song-pill {
    color: #555;
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.5);
}

.home-container .song-pill:hover {
    color: var(--accent);
    background: rgba(47, 58, 68, 0.08);
    border-color: var(--accent);
}

/* Loading state warm */
.home-container .loading-state { color: #2d2d2d; }
.home-container #loading-song-name { color: var(--accent); }
.home-container .progress-bar { background: rgba(0, 0, 0, 0.06); }
.home-container .progress-fill { background: var(--accent); }
.home-container .progress-percentage { color: var(--accent); }
.home-container .music-fact-card {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.06);
}
.home-container .fact-content { color: #666; }

/* Error state warm */
.home-container .error-state {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
}
.home-container #error-message { color: #dc2626; }

/* Section headers warm */
.home-container .section-title {
    color: #2d2d2d;
}

.home-container .section-subtitle {
    color: #888;
}

/* Sort buttons warm */
.home-container .sort-btn {
    color: #888;
    border-color: rgba(0, 0, 0, 0.1);
}

.home-container .sort-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.home-container .sort-btn:hover:not(.active) {
    border-color: var(--accent);
    color: #2d2d2d;
}

/* Song cards warm */
.home-container .song-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.home-container .song-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.home-container .song-card-album-art {
    background: #f0ebe5;
}

.home-container .song-card-title {
    color: #2d2d2d;
}

.home-container .song-card-artist {
    color: #888;
}

.home-container .song-card-meta {
    color: #999;
}

.home-container .song-card-views {
    background: rgba(47, 58, 68, 0.08);
    color: var(--accent);
}

.home-container .song-card-date {
    color: #aaa;
}

.home-container .loading-recent {
    background: rgba(255, 255, 255, 0.5);
    color: #888;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Article cards warm */
.home-container .article-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
    border-left-color: var(--accent);
}

.home-container .article-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    border-left-color: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.home-container .article-card-tag {
    color: var(--accent);
}

.home-container .article-card-title {
    color: #2d2d2d;
}

.home-container .article-card-snippet {
    color: #666;
}

.home-container .article-card-meta {
    color: #999;
}

/* Footer warm */
.home-footer {
    background: transparent;
    color: #999;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Nav Search === */
.nav-search-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
    background: transparent; cursor: pointer; color: var(--text-muted);
    transition: all 0.2s; flex-shrink: 0;
}
.nav-search-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-search-btn svg { width: 16px; height: 16px; }

/* Search overlay */
.nav-search-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 200; backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.nav-search-overlay.active { display: flex; align-items: flex-start; justify-content: center; padding-top: 60px; }

.nav-search-container {
    width: 90%; max-width: 560px; position: relative;
    animation: searchSlideDown 0.2s ease-out;
}
@keyframes searchSlideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

.nav-search-input-wrap {
    display: flex; align-items: center; background: #fff; border-radius: 16px;
    border: 2px solid var(--accent); padding: 4px 4px 4px 0;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.nav-search-icon {
    display: flex; align-items: center; justify-content: center;
    padding: 0 6px 0 16px; color: var(--text-muted); flex-shrink: 0;
}
.nav-search-icon svg { width: 18px; height: 18px; }
.nav-search-input {
    flex: 1; font-size: 16px; padding: 14px 12px; border: none; background: transparent;
    color: var(--text-primary); font-family: var(--font); font-weight: 500; outline: none;
}
.nav-search-input::placeholder { color: #aaa; }
.nav-search-go {
    padding: 12px 24px; border: none; border-radius: 12px; background: var(--accent);
    color: #fff; font-size: 0.9rem; font-weight: 700; cursor: pointer;
    font-family: var(--font); transition: all 0.2s; white-space: nowrap;
}
.nav-search-go:hover { background: var(--accent-hover); }
.nav-search-close {
    position: absolute; top: -40px; right: 0; background: none; border: none;
    color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px 8px; opacity: 0.8;
}
.nav-search-close:hover { opacity: 1; }

/* Nav search suggestions */
.nav-search-suggestions {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    max-height: 350px; overflow-y: auto; box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    z-index: 201;
}
.nav-search-suggestions .suggestion-item {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem;
    cursor: pointer; transition: background 0.15s; border-bottom: 1px solid rgba(0,0,0,0.04);
    text-decoration: none; color: var(--text-primary);
}
.nav-search-suggestions .suggestion-item:last-child { border-bottom: none; }
.nav-search-suggestions .suggestion-item:hover { background: var(--accent-glow); }
.nav-search-suggestions .suggestion-album-art { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg-surface); }
.nav-search-suggestions .suggestion-album-art img { width: 100%; height: 100%; object-fit: cover; }
.nav-search-suggestions .suggestion-title { font-size: 0.88rem; font-weight: 600; }
.nav-search-suggestions .suggestion-artist { font-size: 0.78rem; color: var(--text-muted); }
.nav-search-suggestions .suggestion-loading { padding: 1rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* === Auth Nav === */
.nav-right { display: flex; align-items: center; gap: 6px; }
@media (max-width: 480px) { .nav-right { gap: 4px; } }
.nav-user { display: flex; align-items: center; gap: 6px; }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.nav-username { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-auth-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #e2dec2; padding: 8px 20px; border-radius: 24px; font-size: 0.9rem; cursor: pointer; font-weight: 600; color: #2f3a44; text-decoration: none !important; transition: all 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.nav-auth-btn:hover { border-color: #2f3a44; box-shadow: 0 3px 8px rgba(0,0,0,0.12); transform: translateY(-1px); }
.nav-auth-btn svg { flex-shrink: 0; }
.nav-auth-btn.logout { background: transparent; border-color: transparent; box-shadow: none; font-size: 0.78rem; color: #7a7a7a; padding: 6px 12px; }
.nav-auth-btn.logout:hover { color: #2f3a44; transform: none; }
@media (max-width: 600px) { .nav-username { display: none; } }

/* === Comments Section === */
.comments-section { margin-top: 2.5rem; }
.comments-card { background: #fff; border: 1px solid #e2dec2; border-radius: 16px; padding: 1.5rem 1.75rem; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
@media (max-width: 480px) { .comments-card { padding: 1rem 1rem; border-radius: 12px; } }
.comments-title { font-size: 1.1rem; font-weight: 700; color: #2f3a44; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 8px; }
.comments-title::before { content: '💬'; font-size: 1rem; }
.comments-count { font-size: 0.8rem; font-weight: 500; color: #7a7a7a; }
.comment-form { margin-bottom: 1.5rem; background: #faf8ee; border: 1px solid #e2dec2; border-radius: 12px; padding: 1rem; }
.comment-form textarea { width: 100%; min-height: 80px; padding: 12px 14px; border: 1px solid #e2dec2; border-radius: 10px; font-size: 0.9rem; font-family: inherit; background: #fff; resize: vertical; box-sizing: border-box; line-height: 1.5; }
.comment-form textarea:focus { outline: none; border-color: #8a6f3d; box-shadow: 0 0 0 3px rgba(138,111,61,0.1); }
.comment-form textarea::placeholder { color: #bbb; }
.comment-form-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.comment-submit { padding: 10px 24px; border: none; border-radius: 10px; background: #2f3a44; color: #fff; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.comment-submit:hover { background: #1f2a33; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.comment-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.comment-login-prompt { text-align: center; padding: 2rem 1.5rem; color: #7a7a7a; font-size: 0.95rem; background: #faf8ee; border: 1.5px dashed #d4d0b8; border-radius: 12px; line-height: 1.6; }
.comment-login-prompt a { display: inline-flex; align-items: center; gap: 6px; color: #2f3a44; font-weight: 700; text-decoration: none; background: #fff; border: 1.5px solid #e2dec2; padding: 8px 18px; border-radius: 20px; margin-right: 6px; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.comment-login-prompt a:hover { border-color: #2f3a44; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0edd8; }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #e2dec2; }
.comment-avatar-placeholder { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #e2dec2, #d4d0b8); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { font-size: 0.78rem; color: #999; margin-bottom: 5px; }
.comment-meta strong { color: #2f3a44; font-weight: 700; }
.comment-text { font-size: 0.9rem; line-height: 1.55; color: #333; word-wrap: break-word; }
.comments-empty { text-align: center; padding: 2.5rem 1rem; color: #c0b998; font-size: 0.92rem; font-style: italic; }
.comments-empty::before { content: '🎵'; display: block; font-size: 1.8rem; margin-bottom: 0.5rem; font-style: normal; }
