/* ============================================================
   顔検索サイドバーウィジェット
   ============================================================ */

.avos-fsw {
    font-size: .85rem;
}

/* ── 画像ボタン ── */
.avos-fsw__file-btn {
    display: block;
    width: 100%;
    padding: .55rem .5rem;
    margin-bottom: .45rem;
    border-radius: 6px;
    border: 2px dashed #ccc;
    background: #fafafa;
    color: #444;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    transition: border-color .15s, background .15s;
}
.avos-fsw__file-btn:hover {
    border-color: var(--color_main, #e03060);
    background: #fff0f4;
}

/* ── URL入力エリア ── */
.avos-fsw__url-area {
    margin-bottom: .5rem;
}
.avos-fsw__url-input {
    width: 100%;
    padding: .45rem .55rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: .82rem;
    box-sizing: border-box;
    text-align: center;
}
.avos-fsw__url-input:focus {
    outline: none;
    border-color: var(--color_main, #e03060);
}

/* ── プレビュー ── */
.avos-fsw__preview {
    margin-bottom: .6rem;
    text-align: center;
}
.avos-fsw__preview img {
    max-width: 100%;
    max-height: 110px;
    border-radius: 4px;
    object-fit: contain;
}

/* ── 顔検索ボタン ── */
.avos-fsw__btn {
    width: 100%;
    padding: .6rem;
    border-radius: 6px;
    border: none;
    background: var(--color_main, #e03060);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    transition: opacity .15s;
}
.avos-fsw__btn:hover:not(:disabled) { opacity: .85; }
.avos-fsw__btn:disabled {
    background: #ccc;
    cursor: default;
}

/* ── ステータス ── */
.avos-fsw__status {
    margin: .5rem 0 0;
    font-size: .78rem;
    color: #888;
    text-align: center;
}

/* ── 結果リスト ── */
.avos-fsw__result {
    margin-top: .75rem;
}

.avos-fsw__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.avos-fsw__item-link {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .35rem .4rem;
    border-radius: 5px;
    text-decoration: none;
    background: #fafafa;
    transition: background .12s;
}
.avos-fsw__item-link:hover {
    background: #f0f0f0;
    text-decoration: none;
}

.avos-fsw__item-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex: 0 0 auto;
    background: #eee;
}
.avos-fsw__item-noimg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ddd;
    flex: 0 0 auto;
}

.avos-fsw__item-info {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.avos-fsw__item-name {
    font-size: 1.0rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.avos-fsw__item-score {
    font-size: 0.9rem;
    color: var(--color_main, #e03060);
    font-weight: 700;
}
