body {
    background-color: #121212;
    color: #f1f1f1;
    font-family: Arial, sans-serif;
}

h1 {
    margin-bottom: 1.5rem;
}

/* Layout global */
.playlists-header {
    margin-bottom: 2rem;
}

.controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* Barre de recherche */
.search-input {
    padding: 0.6rem 1rem;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    min-width: 240px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #007bff;
}

/* Onglets de filtres */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: #f0f0f0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #e0e0e0;
}

.tab-btn.active {
    background: #007bff;
    color: #fff;
}

/* Grille de cartes */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

/* Carte indivduelle */
.playlist-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.playlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.poster-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #eee;
    overflow: hidden;
}

.poster-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #aaa;
}

.playlist-title {
    padding: 0.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: black;
}

.no-results {
    text-align: center;
    color: #777;
    margin-top: 3rem;
}