/* П.5 «Серии» (макет Figma 13-serii-pobed_4196-4517): панель фильтров и колонка «Следующий
   матч». Остальная разметка страницы — на общих классах app.css (chips, tbl, panel, faq),
   этот файл добавляет только то, чего там не было. Подключается из series/index.blade.php. */

.p5-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
}

.p5-filters__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.p5-filters__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-muted);
    margin-right: 2px;
}

.p5-filters .field__box--select {
    height: 40px;
}

.p5-filters__reset {
    margin-left: auto;
}

.chip.is-disabled {
    cursor: help;
    opacity: .6;
}

.chip.is-disabled:hover {
    background: var(--c-chip);
    color: var(--c-muted);
}

.p5-next.p5-next--sub {
    display: none;
}

/* «Следующий матч»: ссылка на страницу матча со стрелкой, как в макете. */
.p5-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c-accent);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
}

.p5-next__ico {
    width: 14px;
    height: 14px;
    flex: none;
}

.p5-next--none {
    color: var(--c-faint);
    font-weight: 400;
}

@media (max-width: 640px) {
    .p5-filters {
        gap: 14px 16px;
    }

    .p5-filters__reset {
        margin-left: 0;
    }
}

/* Таблица серий + «Другие типы серий» сбоку (фидбек 22.09: 4 узкие колонки растягивались на всю
   ширину пустыми промежутками). Классы только с префиксом p5-, чтобы не задеть общие. */
.p5-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
    margin-top: 48px;
}

.p5-layout .panel {
    margin-top: 0;
}

.p5-layout + .section {
    margin-top: 40px;
}

.p5-table .h2--panel {
    margin-bottom: 20px;
}

.p5-table .tbl-wrap {
    margin-bottom: 0;
}

.p5-table .tbl td {
    padding-top: 10px;
    padding-bottom: 10px;
}

.p5-table .tbl th:nth-child(3),
.p5-table .tbl td:nth-child(3) {
    width: 72px;
}

.p5-table .tbl th:last-child,
.p5-table .tbl td:last-child {
    text-align: left;
    padding-right: 20px;
}

.p5-upd {
    margin: 12px 0 0;
    text-align: left;
}

.p5-links {
    position: sticky;
    top: 16px;
    padding: 24px;
}

.p5-links .h2 {
    font-size: 18px;
    margin-bottom: 18px;
}

.p5-links .links__grid {
    grid-template-columns: 1fr;
    gap: 22px;
}

.p5-links .links__col {
    gap: 9px;
}

@media (max-width: 900px) {
    .p5-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .p5-links {
        position: static;
    }

    .p5-links .links__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .p5-links .links__grid {
        grid-template-columns: 1fr;
    }

    .p5-table .tbl th:last-child,
    .p5-table .tbl td:last-child {
        display: none;
    }

    .p5-table .tbl th.tbl__name,
    .p5-table .tbl td.tbl__name {
        min-width: 0;
        padding-left: 6px;
    }

    .p5-table .tbl th.tbl__pos,
    .p5-table .tbl td.tbl__pos {
        width: 32px;
        padding-left: 10px;
    }

    .p5-table .tbl th:nth-child(3),
    .p5-table .tbl td:nth-child(3) {
        width: 56px;
        padding-right: 12px;
    }

    .p5-next.p5-next--sub {
        display: block;
        margin: 4px 0 0 34px;
        font-size: 12px;
        font-weight: 500;
    }
}
