/* Room */
.lobby {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) minmax(100px, 2fr) minmax(100px, 1fr);
    grid-gap: 60px;
    flex: 1;
}

.room-title {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    margin-top: 30px;
    margin-left: 90px;
}

.room-title__name {
    font-size: 1.8rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.room-title .btn {
    margin-left: 20px;
}

/* Loading animation */
.loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.loading__animation {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading__animation div {
    position: absolute;
    border: 4px solid var(--primary-color);
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loading__animation div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

.loading__error {
    color: red;
}

.chat__input,
.playlist__input,
.users__buttons {
    border-top: 3px solid var(--primary-color);
    padding-top: 20px;
}

.block {
    background-color: var(--block-bg-color);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.playlist__input input,
.chat__input input {
    min-width: 0;
    width: 1px;
}

.tabs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.tabs li {
    flex: 1;
    text-align: center;
    border-bottom: 3px solid gray;
    padding: 10px 0;
    font-size: 1.6rem;
}

.tabs li.active {
    border-bottom: 3px solid var(--primary-color);
}

.tabs li:not(.active):hover {
    border-bottom: 3px solid lightgray;
    cursor: pointer;
}

.block__header {
    margin-bottom: 20px;
}

.loader {
    width: 23px;
    height: 23px;
    border: 3px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
