/* ============================================================
   host-match.css · 双人随机连线/随机 PK 匹配 + 主播二宫格连线画面
   ------------------------------------------------------------
   从 host-interaction.css 拆出：随机匹配轨道/扫描/粒子动画、
   匹配成功后的二宫格进退场。常规 PK 计分见 host-pk.css。
   ============================================================ */
/* ============ 双人随机连线匹配 ============ */
.host-match-content {
    position: relative;
    z-index: 1;
    min-height: 0;
    flex: 1 1 auto;
    padding: 10px 0 18px;
    text-align: center;
}

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).matching .host-match-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.host-match-kicker {
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.host-match-visual {
    position: relative;
    width: 232px;
    height: 168px;
    flex: 0 0 168px;
    overflow: hidden;
}

.host-match-visual::before {
    content: '';
    position: absolute;
    inset: 23px 22px 5px;
    border-radius: 50%;
    background:
        radial-gradient(circle, color-mix(in srgb, var(--brand-2) 21%, transparent), transparent 63%);
    filter: blur(5px);
    animation: hostMatchAura 1.7s ease-in-out infinite;
}

.host-match-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid color-mix(in srgb, var(--brand-2) 30%, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.host-match-orbit::before,
.host-match-orbit::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #76dcff;
    box-shadow: 0 0 10px #76dcff;
}

.host-match-orbit-outer {
    width: 190px;
    height: 112px;
    border-style: dashed;
    animation: hostMatchOrbit 5.4s linear infinite;
}

.host-match-orbit-outer::before {
    top: 11px;
    left: 25px;
}

.host-match-orbit-outer::after {
    right: 20px;
    bottom: 15px;
    background: #ff63c3;
    box-shadow: 0 0 10px #ff63c3;
}

.host-match-orbit-inner {
    width: 139px;
    height: 82px;
    opacity: 0.58;
    animation: hostMatchOrbitReverse 3.7s linear infinite;
}

.host-match-orbit-inner::before {
    top: -3px;
    left: 66px;
}

.host-match-orbit-inner::after {
    right: 7px;
    bottom: 7px;
}

.host-match-beam {
    position: absolute;
    top: 50%;
    left: 67px;
    width: 98px;
    height: 2px;
    overflow: hidden;
    transform: translateY(-50%);
    background: linear-gradient(90deg,
        rgba(89, 191, 255, 0.18),
        rgba(255, 255, 255, 0.82),
        rgba(255, 87, 193, 0.18));
    box-shadow: 0 0 13px color-mix(in srgb, var(--brand-2) 55%, transparent);
}

.host-match-beam::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 30%;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    animation: hostMatchScan 1.15s ease-in-out infinite;
}

.host-match-avatar {
    position: absolute;
    top: 50%;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-1) 20%, #f3f5ff);
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.08),
        0 0 24px color-mix(in srgb, var(--brand-2) 34%, transparent),
        0 12px 25px rgba(0, 0, 0, 0.3);
    font-size: 35px;
    line-height: 1;
    transform: translateY(-50%);
}

.host-match-avatar-self {
    left: 28px;
    animation: hostMatchAvatarLeft 1.6s ease-in-out infinite;
}

.host-match-avatar-target {
    right: 28px;
    animation: hostMatchAvatarRight 1.6s ease-in-out infinite;
}

.host-match-avatar-target.switching {
    animation: hostMatchAvatarSwitch 260ms ease;
}

.host-match-spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
}

.host-match-spark span {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 9px #fff;
    animation: hostMatchSpark 1.35s ease-out infinite;
}

.host-match-spark span:nth-child(2) {
    animation-delay: 450ms;
}

.host-match-spark span:nth-child(3) {
    animation-delay: 900ms;
}

.host-match-visual.locking .host-match-orbit {
    border-color: rgba(119, 229, 255, 0.65);
    animation-duration: 1.05s;
}

.host-match-visual.locking .host-match-beam {
    height: 3px;
    box-shadow: 0 0 20px #8d78ff;
}

.host-match-title {
    color: #fff;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: 0.3px;
}

.host-match-subtitle {
    min-height: 17px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 10px;
}

.host-match-progress {
    width: 176px;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.host-match-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3fbde7, #8a6dff 54%, #ff5fbd);
    box-shadow: 0 0 10px rgba(123, 111, 255, 0.65);
}

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).matching .host-match-progress span {
    animation: hostMatchProgress 4.2s linear forwards;
}

.host-match-cancel {
    min-width: 104px;
    height: 34px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.055);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.host-match-cancel:active {
    transform: scale(0.96);
}

@keyframes hostMatchAura {
    0%, 100% { opacity: 0.55; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes hostMatchOrbit {
    from { transform: translate(-50%, -50%) rotate(0); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes hostMatchOrbitReverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0); }
}

@keyframes hostMatchScan {
    0%, 100% { transform: translateX(-120%); opacity: 0; }
    20%, 80% { opacity: 1; }
    50% { transform: translateX(330%); }
}

@keyframes hostMatchAvatarLeft {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(3px); }
}

@keyframes hostMatchAvatarRight {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-3px); }
}

@keyframes hostMatchAvatarSwitch {
    0% { opacity: 1; transform: translateY(-50%) scale(1); }
    48% { opacity: 0; transform: translateY(-50%) scale(0.72) rotate(-9deg); }
    52% { opacity: 0; transform: translateY(-50%) scale(0.72) rotate(9deg); }
    100% { opacity: 1; transform: translateY(-50%) scale(1); }
}

@keyframes hostMatchSpark {
    0% { opacity: 0; transform: scale(0.4); }
    28% { opacity: 1; }
    100% { opacity: 0; transform: scale(4.5); }
}

@keyframes hostMatchProgress {
    from { width: 0; }
    to { width: 100%; }
}

.host-interaction-content {
    position: relative;
    z-index: 1;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).searching .host-interaction-content {
    flex: 1 1 auto;
    min-height: 0;
}

.host-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.host-search {
    min-width: 0;
    flex: 1 1 auto;
    height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    color: rgba(255, 255, 255, 0.42);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.host-search:focus-within {
    border-color: color-mix(in srgb, var(--brand-2) 48%, transparent);
    background: rgba(4, 13, 27, 0.48);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 10%, transparent);
}

.host-search svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
}

.host-search input {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0;
    border: 0;
    outline: 0;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    font: inherit;
    font-size: 13px;
}

.host-search input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.host-search input::-webkit-search-cancel-button {
    filter: invert(1);
    opacity: 0.45;
}

.host-search-cancel {
    display: none;
    flex: 0 0 auto;
    padding: 0 2px;
    border: 0;
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).searching .host-search-cancel {
    display: block;
}

.host-default-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.host-search-results {
    display: none;
}

:is(#hostInteractionSheet, [data-peer-source-id="hostInteractionSheet"]).searching .host-search-results {
    min-height: 0;
    flex: 1 1 auto;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.host-search-results::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.host-search-empty {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
    letter-spacing: 0.3px;
}

.host-search-result {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.host-result-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid color-mix(in srgb, var(--brand-2) 42%, rgba(255, 255, 255, 0.32));
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-1) 18%, rgba(255, 255, 255, 0.07));
    box-shadow: 0 4px 13px rgba(0, 0, 0, 0.22);
    font-size: 25px;
}

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

.host-result-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.host-result-meta {
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
}

.host-result-invite {
    min-width: 62px;
    height: 34px;
    padding: 0 13px;
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--brand-2) 34%, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    color: #fff;
    background: color-mix(in srgb, var(--brand-1) 42%, rgba(255, 255, 255, 0.08));
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.host-result-invite:active {
    transform: scale(0.96);
}

.host-result-invite.cancel {
    border-color: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.07);
}

.host-result-invite:disabled {
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
    cursor: default;
}

.host-feature-card {
    position: relative;
    min-height: 142px;
    padding: 18px 16px 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 17px;
    background:
        radial-gradient(circle at 84% 26%, color-mix(in srgb, var(--brand-2) 24%, transparent), transparent 34%),
        linear-gradient(145deg, rgba(18, 30, 50, 0.92), rgba(11, 12, 20, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 12px 30px rgba(0, 0, 0, 0.18);
}

.host-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 16%, rgba(255, 255, 255, 0.035) 42%, transparent 68%);
}

.host-feature-card-pk {
    background:
        radial-gradient(circle at 84% 26%, rgba(255, 62, 172, 0.2), transparent 34%),
        radial-gradient(circle at 66% 34%, rgba(112, 85, 255, 0.18), transparent 38%),
        linear-gradient(145deg, rgba(35, 20, 44, 0.94), rgba(12, 11, 20, 0.95));
}

.host-feature-copy {
    position: relative;
    z-index: 2;
    max-width: 214px;
}

.host-feature-copy h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: 0.3px;
}

.host-feature-copy p {
    margin: 7px 0 0;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
}

.host-feature-visual {
    position: absolute;
    z-index: 1;
    top: 14px;
    right: 14px;
    width: 104px;
    height: 64px;
}

.host-pk-avatar {
    position: absolute;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, var(--brand-1), var(--brand-2));
    box-shadow: 0 4px 13px rgba(0, 0, 0, 0.3);
    font-size: 10px;
    font-weight: 700;
}

.host-link-visual {
    top: 1px;
    right: 3px;
    width: 132px;
    height: 84px;
    pointer-events: none;
    transform: translateX(-48px);
}

.host-radar-pulse {
    position: absolute;
    z-index: 1;
    top: 25px;
    left: 72px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.95);
    animation: hostCardRadarPulse 2.8s ease-out infinite;
}

.host-radar-pulse-b {
    animation-delay: 1.4s;
}

.host-radar-sweep {
    position: absolute;
    z-index: 2;
    top: -1px;
    left: 46px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 286deg,
        color-mix(in srgb, var(--brand-1) 4%, transparent) 304deg,
        color-mix(in srgb, var(--brand-2) 18%, transparent) 334deg,
        color-mix(in srgb, var(--brand-2) 55%, transparent) 360deg
    );
    -webkit-mask: radial-gradient(circle, transparent 0 20px, #000 21px);
    mask: radial-gradient(circle, transparent 0 20px, #000 21px);
    filter: drop-shadow(0 0 6px var(--brand-glow-1));
    animation: hostCardRadarSweep 4.8s linear infinite;
    transform-origin: center;
}

.host-radar-sweep::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 50%;
    width: 1px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(to bottom,
        color-mix(in srgb, var(--brand-2) 90%, #fff),
        color-mix(in srgb, var(--brand-2) 28%, transparent));
    box-shadow: 0 0 7px var(--brand-glow-1);
    transform: translateX(-50%);
}

.host-radar-peer {
    position: absolute;
    z-index: 3;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 50%;
    opacity: 0;
    background: color-mix(in srgb, var(--brand-1) 18%, rgba(255, 255, 255, 0.12));
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--brand-2) 8%, transparent),
        0 0 10px var(--brand-glow-1);
    filter: saturate(0.55) brightness(0.72);
    font-size: 11px;
    line-height: 1;
    animation: hostCardRadarPeer 4.8s ease-in-out infinite;
}

.host-radar-peer-a {
    top: 8px;
    left: 34px;
    animation-delay: 250ms;
}

.host-radar-peer-b {
    top: 27px;
    right: 2px;
    width: 16px;
    height: 16px;
    font-size: 10px;
    animation-delay: 1.8s;
}

.host-radar-peer-c {
    bottom: 2px;
    left: 42px;
    width: 15px;
    height: 15px;
    font-size: 9px;
    animation-delay: 3.25s;
}

.host-animal-avatar {
    position: absolute;
    z-index: 5;
    top: 25px;
    left: 72px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-1) 18%, rgba(255, 255, 255, 0.92));
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.12),
        0 0 14px var(--brand-glow-1),
        0 7px 18px rgba(0, 0, 0, 0.25);
    font-size: 20px;
    line-height: 1;
}

@keyframes hostCardRadarPulse {
    0% {
        opacity: 0.68;
        transform: scale(0.95);
        border-color: rgba(255, 255, 255, 0.82);
    }
    76%, 100% {
        opacity: 0;
        transform: scale(1.9);
        border-color: color-mix(in srgb, var(--brand-2) 8%, transparent);
    }
}

@keyframes hostCardRadarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes hostCardRadarPeer {
    0%, 10% {
        opacity: 0;
        transform: scale(0.25);
        filter: saturate(0.25) brightness(0.45);
    }
    34%, 52% {
        opacity: 0.92;
        transform: scale(1);
        filter: saturate(1) brightness(1.08);
    }
    76%, 100% {
        opacity: 0;
        transform: scale(1.28);
        filter: saturate(0.65) brightness(0.85);
    }
}

.host-pk-visual {
    top: 7px;
    right: 2px;
    width: 136px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding-left: 4px;
    pointer-events: none;
    transform: translateX(-17px);
}

.host-pk-visual strong {
    position: relative;
    z-index: 2;
    padding-right: 4px;
    color: transparent;
    background: linear-gradient(135deg, #FF4FB9, #9663FF 54%, #47D9FF);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 23px;
    font-style: italic;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    filter: drop-shadow(0 3px 9px rgba(157, 85, 255, 0.32));
}

.host-pk-avatar {
    position: relative;
    flex: 0 0 auto;
}

.host-pk-own {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: color-mix(in srgb, var(--brand-1) 18%, rgba(255, 255, 255, 0.92));
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.1),
        0 0 12px var(--brand-glow-1),
        0 5px 14px rgba(0, 0, 0, 0.28);
    font-size: 20px;
    line-height: 1;
}

.host-pk-opponents {
    position: relative;
    width: 55px;
    height: 42px;
    flex: 0 0 55px;
    overflow: visible;
}

.host-pk-opponent {
    position: absolute;
    z-index: 1;
    top: 4px;
    left: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0;
    background: color-mix(in srgb, var(--brand-1) 18%, rgba(255, 255, 255, 0.92));
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.1),
        0 0 12px var(--brand-glow-1),
        0 5px 14px rgba(0, 0, 0, 0.28);
    filter: saturate(0.35) brightness(0.55);
    font-size: 20px;
    line-height: 1;
    transform: translateX(22px) scale(0.35);
    animation: hostPkOpponentCarousel 4.4s linear infinite both;
}

.host-pk-opponent-a {
    animation-delay: -1.6s;
}

.host-pk-opponent-b {
    animation-delay: -0.5s;
}

.host-pk-opponent-c {
    animation-delay: 0.6s;
}

.host-pk-opponent-d {
    animation-delay: 1.7s;
}

@keyframes hostPkOpponentCarousel {
    0% {
        z-index: 1;
        opacity: 0;
        filter: saturate(0.25) brightness(0.45);
        transform: translateX(22px) scale(0.35);
    }
    12% {
        z-index: 1;
        opacity: 0.62;
        filter: saturate(0.68) brightness(0.78);
        transform: translateX(22px) scale(0.8);
    }
    25% {
        z-index: 1;
        opacity: 0.62;
        filter: saturate(0.68) brightness(0.78);
        transform: translateX(22px) scale(0.8);
    }
    37%, 49% {
        z-index: 3;
        opacity: 1;
        filter: saturate(1) brightness(1);
        transform: translateX(0) scale(1);
    }
    49.5% {
        z-index: 2;
        opacity: 0;
        filter: saturate(0.75) brightness(0.82);
        transform: translateX(0) scale(0.96);
    }
    50%, 100% {
        z-index: 0;
        opacity: 0;
        transform: translateX(22px) scale(0.35);
    }
}

.host-feature-button {
    position: absolute;
    z-index: 2;
    left: 16px;
    right: 16px;
    bottom: 14px;
}

.host-pk-button {
    border-color: rgba(255, 91, 188, 0.3);
    background: linear-gradient(135deg, #B735A4, #7654E8 56%, #367FCB);
    box-shadow: 0 7px 18px rgba(157, 67, 211, 0.2);
}

/* ============ 主播二宫格连线画面 ============ */
.host-link-stage {
    position: absolute;
    top: var(--comic-stage-top);
    right: 0;
    width: 50%;
    height: var(--comic-stage-height);
    z-index: 4;
    overflow: hidden;
    pointer-events: none;
}

.host-link-stage[hidden] {
    display: none !important;
}

.host-link-remote {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    background:
        radial-gradient(circle at 50% 40%, rgba(130, 91, 255, 0.27), transparent 34%),
        radial-gradient(circle at 68% 72%, rgba(255, 72, 175, 0.17), transparent 38%),
        linear-gradient(155deg, rgba(30, 34, 48, 0.98), rgba(11, 12, 19, 0.99));
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
    transition:
        opacity 220ms ease,
        transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.host-interaction-stage.host-link-remote-visible .host-link-remote {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    cursor: pointer;
}

.host-interaction-stage.host-link-remote-visible .host-link-remote:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--brand-2) 76%, #fff);
    outline-offset: -4px;
}

.host-link-remote-muted {
    position: absolute;
    z-index: 2;
    top: 5px;
    right: 5px;
    width: 23px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(36, 36, 43, 0.48);
    pointer-events: none;
}

.host-link-remote-muted[hidden] {
    display: none;
}

.host-link-remote-muted svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.host-link-remote-avatar {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 7px rgba(255, 255, 255, 0.08),
        0 12px 30px rgba(0, 0, 0, 0.3);
    font-size: 43px;
    line-height: 1;
}

.host-link-remote-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 600;
}

.paired-host-remote-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #090b10;
}

.paired-host-interaction .host-link-remote-avatar {
    display: none;
}

.paired-host-interaction .host-link-remote-name {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    margin-top: auto;
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(8, 11, 18, 0.52);
    font-size: 10px;
    line-height: 15px;
}

.paired-host-manage-sheet {
    z-index: 30;
    min-height: 184px;
    padding: 10px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.paired-host-manage-sheet .comic-manage-actions {
    min-height: 88px;
}

.paired-host-follow.is-following .comic-manage-action-icon {
    color: #79d8ff;
    background: rgba(73, 178, 255, 0.13);
}

.paired-host-follow.is-following .comic-manage-action-icon svg {
    stroke: #79d8ff;
}

.host-interaction-stage.host-link-active .host-interaction-local-media,
.video-stage.host-link-active .pad-layer {
    top: var(--comic-stage-top);
    right: auto;
    bottom: auto;
    left: 0;
    width: 50%;
    height: var(--comic-stage-height);
    transition:
        top 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
        width 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
        height 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 260ms ease;
}

.host-interaction-stage.host-link-active.host-link-leaving .host-interaction-local-media,
.video-stage.host-link-active.host-link-leaving .pad-layer {
    top: 0;
    width: 100%;
    height: 100%;
}
