/* ====================== WAP短剧模板全局样式 命名前缀wap- 防冲突 ====================== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background: #0c0c12;
    color: #e8e8e8;
    font-family: system-ui,-apple-system;
    line-height: 1.55;
    padding-bottom: 70px;
}
a{
    text-decoration: none;
    color: inherit;
    display: block;
}
img{
    max-width: 100%;
    display: block;
    object-fit: cover;
}
.wap-wrap{
    padding: 0 12px;
}

    /* ====================== */
    /* 幻灯片 → 和内容同宽度（非全屏）
    /* ====================== */
    .hero-slider {
        width: 1300px;
        height: 420px;
        margin: 20px auto 30px;
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        z-index: 1;
    }
    @media(max-width:1200px){
        .hero-slider { width:95%; height:340px; }
    }
    @media(max-width:768px){
        .hero-slider { height:240px; }
    }

    .slide-item {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        opacity: 0;
        background-size: cover;
        background-position: center;
        border-radius:8px;
    }
    .slide-item:nth-child(1){ animation:slideAni 15s infinite 0s; }
    .slide-item:nth-child(2){ animation:slideAni 15s infinite 5s; }
    .slide-item:nth-child(3){ animation:slideAni 15s infinite 10s; }

    @keyframes slideAni {
        0%   { opacity:0; }
        6%   { opacity:1; }
        33%  { opacity:1; }
        39%  { opacity:0; }
        100% { opacity:0; }
    }

    .slide-overlay {
        position:absolute; top:0; left:0;
        width:100%; height:100%;
        background: linear-gradient(
            90deg,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0.4) 50%,
            rgba(0,0,0,0) 100%
        );
        border-radius:8px;
    }

    .slide-info {
        position:absolute;
        top:50%; transform:translateY(-50%);
        left:40px;
        width:380px;
        z-index:2;
    }
    .slide-title {
        font-size:36px;
        font-weight:bold;
        margin-bottom:12px;
    }
    .slide-tags {
        display:flex; gap:6px; margin-bottom:10px;
    }
    .slide-tag {
        padding:3px 6px;
        background:#00b42a;
        color:#fff;
        font-size:12px;
        border-radius:3px;
    }
    .slide-desc {
        font-size:14px;
        color:#ccc;
        line-height:1.6;
        margin:12px 0 20px;
        display:-webkit-box;
        -webkit-line-clamp:3;
        -webkit-box-orient:vertical;
        overflow:hidden;
    }
    .slide-play {
        display:inline-block;
        padding:10px 22px;
        background:#00b42a;
        color:#fff;
        border-radius:4px;
        font-size:14px;
        transition:0.2s;
    }
    .slide-play:hover {
        background:#009223;
    }

/* 板块标题通用 */
.wap-block-title{
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 20px 0 12px;
}
.wap-block-title::before{
    content: "";
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg,#ff9800,#ff6600);
    border-radius: 2px;
    display: block;
}
.wap-block-title h2{
    font-size: 16px;
    color: #ddd;
    font-weight: 500;
}

/* 四列网格布局 全局统一 一行4个 */
.wap-vod-grid{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.wap-vod-item{
    background: #14141b;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,152,0,0.06);
    transition: 0.2s ease;
}
.wap-vod-item:active{
    transform: scale(0.96);
    border-color: rgba(255,152,0,0.2);
}
.wap-vod-pic{
    width: 100%;
    aspect-ratio: 2/3;
    position: relative;
    overflow: hidden;
}
.wap-vod-pic img{
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}
.wap-vod-item:hover .wap-vod-pic img{
    transform: scale(1.05);
}
.wap-vod-score{
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 5px;
    background: rgba(0,0,0,0.6);
    font-size: 10px;
    color: #ffb74d;
    border-radius: 2px;
    z-index: 2;
}
.wap-vod-name{
    padding: 6px 4px;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 底部固定导航栏 */
.wap-footer-nav{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background: #14141b;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.8fr;
    border-top: 1px solid rgba(255,152,0,0.1);
    z-index: 997;
}
.wap-foot-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 11px;
    gap: 4px;
}
.wap-foot-item.active{
    color: #ff9800;
}
.wap-foot-item svg{
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 防复制文本选中全局限制 */
.wap-no-select{
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
/* 播放器区域放开选中权限（后续播放页可用） */
.wap-player-box{
    user-select: auto !important;
    pointer-events: auto !important;
}


/* ========== channel列表页 补充专属样式（全局共用） ========== */
/* 面包屑导航样式 */
.wap-bread{
    padding:16px 0 8px;
    font-size:13px;
    color:#999;
}
.wap-bread a{
    display:inline;
    color:#ffb74d;
}
.wap-bread span{
    margin:0 6px;
    color:#666;
}

/* ========= 分页 ========= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px 0 70px;
}
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,152,0,0.08);
    border: 1px solid rgba(255,152,0,0.12);
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}
.pagination a:hover {
    border-color: #ff9800;
    color: #ff9800;
}
.pagination a.active {
    background: linear-gradient(180deg,#ff9800,#ff6600);
    border-color: #ff9800;
    color: #14141b;
    font-weight: bold;
}
/* ========== 顶部全局搜索框样式 适配WAP移动端 ========== */
.wap-top-search{
    width: 100%;
    padding: 14px 12px;
    background: #0c0c12;
}
.wap-top-search form{
    display: flex;
    gap: 8px;
    align-items: center;
}
.wap-search-input{
    flex: 1;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,152,0,0.12);
    border-radius: 10px;
    color: #eee;
    padding: 0 16px;
    font-size: 14px;
    transition: 0.2s all;
}
.wap-search-input:focus{
    outline: none;
    border-color: #ff9800;
    background: rgba(255,152,0,0.06);
}
.wap-search-input::placeholder{
    color: #888;
}
.wap-search-btn{
    height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg,#ff9800,#ff6600);
    color: #0c0c12;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.wap-search-btn:active{
    transform: scale(0.96);
    opacity: 0.9;
}

/* ========== WAP搜索页面专属样式 全站共用 ========== */
/* 搜索头部标题区域 单行左右布局质感卡片 */
.wap-search-title {
    width: 100%;
    padding: 16px 18px;
    margin: 16px 0;
    background: #14141b;
    border-radius: 12px;
    border: 1px solid rgba(255, 152, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    /* 弹性布局：左右内容一行两端对齐 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wap-search-left {
    font-size: 17px;
    color: #f0f0f0;
    font-weight: 500;
    margin: 0;
}
.wap-search-right {
    font-size: 15px;
    color: #a0a0a8;
    margin: 0;
}
/* 橙黄色高亮文字 全站统一主色 */
.wap-orange-text {
    color: #ffb74d;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 封面右下角小字标签（连载/全集） */
.wap-vod-tag {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 5px;
    background: rgba(0,0,0,0.65);
    font-size: 10px;
    color: #fff;
    border-radius: 2px;
    z-index: 2;
}

/* 搜索无结果空白提示 */
.wap-empty-tips {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 15px;
    line-height: 2;
}