
        .sound-option-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 20px 30px;
            border-radius: 12px;
            z-index: 1000;
            text-align: center;
        }

        .buttons-container {
            display: flex;
            gap: 15px;
            margin-top: 15px;
            justify-content: center;
        }

        .option-button {
            background: transparent;
            border: 2px solid white;
            color: white;
            padding: 8px 20px;
            border-radius: 6px;
            cursor: pointer;
            min-width: 100px;
            transition: all 0.3s;
        }

        .option-button.unmute {
            background: #2196F3;
            border-color: #2196F3;
        }

        .option-button:hover {
            transform: scale(1.05);
        }

        .option-button.unmute:hover {
            background: #1976D2;
        }

        .option-button.keep-mute:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background-color: #000;
            color: white;
        }

        .video-container {
            position: relative;
            height: 100vh;
            overflow: hidden;
        }

        video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Floating UI elements */
        .floating-ui {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            pointer-events: none;  /* 允许鼠标事件穿透到下层元素 */
        }

        @keyframes scrollText {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-100%);
            }
        }

        /* 为需要交互的元素重新启用鼠标事件 */
        .top-bar, .chat-box, .bottom-bar {
            pointer-events: auto;  /* 重新启用这些元素的鼠标事件 */
        }

        /* Top Bar */
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 10px;
            background: rgba(0, 0, 0, 0.2);
            position: relative;
            min-height: 50px;
        }

        .user-info {
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }

        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 10px;
        }

        /* .username {
            color: #2265e3;
            font-size: 16px;
            font-weight: bold;
        } */

        .viewers {
            font-size: 14px;
            display: flex;
            align-items: center;
            padding-left: 5px;
        }

        /* Bottom Bar */
        .bottom-bar {
            display: flex;
            justify-content: space-between;
            padding: 10px;
            background: rgba(0, 0, 0, 0.5);
        }

        .like-share {
            display: flex;
            gap: 15px;
        }

        .like-button,
        .share-button,
        .gift-button {
            background: transparent;
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
        }

        .send-gift {
            display: flex;
            align-items: center;
        }

        /* Chat Box */
        .chat-box {
            position: absolute;
            bottom: 30px;
            left: 10px;
            right: 10px;
            display: flex;
            flex-direction: column;
            max-height: 250px;
        }

        .chat-messages {
            /* background: rgba(0, 0, 0, 0.4); */
            padding: 10px;
            border-radius: 10px;
            overflow-y: auto;
            max-height: 150px;
            font-size: 14px;
            margin-bottom: 10px;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
        }

        .chat-messages::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }

        .message-wrapper {
            display: flex;
            align-items: center;
            margin-bottom: 5px;
            padding: 4px 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        .level-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 20px;
            height: 20px;
            background: linear-gradient(45deg, #e1c3c3, #ad2222);
            color: white;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            margin-right: 8px;
            padding: 0 4px;
        }

        .username {
            color: #2265e3;
            font-weight: bold;
            margin-right: 5px;
        }

        .message-text {
            color: #ffffff;
        }

        .chat-input-container {
            display: flex;
            align-items: center;
        }

        .chat-input {
            flex: 1;
            padding: 10px;
            border-radius: 5px;
            border: none;
            margin-right: 10px;
            font-size: 14px;
        }
        .chat-input:focus {
            outline: none; 
            padding: 9px 10px;
            border: 1px solid #ece3e3;
        }
        .send-button {
            background: #ff4d4f;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
        }
        input#messageInput{
            background-color: rgba(0,0,0,0.4);
            color: #fff;
            border: 1px solid rgb(129 129 129 / 30%);
        }
        input#messageInput::placeholder {
            color: rgb(216, 215, 215);
            font-size: 14px;
        }
        /* Responsive for mobile */
        @media (max-width: 600px) {
            .username {
                font-size: 14px;
            }

            .avatar {
                width: 35px;
                height: 35px;
            }

            .chat-messages {
                max-height: 250px;
            }
        }

    /* 恢复聊天按钮样式 */
    .restore-chat-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1000;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .restore-chat-btn:hover {
        background: rgba(0, 0, 0, 0.8);
        transform: scale(1.1);
    }

    .restore-chat-btn svg {
        width: 24px;
        height: 24px;
        fill: white;
    }

    .restore-chat-btn.hidden {
        display: none;
    }
    
#roomStatus {position:absolute;top:44%;width:100%;text-align:center;color:#ddd;pointer-events:none}
.chat-line {width:fit-content;background:rgba(106,92,69,.45);border-radius:9px;padding:7px 12px;margin:6px 0;overflow-wrap:anywhere}
.chat-line.pending {opacity:.65}
.chat-line.failed {color:#ffb1a9}
.welcome-message {pointer-events:none;position:absolute;right:0;top:24%;padding:8px;background:#0008;border-radius:12px;animation:welcome 5s linear forwards}
@keyframes welcome {from {transform:translateX(100%)} to {transform:translateX(-100vw)}}

.sound-option-overlay {display:none}
