body {
    overflow-x: hidden;
    background: #121215;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 44px 34px;
    margin: 44px 40px 0 40px;
    justify-items: center;
    margin-bottom: 4%;
}
.serie-card {
    background: #18181b;
    border-radius: 28px;
    box-shadow: 0 4px 22px #000b;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    max-width: 310px;
    width: 100%;
    padding: 0;
    transition: box-shadow 0.16s, transform 0.13s, background 0.12s;
    cursor: pointer;
}

.serie-card:hover {
    background: #232334;
    transform: translateY(-10px) scale(1.04);
    z-index: 2;
}

.serie-titre {
    font-weight: bold;
    font-size: 1.12rem;
    padding: 17px 7px 0 7px;
    text-align: center;
    color: #fff;
    min-height: 30px;
    letter-spacing: 0.2px;
    line-height: 1.18;
}

.serie-affiche {
    width: 93%;
    height: 420px;
    margin: 16px auto 0 auto;
    object-fit: fill;
    border-radius: 18px;
    background: #19191b;
    display: block;
    box-shadow: 0 2px 14px #0005;
}

.serie-id {
    font-size: 1.03rem;
    color: #c6c7dd;
    padding-top: 3px;
}

.serie-info-zone {
    background: rgba(0,0,0,0.19);
    border-radius: 0 0 24px 24px;
    padding: 12px 0 9px 0;
    margin-top: 7px;
    box-shadow: 0 1px 6px #0008 inset;
    text-align: center;
}

.serie-stats-global {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1em;
    margin: 0 0 3px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px #0008;
}
.serie-progress {
    color: #4ae44a;
    font-size: 1.06em;
    margin-bottom: 2px;
    font-weight: 500;
}
.serie-duree {
    color: #27daf6;
    font-size: 1em;
    margin-bottom: 2px;
}
.serie-premiere {
    color: #fff;
    font-size: 1em;
    margin-bottom: 2px;
    font-family: 'Georgia', serif;
    text-shadow: 0 2px 6px #000b;
}
.serie-plateformes {
    color: #b3b3b3;
    font-size: 0.97em;
    margin-bottom: 2px;
    font-style: italic;
}




.barre-recherche-serie {
    width: 400px;
    margin: 48px auto 36px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.champ-recherche-serie {
    background: #23242a;
    color: #fff;
    border: none;
    border-radius: 14px 0 0 14px;
    padding: 14px 20px;
    font-size: 1.12rem;
    outline: none;
    width: 100%;
    transition: background 0.15s;
    box-shadow: 0 2px 12px #0003;
}
.champ-recherche-serie:focus {
    background: #181920;
}
.bouton-recherche-serie {
    background: #ffd700;
    color: #23242a;
    border: none;
    border-radius: 0 14px 14px 0;
    padding: 14px 21px;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    box-shadow: 0 2px 12px #0002;
}
.bouton-recherche-serie:hover {
    background: #ffe457;
    color: #181920;
}


@media (max-width: 1450px) {
    .series-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 36px 15px;
        margin-left: 12px;
        margin-right: 12px;
    }
    .serie-card {
        min-width: 165px;
        max-width: 245px;
        height: 375px;
    }
    .serie-affiche {
        height: 285px;
    }
    .serie-titre { font-size: 1.02rem; min-height: 19px; }
}
@media (max-width: 900px) {
    .series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 13px 7px;
        margin: 15px 2vw 0 2vw;
    }
    .serie-card {
        min-width: 80px;
        max-width: 130px;
        height: 190px;
    }
    .serie-affiche {
        height: 78px;
    }
    .serie-titre { font-size: 0.92rem; min-height: 11px; }
}

@media (max-width: 600px) {
    .search-bar {
        width: 97vw;
        max-width: 270px;
    }
    .search-input { font-size: 1.02rem; }
    .search-btn { font-size: 1.07rem; }
}
