/* 从 yesege 原版 public/style.html 搬过来的静态主题CSS（不含后台可配的动态背景图/公告速度那5个变量，
   那几个仍留在 app.html 里内联，因为要吃 {$mzadydata...} 服务端模板变量）。
   这部分挪进静态文件是为了能被浏览器/CDN正常缓存，不用每次请求都把四百多行CSS塞进HTML里。 */
:root{
    --theme-color: #f43f5e;
    --theme-hover: #e11d48;
    --theme-high: 133%;
    --theme-highwide: 56%;
    --theme-radius: 12px;
    --card-radius: 10px;
    --ye-accent: #f43f5e;
    --ye-accent2: #fb7185;
    --ye-bg: #080810;
    --ye-card-bg: #111120;
    --ye-border: rgba(244,63,94,0.15);
}
/* ── 全局 ── */
body { background: var(--ye-bg) !important; }
a { color: var(--ye-accent2); }
a:hover { color: #fff; }
:root { --basic-bg: var(--ye-bg) !important; }
body.light-mode, .light-mode { --basic-bg: #f4f4f8 !important; }

/* header 高度 54px */
header { height: 54px !important; }
/* PC：header 不固定 */
@media (min-width: 769px) {
    header { position: static !important; }
    body { padding-top: 0 !important; }
}
/* 手机：header fixed，body 留出 54px */
@media (max-width: 768px) {
    header { position: fixed !important; }
    body { padding-top: 54px !important; }
}
/* 分类筛选栏：手机吸顶（header 下方），PC 不吸顶 */
.show .show-sticky-top {
    background: var(--ye-bg) !important;
    width: 100% !important;
    position: static !important;
}
@media (max-width: 768px) {
    .show .show-sticky-top {
        position: sticky !important;
        top: 54px !important;
    }
}
.movie-ul, .ye-card-grid, .ye-like-grid, .vod-list-box, .show-vod-list {
    position: relative;
    z-index: 1;
}

/* ── 主题色 ── */
.btn,.myui-btn,.btn-default:hover,
.tag,.myui-tag,
.active .nav span::after,
.nav.active span::after { background: var(--ye-accent) !important; }

/* layui */
.layui-layer-rim{overflow:auto;-ms-overflow-style:none;scrollbar-width:none;border:0;border-radius:16px;}
.layui-layer-content::-webkit-scrollbar{display:none;}
.layui-layer-content{border-radius:16px;}
.layui-layer-setwin .layui-layer-close2{right:-8px;top:-8px;}
.layui-layer{background:var(--basic-bg);}
.layui-layer-content{color:var(--font-color);}

/* ── Header ── */
.myui-header__top { border-bottom: 1px solid var(--ye-border) !important; }
header .row { justify-content: flex-start !important; }
header .search { display: none !important; }

/* ── 分类筛选栏：去掉卡片边框，改为干净 tab 行 ── */
.screen-box {
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
[data-theme=dark] .screen-box,
[data-theme=light] .screen-box { background: transparent !important; border: none !important; }
.screen-box .filter-box .filter-title { display: none !important; }
.screen-box .filter-box .filter-ul {
    gap: 6px 8px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.screen-box .filter-box .filter-ul::-webkit-scrollbar { display: none; }

/* ── 首页区块 ── */
.ye-vod-section { margin-bottom: 32px; }
.ye-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 10px 0;
    border-bottom: 2px solid var(--ye-border);
    margin-bottom: 16px;
}
.ye-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ye-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--ye-accent);
    border-radius: 3px;
}
.ye-section-actions { display: flex; gap: 10px; align-items: center; }
.ye-refresh-btn {
    font-size: 11px; line-height: 1; color: #888; cursor: pointer;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 4px 9px; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
    transition: all .2s; white-space: nowrap;
}
.ye-refresh-btn .iconfont { font-size: 11px !important; line-height: 1; }
.ye-refresh-btn:hover { color: var(--ye-accent2); border-color: var(--ye-accent); }
.ye-more-btn {
    font-size: 11px; line-height: 1; color: #888; text-decoration: none;
    display: inline-flex; align-items: center; padding: 4px 9px;
    border-radius: 20px; background: rgba(244,63,94,0.10);
    border: 1px solid var(--ye-border); transition: all .2s; white-space: nowrap;
}
.ye-more-btn:hover { color: #fff; background: var(--ye-accent); border-color: var(--ye-accent); }

/* ── 视频卡片网格：始终单列，桌面端限宽居中 ── */
.ye-card-grid, .movie-ul {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    max-width: 680px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ── 卡片（文字全在图片内覆盖） ── */
.ye-vod-card { position: relative; }
.ye-vod-card a { text-decoration: none; color: inherit; display: block; }
.ye-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 364/200;
    overflow: hidden;
    border-radius: var(--card-radius);
    background: #111120;
}
.ye-thumb-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    border-radius: var(--card-radius);
}
@keyframes hj-shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
.ye-thumb-wrap img.lazyload{
    background:linear-gradient(90deg,#111120 25%,#1e1e38 50%,#111120 75%);
    background-size:200% 100%;
    animation:hj-shimmer 1.4s infinite linear;
}
.ye-thumb-wrap img.lazyloaded,
.ye-thumb-wrap img.img-loaded{background:none;animation:none;}
.ye-vod-card:hover .ye-thumb-wrap img { transform: scale(1.06); }
.ye-thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,.5) 0%,
        transparent 30%,
        transparent 40%,
        rgba(0,0,0,.82) 100%);
    border-radius: var(--card-radius);
}
/* 左上角：日期 */
.ye-date-tag {
    position: absolute;
    top: 7px; left: 7px;
    font-size: 11px; font-weight: 600; color: #fff;
    background: rgba(244,63,94,0.88);
    padding: 2px 7px; border-radius: 4px;
    letter-spacing: 0.3px; z-index: 2;
}
/* 右上角：时长 */
.ye-dur-tag {
    position: absolute;
    top: 7px; right: 7px;
    font-size: 11px; color: rgba(255,255,255,.9);
    background: rgba(0,0,0,.55);
    padding: 2px 6px; border-radius: 4px;
    z-index: 2;
}
/* 底部内容区（覆盖在图片上） */
.ye-card-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 8px 9px 9px;
    z-index: 2;
}
.ye-cat-tag {
    display: inline-block;
    font-size: 10px; color: var(--ye-accent2);
    background: rgba(244,63,94,0.22);
    border: 1px solid rgba(244,63,94,0.4);
    border-radius: 3px; padding: 1px 5px;
    margin-bottom: 4px;
    white-space: nowrap;
}
.ye-card-title {
    font-size: 13px; font-weight: 600; color: #f0f0f0;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.ye-vod-card:hover .ye-card-title { color: #fff; }

/* 手机1列高一点，更醒目 */
@media(max-width:479px){
    .ye-thumb-wrap { aspect-ratio: 364/200; }
}

/* ── 分类子导航 ── */
.ye-subnav {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px;
}
.ye-subnav a {
    font-size: 13px; color: #aaa; text-decoration: none;
    padding: 5px 14px; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; transition: all .2s;
    background: rgba(255,255,255,0.03);
}
.ye-subnav a:hover,
.ye-subnav a.active { color: #fff; background: var(--ye-accent); border-color: var(--ye-accent); }

/* ── 主容器 ── */
.ye-main { padding: 16px 0 32px; }
.ye-container { max-width: 1280px; margin: 0 auto; padding: 0 14px; }

/* ── 分页 ── */
.myui-page .active a,
.myui-page a:hover { background: var(--ye-accent) !important; border-color: var(--ye-accent) !important; }

/* ── 按钮 ── */
.btn-danger,.btn-danger:hover { background: var(--ye-accent) !important; border-color: var(--ye-accent) !important; }
.text-danger { color: var(--ye-accent) !important; }


/* ── 手机微调 ── */
@media(max-width:767px){
    .ye-refresh-btn { font-size:10px; padding:2px 6px; }
    .ye-more-btn { font-size:10px; padding:2px 8px; }
    .ye-section-title { font-size:14px; }
    .ye-section-head { padding-bottom:8px; margin-bottom:12px; }
}

/* ── 猜你喜欢：单列限宽 ── */
.ye-like-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ── 图文内容 ── */
.ye-vod-content {
    max-width: 680px;
    margin: 0 auto 20px;
    word-break: break-word;
}
.ye-article-p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.85;
    margin: 0 0 12px;
    padding: 0;
}
.ye-article-h {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin: 20px 0 10px;
    padding-left: 10px;
    border-left: 3px solid #f43f5e;
}
.ye-article-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 8px 0;
    border-radius: 8px;
    background: #1a1020;
}
.ye-article-img.lazyload {
    min-height: 180px;
    background: linear-gradient(90deg,#111120 25%,#1e1e38 50%,#111120 75%);
    background-size: 200% 100%;
    animation: hj-shimmer 1.4s infinite linear;
}
.ye-article-img.lazyloaded,
.ye-article-img.img-loaded { min-height: unset; background: none; animation: none; }

/* ══════════════════════════════
   详情页
══════════════════════════════ */
.ye-detail-wrap { padding: 16px 0; }
.ye-detail-hero { display: flex; gap: 20px; align-items: flex-start; }
.ye-detail-cover {
    position: relative; width: 180px; flex-shrink: 0;
    border-radius: 10px; overflow: hidden; background: #1a1020; aspect-ratio: 2/3;
}
.ye-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ye-detail-cover-mask {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
}
.ye-detail-info { flex: 1; min-width: 0; }
.ye-detail-title {
    font-size: 18px; font-weight: 700; color: #fff; line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ye-detail-meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ye-meta-pill {
    font-size: 11px; color: #aaa;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 2px 8px;
}
.ye-detail-tags { margin-bottom: 14px; }
.ye-tag-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.ye-tag-key {
    font-size: 11px; color: #666; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 4px; padding: 2px 6px;
    white-space: nowrap; flex-shrink: 0;
}
.ye-tag-val {
    font-size: 12px; color: #bbb; text-decoration: none;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
    border-radius: 6px; padding: 2px 8px; transition: all .2s;
}
.ye-tag-val:hover { color: #fff; border-color: var(--ye-accent); background: rgba(244,63,94,0.12); }
.ye-tag-cat { color: var(--ye-accent2); border-color: rgba(244,63,94,0.25); }
.ye-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ye-play-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--ye-accent); color: #fff; border: none; border-radius: 8px;
    padding: 9px 22px; font-size: 14px; font-weight: 600;
    text-decoration: none; cursor: pointer; transition: all .2s;
}
.ye-play-btn:hover { background: var(--ye-hover, #e11d48); color: #fff; }
.ye-collect-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.06); color: #ccc;
    border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
    padding: 9px 18px; font-size: 14px; text-decoration: none;
    cursor: pointer; transition: all .2s;
}
.ye-collect-btn:hover, .ye-collect-btn.active { color: var(--ye-accent); border-color: var(--ye-accent); background: rgba(244,63,94,0.1); }
.ye-detail-stats {
    display: flex; align-items: center; gap: 0;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 10px 0;
}
.ye-stat-item { flex: 1; text-align: center; }
.ye-stat-val { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.ye-stat-label { display: block; font-size: 11px; color: #666; margin-top: 2px; }
.ye-stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.08); flex-shrink: 0; }
@media(max-width:559px){
    .ye-detail-hero { flex-direction: column; gap: 14px; }
    .ye-detail-cover { width: 100%; aspect-ratio: 16/9; }
    .ye-detail-title { font-size: 16px; }
}

/* ══════════════════════════════
   播放页
══════════════════════════════ */
.ye-play-container { max-width: 960px; margin: 0 auto; padding: 0 14px 32px; }
.ye-player-wrap { background: #000; border-radius: 10px; overflow: hidden; margin-bottom: 0; }
.ye-play-info {
    padding: 14px 0 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 16px;
}
.ye-play-title {
    font-size: 17px; font-weight: 700; color: #fff; line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ye-play-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ye-share-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ye-accent2); text-decoration: none; }
.ye-share-link:hover { color: #fff; }
@media(max-width:767px){
    .ye-play-title { font-size: 15px; }
    .ye-play-container { padding: 0 10px 24px; }
}

/* ══════════════════════════════
   yesege-vue 自己的补充样式（Vue 结构专用，原版没有独立CSS文件的几处）
══════════════════════════════ */
.ye-header { border-bottom: 1px solid rgba(244,63,94,0.15); }
/* 站名 + 永久域名轮播：跟188-vue/518-vue同款结构(header-top左logo右header-right)，
   之前是老的.row/.menu布局，视觉上跟另外两个站不一致，这次统一改成同一套 */
.ye-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 0;
  gap: 12px;
}
.ye-logo-link {
    display: inline-flex; align-items: center;
    font-size: 17px; font-weight: 700; color: var(--ye-accent);
    text-decoration: none;
    letter-spacing: 1px; white-space: nowrap;
}
.ye-logo-link:hover { color: #fff; }

.ye-header-left { display: flex; align-items: center; gap: 14px; }
/* 永久域名轮播 */
.ye-domain-ticker { text-align: left; line-height: 1.4; }
.ye-domain-label { font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .5px; }
.ye-domain-value { font-size: 16px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.ye-dm-a { color: #eee; }
.ye-dm-b { color: var(--ye-accent, #f43f5e); }
.ye-dm-c { color: #38bdf8; }
.ye-domain-fade-enter-active, .ye-domain-fade-leave-active { transition: opacity .3s ease; }
.ye-domain-fade-enter-from, .ye-domain-fade-leave-to { opacity: 0; }
/* 预留给以后"我的"头像入口的位置，现在还没做头像功能，先占位不显示内容，
   保证永久域名不会贴着屏幕最右边——以后加头像直接往这个slot里塞图标就行，不用再调布局 */
.ye-avatar-slot {
    width: 32px; height: 32px; flex: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* 首屏骨架 + 列表加载态 */
.yv-loading { display: flex; align-items: center; justify-content: center; padding: 60px 0; color: #666; font-size: 13px; }
.yv-loading .yv-spinner {
    width: 22px; height: 22px; margin-right: 8px;
    border: 2px solid rgba(244,63,94,0.25); border-top-color: var(--ye-accent, #f43f5e);
    border-radius: 50%; animation: yv-spin .7s linear infinite;
}
@keyframes yv-spin { to { transform: rotate(360deg); } }
.yv-empty { text-align: center; padding: 60px 0; color: #666; font-size: 13px; }

/* 桌面分页 / 移动无限滚动哨兵 */
.yv-pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 24px 0; flex-wrap: wrap; }
.yv-pager a, .yv-pager span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 8px; border-radius: 6px;
    font-size: 13px; color: #aaa; text-decoration: none; cursor: pointer;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
}
.yv-pager a:hover { color: #fff; border-color: var(--ye-accent); }
.yv-pager .active { background: var(--ye-accent) !important; border-color: var(--ye-accent) !important; color: #fff; }
.yv-pager .disabled { opacity: .4; pointer-events: none; }
.yv-sentinel { height: 1px; }

/* 路由切换过渡：避免闪烁 */
.yv-fade-enter-active, .yv-fade-leave-active { transition: opacity .15s ease; }
.yv-fade-enter-from, .yv-fade-leave-to { opacity: 0; }

/* 骨架屏：首页/分类/标签页首次加载 + 详情页首次加载，占位形状对齐真实卡片/详情布局 */
@keyframes yv-skel-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.yv-skel-thumb {
    background: linear-gradient(90deg,#111120 25%,#1e1e38 50%,#111120 75%);
    background-size: 200% 100%;
    animation: yv-skel-shimmer 1.4s infinite linear;
}
.yv-skel-bar {
    position: absolute;
    background: rgba(255,255,255,0.10);
    border-radius: 4px;
}
.yv-skel-bar-cat { left: 9px; bottom: 32px; width: 46px; height: 14px; border-radius: 3px; }
.yv-skel-bar-title1 { left: 9px; right: 30px; bottom: 20px; height: 11px; }
.yv-skel-bar-title2 { left: 9px; right: 90px; bottom: 6px; height: 11px; }

.yv-skel-player {
    background: linear-gradient(90deg,#0c0c0c 25%,#161616 50%,#0c0c0c 75%);
    background-size: 200% 100%;
    animation: yv-skel-shimmer 1.4s infinite linear;
    aspect-ratio: 16/9;
    width: 100%;
}
.yv-skel-title-bar1, .yv-skel-title-bar2 {
    height: 16px; border-radius: 4px;
    background: linear-gradient(90deg,#111120 25%,#1e1e38 50%,#111120 75%);
    background-size: 200% 100%;
    animation: yv-skel-shimmer 1.4s infinite linear;
    margin-top: 14px;
}
.yv-skel-title-bar2 { width: 60%; margin-top: 10px; }
.yv-skel-pill {
    width: 64px; height: 22px; border-radius: 20px;
    background: linear-gradient(90deg,#111120 25%,#1e1e38 50%,#111120 75%);
    background-size: 200% 100%;
    animation: yv-skel-shimmer 1.4s infinite linear;
}

/* 播放页友情链接条（原版 block/friend_links_play 同款样式） */
.hj-fl-play{padding:8px 0 4px;margin:0}
.hj-fl-play-list{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-start}
.hj-fl-play-list a{font-size:13px;color:#999;text-decoration:none;padding:3px 10px;border-radius:4px;border:1px solid rgba(255,255,255,0.1);transition:all .2s;background:rgba(255,255,255,0.03)}
.hj-fl-play-list a:hover{color:#fff;border-color:rgba(255,102,0,0.6);background:rgba(255,102,0,0.12)}

/* ══════════════════════════════
   电脑访问强制走手机版布局，不做独立宽屏样式（同 langmei 的 #lm-app 限宽做法）。
   限宽加在 html/body 上，约束住普通文档流内容。
   header、.side-top 是 position:fixed，定位基准始终是真实浏览器视口（没有给任何祖先加
   transform，特意保持这一点，不然 fixed 元素会失去"贴着视口滚动"的效果，变成跟着页面内容滚走）。
   用 left:50%+translateX(-50%)（header）和 right:calc(50vw...)（.side-top）把它们在
   真实视口坐标系里精确摆到"和480px内容区对齐"的位置，视口宽度变化时会重新计算，但视觉上
   相对于窄栏内容区的位置永远不变——效果等同于"以手机宽度为准"，只是实现手段没有绑定 transform。
   这几条不套在任何 @media 里，写在文件最后，靠源码顺序覆盖掉前面 @media(min-width:769px) 那批桌面专属规则。
══════════════════════════════ */
html, body {
    width: 100vw !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    overflow-x: clip !important;
}
#yv-app {
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
}
header {
    position: fixed !important;
    height: 54px !important;
    max-width: 480px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    z-index: 200 !important;
}
body { padding-top: 54px !important; }
.show .show-sticky-top {
    position: sticky !important;
    top: 54px !important;
}
.side-top {
    /* 480px内容区右边缘距视口右侧 = 50vw-240px，再退20px（跟原版mobile的 right:20px 保持一致间距）；
       max() 兜底：真实视口本来就 ≤480px（比如手机）时这个值会比20px还小甚至负，退回原版 right:20px */
    right: max(20px, calc(50vw - 220px)) !important;
    left: auto !important;
}
/* 按钮本身的大小也是按真实视口宽度用 @media(max-width:768px) 切成小图标的，
   桌面宽屏下会退回没收窄前的60px大图标，这里强制按手机版的40px小图标显示，不管真实视口多宽 */
.side-top .svg-box { min-width: 40px !important; min-height: 40px !important; }
.side-top .svg-box .iconfont { font-size: 20px !important; }
/* .row 的左右内边距同样按真实视口宽度分了好几档 media query（60px/80px/60px/15px），
   桌面宽屏下会用大的那档，这里强制成手机档（≤768px时的15px），不管真实视口多宽 */
.row { padding: 0 15px !important; }

/* 首页底部"下载APP"固定条：跟 header 一样是 position:fixed，用 left:50%+translateX(-50%)
   在真实视口坐标系里精确摆到跟480px内容区对齐（原理见本文件顶部关于 header/.side-top 的说明） */
.yv-dlbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1a1414, #26141a);
    border-top: 1px solid rgba(244, 63, 94, .45);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .5);
}
.yv-dlbar-icon { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; display: block; }
.yv-dlbar-text { flex: 1; min-width: 0; }
.yv-dlbar-title { color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; }
.yv-dlbar-sub { color: #999; font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yv-dlbar-btn {
    flex-shrink: 0;
    background: linear-gradient(90deg, #f43f5e, #fb7185);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(244, 63, 94, .45);
    white-space: nowrap;
}
.yv-dlbar-close { flex-shrink: 0; color: #777; font-size: 22px; line-height: 1; padding: 4px 0 4px 6px; cursor: pointer; }
/* 底部条固定占位，撑开页面底部内容避免被挡住；同时把 .side-top 的 home/回顶按钮顶到条上面去，不重叠 */
body.yv-has-dlbar { padding-bottom: 64px !important; }
body.yv-has-dlbar .side-top { bottom: 132px !important; }

/* 播放页专属顶部条：返回按钮+居中标题（原版yesege的共用header在播放页只显示返回按钮，没有标题，
   照langmei的做法单独给播放页加一条，不影响其他页面的共用header） */
.yv-play-topbar {
    position: sticky;
    top: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    height: 46px;
    background: #191919;
    margin: 0 -14px;
    width: calc(100% + 28px);
    padding: 0 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.yv-play-topbar-back,
.yv-play-topbar-spacer {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}
.yv-play-topbar-back {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}
.yv-play-topbar-title {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 播放页共用header不渲染了，去掉预留的顶部间距，改由 .yv-play-topbar 自己占位 */
body.yv-is-play { padding-top: 0 !important; }

/* 广告横幅：v-lazy骨架图占位，跟188-vue/518-vue同款写法（ye-前缀） */
.ye-ad-banner-wrap { width: 100%; }
.ye-ad-banner {
    display: block;
    position: relative;
    width: 100%;
    margin: 6px 0 12px;
}
.ye-ad-banner-box { position: relative; width: 100%; }
.ye-ad-banner-skeleton {
    width: 100%;
    padding-top: 10%;
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    background: var(--ye-card-bg);
}
.ye-skeleton-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: ye-shine 1.4s infinite;
}
@keyframes ye-shine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.ye-ad-banner-img { width: 100%; height: auto; display: block; border-radius: var(--card-radius); }
.ye-ad-banner-img--pending {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}
.ye-ad-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,.4);
    color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.25);
    font-size: 9px;
    padding: 1px 5px;
}

/* 九宫格广告：横幅下方，3行4列共12张方图，不带"广告"角标 */
.ye-ad-grid-wrap { width: 100%; margin: 0 0 12px; }
.ye-ad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ye-ad-grid-item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--ye-card-bg);
    margin: 10px;
}
.ye-ad-grid-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ══════════════════════════════
   账号系统 UI（toast/cap-mask/我的页/充值页），仿518-vue/188-vue，2026-09-02新增
══════════════════════════════ */
.yv-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: rgba(20,20,20,.92); color: #fff; font-size: 13px; padding: 10px 18px;
  border-radius: 20px; max-width: 80%; text-align: center; z-index: 999;
  opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}
.yv-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 次数用完遮罩（播放页） */
.yv-cap-mask { display: flex; align-items: center; justify-content: center; padding: 30px 0; }
.yv-cap-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px; }
.yv-cap-card--wide { width: 100%; }
.yv-cap-icon {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(244,63,94,.15);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.yv-cap-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.yv-cap-desc { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; margin-bottom: 18px; max-width: 260px; }
.yv-cap-btn {
  display: inline-block; padding: 10px 28px; border-radius: 22px; background: var(--ye-accent, #f43f5e);
  color: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
}
.yv-cap-btn:active { transform: scale(.97); opacity: .9; }

/* "我的"页 */
.yv-page-my { min-height: 100vh; background: #0f0f0f; }
.yv-my-fixbar { background: #0f0f0f; padding-bottom: 4px; }
.yv-my-hero { display: flex; align-items: center; gap: 14px; padding: 20px 14px 12px; }
.yv-my-avatar {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff; flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,0,0,.3); text-transform: uppercase;
}
.yv-my-userinfo { flex: 1; min-width: 0; }
.yv-my-uname { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yv-my-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 8px; font-weight: 600; }
.yv-my-tag--vip { background: linear-gradient(120deg,#7c4a03,#d68a1a); color: #fff; }
.yv-my-tag--guest { background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }

.yv-my-vip-banner {
  position: relative; display: flex; align-items: center; gap: 12px; margin: 0 14px 16px; padding: 13px 14px;
  border-radius: 16px; background: linear-gradient(120deg, #7c4a03 0%, #d68a1a 50%, #f8c85c 100%);
  box-shadow: 0 8px 18px rgba(124,74,3,.35); cursor: pointer; overflow: hidden; transition: transform .1s, opacity .15s;
}
.yv-my-vip-banner::after {
  content: ''; position: absolute; top: -50%; right: 6%; width: 70px; height: 200%;
  background: rgba(255,255,255,.14); transform: rotate(20deg); pointer-events: none;
}
.yv-my-vip-banner:active { transform: scale(.98); opacity: .92; }
.yv-my-vip-banner-badge {
  position: relative; z-index: 1; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.yv-my-vip-banner-text { position: relative; z-index: 1; flex: 1; min-width: 0; }
.yv-my-vip-banner-title { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.yv-my-vip-banner-desc { font-size: 12px; color: rgba(255,255,255,.9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yv-my-vip-banner-arrow { position: relative; z-index: 1; }

.yv-my-stats { padding: 0 14px; margin-bottom: 18px; }
.yv-stat-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.yv-stat-num { font-size: 20px; font-weight: 800; color: #fff; }
.yv-stat-num em { font-size: 13px; font-weight: 400; color: rgba(255,255,255,.4); font-style: normal; }
.yv-stat-label { font-size: 12px; color: rgba(255,255,255,.5); }
.yv-stat-bar { width: 100%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 4px; }
.yv-stat-fill { height: 100%; background: var(--ye-accent, #f43f5e); border-radius: 2px; }

.yv-my-actions { display: flex; gap: 10px; padding: 0 14px; margin-bottom: 16px; }
.yv-my-btn {
  flex: 1; height: 42px; border-radius: 21px; border: none; display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.yv-my-btn--primary { background: var(--ye-accent, #f43f5e); color: #fff; }
.yv-my-btn--ghost { background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); }
.yv-my-btn:active { opacity: .85; transform: scale(.98); }

.yv-my-sec-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; }
.yv-my-sec-title { font-size: 14px; font-weight: 700; color: #fff; }
.yv-my-clear-btn { font-size: 12px; color: rgba(255,255,255,.4); text-decoration: none; }

.yv-my-section { padding: 0 14px 40px; }
.yv-my-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 60px 0; color: rgba(255,255,255,.3); font-size: 13px; }
.yv-hist-list { display: flex; flex-direction: column; gap: 10px; }
.yv-hist-item { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.yv-hist-thumb { width: 84px; height: 52px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #1a1a1a; }
.yv-hist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yv-hist-info { flex: 1; min-width: 0; }
.yv-hist-name { font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.yv-hist-meta { display: flex; gap: 8px; font-size: 11px; color: rgba(255,255,255,.4); }
.yv-hist-type { padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.08); }

/* 弹层：绑定/登录/找回密码 */
.yv-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 400; }
.yv-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 401; background: #191919;
  border-radius: 18px 18px 0 0; padding: 10px 18px 26px; transform: translateY(100%);
  transition: transform .25s ease; max-width: 480px; margin: 0 auto;
}
.yv-sheet--open { transform: translateY(0); }
.yv-sheet-bar { width: 36px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); margin: 4px auto 14px; }
.yv-sheet-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 16px; text-align: center; }
.yv-fld { margin-bottom: 12px; }
.yv-flabel { display: block; font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.yv-finput {
  width: 100%; box-sizing: border-box; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05); color: #fff; font-size: 14px; padding: 0 12px;
}
.yv-finput--sel { appearance: none; }
.yv-finput--ro { display: flex; align-items: center; color: rgba(255,255,255,.7); }
.yv-ferr { color: #f87171; font-size: 12px; margin: -4px 0 10px; }
.yv-fsubmit {
  width: 100%; height: 46px; border-radius: 23px; border: none; background: var(--ye-accent, #f43f5e);
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 6px;
}
.yv-fsubmit:active { opacity: .8; transform: scale(.98); }
.yv-fsubmit:disabled { opacity: .6; cursor: default; }
.yv-flink { display: block; text-align: center; margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.4); }
.yv-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.yv-step {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.yv-step--on { background: var(--ye-accent, #f43f5e); color: #fff; }
.yv-step-line { width: 24px; height: 1px; background: rgba(255,255,255,.15); }
.yv-step-ok { text-align: center; color: #4ade80; font-size: 13px; margin-bottom: 14px; }

/* 会员充值页 */
.yv-page-pay { min-height: 100vh; background: #0f0f0f; }
.yv-pay-loading { padding-top: calc(env(safe-area-inset-top) + 80px); text-align: center; color: rgba(255,255,255,.4); font-size: 14px; }
.yv-pay-body { padding: 16px 14px 40px; }
.yv-pay-profile { display: flex; align-items: center; gap: 14px; padding: 0 4px; margin-bottom: 18px; }
.yv-pay-avatar {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff; flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,0,0,.3); text-transform: uppercase;
}
.yv-pay-profile-info { flex: 1; min-width: 0; }
.yv-pay-profile-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yv-pay-bind-tip { background: rgba(244,63,94,.1); border: 1px solid rgba(244,63,94,.25); border-radius: 10px; padding: 10px 12px; margin-bottom: 20px; }
.yv-pay-bind-tip-row { display: flex; align-items: center; gap: 10px; }
.yv-pay-bind-tip-text { flex: 1; min-width: 0; font-size: 12px; line-height: 1.5; color: #fda4af; }
.yv-pay-bind-tip-text2 { font-size: 11px; line-height: 1.5; color: rgba(253,164,175,.75); margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(244,63,94,.2); }
.yv-pay-bind-tip-text2 a { color: #fda4af; font-weight: 700; text-decoration: underline; }
.yv-pay-bind-tip-btn { flex: none; display: block; font-size: 12px; font-weight: 700; color: #fff; background: var(--ye-accent, #f43f5e); border-radius: 8px; padding: 7px 12px; white-space: nowrap; }
.yv-pay-plan-orig { font-size: 11px; color: rgba(255,255,255,.35); text-decoration: line-through; margin-top: 4px; }
.yv-pay-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.yv-pay-plan { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 16px 8px 14px; text-align: center; cursor: pointer; }
.yv-pay-plan.active { border-color: var(--ye-accent, #f43f5e); background: rgba(244,63,94,.1); }
.yv-pay-plan-tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: var(--ye-accent, #f43f5e); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 8px; border-radius: 8px; white-space: nowrap; }
.yv-pay-plan-name { font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 6px; }
.yv-pay-plan-price { font-size: 20px; color: var(--ye-accent, #f43f5e); font-weight: 800; }
.yv-pay-methods { margin-bottom: 28px; }
.yv-pay-method-title { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.yv-pay-method-row { display: flex; flex-direction: column; gap: 10px; }
.yv-pay-method {
  width: 100%; box-sizing: border-box; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,.7); cursor: pointer;
}
.yv-pay-method.active { border-color: var(--ye-accent, #f43f5e); color: #fff; background: rgba(244,63,94,.1); }
.yv-pay-check-mask { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 0 30px; }
.yv-pay-check-box { width: 100%; max-width: 320px; background: #1f1f1f; border-radius: 16px; padding: 28px 22px 24px; text-align: center; }
.yv-pay-check-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.yv-pay-check-desc { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; margin-bottom: 18px; }
