:root {
    --live-bg: #070b14;
    --live-panel: rgba(15, 23, 42, 0.88);
    --live-border: rgba(255, 255, 255, 0.12);
    --live-pink: #ff1744;
    --live-magenta: #e91e63;
    --live-accent: #00d2ff;
    --live-text: #ffffff;
    --live-muted: #94a3b8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--live-bg);
    color: var(--live-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Cairo", "Tajawal", sans-serif;
}

.live-theater-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    background: radial-gradient(circle at top, #111c36 0%, #060911 72%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.live-viewer-container {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 92vh;
    height: min(92dvh, 840px);
    border-radius: 26px;
    overflow: hidden;
    background: #0b1120;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 600px) {
    .live-theater-wrap {
        padding: 0;
    }

    .live-viewer-container {
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        border: none;
    }
}

.live-video-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #0b1120;
}

.live-video-background img,
.live-video-background video,
.live-video-background iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}

.live-viewer-scrim-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 135px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
    z-index: 2;
    pointer-events: none;
}

.live-viewer-scrim-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 310px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 14%, rgba(0, 0, 0, 0.45) 62%, rgba(0, 0, 0, 0));
    z-index: 2;
    pointer-events: none;
}

.live-viewer-overlay {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    pointer-events: none;
}

.live-viewer-header,
.lv-sub-strip,
.lv-switcher-strip,
.lv-bottom-stage {
    pointer-events: auto;
}

.live-viewer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.lv-host-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    max-width: 72%;
}

.lv-host-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 4px 7px;
    backdrop-filter: blur(10px);
}

.lv-host-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: #0f172a;
    flex-shrink: 0;
}

.lv-host-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.lv-host-title-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.lv-host-name {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lv-verified-icon {
    color: #38bdf8;
    font-size: 12px;
}

.lv-likes-subline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    margin-top: 1px;
}

.lv-likes-subline i {
    color: #fb7185;
    font-size: 10px;
}

.lv-header-actions-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.follow-streamer-btn {
    border: none;
    background: #fe2c55;
    color: #ffffff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.follow-streamer-btn.following {
    background: rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
}

.lv-viewer-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.lv-live-dot-pill {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10.5px;
}

.end-stream-btn {
    border: none;
    background: rgba(239, 68, 68, 0.88);
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.lv-top-controls {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.live-badge-viewer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--live-pink), var(--live-magenta));
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(255, 23, 68, 0.45);
}

.live-badge-viewer .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.close-live-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.58);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
}

.lv-switcher-strip {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 6px 0 0;
    scrollbar-width: none;
}

.lv-switcher-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.lv-switcher-pill.active {
    border-color: var(--live-pink);
    background: rgba(255, 23, 68, 0.25);
    color: #fff;
}

.lv-switcher-pill img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.lv-bottom-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lv-middle-row {
    display: flex;
    flex-direction: row;
    direction: rtl;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.live-chat-messages {
    flex: 1;
    min-width: 0;
    max-height: 205px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    direction: rtl;
    gap: 8px;
    padding-inline-end: 4px;
    scrollbar-width: none;
}

.live-chat-messages.has-scroll-fade {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18px, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18px, #000 100%);
}

.live-chat-messages::-webkit-scrollbar {
    display: none;
}

.chat-message-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 7px;
    max-width: 100%;
    width: fit-content;
    margin-left: auto;
    margin-right: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 3px 0;
    border-radius: 0;
    font-size: 14.5px;
    line-height: 1.42;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.92), 0 0 2px rgba(0, 0, 0, 0.78);
}

.chat-message-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 1px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.chat-message-body {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #ffffff;
}

.chat-user {
    color: #7dd3fc;
    font-size: 13.5px;
    font-weight: 700;
    margin-inline-end: 5px;
}

.chat-text {
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 14.5px;
    font-weight: 600;
}

.lv-side-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.lv-rail-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.56);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    text-decoration: none;
    transition: transform 0.16s ease, background 0.16s ease;
}

.lv-rail-btn:hover {
    transform: scale(1.07);
    background: rgba(15, 23, 42, 0.8);
}

.lv-rail-btn.liked i {
    color: #ff2e63;
}

.lv-bag-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--live-pink);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #fff;
}

.lv-rail-count {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-top: 3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.lv-offer-card {
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255, 255, 255, 0.97);
    color: #111827;
    border-radius: 17px;
    padding: 8px 11px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    text-decoration: none;
}

.lv-offer-thumb {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}

.lv-offer-meta {
    flex: 1;
    min-width: 0;
}

.lv-offer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-bottom: 3px;
}

.lv-offer-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lv-offer-pill {
    background: linear-gradient(135deg, var(--live-pink), var(--live-magenta));
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
    flex-shrink: 0;
}

.lv-offer-price-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.lv-offer-price {
    font-size: 14px;
    font-weight: 900;
    color: #111827;
}

.lv-offer-old {
    font-size: 11.5px;
    color: #94a3b8;
    text-decoration: line-through;
}

.lv-offer-action {
    border: none;
    background: #0f172a;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.lv-title-pill {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 9px 12px;
    backdrop-filter: blur(8px);
}

.lv-title-pill h3 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
}

.lv-title-pill p {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.78);
}

.live-viewer-footer {
    display: flex;
    align-items: center;
    gap: 7px;
}

.live-comment-form {
    flex: 1;
    min-width: 0;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 4px 12px;
    backdrop-filter: blur(10px);
}

.live-comment-form input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.live-comment-form input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.live-comment-submit {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lv-footer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.lv-footer-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.56);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: transform 0.16s ease, background 0.16s ease;
}

.lv-footer-btn:hover {
    transform: scale(1.06);
}

.lv-footer-btn.liked i {
    color: #ff2e63;
}

.lv-footer-btn.is-bag {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
}

.gift-store-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.lv-sheet-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    z-index: 999;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.lv-sheet-modal.active {
    display: flex;
}

.lv-sheet-content {
    width: 100%;
    max-width: 440px;
    max-height: 75vh;
    overflow-y: auto;
    background: #111827;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px 22px 0 0;
    padding: 16px;
    color: #fff;
}

.lv-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.lv-sheet-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.lv-sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.lv-bag-item {
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 10px;
}

.lv-bag-item img {
    width: 56px;
    height: 56px;
    border-radius: 11px;
    object-fit: cover;
    flex-shrink: 0;
}

.lv-bag-item-meta {
    flex: 1;
    min-width: 0;
}

.lv-bag-item-meta h4 {
    margin: 0 0 3px;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lv-bag-item-price {
    font-size: 13px;
    font-weight: 800;
    color: #38bdf8;
}

.lv-bag-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.lv-add-cart-btn {
    border: none;
    background: linear-gradient(135deg, var(--live-pink), var(--live-magenta));
    color: #fff;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gift-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    color: #fff;
}

.gift-item.selected {
    border-color: #d946ef;
    background: rgba(217, 70, 239, 0.18);
}

.gift-item .gift-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 5px;
}

.gift-item .gift-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.gift-item .gift-cost {
    display: block;
    font-size: 11px;
    color: #facc15;
    margin-top: 2px;
}

.buy-gift-confirm-btn {
    width: 100%;
    margin-top: 14px;
    border: none;
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #d946ef, #7c3aed);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.lv-empty-card {
    max-width: 420px;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 36px 24px;
    text-align: center;
}

.lv-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.2), rgba(233, 30, 99, 0.35));
    color: #ff4b72;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lv-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--live-pink), var(--live-magenta));
    color: #fff;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.lv-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.live-studio-page {
    min-height: 100vh;
    background: radial-gradient(circle at top right, #172554 0%, #070b14 55%);
    padding: 20px 16px 40px;
}

.studio-shell {
    max-width: 1080px;
    margin: 0 auto;
}

.studio-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.studio-brand-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.studio-mode-tabs {
    display: inline-flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--live-border);
}

.studio-mode-btn {
    border: none;
    background: transparent;
    color: #cbd5e1;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.studio-mode-btn.active {
    background: linear-gradient(135deg, var(--live-pink), var(--live-magenta));
    color: #fff;
}

.studio-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 880px) {
    .studio-grid {
        grid-template-columns: 1fr;
    }
}

.studio-card {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--live-border);
    border-radius: 22px;
    padding: 20px;
    backdrop-filter: blur(12px);
}

.studio-field {
    margin-bottom: 15px;
}

.studio-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.studio-input,
.studio-textarea,
.studio-select {
    width: 100%;
    background: rgba(2, 6, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 10px 13px;
    color: #fff;
    font-size: 13.5px;
    outline: none;
}

.studio-input:focus,
.studio-textarea:focus,
.studio-select:focus {
    border-color: var(--live-magenta);
}

.studio-poster-drop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 15px;
    border: 1.5px dashed rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.studio-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 560px) {
    .studio-row-2 {
        grid-template-columns: 1fr;
    }
}

.studio-bag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 125px;
    overflow-y: auto;
}

.studio-bag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    cursor: pointer;
}

.studio-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0 18px;
}

.studio-toggle-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #e2e8f0;
    cursor: pointer;
}

.studio-submit-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--live-pink), var(--live-magenta));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(233, 30, 99, 0.35);
}

.studio-preview-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.studio-preview-phone {
    position: relative;
    width: 288px;
    height: 500px;
    border-radius: 28px;
    overflow: hidden;
    background: #0b1120;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}

.live-toast-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.lv-tap-heart {
    position: absolute;
    pointer-events: none;
    z-index: 40;
    color: #ff2e63;
    filter: drop-shadow(0 6px 14px rgba(255, 46, 99, 0.55));
    transform: translate(-50%, -50%) scale(0.4);
    animation: lvTapHeartFloat 950ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
}

.lv-tap-heart.is-thumb {
    color: #1877f2;
    filter: drop-shadow(0 6px 14px rgba(24, 119, 242, 0.55));
}

@keyframes lvTapHeartFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
    }
    18% {
        opacity: 1;
        transform: translate(-50%, -62%) scale(1.2) rotate(var(--lv-rot, -8deg));
    }
    45% {
        opacity: 0.95;
        transform: translate(calc(-50% + var(--lv-drift-x, 14px)), -125%) scale(1.02) rotate(var(--lv-rot-end, 8deg));
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--lv-drift-x, 14px) * 1.6), -230%) scale(0.85) rotate(var(--lv-rot-end, 8deg));
    }
}

.lv-comment-block-btn {
    border: none;
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background 0.16s ease, color 0.16s ease;
}

.lv-comment-block-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

.lv-blocked-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lv-blocked-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 800;
    color: #fca5a5;
    margin-bottom: 10px;
}

.lv-blocked-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lv-blocked-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 8px 10px;
}

.lv-blocked-user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
}

.lv-blocked-user img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.lv-unblock-user-btn {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: transparent;
    color: #e2e8f0;
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.lv-blocked-empty {
    font-size: 12.5px;
    color: #94a3b8;
    text-align: center;
    padding: 8px 0;
}

.lv-sub-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 7px;
}

.lv-sub-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.lv-sub-pill.is-connected {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.55);
    color: #a7f3d0;
}

.lv-sub-pill.is-toggle.active {
    background: rgba(254, 44, 85, 0.35);
    border-color: #fe2c55;
}

.lv-stage-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.lv-speakers-col {
    display: none;
}

.lv-guests-grid {
    display: none;
}

.lv-host-frame-label {
    display: none;
}

.live-viewer-container.is-multi-guest .live-viewer-scrim-top,
.live-viewer-container.is-multi-guest .live-viewer-scrim-bottom {
    opacity: 0.35;
}

.live-viewer-container.is-multi-guest .lv-stage-grid {
    inset: 96px 10px 250px;
    z-index: 4;
    display: grid;
    grid-template-columns: 1.22fr 0.9fr;
    gap: 8px;
    align-items: stretch;
}

.live-viewer-container.is-multi-guest .live-video-background {
    position: relative;
    inset: auto;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    border: 1.5px solid rgba(0, 210, 198, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.live-viewer-container.is-multi-guest .lv-host-frame-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #0ea5a4, #0284c7);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(14, 165, 164, 0.4);
}

.live-viewer-container.is-multi-guest .lv-speakers-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(7, 22, 38, 0.84);
    border: 1px solid rgba(0, 210, 198, 0.2);
    border-radius: 14px;
    padding: 8px;
    height: 100%;
    min-height: 0;
}

.lv-speakers-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #5eead4;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.live-viewer-container.is-multi-guest .lv-guests-grid {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    scrollbar-width: none;
}

.live-viewer-container.is-multi-guest .lv-guests-grid::-webkit-scrollbar {
    display: none;
}

.lv-speakers-join-btn {
    border: 1px solid rgba(0, 210, 198, 0.5);
    background: rgba(20, 184, 166, 0.16);
    color: #ffffff;
    border-radius: 10px;
    padding: 7px 8px;
    font-size: 11.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.lv-sp-join-plus {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #14b8a6;
    color: #042f2e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
}

.live-viewer-container.is-multi-guest .lv-inline-products-strip {
    display: none;
}

.lv-guest-slot {
    position: relative;
    border-radius: 9px;
    background: rgba(32, 36, 48, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    cursor: pointer;
    overflow: hidden;
}

.lv-guest-slot.is-occupied {
    background: rgba(45, 50, 66, 0.92);
}

.lv-guest-slot.is-me {
    border-color: #38bdf8;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.5);
}

.lv-guest-slot-plus {
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.lv-guest-slot-label {
    font-size: 10.5px;
    font-weight: 700;
}

.lv-guest-slot-coins {
    position: absolute;
    top: 4px;
    left: 5px;
    font-size: 9.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
}

.lv-guest-slot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.lv-guest-slot-name {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 3px;
}

.lv-guest-slot-name i {
    color: #fca5a5;
    font-size: 9px;
}

.lv-gift-combo-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
    margin-bottom: 4px;
}

.lv-gift-combo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.48));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 4px 12px 4px 14px;
    backdrop-filter: blur(8px);
    animation: lvComboSlideIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lv-gift-combo-pill img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.lv-gift-combo-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.lv-gift-combo-sender {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
}

.lv-gift-combo-sub {
    font-size: 11px;
    color: #cbd5e1;
}

.lv-gift-combo-emoji {
    font-size: 24px;
    line-height: 1;
}

.lv-gift-combo-x {
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
    color: #facc15;
    text-shadow: 0 2px 8px rgba(250, 204, 21, 0.55);
}

@keyframes lvComboSlideIn {
    from { opacity: 0; transform: translateX(24px) scale(0.92); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.lv-emoji-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 6px 10px;
    backdrop-filter: blur(10px);
}

.lv-emoji-pick-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    padding: 2px 4px;
    transition: transform 0.14s ease;
}

.lv-emoji-pick-btn:hover {
    transform: scale(1.25);
}

.lv-emoji-toggle-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lv-rose-btn {
    font-size: 17px;
}

.lv-edge-hearts {
    position: absolute;
    left: 12px;
    bottom: 92px;
    width: 60px;
    height: 220px;
    pointer-events: none;
    z-index: 6;
    overflow: hidden;
}

.lv-gifts-sheet {
    background: #141418;
}

.lv-gift-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.lv-gift-wallet-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.lv-coin-dot {
    color: #fbbf24;
}

.lv-recharge-link {
    color: #fbbf24;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
    margin-inline-start: 4px;
}

.lv-gift-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.lv-gift-tab {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.lv-gift-tab.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.lv-gifts-4col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.lv-gifts-4col .gift-item.selected {
    border-color: #fe2c55;
    background: rgba(254, 44, 85, 0.18);
}

.lv-send-gift-cta {
    background: #fe2c55;
    border-radius: 999px;
}

.lv-guest-sheet {
    background: #ffffff;
    color: #0f172a;
}

.lv-guest-sheet .lv-sheet-header h3 {
    color: #0f172a;
}

.lv-guest-sheet .lv-sheet-close {
    background: #f1f5f9;
    color: #0f172a;
}

.lv-guest-request-card {
    text-align: center;
    padding: 12px 6px 8px;
}

.lv-guest-pair-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.lv-gp-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.lv-gp-dots {
    color: #94a3b8;
    font-size: 18px;
    letter-spacing: 3px;
}

.lv-guest-request-card h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.lv-guest-request-card p {
    margin: 0 0 16px;
    font-size: 13px;
    color: #64748b;
}

.lv-guest-cta-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    background: #fe2c55;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.lv-guest-cta-btn.is-waiting {
    background: #f1f5f9;
    color: #0f172a;
}

.lv-guest-host-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.lv-gh-tab {
    flex: 1;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
}

.lv-gh-tab.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.lv-invite-search input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 10px;
    outline: none;
}

.lv-guest-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
}

.lv-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 12px;
}

.lv-guest-row-user {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.lv-guest-row-user img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.lv-guest-row-actions {
    display: flex;
    gap: 6px;
}

.lv-gh-accept-btn {
    border: none;
    background: #fe2c55;
    color: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.lv-gh-reject-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.lv-controls-sheet {
    background: #1b1d24;
}

.lv-ctrl-reactions {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 6px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.lv-ctrl-react-btn {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.lv-ctrl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.lv-ctrl-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.lv-ctrl-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.lv-ctrl-tile.is-off .lv-ctrl-icon {
    background: rgba(239, 68, 68, 0.24);
    color: #fca5a5;
}

.lv-disconnect-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.lv-inline-products-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.lv-inline-products-strip::-webkit-scrollbar {
    display: none;
}

.lv-inline-prod-card {
    flex: 0 0 132px;
    background: rgba(7, 22, 38, 0.9);
    border: 1px solid rgba(0, 210, 198, 0.26);
    border-radius: 14px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.lv-inline-prod-link {
    text-decoration: none;
    color: #ffffff;
    display: block;
}

.lv-inline-prod-img {
    width: 100%;
    height: 78px;
    border-radius: 10px;
    object-fit: cover;
    background: #0f172a;
    display: block;
}

.lv-inline-prod-title {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lv-inline-prod-prices {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.lv-inline-prod-price {
    font-size: 12.5px;
    font-weight: 900;
    color: #5eead4;
}

.lv-inline-prod-old {
    font-size: 10px;
    color: #94a3b8;
    text-decoration: line-through;
}

.lv-inline-prod-action {
    width: 100%;
    justify-content: center;
}

.lv-inline-add-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #ffffff;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.lv-inline-prod-action .lv-wb-row-stepper {
    width: 100%;
    justify-content: space-between;
    background: rgba(20, 184, 166, 0.22);
    border: 1px solid #14b8a6;
    border-radius: 10px;
    padding: 2px 6px;
}

.lv-inline-prod-action .lv-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #14b8a6;
    color: #042f2e;
    font-weight: 900;
    cursor: pointer;
}

.lv-inline-prod-action .lv-qty-val {
    color: #ffffff;
    font-weight: 800;
    font-size: 12.5px;
}

.lv-gifts-sheet {
    background: linear-gradient(180deg, #0c2337 0%, #071422 100%);
    border-top: 1px solid rgba(0, 210, 198, 0.25);
}

.lv-gift-send-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.lv-gift-qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    font-weight: 800;
}

.lv-gift-qty-stepper button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.lv-gift-send-bar .buy-gift-confirm-btn {
    margin-top: 0;
    flex: 1;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    border-radius: 999px;
    font-size: 14px;
}

.lv-gift-bottom-pills {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.lv-gift-sub-pill {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.live-viewer-footer.is-kb-floating {
    position: fixed;
    left: 10px;
    right: 10px;
    z-index: 950;
    background: rgba(7, 22, 38, 0.95);
    padding: 8px 10px;
    border-radius: 16px;
    border: 1px solid rgba(0, 210, 198, 0.35);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.55);
}

.lv-emoji-bar.is-kb-floating {
    position: fixed;
    left: 10px;
    right: 10px;
    z-index: 950;
}

/* Figma Paused Overlay */
.lv-paused-overlay {
    position: absolute;
    inset: 0;
    z-index: 25;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(12px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.lv-paused-overlay.is-active {
    display: flex;
}

.live-viewer-header {
    position: relative;
    z-index: 30;
}

.lv-pause-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
}

/* Figma Left-side Floating Controls */
.lv-figma-side-controls {
    position: absolute;
    top: 156px;
    inset-inline-start: 14px;
    z-index: 22;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lv-figma-side-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(6px);
    transition: all 0.16s ease;
}

.lv-figma-side-btn.is-active {
    background: #2563eb;
    border-color: #60a5fa;
}

.lv-figma-side-btn.is-off {
    background: rgba(239, 68, 68, 0.82);
    border-color: rgba(254, 202, 202, 0.65);
    color: #ffffff;
}

.lv-figma-side-badge {
    position: absolute;
    bottom: -4px;
    inset-inline-end: -4px;
    background: #2563eb;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 999px;
}

/* Figma V/S Split-Screen Battle */
.lv-vs-split-stage {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #060913;
}

.lv-vs-half {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.lv-vs-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lv-vs-half + .lv-vs-half {
    border-inline-start: 2px solid rgba(255, 255, 255, 0.35);
}

.lv-vs-bar-wrap {
    position: relative;
    z-index: 24;
    margin: 6px 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lv-vs-progress-track {
    width: 100%;
    height: 22px;
    border-radius: 999px;
    background: #2563eb;
    overflow: hidden;
    display: flex;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.lv-vs-progress-host {
    background: linear-gradient(90deg, #dc2626, #ef4444);
    height: 100%;
    transition: width 0.35s ease;
    display: flex;
    align-items: center;
    padding-inline-start: 10px;
    font-size: 11px;
    font-weight: 900;
    color: #ffffff;
}

.lv-vs-progress-opp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-inline-end: 10px;
    font-size: 11px;
    font-weight: 900;
    color: #ffffff;
}

.lv-vs-center-badge {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    border-radius: 10px;
    padding: 2px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    z-index: 3;
}

.lv-vs-center-badge strong {
    font-size: 12px;
    font-style: italic;
    font-weight: 900;
}

.lv-vs-center-badge span {
    font-size: 10px;
    font-weight: 800;
    color: #93c5fd;
    font-variant-numeric: tabular-nums;
}

.lv-vs-winner-badge {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    border: 2px solid #fbbf24;
    color: #fbbf24;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 10;
    text-align: center;
}

.lv-vs-winner-badge.is-visible {
    display: block;
}

/* Figma Voice Room Participants Sheet & Controls */
.live-viewer-container.is-voice-room .lv-speakers-col {
    display: none !important;
}

.live-viewer-container.is-voice-room .lv-stage-grid {
    grid-template-columns: 1fr !important;
}

.lv-voice-sheet {
    position: relative;
    z-index: 26;
    background: #ffffff;
    color: #0f172a;
    border-radius: 22px 22px 0 0;
    padding: 10px 14px 14px;
    margin-top: 8px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
}

html.dark-mode .lv-voice-sheet {
    background: #111827;
    color: #f8fafc;
}

html.dark-mode .lv-voice-cell {
    color: #e2e8f0;
}

.lv-voice-handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5e1;
    margin: 0 auto 10px;
}

.lv-voice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-height: 190px;
    overflow-y: auto;
    padding-bottom: 10px;
}

.lv-voice-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    text-align: center;
}

.lv-voice-avatar-wrap {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.lv-voice-avatar-wrap.is-hand {
    border-color: #2563eb;
}

.lv-voice-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lv-voice-hand-badge {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.lv-voice-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.92);
    border-radius: 999px;
    padding: 8px 12px;
    gap: 6px;
}

.lv-voice-ctrl-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

.lv-voice-ctrl-btn.is-white {
    background: #ffffff;
    color: #0f172a;
}

.lv-voice-ctrl-btn.is-end {
    background: #ef4444;
    color: #ffffff;
}

.lv-voice-ctrl-btn.is-off {
    background: rgba(239, 68, 68, 0.85) !important;
    color: #ffffff !important;
}

/* Responsive Tablet & Desktop Support for Viewer, Battle & Voice */
@media (min-width: 768px) {
    .live-viewer-container {
        max-width: 720px;
        margin: 14px auto;
        border-radius: 26px;
    }

    .lv-voice-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
        max-height: 220px;
    }

    .lv-voice-controls-bar {
        max-width: 460px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .live-viewer-container {
        max-width: 960px;
    }

    .lv-voice-grid {
        gap: 22px;
    }
}

/* TikTok Reference & Requested Overhaul Styles */
[dir="rtl"] .live-viewer-container.is-multi-guest .lv-stage-grid {
    grid-template-columns: 0.92fr 1.2fr;
}

[dir="rtl"] .live-viewer-container.is-multi-guest .lv-speakers-col {
    order: 1;
}

[dir="rtl"] .live-viewer-container.is-multi-guest .live-video-background {
    order: 2;
}

#hostCameraVideo,
#liveClipVideo {
    object-fit: cover;
    object-position: center 18%;
    transform: none !important;
}

.lv-guests-grid[data-guest-count="1"],
.lv-guests-grid[data-guest-count="2"] {
    grid-template-columns: 1fr !important;
}

.lv-guests-grid[data-guest-count="5"] .lv-guest-slot,
.lv-guests-grid[data-guest-count="6"] .lv-guest-slot,
.lv-guests-grid[data-guest-count="7"] .lv-guest-slot,
.lv-guests-grid[data-guest-count="8"] .lv-guest-slot {
    min-height: 52px;
    padding: 4px;
}

.lv-host-inline-badge {
    background: linear-gradient(135deg, #0ea5a4, #0284c7);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
    line-height: 1.4;
    flex-shrink: 0;
}

.lv-sub-pill.is-heart-beat {
    background: rgba(254, 44, 85, 0.25);
    border-color: rgba(254, 44, 85, 0.55);
    color: #fe2c55;
    padding: 4px 10px;
}

.lv-top-heart-pulse.is-beating,
.lv-sub-pill.is-heart-beat.is-beating {
    animation: lvHeartBeatPop 0.42s ease;
}

@keyframes lvHeartBeatPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.42); }
    100% { transform: scale(1); }
}

.lv-sub-pill.is-marquee-pill {
    overflow: hidden;
    max-width: 175px;
    position: relative;
}

.lv-marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: lvOfferMarquee 9s linear infinite;
}

@keyframes lvOfferMarquee {
    0% { transform: translateX(0); }
    50% { transform: translateX(-25%); }
    100% { transform: translateX(0); }
}

.lv-tap-heart.lv-curved-heart {
    animation: lvCurvedHeartPath 1.15s cubic-bezier(0.22, 0.72, 0.35, 1) forwards;
}

@keyframes lvCurvedHeartPath {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -65%) scale(1.15) rotate(var(--lv-rot, -10deg));
    }
    55% {
        opacity: 0.92;
        transform: translate(calc(-50% + var(--lv-curve-mid, 22px)), calc(var(--lv-target-y, -220px) * 0.52)) scale(0.85) rotate(var(--lv-rot-end, 10deg));
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--lv-drift-x, 0px)), var(--lv-target-y, -240px)) scale(0.32) rotate(var(--lv-rot-end, 10deg));
    }
}

.live-viewer-footer.is-comment-typing .lv-footer-actions {
    display: none !important;
}

.live-viewer-footer.is-comment-typing .live-comment-form {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
}

.lv-guest-sheet.is-half-sheet {
    min-height: 52vh;
    max-height: 60vh;
}

.lv-ctrl-tile.is-off .lv-ctrl-icon {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* Viewers Ranking Sheet (ترتيبات المشاهدين) */
.lv-rankings-trigger {
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lv-rankings-sheet {
    background: #ffffff !important;
    color: #0f172a !important;
    min-height: 58vh;
    max-height: 74vh;
    display: flex;
    flex-direction: column;
}

.lv-rank-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 0 10px;
}

.lv-rank-tab {
    border: none;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 800;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
}

.lv-rank-tab.active {
    background: #0f172a;
    color: #ffffff;
}

.lv-rank-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.lv-rank-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 2px 12px;
}

.lv-rank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
}

.lv-rank-num {
    width: 22px;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    color: #64748b;
}

.lv-rank-num.is-top {
    color: #e11d48;
}

.lv-rank-row img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.lv-rank-meta {
    flex: 1;
    min-width: 0;
}

.lv-rank-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
}

.lv-rank-badges {
    display: flex;
    gap: 5px;
    margin-top: 2px;
}

.lv-rank-pill {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
}

.lv-rank-pill.is-num {
    background: #ffe4e6;
    color: #e11d48;
}

.lv-rank-pill.is-mod {
    background: #e2e8f0;
    color: #334155;
}

.lv-rank-pts {
    font-size: 13.5px;
    font-weight: 800;
    color: #475569;
}

.lv-rank-sticky-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lv-rank-my-info {
    display: flex;
    align-items: center;
    gap: 9px;
}

.lv-rank-my-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.lv-rank-send-gift-btn {
    border: none;
    border-radius: 999px;
    background: #fe2c55;
    color: #ffffff;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
}

.lv-guardian-cta-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    background: #f5d076;
    color: #1e293b;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}
