.streamer-search {
    position: relative;
    z-index: 50;
    width: 100%;
    max-width: 480px;
}

.ss-wrap {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 14px;
    background: var(--neutral-800);
    border: 1px solid var(--neutral-600);
    border-radius: var(--radius-md);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.streamer-search--open .ss-wrap,
.ss-wrap:focus-within {
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.15);
}

.ss-icon {
    flex-shrink: 0;
    margin-right: 10px;
    color: var(--neutral-500);
    transition: color 180ms ease;
}

.ss-wrap:focus-within .ss-icon {
    color: var(--blue-300);
}

.ss-input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    color: var(--neutral-100);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
}

.ss-input::placeholder {
    color: var(--neutral-500);
    font-weight: 400;
}

.ss-clear {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 6px;
    color: var(--neutral-400);
    background: var(--neutral-700);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition:
        background var(--t),
        color var(--t);
}

.ss-clear:hover {
    color: var(--neutral-100);
    background: var(--neutral-600);
}

.ss-clear svg {
    width: 12px;
    height: 12px;
    display: block;
}

.ss-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 5000;
    overflow: hidden;
    list-style: none;
    background: var(--neutral-800);
    border: 1px solid var(--neutral-700);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.ss-dropdown.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ss-dropdown[hidden] {
    display: block;
    visibility: hidden;
}

.ss-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 10px 14px 10px 18px;
    color: inherit;
    text-decoration: none;
    outline: none;
    cursor: pointer;
    transition: background var(--t);
}

.ss-item:hover {
    background: var(--neutral-750);
}

.ss-item__body {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.ss-item__name {
    display: block;
    overflow: hidden;
    color: var(--neutral-100);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-item__name mark,
.ss-item__login mark {
    color: var(--blue-300);
    background: none;
    font-weight: 600;
}

.ss-item__login {
    color: var(--neutral-400);
    font-weight: 500;
}

.ss-item__arrow {
    flex-shrink: 0;
    color: var(--neutral-600);
    transition:
        color var(--t),
        transform var(--t);
}

.ss-item:hover .ss-item__arrow {
    color: var(--blue-400);
    transform: translateX(2px);
}

.ss-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 16px;
    color: var(--neutral-500);
    font-family: var(--font-mono);
    font-size: 13px;
    text-align: center;
}

.ss-state__title {
    color: var(--neutral-400);
    font-size: 13px;
}

.ss-state__sub {
    color: var(--neutral-600);
    font-size: 11px;
}

@media (max-width: 700px) {
    .streamer-search {
        max-width: 100%;
    }

    .ss-wrap {
        height: 46px;
    }
}