.container {
    padding-top: 112px;
    padding-bottom: 60px;
}

.secctions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.title {
    width: 100%;
    max-width: 952px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
}

.content_title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 6px;
}

.txt_title {
    color: #f5f5f5;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0;
}

.page-indicator {
    color: #444;
    font-size: 13px;
    font-weight: 700;
}

.separator {
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg,
        #ff3b3b 0%, #ff7a18 40%, rgba(255,255,255,0.05) 100%);
}

/* ── Filtros ─────────────────────────────────────────────── */
.filters-bar {
    width: 100%;
    max-width: 952px;
    margin-bottom: 20px;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-select {
    background: #111;
    border: 1px solid #222;
    border-radius: 6px;
    color: #aaa;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.filter-select:hover {
    border-color: #444;
    color: #fff;
}

.filter-select:focus {
    border-color: #ff3b3b;
    color: #fff;
}

.filter-select option {
    background: #111;
    color: #aaa;
}

.filter-clear {
    color: #ff3b3b;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 7px 10px;
    border: 1px solid #ff3b3b22;
    border-radius: 6px;
    transition: background 0.2s;
}

.filter-clear:hover {
    background: #ff3b3b22;
}

/* ── Cards ───────────────────────────────────────────────── */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 952px;
    margin-bottom: 32px;
}

.card {
    width: 111px;
    height: 158px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    border: 2px solid transparent;
    box-sizing: border-box;
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
    transition: border-color 0.15s;
}

.card:hover {
    border-color: #ff3b3b;
}

.card_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 8px 8px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-title {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-score {
    color: #ff7a18;
    font-size: 10px;
    font-weight: 700;
}

.card-type {
    color: #777;
    font-size: 10px;
    font-weight: 700;
    background: rgba(0,0,0,0.4);
    padding: 1px 5px;
    border-radius: 3px;
}

.no-results {
    color: #444;
    font-size: 14px;
    padding: 40px 0;
    width: 100%;
    text-align: center;
}

/* ── Paginación ──────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    color: #aaa;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.page-btn:hover {
    border-color: #ff3b3b;
    color: #fff;
}

.page-btn--disabled {
    color: #333;
    cursor: default;
    pointer-events: none;
}

.page-current {
    color: #555;
    font-size: 14px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

@media (max-width: 768px) {

    .container {
        padding-top: 88px;
        padding-bottom: 40px;
    }

    .title {
        margin-bottom: 12px;
    }

    .txt_title {
        font-size: 17px;
    }

    .page-indicator {
        font-size: 11px;
    }

    /* Filtros — dos filas en vez de scroll horizontal */
    .filters-bar {
        margin-bottom: 14px;
    }

    .filters-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .filter-select {
        font-size: 11px;
        padding: 6px 22px 6px 8px;
        flex: 1;
        min-width: calc(50% - 3px);
        max-width: calc(50% - 3px);
        box-sizing: border-box;
    }

    .filter-clear {
        font-size: 11px;
        padding: 6px 10px;
        width: 100%;
        text-align: center;
    }

    /* Cards — 3 por fila con más espacio */
    .cards {
        gap: 8px;
        margin-bottom: 24px;
    }

    .card {
        width: calc(33.33% - 6px);
        height: auto;
        aspect-ratio: 2/3;
    }

    .card-title { font-size: 10px; }
    .card-score { font-size: 9px; }
    .card-type  { font-size: 9px; }

    /* Paginación */
    .pagination {
        gap: 8px;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .page-btn {
        padding: 8px 14px;
        font-size: 12px;
        flex: 1;
        justify-content: center;
        max-width: 140px;
    }

    .page-current {
        font-size: 13px;
    }

    .no-results {
        padding: 0 12px;
        font-size: 13px;
    }

    /* Selects no se salgan */
    .filter-select {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* El dropdown nativo del select lo maneja el navegador,
    pero podemos limitar el ancho del contenedor */
    .filters-bar {
        overflow: hidden;
    }
}