/* Swiper主容器 */
.swiper{
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Swiper包装器 */
.swiper-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
}

/* 滑动项样式 */
.swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* 顶部视频区域 */
.item-top {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 触摸遮罩层样式 */


/* 视频容器 */
.item-video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 视频元素样式 */
/* 视频元素样式 */
.item-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.4); /* 放大视频 */
    display: block;
}

/* 背景图样式 */
.item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
    z-index: 0;
}

/* 底部信息区域 */
.item-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    z-index: 2;
}

/* 描述内容区域 */
.item-desc {
    width: calc(100% - 120px);
    margin: 0 auto;
    
}

/* 视频类型标签 */
.video-type {
        background-color: #ff0000;
        color: #ffffff;
        padding: 4px 8px;
        border-radius: 4px;
        display: inline-block;
    margin-bottom: 10px;
}

/* 视频标题 */
.video-title {
    font-size:32px;
    font-style: normal;
    color:#fff;
    margin-bottom: 15px;
}

/* 视频摘要 */

.video-info{
    width:100%;
    line-height: 22px;
    max-width: auto;
    font-size: 16px;
    margin-bottom: 20px;
}
/* 按钮容器 */
.item-btnwarp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* 左侧按钮组 */
.left.flex {
    display: flex;
    gap: 15px;
}

/* 右侧按钮组 */
.right {
    display: flex;
    gap: 15px;
}

/* 所有按钮的基础样式 */
.video-play-btn,
.video-detail-btn,
.video-mark-btn,
.video-reply-btn,
.video-mutue-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: rgba(128, 128, 128, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 99;
}

/* 按钮悬停效果 */
.video-detail-btn:hover,
.video-mark-btn:hover,
.video-reply-btn:hover,
.video-mutue-btn:hover {
    background-color: rgba(128, 128, 128, 0.8);
}
.video-mark-btn .text-danger {
    color: #E50916 !important;
}
/* 影片详情按钮样式 */
.video-detail-btn{width:auto;}
/* 播放按钮样式 */
.video-play-btn {
    width:auto;
    color:#fff;
    background-color:#E50916 ;
}
/* 修改hover效果 */
.video-play-btn:hover { 
    color: #fff !important;
    background-color: #ff1f1f; /* 更亮的红色 */
    opacity: 0.9; /* 添加透明效果 */
    transform: scale(1.02); /* 添加轻微放大效果 */
}
.video-play-btn i {
    font-size: 14px;
}
/* related */
.related-grid {
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
}



/* 轮播容器样式 */
.related-swiper {
    width: 100%;
    height: auto !important;
    overflow: visible;
}

/* 轮播项容器样式 */
.related-swiper .swiper-wrapper {
    display: flex;
    height: auto !important;
}

/* 轮播项样式 */
.related-swiper .swiper-slide {
    width: calc(33.333% - 7px) !important; /* 确保一行3个 */
    height: auto !important;
    flex-shrink: 0;
}

/* 轮播项内容容器 */
.related-item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 轮播项链接 */
.related-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* 海报容器样式 */
.related-poster {
    width: 100%;
    aspect-ratio: 3/4; /* 固定宽高比 */
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

/* 海报图片样式 */
.related-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 鼠标悬停效果 */
.related-poster:hover img {
    transform: scale(1.1);
}

/* 标题样式 */
.related-box-title{ font-size: 16px;
    font-weight: bold;
    margin: 8px 0 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    height: 20px; /* 固定高度 */
    line-height: 20px;}



.related-title{
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    text-align: center;
    height: 20px; /* 固定高度 */
    line-height: 20px;
}

/* 演员信息样式 */
.related-actor {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6); /* 更改颜色使其更明显 */
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 18px; /* 固定高度 */
    line-height: 18px;
    width: 100%;
    text-align: center;
}

.related-actor a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6); /* 更改链接颜色 */
    margin-right: 5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-actor a:hover {
    color: #E50916 !important; /* 鼠标悬停时的颜色 */
}

/* 导航按钮样式 */
.related-swiper .swiper-button-next,
.related-swiper .swiper-button-prev {
    color: #fff;
    width: 25px;
    height: 25px;
}

.related-swiper .swiper-button-next:after,
.related-swiper .swiper-button-prev:after {
    font-size: 16px;
}




/* 移动端适配 */
@media (max-width: 768px) {
    .swiper {
        height: 60vh; /* 使用视口高度的70% */
        margin: 0;
    }
    
    .item-video video {
        transform: scale(1.5);
    }
    
    .item-desc {
        width: 100%;
        padding: 0 10px;
    }
    
    .item-bottom {
        padding: 15px 10px;
    }
    
    .wap-hide {
        display: none !important;
    }
    
    .video-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .video-type {
        font-size: 12px;
    }

    
       /* 隐藏右侧控制按钮 */
       .right {
        display: none;
    }
    
    /* 左侧按钮组左对齐 */
    .left.flex {
        width: 100%;
        justify-content: flex-start;
        padding-left: 0; /* 添加左边距 */
    }
    
    /* 按钮容器样式 */
    .item-btnwarp {
        flex-direction: column;
        gap: 10px;
        margin-top: 12px;
        align-items: flex-start; /* 确保内容左对齐 */
    }
    
     /* 相关动漫轮播样式 */

    
    .related-swiper .swiper-slide {
        width: calc(33.333% - 5px) !important; /* 移动端一行3个 */
    }
    
    .related-poster {
        aspect-ratio: 3/4; /* 保持宽高比 */
    }
    
    .related-title {
        font-size: 12px;
        height: 18px;
        text-align: center;
        line-height: 18px;
    }
    
    .related-actor {
        font-size: 10px;
        height: 16px;
        line-height: 16px;
        display: block !important; /* 强制显示 */
        visibility: visible !important; /* 确保可见 */
        opacity: 1 !important; /* 确保不透明 */
    }
    
    .related-actor a {
        font-size: 10px;
    }
    
    .related-swiper .swiper-button-next,
    .related-swiper .swiper-button-prev {
        width: 20px;
        height: 20px;
    }
    
    .related-swiper .swiper-button-next:after,
    .related-swiper .swiper-button-prev:after {
        font-size: 14px;
    }
}