/* source: v29_header.php */
.esi-banner-row, .ad-banner-row { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; margin: 10px 0 !important; width: 100% !important; box-sizing: border-box !important; }
        .ad-banner-item { width: 100% !important; height: auto !important; min-height: 40px; overflow: hidden; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); background: #111; }
        .ad-banner-item a { display: block !important; width: 100% !important; }
        .ad-banner-item img { width: 100% !important; height: auto !important; display: block !important; object-fit: contain !important; }
        .esi-text-row, .ad-text-row { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; margin: 0 0 10px 0 !important; width: 100% !important; box-sizing: border-box !important; }
        .ad-text-item { width: 100% !important; height: 38px !important; line-height: 38px !important; text-align: center !important; overflow: hidden; border-radius: 4px; }
        .ad-text-item:nth-child(odd) { background: #2c2500 !important; border: 1px solid #554400 !important; }
        .ad-text-item:nth-child(odd) a { color: #ead67d !important; }
        .ad-text-item:nth-child(even) { background: #2c0000 !important; border: 1px solid #550000 !important; }
        .ad-text-item:nth-child(even) a { color: #ff4444 !important; }
        .ad-text-item a { display: block !important; width: 100% !important; height: 100% !important; text-decoration: none !important; font-weight: bold !important; font-size: 14px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 10px; }

        @media screen and (max-width: 768px) { 
            .ad-banner-row { grid-template-columns: repeat(1, 1fr) !important; gap: 8px !important; margin: 10px 0 !important; }
            .ad-text-row { grid-template-columns: repeat(1, 1fr) !important; gap: 10px !important; margin-bottom: 12px !important; }
            .ad-text-item:nth-child(odd) { background: rgba(234, 214, 125, 0.15) !important; border: 2px solid rgba(234, 214, 125, 0.8) !important; box-shadow: 0 0 10px rgba(234, 214, 125, 0.3) !important; }
            .ad-text-item:nth-child(even) { background: rgba(255, 68, 68, 0.15) !important; border: 2px solid rgba(255, 68, 68, 0.8) !important; box-shadow: 0 0 10px rgba(255, 68, 68, 0.3) !important; }
        }
        
        /* 全局侧边漂浮广告规范 */
        .floating-ad-container {
            position: absolute !important;
            top: 50%;
            transform: translateY(-50%) !important;
            z-index: 999999 !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 15px !important;
            transition: top 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
        }
        /* 修复汉堡菜单被广告层遮挡：headcc 父容器需高于广告层叠上下文 */
        .headcc { position: relative !important; z-index: 9999999 !important; }
        .menuDropdown { z-index: 1000; }
        .floating-ad-container-left { left: 10px !important; right: auto !important; }
        .floating-ad-container-right { right: 10px !important; left: auto !important; }
        .floating-ad, .floating-ad-esi { position: absolute !important; opacity: 0 !important; pointer-events: none !important; }
        .floating-ad-container .floating-ad, 
        .floating-ad-container .floating-ad-esi {
            position: relative !important; opacity: 1 !important; pointer-events: auto !important;
            top: auto !important; left: auto !important; right: auto !important;
            transform: none !important; width: 140px !important; display: block !important; margin: 0 !important;
        }
        .floating-ad img, .floating-ad-esi img {
            width: 100% !important; height: auto !important; border-radius: 8px !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important; display: block !important; margin: 0 !important;
        }
        @media screen and (max-width: 768px) {
            .floating-ad-container .floating-ad, 
            .floating-ad-container .floating-ad-esi { width: 110px !important; }
        }
        
        .ad-custom-html-row { width: 100% !important; margin: 0 0 10px 0 !important; }
        .ad-custom-html-row .alert { position: relative; padding: 8px 10px !important; margin-bottom: 10px !important; border: 1px solid rgba(255,255,255,0.1) !important; border-radius: 6px !important; text-align: center; font-weight: bold; font-size: 13px; }
        .ad-card-border { border: 1px solid rgba(234, 214, 125, 0.3) !important; transition: all 0.3s ease !important; }
        .ad-card-border:hover { border-color: rgba(234, 214, 125, 0.8) !important; box-shadow: 0 0 15px rgba(234, 214, 125, 0.2) !important; }

        .bottom-floating-ad { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 99999; text-align: center; line-height: 0; background: rgba(0,0,0,0.2); }
        .bottom-floating-ad img { width: 100%; max-width: 100%; height: auto; max-height: 85px; object-fit: contain; vertical-align: bottom; box-shadow: 0 -2px 15px rgba(0,0,0,0.5); }
        .bottom-floating-ad-close { position: absolute; top: -22px; right: 5px; background: rgba(0,0,0,0.7); color: #fff; padding: 0 12px; height: 22px; line-height: 22px; text-align: center; border-radius: 6px 6px 0 0; cursor: pointer; font-size: 11px; font-weight: bold; border: 1px solid rgba(255,255,255,0.1); }

/* source: v29_header.php */
html,body{overflow-x:hidden !important;max-width:100vw;}

/* source: v29_index.php */
/* 💡 强力解除图片发暗/阴影遮罩，还原 100% 原始超清亮度 */
    .thumbnail img, 
    img.lazy, 
    img.lozad,
    .aspect-w-16, 
    .aspect-h-9,
    .thumbnail a,
    .thumbnail div {
        opacity: 1 !important;
        filter: none !important;
        backdrop-filter: none !important;
        background-color: transparent !important; /* 彻底清除底层底色透射 */
    }
    
    .thumbnail:hover img {
        transform: scale(1.04);
        opacity: 0.95 !important;
    }

    /* 保证面包屑及文字高亮可见 */
    .v29-index-title {
        color: #ffffff !important;
    }

/* source: v29_list.php */
/* 💡 彻底清除图片发暗、变灰或遮罩层，让海报 100% 高清透亮呈现 */
    .thumbnail img, 
    img.lazy, 
    img.lozad,
    .aspect-w-16, 
    .aspect-h-9,
    .thumbnail a,
    .thumbnail div {
        opacity: 1 !important;
        filter: none !important;
        backdrop-filter: none !important;
        background-color: transparent !important; /* 强力清除底层灰色，防止遮罩感 */
    }
    
    .thumbnail:hover img {
        transform: scale(1.04);
        opacity: 0.95 !important;
    }

    /* 💡 强力将文字颜色调整为跟首页一样高亮白，保证绝对清晰 */
    .v29-breadcrumb {
        font-size: 13.5px;
        color: #ffffff !important; /* 纯白色 */
        margin-bottom: 20px;
    }
    .v29-breadcrumb a {
        color: #ffffff !important; /* 纯白色 */
        text-decoration: none;
        transition: color 0.3s;
        opacity: 0.85;
    }
    .v29-breadcrumb a:hover {
        color: #ead67d !important; /* 悬浮高亮金黄色 */
        opacity: 1;
    }

    /* 筛选条件样式修复 */
    .v29-filter-label {
        color: #ffffff !important; /* 纯白色 */
        font-weight: bold;
        font-size: 14px;
    }
    .v29-filter-item {
        color: #ffffff !important; /* 未选中分类文字改为跟首页一样的纯白色 */
        font-size: 13px;
        text-decoration: none;
        padding: 6px 12px;
        border-radius: 4px;
        border: 1px solid transparent;
        transition: all 0.3s;
        opacity: 0.85;
    }
    .v29-filter-item:hover {
        color: #ead67d !important; /* 鼠标悬浮金黄色 */
        background: rgba(255, 255, 255, 0.05);
        opacity: 1;
    }
    .v29-filter-item.active-filter {
        background: rgba(234, 214, 125, 0.15) !important;
        border-color: #ead67d !important;
        color: #ead67d !important; /* 选中的分类名保持醒目金黄色 */
        font-weight: bold;
        opacity: 1;
    }

    /* 分页按钮 */
    .v29-pagination a, .v29-pagination span {
        padding: 8px 16px;
        background: #1e293b;
        border: 1px solid #334155;
        color: #ffffff;
        border-radius: 4px;
        font-size: 13px;
        transition: 0.3s;
        text-decoration: none;
    }
    .v29-pagination a:hover {
        border-color: #ead67d;
        color: #ead67d;
    }
    .v29-pagination span.current {
        background: rgba(234, 214, 125, 0.15);
        border-color: #ead67d;
        color: #ead67d;
        font-weight: bold;
    }

/* source: v29_play.php */
/* 💡 强力解除图片发暗遮罩 */
    .thumbnail img, .lazy, .lozad {
        opacity: 1 !important;
        filter: none !important;
        backdrop-filter: none !important;
        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }
    .thumbnail:hover img {
        transform: scale(1.04);
        opacity: 0.95 !important;
    }

    .video-container {
        position: relative !important;
        overflow: visible !important;
        background: #000 !important;
        width: 100% !important;
        border-radius: 8px !important;
        border: 1px solid #334155 !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    }
    #video-player {
        background: #000 !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9 !important; /* 强制锁定比例，防黑屏 */
        display: block !important;
    }
    #player-pre-ad {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        z-index: 1001; background: #000; display: flex; align-items: center; justify-content: center;
    }
    #player-pre-ad img { width: 100%; height: 100%; object-fit: cover; }
    #ad-timer {
        position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.8);
        color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 13px;
        z-index: 1002; border: 1px solid rgba(255,255,255,0.2);
    }
    #ad-skip {
        position: absolute; bottom: 30px; right: 20px;
        background: #ead67d; color: #000 !important;
        padding: 8px 22px; border-radius: 50px; font-size: 14px;
        font-weight: bold; cursor: pointer; z-index: 1002;
        border: 2px solid #000; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
        transition: all 0.3s;
    }
    #ad-skip:hover { background: #fff; transform: scale(1.05); }

    .active-ep {
        border-color: #ead67d !important;
        color: #ead67d !important;
        background: rgba(234, 214, 125, 0.1) !important;
        font-weight: bold;
    }

#video-player { aspect-ratio: 16/9; }
@media (max-width: 768px) {
    /* 播放器本身改为4:3 */
    #video-player { aspect-ratio: 4/3 !important; height: auto !important; }
    /* 所有父容器同步改为4:3，防止absolute定位的播放器溢出遮挡标题 */
    div.player-wrapper,
    div.player-box,
    div.player-container,
    div.video-player-wrap,
    div.portal-player-wrap,
    div.video-container,
    div.embed-responsive,
    div.media-player,
    div.play-box,
    div.play-wrap,
    div.player-inner {
        aspect-ratio: 4/3 !important;
    }
}

/* 旧版手机浏览器 aspect-ratio 兼容 */
/* 确保#video-player有高度（兼容不支持aspect-ratio的旧浏览器）*/
@supports not (aspect-ratio: 16/9) {
    #video-player { position:relative; height:0; padding-bottom:56.25%; min-height:0; }
    #video-player .art-video-player { position:absolute; top:0; left:0; width:100%; height:100%; min-height:0; }
}
@media (max-width: 768px) {
    @supports not (aspect-ratio: 4/3) {
        #video-player { padding-bottom:75%; }
    }
}


/* ===== 核心修复：强制所有播放器父容器不截断控制栏 ===== */
div.player-wrapper,
div.player-box,
div.player-container,
div.video-player-wrap,
div.portal-player-wrap,
div.video-container,
div.embed-responsive,
div.media-player,
div.play-box,
div.play-wrap,
div.player-inner {
    overflow: visible !important;
}

/* source: v29_play.php */
/* 防止手机端页面左右滑动 */
html { overflow-x: hidden !important; max-width: 100vw !important; }
body { overflow-x: hidden !important; }
#video-player { max-width: 100% !important; box-sizing: border-box !important; }
.art-video-player { max-width: 100% !important; overflow-x: hidden !important; }
.art-video-player { overflow: visible !important; }
.art-video-player .art-bottom { position:absolute!important; bottom:0!important; top:auto!important; left:0!important; right:0!important; background:linear-gradient(transparent,rgba(0,0,0,0.8))!important; display:flex!important; flex-direction:column!important; }
.art-video-player .art-bottom .art-progress { order:-1!important; height:8px!important; cursor:pointer!important; }
.art-video-player .art-bottom .art-progress .art-control-progress-played { background:linear-gradient(90deg,#ff4500,#ff8c00)!important; height:8px!important; border-radius:4px!important; }
.art-video-player .art-bottom .art-progress .art-control-progress-inner { height:8px!important; border-radius:4px!important; background:rgba(255,255,255,0.2)!important; }
.art-video-player .art-bottom .art-progress .art-control-progress-indicator { width:14px!important; height:14px!important; top:-3px!important; background:#fff!important; box-shadow:0 0 6px rgba(255,69,0,0.9)!important; }
.art-video-player .art-bottom .art-controls { height:44px!important; }
.art-video-player .art-bottom .art-controls .art-control { color:#fff!important; opacity:1!important; visibility:visible!important; }
.art-video-player .art-bottom .art-controls .art-control svg,.art-video-player .art-bottom .art-controls .art-control svg path { fill:#fff!important; opacity:1!important; }
.art-video-player .art-bottom .art-controls .art-control-time { color:#fff!important; }
.art-video-player .art-mini-progress,.art-video-player .art-progress-mini { display:none!important; height:0!important; opacity:0!important; }
/* 播放按钮绝对居中 PC+手机 */
.art-video-player .art-mask { position:absolute!important; top:0!important; left:0!important; width:100%!important; height:100%!important; display:flex!important; align-items:center!important; justify-content:center!important; }
.art-video-player .art-mask .art-state { position:static!important; top:auto!important; left:auto!important; right:auto!important; bottom:auto!important; transform:none!important; }
