/* ============================================================
   host-sim.css · 手机外主播搜索/连线/PK 模拟面板
   ------------------------------------------------------------
   从 host-interaction.css 拆出：外部测试用主播列表、邀请确认、
   PK 加分与提前结束等模拟操作。
   ============================================================ */
/* ============ 手机外主播搜索模拟 ============ */
@media (min-width: 1181px) {
    .info-panel {
        top: 24px;
        transform: none;
        padding: 18px 20px;
    }
}

.host-simulator {
    position: fixed;
    left: 32px;
    bottom: 24px;
    width: 260px;
    max-height: 342px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.72);
    background:
        radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--brand-2) 17%, transparent), transparent 42%),
        rgba(16, 18, 27, 0.82);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.host-simulator h2 {
    margin: 0 0 3px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.8px;
}

.host-simulator .sub {
    margin-bottom: 12px;
    color: color-mix(in srgb, var(--brand-2) 72%, transparent);
    font-size: 9px;
    letter-spacing: 1.6px;
}

.host-invite-prompt {
    margin-bottom: 10px;
    padding: 11px;
    border: 1px solid color-mix(in srgb, var(--brand-2) 28%, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    background:
        radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--brand-2) 19%, transparent), transparent 48%),
        rgba(0, 0, 0, 0.22);
}

.host-invite-prompt[hidden] {
    display: none;
}

.host-invite-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.host-invite-avatar {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-1) 20%, rgba(255, 255, 255, 0.08));
    font-size: 20px;
}

.host-invite-copy {
    min-width: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 10px;
    line-height: 1.45;
}

.host-invite-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.host-invite-actions {
    display: flex;
    gap: 7px;
    margin-top: 10px;
}

.host-invite-action {
    height: 30px;
    flex: 1 1 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.055);
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

.host-invite-action.accept {
    border-color: color-mix(in srgb, var(--brand-2) 30%, rgba(255, 255, 255, 0.08));
    color: #fff;
    background: color-mix(in srgb, var(--brand-1) 46%, rgba(255, 255, 255, 0.06));
}

.host-invite-action:active {
    transform: scale(0.97);
}

.host-sim-list {
    max-height: 190px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.host-invite-prompt:not([hidden]) + .host-sim-list {
    max-height: 92px;
}

.host-sim-list::-webkit-scrollbar {
    display: none;
}

.host-sim-row {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.host-sim-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-1) 20%, rgba(255, 255, 255, 0.06));
    font-size: 20px;
}

.host-sim-name {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
}

.host-sim-remove {
    flex: 0 0 auto;
    padding: 4px 7px;
    border: 0;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.055);
    font: inherit;
    font-size: 9px;
    cursor: pointer;
}

.host-sim-remove.connected {
    color: var(--brand-text-strong);
    background: color-mix(in srgb, var(--brand-1) 30%, rgba(255, 255, 255, 0.06));
}

.host-sim-state {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.38);
    font-size: 9px;
}

.host-sim-state.active {
    color: #ff72a9;
    font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
    .host-interaction-stage.host-link-active .host-interaction-local-media,
    .video-stage.host-link-active .pad-layer,
    .host-link-remote {
        transition-duration: 1ms;
    }

    .host-match-visual::before,
    .host-match-orbit,
    .host-match-beam::after,
    .host-match-avatar,
    .host-match-spark span,
    .host-radar-pulse,
    .host-radar-sweep,
    .host-radar-peer,
    .host-pk-opponent,
    .pk-intro-letter,
    .pk-intro-burst,
    .pk-result {
        animation: none;
    }

    .host-pk-opponent-a {
        z-index: 3;
        opacity: 1;
        filter: none;
        transform: none;
    }
}

.host-sim-actions {
    margin-top: 10px;
}

.host-pk-sim-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.host-pk-sim-score,
.host-pk-sim-end {
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    color: #fff;
    font: inherit;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
}

.host-pk-sim-score.self {
    border-color: rgba(255, 78, 126, 0.35);
    background: rgba(220, 31, 92, 0.38);
}

.host-pk-sim-score.opponent {
    border-color: rgba(var(--brand-2-rgb), 0.4);
    background: rgba(29, 107, 210, 0.42);
}

.host-pk-sim-end {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);
}

.host-pk-sim-score:active,
.host-pk-sim-end:active {
    transform: scale(0.97);
}

.host-sim-add {
    width: 100%;
    height: 34px;
    border: 1px solid color-mix(in srgb, var(--brand-2) 26%, rgba(255, 255, 255, 0.06));
    border-radius: 10px;
    color: #fff;
    background: color-mix(in srgb, var(--brand-1) 38%, rgba(255, 255, 255, 0.05));
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

.host-sim-add:disabled {
    opacity: 0.38;
    cursor: default;
}

.host-sim-tip {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 8px;
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .host-simulator {
        display: none;
    }
}
