.site-main{
    background-color: #000;
}
.playlist-grid-wrapper {
    margin-top: 10px;
}

.video-index-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}
.playlist-alert {
 background-color: #1e1e1e;
    color:#808080;
    text-align: center;
    padding: 10px;
    border-radius:15px;
    margin-bottom: 10px;
}
.search-container {
    display: flex;
    gap: 10px;
}
.search-input {
    flex-grow: 1;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    font-size: 16px;
    box-shadow: none;
    transition: border-color 0.3s;
    background-color: #2d2d2d !important;
    color: #333;
    placeholder-color: #999;
}
.search-input:focus {
    outline: none;
    border-color: #007cba;
}
.search-button {
    border-radius: 15px;
    border: none;
    background-color: #2655ff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
    padding: 0 20px;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}

.playlist-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    background-color: #1e1e1e;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    overflow: hidden;
}

.playlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.playlist-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.playlist-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.playlist-card:hover .playlist-thumbnail img {
    transform: scale(1.05);
}

.playlist-info {
    padding: 15px;
}

.playlist-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    color:#fff;
    max-height: 46px;
    overflow: hidden;
}

.playlist-description {
    margin: 0 0 15px;
    font-size: 14px;
    color: #b3b3b3;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
}

.playlist-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.playlist-meta span {
    display: flex;
    align-items: center;
}

.playlist-meta i {
    margin-right: 5px;
}

.playlist-count {
    margin-top: 10px;
    font-size: 13px;
    color: #007cba;
}

.video-pagination {
    margin-top: 20px;
    text-align: center;
}

.video-pagination.page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 2px;
    background: #f0f0f1;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.video-pagination.page-numbers.current,
.video-pagination.page-numbers:hover {
    background: #007cba;
    color: white;
}

.qrcode-vip-alert {
    background-color: #fcf8e3;
    color: #1e1e1e;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
}

.qrcode-vip-alert img {
    vertical-align: middle;
    margin-right: 10px;
}

.no-results {
    text-align: center;
    padding: 50px 0;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
    display: block;
}

.no-results p {
    font-size: 18px;
    color: #666;
}

@media (max-width: 768px) {
.playlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
.search-container {
        flex-direction: column;
        align-items: stretch;
    }
.search-input, .search-button {
        width: 100%;
    }
}
 .pagination {
      text-align: center;
   }

   .pagination .page-numbers {
      display: inline-block;
      padding: 5px 20px;
      margin-right: 5px;
      border: 3px solid #333;
      border-radius: 10px;
      color: #333;
      text-decoration: none;
   }

   .pagination .current {
    font-weight: bold;
    background-color:#1e1e1e;
    border: 3px solid #333;
    color: #fff;
   }

/* 左侧悬浮分类导航样式 */
.sidebar-category {
    position: fixed;
    top: 80px;
    bottom: 0px;
    width: 150px;
    backdrop-filter: blur(5px);
    background-color: rgb(0 0 0 / 80%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 10;
    transition: left 0.3s ease;
    box-sizing: border-box;
}

/* 全部选项样式（固定在顶部） */
.category-all {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.all-link {
    display: block;
    text-decoration: none;
    color: #b3b3b3;
    padding: 8px 15px;
    text-align: center;
    border-radius: 5px;
}

.all-link:hover,
.all-link.active {
    background: #2655ff;
    color: #fff;
}

/* 可滚动的分类容器（固定高度，内部滚动） */
.category-scroll-container {
    overflow-y: auto; /* 仅在分类容器内显示滚动条 */
    height: calc(100% - 65px); /* 总高度减去"全部"选项的高度 */
}

/* 自定义滚动条样式 */
.category-scroll-container::-webkit-scrollbar {
    width: 6px; /* 滚动条宽度 */
}

.category-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1; /* 滚动条轨道颜色 */
    border-radius: 10px;
}

.category-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc; /* 滚动条滑块颜色 */
    border-radius: 10px;
}

.category-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #aaa; /* 滚动条滑块hover颜色 */
}

/* 分类列表样式 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.category-item a {
    display: block;
    text-decoration: none;
    color: #b3b3b3;
    padding: 8px 15px;
    text-align: center;
    border-radius: 5px;
}

.category-item a:hover,
.category-item.active a {
    background: #2655ff;
    color: #fff;
}

/* 手机端样式 */
@media (max-width: 768px) {
    .sidebar-category {
        left: -125px; /* 手机端默认隐藏 */
        width: 125px;
        height: 500px; /* 手机端固定高度 */
        padding: 15px;
        border-radius: 0px 10px 10px 0px;
    }
    
    body.sidebar-open .sidebar-category {
        left: -5px; /* 导航展开时的位置 */
    }
    
    .sidebar-toggle {
        display: flex;
        position: fixed;
        top: 160px;
        left: 0;
        background: #2655ff;
        color: #fff;
        border-radius: 0 10px 10px 0;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1001;
        transition: left 0.3s ease;
    }
    
    body.sidebar-open .sidebar-toggle {
        left: 119px; /* 导航展开时按钮的位置 */
    }
    
    .category-item a, .all-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* 手机端滚动容器高度调整 */
    .category-scroll-container {
        height: calc(100% - 55px);
    }
}
    /* 重磅热播分类栏 */
.hot-categories-bar {
    display: flex;
    margin: 10px 0;
}

.hot-categories-label {
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    margin-right: 20px;
    position: relative; /* 用于定位竖线 */
    padding-right: 20px; /* 与竖线的间距 */
}
.hot-categories-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-60%);
    height: 50%;
    width: 2px;
    background-color: #cccccc;
}

.hot-categories-list {
    display: flex;
    overflow-x: auto; /* 横向滚动 */
    gap: 15px;
    flex: 1;
    padding-bottom: 5px; /* 滚动条与内容间距 */
}

.hot-category-item {
    color: #cccccc;
    text-decoration: none;
    white-space: nowrap; /* 防止文字换行 */
    padding: 5px 10px;
}
/* 横向滚动条样式（可选美化） */
.hot-categories-list::-webkit-scrollbar {
    height: 4px;
}

.hot-categories-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.hot-categories-list::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 2px;
}
/*播放列表icon*/
.playlist-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 48px;
    color: #fff;
    padding: 8px;
}

/* 鼠标悬停图片容器时，显示播放图标 */
.playlist-thumbnail:hover .play-icon {
    opacity: 1;
    visibility: visible;
}

/* 悬停时图片轻微变暗（可选优化，增强视觉层次） */
.playlist-thumbnail:hover img {
    filter: brightness(0.8);
}

/* 轮播整体样式（修改：1. 移除max-width限制，改为全宽；2. 取消居中margin，保留底部间距） */
.movie-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 轮播容器（无修改） */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px; /* 默认高度 */
}

/* 轮播项样式（无修改） */
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

/* 当前激活的轮播项（无修改） */
.carousel-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* 轮播背景图片（无修改） */
.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333; /* 默认背景色 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 轮播内容容器*/
.carousel-content {
    position: relative;
    z-index: 2;
    height: 100%;
    /* 核心修改：左侧内边距从2rem增至5rem，文字整体右移；保留上下padding */
    padding: 2rem 2rem 2rem 16rem; 
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 900px; /* 配合右移，适当加宽内容区最大宽度 */
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
}

/* 轮播标题（无修改） */
.carousel-title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 轮播描述（无修改） */
.carousel-desc {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    max-width: 600px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* 轮播按钮 */
.carousel-btn {
    display: inline-block;
    width: fit-content;
    padding: 0 20px;
    background-color: #2655ff;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.carousel-btn:hover {
    color:#fff;
}

/* 轮播指示器（无修改） */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #fff;
    width: 30px;
    border-radius: 6px;
}

/* 响应式调整（修改：适配文字右移，避免小屏幕遮挡） */
@media (max-width: 1024px) {
    .carousel-container {
        height: 350px;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    /* 平板端：文字右移幅度减小，避免内容溢出 */
    .carousel-content {
        padding-left: 4rem;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
    
    .carousel-content {
        padding: 1.5rem 1.5rem 1.5rem 3rem; /* 移动端左侧padding降至3rem，平衡右移与内容显示 */
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
        justify-content: flex-end;
    }
    
    .carousel-title {
        font-size: 1.8rem;
    }
    
    .carousel-desc {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 250px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-content {
        padding-left: 2rem; /* 小手机端进一步减小左padding，避免文字被截断 */
    }
    
    .carousel-desc {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .carousel-btn {
        font-size: 0.9rem;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
}

/* 游戏分类栏 */
.game-categories-bar {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    margin: 10px 0; /* 减少上下外边距 */
    height: 36px; /* 固定高度控制整体大小 */
}

.game-categories-label {
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    margin-right: 20px;
    position: relative; /* 用于定位竖线 */
    padding-right: 20px; /* 与竖线的间距 */
}

.game-categories-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%; /* 调整竖线高度 */
    width: 2px;
    background-color: #cccccc;
}

.game-categories-list {
    display: flex;
    overflow-x: auto; /* 横向滚动 */
    gap: 15px;
    flex: 1;
    padding-bottom: 2px; /* 减少滚动条与内容间距 */
    align-items: center; /* 垂直居中对齐 */
}

.game-category-item {
    color: #cccccc;
    text-decoration: none;
    white-space: nowrap; /* 防止文字换行 */
    padding: 3px 10px; /* 减少内边距 */
    margin: 0; /* 清除默认外边距 */
    line-height: 1; /* 控制行高 */
}

/* 横向滚动条样式 */
.game-categories-list::-webkit-scrollbar {
    height: 4px;
}

.game-categories-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.game-categories-list::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 2px;
}

/* 优质分类栏 */
.youzhi-categories-bar {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    margin: 10px 0; /* 减少上下外边距 */
    height: 36px; /* 固定高度控制整体大小 */
}

.youzhi-categories-label {
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    margin-right: 20px;
    position: relative; /* 用于定位竖线 */
    padding-right: 20px; /* 与竖线的间距 */
}

.youzhi-categories-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%; /* 调整竖线高度 */
    width: 2px;
    background-color: #cccccc;
}

.youzhi-categories-list {
    display: flex;
    overflow-x: auto; /* 横向滚动 */
    gap: 15px;
    flex: 1;
    padding-bottom: 2px; /* 减少滚动条与内容间距 */
    align-items: center; /* 垂直居中对齐 */
}

.youzhi-category-item {
    color: #cccccc;
    text-decoration: none;
    white-space: nowrap; /* 防止文字换行 */
    padding: 3px 10px; /* 减少内边距 */
    margin: 0; /* 清除默认外边距 */
    line-height: 1; /* 控制行高 */
}

/* 横向滚动条样式 */
.youzhi-categories-list::-webkit-scrollbar {
    height: 4px;
}

.youzhi-categories-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.youzhi-categories-list::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 2px;
}