/* LISTS 11.11.2025
Developer: t.me/moretheme
Screen resolution: 460, 860, 1440, 1920 */
.lists-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    grid-gap: 20px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.lists-head > input {
    width: 250px;
    padding: 10px 20px;
}

.lists-sort {
    position: relative;
    width: 220px;
}

.lists-sort > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 10px;
    background: var(--color1);
    color: #000;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
}

.lists-sort.active > span {
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 1px solid var(--light);
}

.lists-sort > div {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 100%;
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 2px;
    display: flex;
    flex-direction: column;
    width: inherit;
    transition: 0.3s;
    z-index: 5;
}

.lists-sort.active > div {
    visibility: visible;
    opacity: 1;
    border-radius: 0 0 var(--radius) var(--radius);
}

.lists-sort > div > span {
    padding: 8px 20px;
    border-radius: var(--radius);
    cursor: pointer;
}

.lists-sort > div > span:hover {
    background: var(--light);
}

.lists-head > a {
    background: #ffa2a1;
    color: #000;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
}

.lists-link {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    background: var(--bg2);
    padding: 5px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    justify-content: space-between;
    overflow: auto;
}

.lists-link > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: transparent;
    color: #fff;
    padding: 5px 15px;
    border-radius: var(--radius);
    font-size: 16px;
    cursor: pointer;
}

.lists-link > a.active {
    background: #fff;
    color: #000;
    box-shadow: 0px 4px 24px 0px rgb(0 0 0 / 50%);
}

.lists-link .lists-name {
    font-size: 12px;
}

.lists-items {
    display: grid;
    grid-auto-rows: max-content;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 860px) {
    .lists-items {
        grid-template-columns: repeat(1, 1fr);
    }
}

.lists-none {
    position: relative;
    padding: 20px 30px;
    background: var(--color1);
    color: #fff;
    border-radius: var(--radius);
    font-size: 14px;
    grid-column: 1/-1;
}

/* ADD LISTS */
.lists-sel {
    position: relative;
    width: 220px;
    margin: 0 auto;
}

.lists-sel > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 10px;
    background: var(--color1);
    color: #000;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 20px;
}

.lists-sel.active > span {
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 1px solid var(--light);
}

.lists-sel > div {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 100%;
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 2px;
    display: flex;
    flex-direction: column;
    width: inherit;
    transition: 0.3s;
    z-index: 5;
}

.lists-sel.active > div {
    visibility: visible;
    opacity: 1;
    border-radius: 0 0 var(--radius) var(--radius);
}

.lists-sel > div > span {
    padding: 8px 20px;
    border-radius: var(--radius);
    cursor: pointer;
}

.lists-sel > div > span:hover {
    background: var(--light);
}
