/* 开发中提示 */
.development-notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    margin: 15px auto 0;
    border-radius: 8px;
    text-align: center;
    max-width: 300px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ffeeba;
    display: flex;
    align-items: center;
    justify-content: center;
}

.development-notice i {
    margin-right: 8px;
    font-size: 18px;
}

/* 视频标签 - 现代化设计 */
.video-tabs {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 5px;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* 滑动指示器 */
.video-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 3px;
    width: calc(100% / 3); /* 三个标签，每个占1/3宽度 */
    background: linear-gradient(90deg, #5e72e4 0%, #825ee4 100%);
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: 0 0 8px rgba(94, 114, 228, 0.5);
    border-radius: 3px;
}

/* 根据活动标签设置滑动指示器位置 */
.video-tabs[data-active="shortVideo"]::after {
    transform: translateX(0);
}

.video-tabs[data-active="shortPlay"]::after {
    transform: translateX(100%);
}

.video-tabs[data-active="movie"]::after {
    transform: translateX(200%);
}

.video-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    flex: 1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 0 5px;
}

.video-tab i {
    font-size: 22px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.video-tab span {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.video-tab.active {
    background-color: transparent;
}

.video-tab.active i,
.video-tab.active span {
    color: #5e72e4;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(94, 114, 228, 0.5);
}

.video-tab:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}

.video-tab:hover:not(.active) i,
.video-tab:hover:not(.active) span {
    color: #fff;
}

/* 波纹效果 */
.ripple {
    position: absolute;
    background: rgba(94, 114, 228, 0.2);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 视频列表 */
.video-list {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
    padding: 0 15px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.video-list.active {
    display: grid;
}

/* 加载指示器 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #4a6cf7;
}

.loading-indicator i {
    font-size: 30px;
}

.loading-indicator span {
    font-size: 14px;
    font-weight: 500;
}

/* 错误消息 */
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background-color: #fff3cd;
    border-radius: 10px;
    color: #856404;
    margin: 20px auto;
    max-width: 300px;
    text-align: center;
}

.error-message i {
    font-size: 30px;
}

@media (max-width: 768px) {
    .video-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .video-tabs {
        gap: 10px;
    }
    
    .video-tab {
        padding: 8px 12px;
    }
    
    .video-tab i {
        font-size: 20px;
    }
    
    .video-tab span {
        font-size: 12px;
    }
}

.video-item {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.video-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background-color: #f0f0f0;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-item:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    color: white;
    font-size: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 8px; /* 微调播放图标位置 */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}



.video-info {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
}

.video-info h3 {
    margin: 0;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.video-info p {
    margin: 3px 0 0 0;
    font-size: 12px;
    color: #888;
}

/* 视频播放器 */
.video-player-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; /* 修改为0，使视频播放器完全覆盖导航栏 */
    background-color: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: #5e72e4; /* 改为更明显的蓝色 */
    font-size: 24px; /* 增大字体大小 */
    width: 46px; /* 增大按钮宽度 */
    height: 46px; /* 增大按钮高度 */
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.video-title {
    position: absolute;
    top: 15px;
    left: 70px;
    right: 15px;
    font-size: 22px; /* 增大字体大小 */
    margin: 0;
    color: #ffcc00; /* 改为更明显的黄色 */
    z-index: 1001;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: none;
    padding: 8px 15px;
    transition: opacity 0.5s ease;
}

/* 控制栏隐藏状态 */
.video-player-container.controls-hidden .back-btn,
.video-player-container.controls-hidden .video-title {
    opacity: 0;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
}

/* 短剧目录和视频列表样式 */
.short-play-dir .play-overlay i {
    font-size: 40px;
    background-color: rgba(94, 114, 228, 0.7);
}

.back-to-dirs {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    grid-column: 1 / -1; /* 跨越所有列 */
}

.back-to-dirs:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.back-to-dirs i {
    margin-right: 10px;
    color: #5e72e4;
}

.back-to-dirs span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.short-play-title {
    grid-column: 1 / -1; /* 跨越所有列 */
    margin-bottom: 15px;
}

.short-play-title h2 {
    font-size: 18px;
    color: #fff;
    margin: 0;
    padding: 0 5px;
    border-left: 4px solid #5e72e4;
}

/* 短剧视频网格容器 */
.short-play-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    grid-column: 1 / -1; /* 跨越所有列 */
}

/* 短剧视频项样式 */
.short-play-item {
    background-color: #2d3748;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #3a4a63;
}

.short-play-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: #3a4a63;
}

.short-play-item-title {
    text-align: center;
}

.short-play-item-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    /* 移除了对short-play-grid的覆盖 */
}

@media (max-width: 768px) {
    .video-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* 移除了对short-play-grid的覆盖 */
    
    .short-play-title h2 {
        font-size: 16px;
    }
    
    .back-to-dirs {
        padding: 8px 12px;
    }
    
    .back-to-dirs span {
        font-size: 12px;
    }
    
    .short-play-item {
        padding: 10px;
        min-height: 60px;
    }
    
    .short-play-item-title h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    /* 移除了对short-play-grid的覆盖 */
    
    .short-play-item {
        padding: 8px;
        min-height: 50px;
    }
}

/* 下集按钮样式 */
.next-episode-btn {
    position: absolute;
    bottom: 70px;
    right: 20px;
    background-color: rgba(94, 114, 228, 0.7);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 16px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


.next-episode-btn:hover {
    background-color: rgba(94, 114, 228, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 控制栏隐藏状态 */
.video-player-container.controls-hidden .next-episode-btn {
    opacity: 0;
}
