/* 直播中心样式 - 移植自 video-js-8.21.1/live-platforms.html */

/* 基础样式重置 */
.live-center-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.live-center-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    position: relative;
    padding: 0 20px;
}

/* 导航栏（包含标题和分割线） */
.live-navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 0 12px 0;
    background: transparent;
    position: relative;
    margin-bottom: 12px;
}

.live-navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 66.67%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(33, 54, 146, 0.2) 5%, 
        rgba(118, 75, 162, 0.6) 20%, 
        rgba(102, 126, 234, 0.8) 50%, 
        rgba(118, 75, 162, 0.6) 80%, 
        rgba(102, 126, 234, 0.2) 95%, 
        transparent 100%
    );
    box-shadow: 
        0 0 8px rgba(102, 126, 234, 0.4),
        0 0 15px rgba(118, 75, 162, 0.2);
}

.live-logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    left: 30px;
    top: 40%;
    transform: translateY(-50%);
    z-index: 2;
}

/* 主内容区域 */
.live-main-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 25px 0;
}

/* 平台卡片网格 */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 25px;
}

/* 平台卡片 - 悬浮下拉风格 - 性能优化 */
.platform-card {
    position: relative;
    height: 120px;
    border-radius: 20px;
    cursor: pointer;
    /* 优化：缩短transition时间，只针对transform和box-shadow */
    transition: transform 0.15s ease, box-shadow 0.15s ease, z-index 0s;
    overflow: visible; /* 改为 visible 让下拉菜单能显示 */
    z-index: 10;
    
    /* 简化边框和阴影 */
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    
    /* 性能优化：开启硬件加速 */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.platform-card:hover {
    z-index: 200;
    /* 轻微缩放效果 */
    transform: translateZ(0) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* 不同平台的背景图片 - 多层渐变遮罩效果 */
.platform-card.douyin {
    box-shadow: 
        0 8px 32px rgba(255,107,107,0.3),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.platform-card.douyin .platform-content {
    background-image: 
        linear-gradient(90deg, rgba(255,107,107,0.6) 0%, transparent 70%),
        linear-gradient(135deg, rgba(238,90,36,0.3) 0%, rgba(255,107,107,0.2) 100%),
        radial-gradient(circle at top right, rgba(253,121,168,0.25), transparent 60%),
        var(--platform-bg-image, url('https://8.haory.top/j/j26/yunjian/官网/01.png'));
    background-size: cover;
    background-position: center 38%;
}

.platform-card.kuaishou {
    box-shadow: 
        0 8px 32px rgba(255,165,2,0.3),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.platform-card.kuaishou .platform-content {
    background-image: 
        linear-gradient(90deg, rgba(255,165,2,0.6) 0%, transparent 70%),
        linear-gradient(135deg, rgba(255,99,72,0.3) 0%, rgba(255,165,2,0.2) 100%),
        radial-gradient(circle at top right, rgba(255,177,66,0.25), transparent 60%),
        var(--platform-bg-image, url('https://8.haory.top/j/j26/yunjian/官网/02.png'));
    background-size: cover;
    background-position: center 38%;
}

.platform-card.weixin {
    box-shadow: 
        0 8px 32px rgba(0,184,148,0.3),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.platform-card.weixin .platform-content {
    background-image: 
        linear-gradient(90deg, rgba(0,184,148,0.6) 0%, transparent 70%),
        linear-gradient(135deg, rgba(0,206,201,0.3) 0%, rgba(0,184,148,0.2) 100%),
        radial-gradient(circle at top right, rgba(85,239,196,0.25), transparent 60%),
        var(--platform-bg-image, url('https://8.haory.top/j/j26/yunjian/官网/03.png'));
    background-size: cover;
    background-position: center 38%;
}

.platform-card.jiujiuliu {
    box-shadow: 
        0 8px 32px rgba(108,92,231,0.3),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.platform-card.jiujiuliu .platform-content {
    background-image: 
        linear-gradient(90deg, rgba(108,92,231,0.6) 0%, transparent 70%),
        linear-gradient(135deg, rgba(162,155,254,0.3) 0%, rgba(108,92,231,0.2) 100%),
        radial-gradient(circle at top right, rgba(116,185,255,0.25), transparent 60%),
        var(--platform-bg-image, url('https://8.haory.top/j/j26/yunjian/官网/04.png'));
    background-size: cover;
    background-position: center 38%;
}

/* 平台卡片内容 - 现代简约 */
.platform-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
}

.platform-header {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.platform-icon {
    display: none; /* 隐藏emoji图标 */
}

.platform-info {
    width: 100%;
    text-align: left;
}

.platform-info h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.platform-info p {
    display: none;
}

.platform-stats {
    display: none;
}

/* 悬停时的文字效果 */
.platform-card:hover .platform-info h3 {
    text-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 255, 255, 0.4);
}

/* 下拉菜单 - 绝对定位浮动显示 - 极致性能优化 */
.dropdown-menu {
    position: absolute;
    top: 128px; /* 卡片高度120px + 8px间距 */
    left: 0;
    width: 100%;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    /* 极致性能优化：只针对opacity，最快的动画属性 */
    transition: opacity 0.15s ease, visibility 0s 0.15s;
    padding: 0;
    border-radius: 20px;
    z-index: 2;
    pointer-events: none;
    /* 轻微的默认背景 */
    background: rgba(20, 15, 30, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* 硬件加速 - GPU渲染 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity;
    /* 强制GPU加速 */
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* 显示状态 - 通过 JS 添加这个 class - 优化移动端性能 */
.dropdown-menu.show {
    max-height: 500px !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 20px !important;
    pointer-events: auto !important;
    
    /* 移动端优化：移除模糊效果和复杂动画，提升性能 */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    
    /* 开启硬件加速，不使用额外动画 */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 移除悬停展开，改为点击控制 */
/* .platform-card:hover .dropdown-menu {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    padding: 16px 0;
    pointer-events: auto;
} */


/* 不同平台的下拉菜单主题色 - 液态玻璃风格 */
.platform-card.douyin .dropdown-menu.show {
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.25) 0%,
        rgba(238, 90, 36, 0.18) 50%,
        rgba(253, 121, 168, 0.15) 100%) !important;
    border: 1.5px solid rgba(255, 107, 107, 0.4) !important;
    box-shadow: 
        0 8px 32px rgba(255, 107, 107, 0.35),
        0 16px 64px rgba(255, 71, 87, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(255, 107, 107, 0.2),
        0 0 0 1px rgba(255, 107, 107, 0.1) inset !important;
}

.platform-card.kuaishou .dropdown-menu.show {
    background: linear-gradient(135deg, 
        rgba(255, 165, 2, 0.25) 0%,
        rgba(255, 99, 72, 0.18) 50%,
        rgba(255, 177, 66, 0.15) 100%) !important;
    border: 1.5px solid rgba(255, 165, 2, 0.4) !important;
    box-shadow: 
        0 8px 32px rgba(255, 165, 2, 0.35),
        0 16px 64px rgba(255, 140, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(255, 165, 2, 0.2),
        0 0 0 1px rgba(255, 165, 2, 0.1) inset !important;
}

.platform-card.weixin .dropdown-menu.show {
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.25) 0%,
        rgba(0, 206, 201, 0.18) 50%,
        rgba(85, 239, 196, 0.15) 100%) !important;
    border: 1.5px solid rgba(0, 184, 148, 0.4) !important;
    box-shadow: 
        0 8px 32px rgba(0, 184, 148, 0.35),
        0 16px 64px rgba(0, 200, 170, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(0, 184, 148, 0.2),
        0 0 0 1px rgba(0, 184, 148, 0.1) inset !important;
}

.platform-card.jiujiuliu .dropdown-menu.show {
    background: linear-gradient(135deg, 
        rgba(108, 92, 231, 0.25) 0%,
        rgba(162, 155, 254, 0.18) 50%,
        rgba(116, 185, 255, 0.15) 100%) !important;
    border: 1.5px solid rgba(108, 92, 231, 0.4) !important;
    box-shadow: 
        0 8px 32px rgba(108, 92, 231, 0.35),
        0 16px 64px rgba(130, 110, 240, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(108, 92, 231, 0.2),
        0 0 0 1px rgba(108, 92, 231, 0.1) inset !important;
}

.dropdown-header {
    display: none; /* 隐藏标题头部 */
}

.dropdown-title {
    display: none;
}

.live-count {
    display: none;
}

/* 房间列表 */
.room-list {
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
}

/* 自定义滚动条 - 液态玻璃风格 */
.room-list::-webkit-scrollbar {
    width: 8px;
}

.room-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.room-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.15) 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.room-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.25) 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 不同平台的滚动条颜色 */
.platform-card.douyin .room-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.5) 0%, rgba(238, 90, 36, 0.3) 100%);
}

.platform-card.kuaishou .room-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 165, 2, 0.5) 0%, rgba(255, 99, 72, 0.3) 100%);
}

.platform-card.weixin .room-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 184, 148, 0.5) 0%, rgba(0, 206, 201, 0.3) 100%);
}

.platform-card.jiujiuliu .room-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.5) 0%, rgba(162, 155, 254, 0.3) 100%);
}

.room-item {
    padding: 16px 20px;
    margin: 8px 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    /* 移动端性能优化：移除blur效果 */
    border-radius: 14px;
    cursor: pointer;
    /* 极致性能优化：缩短时间到0.15s，使用ease-out缓动 */
    transition: transform 0.15s ease-out, background 0.15s ease-out, border-color 0.15s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    /* 简化阴影效果 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    align-items: center;
    position: relative;
    overflow: hidden;
    /* 强制硬件加速 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

/* 房间项光泽效果 */
.room-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.room-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.2) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* 悬停时显示左侧高亮条 */
.room-item:hover::before {
    opacity: 1;
}

.room-item:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.35);
    /* 简化变换，减少卡顿 */
    transform: translateX(8px) translateZ(0);
    /* 简化阴影 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 悬停时的光泽动画 */
.room-item:hover::after {
    left: 100%;
}

.room-item:last-child {
    margin-bottom: 4px;
}

.room-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
    border-left: 3px solid #667eea;
    padding-left: 21px;
}

.room-info {
    flex: 1;
}

.room-name {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

.room-item:hover .room-name {
    color: rgba(255, 255, 255, 1);
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 8px rgba(255, 255, 255, 0.2);
}

.room-category {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.room-viewers {
    display: none;
}


/* 视频播放器区域 */
.video-section {
    width: 100%;
    max-width: 1200px;
    margin-top: 0px;
    position: relative;
    z-index: 10;
}

/* 视频容器 */
.video-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    backdrop-filter: blur(20px);
    aspect-ratio: 16 / 9; /* 固定16:9区域，避免宽高不一致导致偏移 */
}

/* Video.js播放器 - 严格按照原始文件 live-platforms.html */
.video-js {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    z-index: 1;
}

/* 强制video元素完整显示 */
.video-js video {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* 强制vjs-tech层完整显示 */
.video-js .vjs-tech {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* 重置可能影响布局的样式 */
.video-section {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* 当前直播间信息显示 */
.current-room-info {
    margin-top: 0;
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.95), rgba(25, 25, 35, 0.9));
    border-radius: 0 0 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.room-status-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    min-height: 80px;
}

.room-status-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    animation: pulse 2s infinite;
}

.live-dot.active {
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.6);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.live-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-room-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.current-room-category {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.room-status-right {
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: 240px;
}

.viewer-count,
.quality-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.viewer-icon,
.quality-icon {
    font-size: 1.3rem;
    opacity: 0.9;
}

.viewer-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.quality-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.viewer-label,
.quality-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .live-center-wrapper {
        padding: 20px 15px;
    }

    .live-center-title h2 {
        font-size: 2rem;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 30px;
    }

    .platform-card {
        height: 90px;
    }

    .platform-content {
        padding: 0 20px;
    }

    .platform-icon {
        font-size: 2.5rem;
    }

    .platform-info h3 {
        font-size: 1.1rem;
    }

    .room-item {
        padding: 12px 16px;
        margin: 2px 6px;
    }

    .room-status-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .room-status-left {
        width: 100%;
    }

    .room-status-right {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .current-room-name {
        font-size: 1.2rem;
    }

    .live-indicator {
        justify-content: center;
    }

    /* 修复视频播放器在移动端的显示问题 */
    .video-section {
        margin-top: 0;
        padding: 0;
    }

    .video-container {
        border-radius: 12px 12px 0 0;
    }
    
    .video-js,
    .video-js.vjs-fluid {
        width: 100% !important;
        height: auto !important;
    }
    
    .video-js video,
    .video-js .vjs-tech {
        width: 100% !important;
        height: auto !important;
        max-height: 100% !important;
        object-fit: contain !important;
        position: relative !important;
    }
}

@media (max-width: 480px) {
    .live-center-title h2 {
        font-size: 1.5rem;
    }

    .live-center-title p {
        font-size: 0.9rem;
    }

    .platform-card {
        height: 80px;
    }

    .platform-icon {
        font-size: 2rem;
    }

    .platform-info h3 {
        font-size: 1rem;
    }

    /* 小屏幕视频播放器优化 */
    .video-container {
        border-radius: 12px 12px 0 0;
    }
    
    .video-js,
    .video-js.vjs-fluid {
        width: 100% !important;
        height: auto !important;
    }
    
    .video-js video,
    .video-js .vjs-tech {
        width: 100% !important;
        height: auto !important;
        max-height: 100% !important;
        object-fit: contain !important;
        position: relative !important;
    }

    .current-room-info {
        padding: 12px 15px;
    }

    .viewer-number,
    .quality-text {
        font-size: 1.2rem;
    }
}

/* 房间项依次出现动画 */
.dropdown-menu.show .room-item {
    animation: roomItemFadeIn 0.4s ease forwards;
    opacity: 0;
}

.dropdown-menu.show .room-item:nth-child(1) { animation-delay: 0.05s; }
.dropdown-menu.show .room-item:nth-child(2) { animation-delay: 0.1s; }
.dropdown-menu.show .room-item:nth-child(3) { animation-delay: 0.15s; }
.dropdown-menu.show .room-item:nth-child(4) { animation-delay: 0.2s; }
.dropdown-menu.show .room-item:nth-child(5) { animation-delay: 0.25s; }
.dropdown-menu.show .room-item:nth-child(6) { animation-delay: 0.3s; }

@keyframes roomItemFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- 视频区域强制占满，禁用fluid内边距 --- */
.video-container {
    position: relative !important;
    aspect-ratio: 16 / 9 !important;
}

.video-js,
.video-js.vjs-fluid,
.video-js.vjs-16-9,
.video-js.vjs-4-3 {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding-top: 0 !important;
}

.video-js video,
.video-js .vjs-tech {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    height: 100% !important;
    max-width: none !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}
