﻿body {
    font-family: system-ui,-apple-system,Segoe UI,Rototo,Helvetica,Arial,sans-serif;
}

.bd-body {
    background-color: #131514;
}

.bd-layui-container {
    padding: 0 10px;
    position: relative;
    margin: 0 auto;
    box-sizing: border-box;
}

.bd-layui-col-space202 {
    position: relative;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 10px 10px 0 0;
}

.bd-layui-col-space20 {
    padding: 10px 10px 0 10px;
}

.bd-video-row-item {
    padding-left: 10px;
}

/* ========== 视频行容器 ========== */
.bd-video-row {
    box-shadow: 0 0 2px 0.5px #ddd;
    border-radius: 5px;
    background-color: #fff;
    width: 100%;
    height: 380px;
    object-fit: cover;
    -webkit-box-shadow: 0 0 2px 0.5px #ddd;
    -webkit-border-radius: 5px;
    box-sizing: border-box;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    -webkit-tap-highlight-color: transparent;
}

/* ========== 移动端适配（< 768px） ========== */
@media screen and (max-width: 767px) {
    .bd-video-row {
        height: 220px;
        height: 22vh;
        height: 22dvh;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }
}

/* ========== 超小屏适配（< 380px） ========== */
@media screen and (max-width: 379px) {
    .bd-video-row {
        height: 200px;
        height: 20vh;
        height: 20dvh;
        border-radius: 4px;
    }
}

/* ========== 横屏适配 ========== */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .bd-video-row {
        height: 200px;
        height: 20vh;
        height: 20dvh;
    }
}

/* ========== 平板适配（768px ~ 1024px） ========== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .bd-video-row {
        height: 400px;
        height: 40vh;
        height: 40dvh;
    }
}

/* ========== 桌面端大屏 ========== */
@media screen and (min-width: 1025px) {
    .bd-video-row {
        height: 550px;
        height: 70vh;
        height: 70dvh;
        max-height: 550px;
    }
}

/* ========== Telegram / WebView 兼容 ========== */
@supports not (height: 100dvh) {
    .bd-video-row {
        height: 30vh;
    }
}

/* ========== Safari 兼容（旧版本） ========== */
@supports (-webkit-touch-callout: none) {
    .bd-video-row {
        -webkit-overflow-scrolling: touch;
    }
}

.bd-video-title {
    font-size: 12px;
    text-align: left;
    padding: 5px 0px 10px 0px;
    font-weight:400;
    color: #9C9D9C;
}

.bd-vt-ellipsis {
    width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 视频卡片容器 ========== */
.bd-video-item {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a1a1a;
    display: block;
}

/* 封面图 */
.bd-video-cover {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
}

/* ========== 角标 (会员/免费) ========== */
/* ========== 角标通用 ========== */
.bd-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 2px 8px;
    font-size: 10px;
    border-top-right-radius:5px;
    border-bottom-left-radius:5px;
    color: #fff;
    font-weight: bold;
    z-index: 2;
    line-height: 1.4;
}
/* ========== 青色系（普通标签） ========== */
.bd-badge-free {
    background-color: #1AA195;
}
/* 免费 - 主青色 */
.bd-badge-modern {
    background-color: #1AA195;
}
/* 现代 - 主青色 */
.bd-badge-rs {
    background-color: #0E7C72;
}
/* 古风 - 深青色 */
.bd-badge-reinventing {
    background-color: #3DBFB3;
}
/* 魔改 - 浅青色 */
.bd-badge-through {
    background-color: #178C8C;
}
/* 穿越 - 蓝青色 */
.bd-badge-ihos {
    background-color: #0B5E56;
}
/* 后宫 - 暗青色 */

/* ========== 黄色系（会员 / 重点） ========== */
.bd-badge-vip {
    background-color: #E6A23C;
}
/* 会员 - 橙金色 */

/* ========== 红色系（重点警示标签） ========== */
.bd-badge-incest {
    background-color: #E74C3C;
}
/* 乱伦 - 红色 */

/* ========== 底部信息栏 (热播火苗 + 时长) ========== */
.bd-video-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 8px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 12px;
    z-index: 2;
}

.bd-video-hot {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .bd-video-hot .bd-icon-fire {
        color: #FF5722;
        font-size: 14px;
    }

.bd-video-duration {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* ========== Banner 轮播 ========== */
.bd-banner-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: #1a1a1a;
    /* 宽高比 16:6（可按需调整），高度自适应 */
    aspect-ratio: 16 / 6;
    max-height: 200px;
}

/* 移动端比例更扁一些 */
@media screen and (max-width: 767px) {
    .bd-banner-wrap {
        aspect-ratio: 16 / 7;
        max-height: 140px;
    }
}

/* 轨道：横向排列，整体平移 */
.bd-banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* 单个 slide */
.bd-banner-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

.bd-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* 左右箭头 */
.bd-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    cursor: pointer;
    z-index: 5;
    text-decoration: none;
    transition: background-color 0.2s;
    opacity: 0;
}

.bd-banner-wrap:hover .bd-banner-arrow {
    opacity: 1;
}

.bd-banner-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
    color: #1AA195;
}

.bd-banner-prev {
    left: 8px;
}

.bd-banner-next {
    right: 8px;
}

/* 圆点指示器 */
.bd-banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    text-align: center;
    z-index: 5;
}

.bd-banner-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.25s;
}

    .bd-banner-dot.active {
        width: 18px;
        border-radius: 4px;
        background-color: #1AA195; /* 主青色 */
    }

