/* Accueil type Spotify — rangées horizontales */

.home-feed {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 24px;
}

.home-feed-loader,
.home-shelf-empty {
    color: var(--text-dim);
    padding: 12px 0;
}

.home-shelf-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.shelf-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.shelf-play-liked,
.shelf-shuffle-liked {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    cursor: pointer;
}

.shelf-play-liked:hover,
.shelf-shuffle-liked:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.library-home {
    gap: 28px;
}

.home-shelf-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.home-show-all {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}

.home-show-all:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.home-shelf-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.home-shelf-row::-webkit-scrollbar {
    height: 6px;
}

.home-shelf-row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.home-card {
    flex: 0 0 168px;
    width: 168px;
    scroll-snap-align: start;
}

.home-card.track-card {
    margin: 0;
}

.genre-card {
    flex: 0 0 200px;
    width: 200px;
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.genre-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25);
}

.genre-card-bg {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    position: relative;
}

.genre-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.genres-grid .genre-card {
    flex: none;
    width: auto;
}

.search-page-header .back-btn {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .home-card {
        flex-basis: 140px;
        width: 140px;
    }

    .genre-card {
        flex-basis: 160px;
        width: 160px;
    }

    .home-shelf-header h2 {
        font-size: 1.15rem;
    }
}
