/* ============================================================
   host-interaction.css · 主播互动抽屉默认态（搜索 / 雷达预览 / 随机卡片轮转）
   ------------------------------------------------------------
   随机匹配/二宫格见 host-match.css，常规 PK 见 host-pk.css，
   外部主播模拟见 host-sim.css。
   ============================================================ */

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]) {
    z-index: 27;
    height: 584px;
    padding: 10px 16px 30px;
    display: flex;
    flex-direction: column;
    touch-action: none;
    user-select: none;
}

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]):not(.searching):not(.connected-mode):not(.matching) .host-default-content {
    min-height: 0;
    flex: 1 1 auto;
    padding-right: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]) .host-default-content::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.host-mutual-section {
    padding: 2px 2px 0;
}

.host-mutual-title {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 2px 0 7px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 20px;
}

.host-mutual-title strong {
    color: #ff5f91;
    font-size: 14px;
    font-weight: 650;
}

.host-mutual-row {
    min-height: 70px;
    padding: 8px 0 2px;
    border-bottom: 0;
}

.host-mutual-avatar {
    overflow: hidden;
    border-color: color-mix(in srgb, #ff5f91 52%, rgba(255, 255, 255, 0.36));
}

.host-mutual-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.host-mutual-viewers::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 5px 1px 0;
    border-radius: 50%;
    background: var(--live-green);
    box-shadow: 0 0 7px rgba(7, 193, 96, 0.6);
}

.host-mutual-action-dock {
    position: relative;
    width: 108px;
    height: 50px;
    padding: 0;
    flex: 0 0 108px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: stretch;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.host-mutual-action-divider {
    width: 1px;
    margin: 7px 0;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.host-mutual-action {
    min-width: 0;
    padding: 2px 0;
    border: 0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    color: rgba(255, 255, 255, 0.78);
    background: transparent;
    font: inherit;
    font-size: 9px;
    font-weight: 550;
    cursor: pointer;
    transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.host-mutual-action.is-link {
    color: #83d8ff;
}

.host-mutual-action.is-pk {
    color: #ff86ce;
}

.host-mutual-action:hover {
    color: #fff;
    background: transparent;
}

.host-mutual-action:active {
    transform: scale(0.92);
}

.host-mutual-action-icon {
    width: 28px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.host-mutual-action-icon svg {
    width: 26px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(var(--brand-2-rgb), 0.48));
}

.host-mutual-pk-mark {
    font-size: 15px;
    font-weight: 850;
    font-style: italic;
    letter-spacing: -1px;
    text-shadow:
        0 0 5px rgba(255, 65, 164, 0.72),
        0 0 9px rgba(117, 82, 255, 0.46);
}

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]) .drawer-handle {
    cursor: grab;
}

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).searching {
    height: 448px;
}

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).searching .drawer-title,
:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).searching .host-default-content {
    display: none;
}

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).connected-mode {
    /* 连线中菜单内容较少（头部 + 寻找更多 + 常规 PK），单独收窄高度避免上下大片留白 */
    height: 306px;
}

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).connected-mode .drawer-title,
:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).connected-mode .host-interaction-content {
    display: none;
}

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).matching .drawer-title,
:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).matching .host-interaction-content,
:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).matching .host-connected-content {
    display: none;
}

.host-connected-content {
    position: relative;
    z-index: 1;
    min-height: 0;
    flex: 1 1 auto;
}

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).connected-mode .host-connected-content {
    display: flex;
    flex-direction: column;
}

.host-connected-header {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.host-connected-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.host-connected-end {
    width: 38px;
    height: 38px;
    padding: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 91, 103, 0.2);
    border-radius: 50%;
    color: #ff6874;
    background: rgba(255, 75, 89, 0.09);
    cursor: pointer;
}

.host-connected-end svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.host-connected-end:active {
    transform: scale(0.94);
}

.host-find-more {
    width: 100%;
    height: 48px;
    margin-top: 13px;
    border: 1px solid color-mix(in srgb, var(--brand-2) 32%, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--brand-1) 78%, #111827),
        color-mix(in srgb, var(--brand-2) 62%, #172131));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-1) 18%, transparent);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
}

.host-find-more:active {
    transform: scale(0.98);
}

.host-connected-divider {
    height: 1px;
    margin: 24px 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.host-regular-pk {
    min-height: 102px;
    padding: 17px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background:
        radial-gradient(circle at 88% 25%, rgba(255, 68, 174, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(31, 20, 42, 0.92), rgba(12, 12, 20, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.host-regular-pk-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.host-regular-pk-title {
    color: #fff;
    font-size: 16px;
    font-weight: 650;
}

.host-regular-pk-meta {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}

.host-regular-pk-button {
    min-width: 82px;
    height: 38px;
    padding: 0 13px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 91, 188, 0.28);
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #B735A4, #7654E8 58%, #367FCB);
    box-shadow: 0 7px 16px rgba(157, 67, 211, 0.17);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.host-regular-pk-button:active {
    transform: scale(0.96);
}

.host-regular-pk-button:disabled {
    cursor: default;
    opacity: 0.58;
    filter: saturate(0.72);
}

.host-regular-pk-button.waiting {
    min-width: 88px;
}
