/* ===== PAGE ===== */

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

h1 {
    margin-bottom: 1.5rem;
}

.years-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.years-filter a {
    padding: 6px 14px;
    border-radius: 20px;
    background: #222;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.years-filter a:hover {
    background: #444;
}

.years-filter a.active {
    background: #e50914;
    font-weight: bold;
}


/* ===== GRID ===== */

.grid-music {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 2rem;
}

/* ===== CARD ===== */

.card-music {
    background: #1e1e1e;
    border-radius: 14px;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.card-music:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

/* ===== COVER ===== */

.card-music img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    margin-botto
}

/* =========================
   ALBUMS RATINGS
   ========================= */

/* mauvais */

.rating-low {
    border: 2px solid #ff4d4d;
    background: linear-gradient(180deg, #2a0f0f, #140707);
}

.rating-low .rating {
    color: #ff4d4d;
    font-weight: bold;
}

.rating-low:hover {
    box-shadow: 0 0 12px rgba(255, 60, 60, 0.5);
}


/* excellents */

.rating-high {
    border: 2px solid #3fd17f;
    background: linear-gradient(180deg, #0f2a1c, #07140d);
}

.rating-high .rating {
    color: #3fd17f;
    font-weight: bold;
}

.rating-high:hover {
    box-shadow: 0 0 12px rgba(63, 209, 127, 0.5);
}

.rating {
    padding: 3px 8px;
    border-radius: 6px;
    background: #222;
    font-size: 0.9em;
}

.rating-high::after {
    content: " ⭐";
}

.rating-low::after {
    content: " 💀";
}

.albums-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 12px;
}

.ratings-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.ratings-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-label {
    font-weight: bold;
    color: #fff;
    margin-right: 10px;
}

.rating-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    background: #2b2b2b;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rating-checkbox:hover {
    background: #3a3a3a;
}

.rating-checkbox input {
    cursor: pointer;
}

.filter-button,
.reset-button {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

.filter-button {
    background: #4caf50;
    color: white;
}

.reset-button {
    background: #555;
    color: white;
}