.container-binge {
    width: calc(100% - 80px);
    margin: 50px auto;
}

.container-binge h1 {
    text-align: center;
    color: #ffcc00;
    font-size: 42px;
    margin-bottom: 40px;
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.search-container input {
    width: 100%;
    max-width: 700px;
    padding: 16px 22px;
    background: #161616;
    border: 1px solid #2b2b2b;
    border-radius: 16px;
    color: #ffffff;
    font-size: 17px;
    outline: none;
    transition: 0.2s ease;
}

.search-container input:focus {
    border-color: #ffcc00;
}

.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-container select {
    background: #161616;
    border: 1px solid #2b2b2b;
    border-radius: 14px;
    color: #ffffff;
    padding: 14px 18px;
    font-size: 15px;
    outline: none;
    cursor: pointer;
    min-width: 180px;
    transition: 0.2s ease;
}

.filter-container select:hover,
.filter-container select:focus {
    border-color: #ffcc00;
}

#binge-count {
    text-align: center;
    color: #bbbbbb;
    margin-bottom: 40px;
    font-size: 18px;
}
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 50px;
}

.history-card {
    background: #161616;
    border: 1px solid #2b2b2b;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

.history-card:hover {
    transform: translateY(-4px);
    border-color: #ffcc00;
}

.history-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.history-content {
    padding: 16px;
}

.history-content h3 {
    margin: 0 0 10px;
    color: #ffcc00;
    font-size: 21px;
    line-height: 1.3;
}

.history-date {
    color: #bbbbbb;
    margin-bottom: 12px;
    font-size: 14px;
}

.history-series {
    color: #dddddd;
    line-height: 1.4;
    margin-bottom: 16px;
    font-size: 14px;
}

.history-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.history-stats span {
    background: #202020;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
}

.history-stats span {
    background: #202020;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: bold;
}

#loading-message {
    text-align: center;
    color: #888888;
    padding: 30px 0 50px;
    font-size: 18px;
}

@media screen and (max-width: 768px) {

    .container-binge h1 {
        font-size: 32px;
    }

    .search-container input {
        max-width: 100%;
    }

    .filter-container {
        flex-direction: column;
    }

    .filter-container select {
        width: 100%;
        max-width: 400px;
    }

    .history-grid {
        grid-template-columns: 1fr;
    }

}