.filter-content {
    display: none;
}
.filter-content.active {
    display: block;
}

.collection__guest {
    max-width: 700px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.collection__guest-text {
    margin-bottom: 25px;
    font-size: 20px;
    line-height: 140%;
}

.collection__guest-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 480px) {
    .collection__guest-text {
        font-size: 16px;
    }

    .collection__guest-btn {
        width: 100%;
    }
}

/* ===== Страница коллекции: прогресс, поиск, фильтр ===== */
.collection [hidden] {
    display: none;
}

.collection-progress {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 30px;
    padding: 25px 30px;
    border-radius: 12px;
    background-color: #F8F8F8;
}

.collection-progress__ring {
    position: relative;
    width: 110px;
    height: 110px;
}

.collection-progress__ring svg {
    width: 110px;
    height: 110px;
    transform: rotate(-90deg);
}

.collection-progress__track,
.collection-progress__value {
    fill: none;
    stroke-width: 3.5;
}

.collection-progress__track {
    stroke: #e2e2e2;
}

.collection-progress__value {
    stroke: #7b78a8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s;
}

.collection-progress__percent {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Alatsi";
    font-size: 26px;
}

.collection-progress__title {
    font-size: 14px;
    text-transform: uppercase;
    color: #838383;
}

.collection-progress__count {
    font-family: "Alatsi";
    font-size: 40px;
}

.collection-progress__total {
    font-family: "Raleway";
    font-size: 22px;
    color: #838383;
}

.collection-progress__text {
    font-size: 14px;
    color: #5f5f5f;
}

.collection-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.collection-toolbar__search {
    display: flex;
    flex-grow: 1;
    align-items: center;
    column-gap: 10px;
    min-width: 220px;
    padding: 0 14px;
    border: 1px solid #ececec;
    border-radius: 6px;
    background-color: #fff;
    color: #838383;
}

.collection-toolbar__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.collection-toolbar__input {
    width: 100%;
    padding: 12px 0;
    border: none;
    outline: none;
    font-family: "Raleway";
    font-size: 15px;
}

.collection-filter {
    display: inline-flex;
    padding: 4px;
    border-radius: 6px;
    background-color: #ececec;
}

.collection-filter__option {
    padding: 9px 14px;
    border: none;
    border-radius: 6px;
    background-color: transparent;
    font-family: "Raleway";
    font-size: 14px;
    color: #141414;
    cursor: pointer;
}

.collection-filter__option--active {
    background-color: #141414;
    color: #fff;
}

/* Селект с поиском и прогрессом */
.collection-picker {
    position: relative;
    min-width: 280px;
}

.collection-picker__button {
    display: flex;
    align-items: center;
    column-gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ececec;
    border-radius: 6px;
    background-color: #fff;
    font-family: "Raleway";
    font-size: 15px;
    color: #141414;
    text-align: left;
    cursor: pointer;
}

.collection-picker__count {
    margin-left: auto;
    font-family: "Alatsi";
    font-size: 13px;
    color: #838383;
}

.collection-picker__arrow {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: 0.3s;
}

.collection-picker--open .collection-picker__arrow {
    transform: rotate(180deg);
}

.collection-picker__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    display: none;
    width: 100%;
    min-width: 320px;
    padding: 10px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.collection-picker--open .collection-picker__panel {
    display: block;
}

.collection-picker__search {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #ececec;
    border-radius: 6px;
    outline: none;
    font-family: "Raleway";
    font-size: 14px;
}

.collection-picker__list {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #7b78a8 transparent;
}

.collection-picker__option {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 10px;
    padding: 8px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.collection-picker__option:hover {
    background-color: #F8F8F8;
}

.collection-picker__option--active {
    background-color: #f4f3f9;
    color: #7b78a8;
}

.collection-picker__option-count {
    font-family: "Alatsi";
    font-size: 12px;
    color: #838383;
}

.collection-picker__bar {
    grid-column: 1 / 3;
    height: 3px;
    margin-top: 5px;
    border-radius: 2px;
    background-color: #ececec;
    overflow: hidden;
}

.collection-picker__fill {
    display: block;
    width: 0;
    height: 100%;
    background-color: #7b78a8;
}

/* Карточки: иконка, номер, несобранные приглушены */
.collection__mark {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    width: 28px;
    height: 28px;
    color: #141414;
    transition: 0.4s;
}

.collection__mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.collection__pokemon:hover .collection__mark,
.collection__pokemon.completed .collection__mark {
    color: #D18ABD;
}

.collection__number {
    position: absolute;
    top: 18px;
    right: 14px;
    font-family: "Alatsi";
    font-size: 14px;
    color: #838383;
}

.collection__pokemon .collection__pok-img img {
    transition: 0.4s;
}

.collection__pokemon:not(.completed) .collection__pok-img img {
    filter: grayscale(0.7);
    opacity: 0.45;
}

.collection__pokemon:not(.completed):hover .collection__pok-img img {
    filter: none;
    opacity: 1;
}

.collection__pokemon:not(.completed) .collection__pok-name {
    color: #838383;
}

.collection__empty {
    padding: 40px 0;
    font-size: 18px;
    text-align: center;
    color: #838383;
}

.collection .load-more {
    margin-top: 50px;
    margin-bottom: 50px;
}

@media (max-width: 767px) {
    .collection-picker,
    .collection-toolbar__search {
        flex-basis: 100%;
    }

    .collection-picker__panel {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .collection-progress {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 20px;
        text-align: center;
    }

    .collection-filter {
        width: 100%;
    }

    .collection-filter__option {
        flex-grow: 1;
        padding-left: 8px;
        padding-right: 8px;
    }
}
