           /* ========== 一起看电影功能样式 ========== */
           #watch-together-modal {
               position: fixed;
               top: 0;
               left: 0;
               width: 100%;
               height: 100%;
               background-color: #000;
               display: none;
               z-index: 9000;
           }

           #watch-together-upload-modal,
           #watch-together-url-modal,
           #watch-together-settings-modal,
           #watch-together-playlist-modal,
           #watch-together-save-video-modal {
               z-index: 10000 !important;
           }

           /* 播放列表样式 */
           .playlist-item {
               display: flex;
               justify-content: space-between;
               align-items: center;
               padding: 15px;
               background-color: #f8f9fa;
               border-radius: 8px;
               border: 1px solid #e0e0e0;
               transition: all 0.2s;
           }

           .playlist-item:hover {
               background-color: #f0f0f0;
               box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
           }

           .playlist-item-info {
               flex: 1;
               min-width: 0;
           }

           .playlist-item-name {
               font-size: 16px;
               font-weight: 600;
               color: #333;
               margin-bottom: 5px;
               overflow: hidden;
               text-overflow: ellipsis;
               white-space: nowrap;
           }

           .playlist-item-time {
               font-size: 12px;
               color: #999;
               margin-bottom: 3px;
           }

           .playlist-item-type {
               font-size: 12px;
               color: #667eea;
               font-weight: 500;
           }

           .playlist-item-actions {
               display: flex;
               gap: 8px;
               flex-shrink: 0;
           }

           .playlist-play-btn,
           .playlist-delete-btn {
               padding: 8px 16px;
               border: none;
               border-radius: 6px;
               font-size: 14px;
               font-weight: 500;
               cursor: pointer;
               transition: all 0.2s;
           }

           .playlist-play-btn {
               background-color: #667eea;
               color: white;
           }

           .playlist-play-btn:hover {
               background-color: #5568d3;
               transform: translateY(-1px);
           }

           .playlist-delete-btn {
               background-color: #f5f5f5;
               color: #ff4757;
           }

           .playlist-delete-btn:hover {
               background-color: #ffecee;
               transform: translateY(-1px);
           }

           #watch-together-header button {
               background: rgba(255, 255, 255, 0.1);
               border: 1px solid rgba(255, 255, 255, 0.2);
               color: white;
               padding: 8px 16px;
               border-radius: 6px;
               cursor: pointer;
               transition: all 0.2s;
           }

           #watch-together-header button:hover {
               background: rgba(255, 255, 255, 0.2);
           }

           /* ========== 修复：观影界面弹窗层级全面优化 ========== */

           /* 消息长按菜单及所有功能弹窗的层级要高于观影界面 */
           #message-actions-modal {
               z-index: 10100 !important;
           }

           /* 所有消息操作相关的弹窗层级都要高于观影界面 */
           #message-editor-modal,
           #ai-response-editor-modal {
               z-index: 10100 !important;
           }

           /* 其他可能在观影时触发的弹窗也提升层级 */
           #photo-viewer-modal {
               z-index: 10100 !important;
           }

           #character-profile-modal {
               z-index: 10100 !important;
           }

           #watch-together-modal.visible {
               display: block;
           }

           #watch-together-container {
               width: 100%;
               height: 100%;
               display: flex;
               flex-direction: column;
               background-color: #000;
           }

           #watch-together-header {
               display: flex;
               justify-content: space-between;
               align-items: center;
               padding: 15px 20px;
               padding-top: calc(15px + env(safe-area-inset-top));
               /* iOS 安全区支持 */
               background-color: #1a1a1a;
               border-bottom: 1px solid #333;
               color: #fff;
           }

           #watch-together-header button {
               background: none;
               border: none;
               color: #fff;
               font-size: 18px;
               cursor: pointer;
               padding: 5px 10px;
           }

           #watch-together-header button:hover {
               background-color: #333;
               border-radius: 4px;
           }

           #watch-together-main {
               flex: 1;
               position: relative;
               display: flex;
               overflow: hidden;
           }

           #watch-together-video-container {
               flex: 1;
               position: relative;
               background-color: #000;
               display: flex;
               align-items: center;
               justify-content: center;
           }

           #watch-together-video {
               width: 100%;
               height: 100%;
               object-fit: contain;
           }

           #watch-together-placeholder {
               position: absolute;
               top: 50%;
               left: 50%;
               transform: translate(-50%, -50%);
               color: #999;
               text-align: center;
               font-size: 16px;
           }

           #watch-together-chat-float {
               position: absolute;
               right: 20px;
               bottom: 20px;
               width: 350px;
               max-height: 500px;
               background-color: rgba(255, 255, 255, 0.95);
               border-radius: 8px;
               display: flex;
               flex-direction: column;
               box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
               overflow: hidden;
           }

           #watch-together-chat-float.minimized {
               max-height: 40px;
           }

           #watch-together-chat-float.minimized #watch-together-chat-messages,
           #watch-together-chat-float.minimized #watch-together-chat-input-area {
               display: none;
           }

           #watch-together-chat-header {
               display: flex;
               justify-content: space-between;
               align-items: center;
               padding: 10px 15px;
               background-color: #f5f5f5;
               border-bottom: 1px solid #e0e0e0;
               cursor: move;
           }

           #watch-together-chat-name {
               font-size: 14px;
               font-weight: 500;
               color: #333;
           }

           #watch-together-chat-toggle {
               background: none;
               border: none;
               font-size: 18px;
               cursor: pointer;
               color: #666;
               padding: 0;
               width: 24px;
               height: 24px;
           }

           #watch-together-chat-messages {
               flex: 1;
               overflow-y: auto;
               padding: 15px;
               background-color: #fff;
               max-height: 350px;
           }

           .watch-together-message {
               margin-bottom: 15px;
               display: flex;
               gap: 10px;
           }

           .watch-together-message.user {
               flex-direction: row-reverse;
           }

           .watch-together-message-avatar {
               width: 36px;
               height: 36px;
               border-radius: 50%;
               object-fit: cover;
               flex-shrink: 0;
           }

           .watch-together-message-content {
               max-width: 70%;
               padding: 8px 12px;
               border-radius: 8px;
               font-size: 14px;
               line-height: 1.4;
               word-wrap: break-word;
           }

           .watch-together-message.user .watch-together-message-content {
               background-color: #07c160;
               color: #fff;
           }

           .watch-together-message.assistant .watch-together-message-content {
               background-color: #f0f0f0;
               color: #333;
           }

           .watch-together-system-message {
               text-align: center;
               color: #999;
               font-size: 12px;
               margin: 10px 0;
           }

           #watch-together-chat-input-area {
               display: flex;
               gap: 8px;
               padding: 10px 15px;
               background-color: #f5f5f5;
               border-top: 1px solid #e0e0e0;
           }

           #watch-together-chat-input {
               flex: 1;
               padding: 8px 10px;
               border: 1px solid #d0d0d0;
               border-radius: 4px;
               resize: none;
               font-size: 14px;
               outline: none;
               max-height: 80px;
           }

           #watch-together-call-api-btn {
               padding: 8px 15px;
               background-color: #576b95;
               border: none;
               border-radius: 4px;
               color: #fff;
               font-size: 14px;
               cursor: pointer;
               white-space: nowrap;
           }

           #watch-together-call-api-btn:hover {
               background-color: #4a5b82;
           }

           #watch-together-call-api-btn:disabled {
               background-color: #ccc;
               cursor: not-allowed;
           }

           #watch-together-chat-send {
               padding: 8px 15px;
               background-color: #07c160;
               border: none;
               border-radius: 4px;
               color: #fff;
               font-size: 14px;
               cursor: pointer;
               white-space: nowrap;
           }

           #watch-together-chat-send:hover {
               background-color: #06ad56;
           }

           #watch-together-chat-send:disabled {
               background-color: #ccc;
               cursor: not-allowed;
           }

