/* ==========================================================================
   home.css — Home page styles for LyricTribe
   Combines dark hero gradient, music animations, glassmorphic cards
   ========================================================================== */

/* ===== TOPBAR TICKER ===== */
.topbar-ticker {
    background: var(--vermillion);
    height: 28px;
    overflow: hidden;
    position: relative;
    z-index: 100;
}
.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}
.ticker-track span {
    display: inline-block;
    padding: 0 40px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #fff;
    line-height: 28px;
    letter-spacing: 0.02em;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== HOME HERO ===== */
.home-hero {
    background: linear-gradient(135deg, #0a0a0a, #0f0e17, #2b1c2e, #3d1a2e);
    position: relative;
    overflow: hidden;
    padding: 80px 20px 60px;
    text-align: center;
}
.home-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(230,57,70,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.home-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -15%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(74,24,50,0.3) 0%, transparent 70%);
    pointer-events: none;
}

/* Music Notes Animation */
.music-notes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.music-note {
    position: absolute;
    bottom: -30px;
    font-size: 1.5rem;
    opacity: 0;
    animation: float-up var(--duration, 10s) var(--delay, 0s) infinite;
    color: rgba(255,255,255,0.15);
}
@keyframes float-up {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Equalizer Animation */
.equalizer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    z-index: 1;
    opacity: 0.15;
}
.eq-bar {
    width: 3px;
    background: var(--vermillion);
    border-radius: 2px 2px 0 0;
    animation: eq-bounce var(--speed, 1s) ease-in-out infinite alternate;
}
@keyframes eq-bounce {
    0% { height: 4px; }
    100% { height: var(--max-h, 30px); }
}

/* Hero Content */
.home-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}
.home-hero h1 {
    font-family: var(--font-display);
    font-size: 3.2rem;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}
.home-hero h1 .accent { color: var(--vermillion); }
.home-hero .subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Stats */
.home-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.home-hero .hero-stat .number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #fff;
}
.home-hero .hero-stat .label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* Hero Search */
.home-hero .hero-search {
    display: flex;
    max-width: 560px;
    margin: 0 auto 40px;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
    border: none;
}
.home-hero .hero-search input {
    flex: 1;
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    background: #fff;
    color: #333;
}
.home-hero .hero-search button {
    background: var(--vermillion);
    color: #fff;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
    border: none;
    font-family: var(--font-body);
    cursor: pointer;
    white-space: nowrap;
}
.home-hero .hero-search button:hover { background: var(--vermillion-dark); }

/* About Block (inside hero) */
.about-block {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* ===== LANGUAGE BAR ===== */
.lang-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 2rem;
}
.lang-bar .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.lang-bar .lang-pill {
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}
.lang-bar .lang-pill:hover { border-color: var(--vermillion); color: var(--vermillion); }
.lang-bar .lang-pill.active {
    background: var(--vermillion);
    color: #fff;
    border-color: var(--vermillion);
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== TWO-COLUMN LAYOUT ===== */
.two-col-wrap {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 2rem 7rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}
.main-col { min-width: 0; }
.sidebar-col {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===== SECTION HEADERS ===== */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
}
.section-head .view-all,
.section-head a {
    font-size: 0.82rem;
    color: var(--vermillion);
    font-weight: 600;
}
.section-head a:hover { text-decoration: underline; }

/* ===== SECTION SPACING (applies to ALL homepage sections) ===== */
.container > section,
.container > .ad-zone-centered {
    margin-bottom: 3.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}
.container > section:last-child {
    border-bottom: none;
}

/* ===== TRENDING LIST (compact rows) ===== */
.trending-list { margin-bottom: 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-color); }
.trending-list .trending-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    overflow-x: visible;
    cursor: default;
    scroll-behavior: auto;
}
.trending-list .trending-row:last-child { border-bottom: none; }
.trending-list .trending-row:hover { background: rgba(255,255,255,0.04); }
@media (prefers-color-scheme: light) {
    .trending-list .trending-row:hover { background: rgba(0,0,0,0.03); }
}
[data-theme="light"] .trending-list .trending-row:hover { background: rgba(0,0,0,0.03); }
[data-theme="dark"] .trending-list .trending-row:hover { background: rgba(255,255,255,0.04); }

.trending-list .trending-rank {
    width: 24px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
    position: static;
    top: auto;
    left: auto;
    opacity: 1;
    line-height: normal;
}
.trending-list .trending-row.hot .trending-rank { color: var(--vermillion); }
.trending-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-secondary);
}
.trending-info { flex: 1; min-width: 0; }
.trending-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trending-artist {
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.trending-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.trending-views {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.trending-fire { font-size: 0.9rem; }

/* ===== SONG CARDS (Recently Added — Glassmorphic) ===== */
.song-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.1rem;
}
.song-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.song-card:hover {
    transform: translateY(-4px);
    border-color: rgba(230,57,70,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.song-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--border-color);
}
.song-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.song-card-body { padding: 10px 12px; }
.song-card-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-card-artist {
    font-size: 0.76rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== RECENTLY ADDED (compact rows — legacy) ===== */
.recently-added { margin-bottom: 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-color); }
.recently-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.recently-card {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.6rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.recently-card:hover { background: var(--border-color); }
.recently-art {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border-color);
}
.recently-info { min-width: 0; }
.recently-title {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recently-artist {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.recently-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ===== CHART SECTION ===== */
.chart-section { margin-bottom: 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-color); }
.chart-section .chart-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    background: transparent;
    border-radius: 0;
    padding: 0;
    width: auto;
}
.chart-section .chart-tab {
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    cursor: pointer;
    font-family: var(--font-body);
}
.chart-section .chart-tab:hover { color: var(--text-primary); }
.chart-section .chart-tab.active {
    color: var(--vermillion);
    border-bottom-color: var(--vermillion);
    background: transparent;
}
.chart-section .chart-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.chart-section .chart-row:last-child { border-bottom: none; }
.chart-section .chart-row:hover { background: var(--bg-secondary); }
.chart-section .chart-rank {
    width: 30px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
}
.chart-section .chart-rank.top3 {
    color: var(--vermillion);
    font-size: 1rem;
}
.chart-section .chart-art {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border-color);
}
.chart-section .chart-info { flex: 1; min-width: 0; }
.chart-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.chart-artist {
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.chart-section .chart-views {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}
.chart-section .chart-trend {
    font-size: 0.78rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}
.chart-trend.up { color: #22c55e; }
.chart-trend.down { color: var(--vermillion); }
.chart-trend.same { color: var(--text-muted); }

/* ===== ARTIST CARDS (circle grid) ===== */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.artist-card {
    transition: transform 0.2s;
}
.artist-card:hover { transform: translateY(-4px); }
.artist-card-avatar {
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    transition: border-color 0.2s;
    margin: 0 auto 8px;
}
.artist-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.artist-card:hover .artist-card-avatar { border-color: var(--vermillion); }
.artist-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.artist-card-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Artist Chips (legacy/compact) */
.artists-chips { margin-bottom: 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-color); }
.chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.artist-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: background 0.2s, border-color 0.2s;
}
.artist-chip:hover { background: var(--border-color); }
.artist-chip img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    background: var(--border-color);
}

/* ===== ALBUM CARDS (glassmorphic, 5-col grid) ===== */
.albums-section { margin-bottom: 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-color); }
.albums-section .albums-grid,
.albums-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.1rem;
}
.albums-section .album-card,
.album-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.albums-section .album-card:hover,
.album-card:hover {
    transform: translateY(-4px);
    border-color: rgba(230,57,70,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.album-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--border-color);
}
.album-card-img img { width: 100%; height: 100%; object-fit: cover; }
.album-card-body { padding: 10px 12px; }
.album-card-body .album-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}
.album-card-body .artist-name {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.album-card-body .meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Legacy album styles (old class names) */
.album-art {
    width: 100%;
    aspect-ratio: 1;
}
.album-info { padding: 14px; }
.album-info h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.album-info .artist { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.album-info .meta { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; }

/* ===== NEWS GRID ===== */
.news-section { margin-bottom: 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-color); }
.news-grid,
.news-section .news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.news-card,
.news-section .news-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-thumb,
.news-section .news-thumb {
    width: 140px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border-color);
}
.news-section .news-info,
.news-info { min-width: 0; display: flex; flex-direction: column; }
.news-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--vermillion);
    margin-bottom: 4px;
}
.news-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-excerpt {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.2rem;
}
.news-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* ===== LANGUAGE GRID ===== */
.lang-section { margin-bottom: 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-color); }
.lang-grid,
.lang-section .lang-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.lang-card,
.lang-section .lang-card {
    padding: 28px 16px;
    border-radius: var(--radius-md);
    color: #fff;
    text-align: center;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.lang-card:hover { transform: translateY(-2px); }
.lang-name {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 1;
}
.lang-count {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
}

/* ===== GENRE GRID ===== */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.genre-card {
    padding: 28px 16px;
    border-radius: var(--radius-md);
    color: #fff;
    text-align: center;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.genre-card:hover { transform: translateY(-2px); }
.genre-name {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 1;
}
.genre-count {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== NEWSLETTER FULLWIDTH ===== */
.newsletter-fullwidth {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
}
.newsletter-fullwidth h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.newsletter-fullwidth p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.newsletter-fullwidth form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    gap: 0.5rem;
}
.newsletter-fullwidth input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    background: var(--bg-primary);
    color: var(--text-primary);
}
.newsletter-fullwidth input:focus { border-color: var(--vermillion); }
.newsletter-fullwidth button {
    background: var(--vermillion);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s;
    white-space: nowrap;
}
.newsletter-fullwidth button:hover { background: var(--vermillion-dark); }

/* ===== LOAD MORE BUTTON ===== */
.load-more-btn {
    display: block;
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.load-more-btn:hover {
    background: var(--border-color);
    border-color: var(--vermillion);
    color: var(--vermillion);
}
.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== AD PLACEHOLDERS ===== */
.ad-placeholder {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}
.ad-inline { height: 100px; margin-bottom: 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-color); }
.ad-sidebar-lg { height: 600px; }
.ad-sidebar-sm { height: 250px; }
.ad-medium { width: 336px; height: 280px; max-width: 100%; margin: 0 auto; }
.ad-zone-centered {
    padding: 24px 0;
    text-align: center;
}

/* ===== SIDEBAR CARDS ===== */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}
.sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

/* Quick Links */
.quick-links a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-secondary);
    transition: color 0.2s;
}
.quick-links a:last-child { border-bottom: none; }
.quick-links a:hover { color: var(--vermillion); }
.quick-links .ql-icon { font-size: 1rem; }

/* Popular Artists (sidebar) */
.pop-artist-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-secondary);
}
.pop-artist-row:last-child { border-bottom: none; }
.pop-artist-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border-color);
}
.pop-artist-info { flex: 1; min-width: 0; }
.pop-artist-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-primary);
}
.pop-artist-songs {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.sidebar-view-all {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--vermillion);
}
.sidebar-view-all:hover { text-decoration: underline; }

/* Newsletter sidebar card */
.newsletter-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.newsletter-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.newsletter-input input {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
    background: var(--bg-primary);
    color: var(--text-primary);
}
.newsletter-input input:focus { border-color: var(--vermillion); }
.newsletter-input button {
    background: var(--vermillion);
    color: #fff;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}
.newsletter-input button:hover { background: var(--vermillion-dark); }
.newsletter-card .note {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .two-col-wrap {
        grid-template-columns: 1fr;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .sidebar-col { display: none; }
    .song-grid { grid-template-columns: repeat(3, 1fr); }
    .artist-grid { grid-template-columns: repeat(4, 1fr); }
    .albums-section .albums-grid,
    .albums-grid { grid-template-columns: repeat(3, 1fr); }
    .recently-grid { grid-template-columns: repeat(2, 1fr); }
    .lang-grid,
    .lang-section .lang-grid { grid-template-columns: repeat(2, 1fr); }
    .genre-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .topbar-ticker .ticker-track span { font-size: 0.7rem; }
    .home-hero h1 { font-size: 2.2rem; }
    .home-hero .subtitle { font-size: 0.95rem; }
    .home-hero .hero-stats { gap: 24px; }
    .home-hero .hero-stat .number { font-size: 1.3rem; }
    .song-grid { grid-template-columns: repeat(2, 1fr); }
    .artist-grid { grid-template-columns: repeat(3, 1fr); }
    .albums-section .albums-grid,
    .albums-grid { grid-template-columns: repeat(2, 1fr); }
    .recently-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid,
    .news-section .news-grid { grid-template-columns: 1fr; }
    .lang-grid,
    .lang-section .lang-grid { grid-template-columns: repeat(2, 1fr); }
    .genre-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .home-hero h1 { font-size: 1.8rem; }
    .home-hero .hero-search {
        flex-direction: column;
        border-radius: var(--radius-md);
    }
    .home-hero .hero-search input {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    .home-hero .hero-search button {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        padding: 12px;
    }
    .home-hero .hero-stats { gap: 16px; }
    .two-col-wrap { padding-left: 1rem; padding-right: 1rem; }
    .song-grid { grid-template-columns: repeat(2, 1fr); }
    .artist-grid { grid-template-columns: repeat(2, 1fr); }
    .albums-section .albums-grid,
    .albums-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .recently-grid { grid-template-columns: 1fr; }
    .lang-grid,
    .lang-section .lang-grid { grid-template-columns: repeat(2, 1fr); }
    .genre-grid { grid-template-columns: repeat(2, 1fr); }
    .news-thumb,
    .news-section .news-thumb { width: 100px; height: 80px; }
    .news-card { gap: 0.75rem; padding: 0.75rem; }
    .chart-section .chart-art { width: 48px; height: 48px; }
    .chart-section .chart-row { gap: 0.75rem; padding: 0.55rem 0.5rem; }
}

/* ===== LARGE DESKTOP (1440px+) ===== */
@media (min-width: 1440px) {
    .song-grid { grid-template-columns: repeat(5, 1fr); }
    .albums-section .albums-grid,
    .albums-grid { grid-template-columns: repeat(5, 1fr); }
    .artist-grid { grid-template-columns: repeat(6, 1fr); }
    .lang-grid,
    .lang-section .lang-grid { grid-template-columns: repeat(4, 1fr); }
    .genre-grid { grid-template-columns: repeat(4, 1fr); }
    .news-grid,
    .news-section .news-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .recently-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
