@charset "utf-8";
/* ==========================================================================
   X站风格主题 — 深色视频站 / PC + 移动端自适应
   封面比例、品牌色由后台主题设置注入（见 html/public/style.html）
   ========================================================================== */

/* ---------------------------------------------------------------- 设计变量 */
:root {
    --basic-color: #ff9000;
    --poster-high: 56.25%;
    --poster-radius: 8px;

    --bg: #120a0c;
    --bg-soft: #1a1013;
    --surface: #221519;
    --surface-2: #2c1c21;
    --surface-3: #38252b;
    --text: #f2f2f2;
    --text-muted: #9b9b9b;
    --text-dim: #6d6d6d;
    --border: #331f25;
    --border-strong: #472e35;
    --accent: var(--basic-color);
    --accent-ink: #160a0d;
    --shadow: 0 10px 28px rgba(0, 0, 0, .55);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, .4);

    --maxw: 1440px;
    --pad: 14px;
    --gap: 12px;
    --header-h: 56px;
    --catbar-h: 46px;
    --bottom-h: 54px;
    --radius: 14px;
    --radius-sm: 10px;
}

/* ------------------------------------------------------------------ Reset */
*, :after, :before { box-sizing: border-box; -webkit-box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
}
h1, h2, h3, h4, h5, h6 { font-size: 16px; font-weight: 600; margin: 0; }
p, dl, dd, dt, ul, ol, li, figure { margin: 0; padding: 0; }
li, ol, ul { list-style: none; }
a, a:link, a:visited, a:active { color: inherit; text-decoration: none; font-size: inherit; }
a:hover { color: var(--accent); text-decoration: none; }
img { border: 0; vertical-align: middle; }
input, button, select, textarea { font-family: inherit; font-size: 14px; color: inherit; outline: none; }
input { -webkit-appearance: none; appearance: none; }
i, em, address, cite, code, dfn, th, var { font-style: normal; font-weight: 400; }
svg { display: block; }

/* ------------------------------------------------------------- 通用工具类 */
.clearfix { clear: both; }
.clearfix:after, .fn-clear:after { content: ""; display: block; clear: both; }
/* 下列容器是 flex/grid，clearfix 生成的伪元素会变成多余的一个子项（多一格/多一段间距），直接抹掉 */
.img-list:after, .video_list:after, .detail-cols:after, .box .title:after,
.hero-strip:after, .all-like ul:after, .hot-search ul:after, .mac_pages .page_info:after { display: none; }
.fn-left { float: left; }
.fn-right { float: right; }
.hide { display: none !important; }
.margin-0 { margin: 0 !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.bold { font-weight: 700 !important; }
.font-24 { font-size: 24px !important; }
.txt-ov { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txt-ov-3 {
    overflow: hidden; text-overflow: ellipsis; word-break: break-word;
    display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.split-line { display: inline-block; margin: 0 10px; width: 1px; height: 12px; vertical-align: -1px; background: var(--border-strong); }
.btn-default { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.btn-warm { border-color: var(--accent) !important; color: var(--accent) !important; background: rgba(255, 144, 0, .1); }

/* 全站内容容器 */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ================================================================== 顶栏 */
.site-header {
    position: sticky; top: 0; z-index: 900;
    background: rgba(13, 13, 13, .94);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header .header-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
    height: var(--header-h); display: flex; align-items: center; gap: 12px;
}
.site-logo { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; max-width: 42%; }
.site-logo img { height: 30px; width: auto; }
.site-logo .logo-text {
    font-size: 19px; font-weight: 800; letter-spacing: .5px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; color: var(--text);
}
.site-logo .logo-text em { color: var(--accent); font-weight: 800; }

/* 搜索框 */
.site-search { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.site-search form, .site-search .ui-search {
    position: relative; width: 100%; max-width: 520px; display: flex; align-items: center;
}
.site-search .search-input {
    width: 100%; height: 38px; line-height: 38px; padding: 0 46px 0 16px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 40px; color: var(--text); font-size: 14px;
    transition: border-color .2s, background .2s;
}
.site-search .search-input::placeholder { color: var(--text-dim); }
.site-search .search-input:focus { border-color: var(--accent); background: var(--surface); }
.site-search .search-button {
    position: absolute; right: 4px; top: 4px; width: 40px; height: 30px;
    border: 0; border-radius: 40px; cursor: pointer;
    background: var(--accent) url(../images/search.png) no-repeat center;
    background-size: 16px 16px; font-size: 0; overflow: hidden;
}
.site-search .search-button:hover { filter: brightness(1.1); }

/* 顶栏右侧动作 */
.header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.header-actions a {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; color: var(--text-muted);
    transition: background .2s, color .2s;
}
.header-actions a:hover { background: var(--surface-2); color: var(--accent); }
.header-actions svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

/* 分类导航条 */
.cat-bar {
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    position: sticky; top: var(--header-h); z-index: 890;
}
.cat-bar .cat-scroll {
    max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
    height: var(--catbar-h); display: flex; align-items: center; gap: 8px;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none;
}
.cat-bar .cat-scroll::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
.cat-bar a {
    flex: 0 0 auto; padding: 6px 14px; border-radius: 40px; font-size: 13px;
    color: var(--text-muted); background: var(--surface); border: 1px solid var(--border);
    white-space: nowrap; transition: all .2s;
}
.cat-bar a:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.cat-bar a.active {
    color: var(--accent-ink); background: var(--accent);
    border-color: var(--accent); font-weight: 600;
}

/* ============================================================ 视频卡片网格 */
.img-list {
    display: grid; gap: var(--gap);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vod-card { min-width: 0; }
.vod-card > a { display: block; }

.vod-card .thumb {
    position: relative; display: block; width: 100%;
    padding-bottom: var(--poster-high); height: 0; overflow: hidden;
    border-radius: var(--poster-radius); background: var(--surface-2);
}
.vod-card .thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 22%;
    transition: transform .35s ease, filter .35s ease;
}
/* 封面角标 */
.vod-card .badge {
    position: absolute; z-index: 2; bottom: 6px; right: 6px;
    padding: 1px 6px; border-radius: 4px; font-size: 11px; line-height: 16px;
    color: #fff; background: rgba(0, 0, 0, .78); letter-spacing: .2px;
    max-width: calc(100% - 12px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
/* 悬浮播放按钮 */
.vod-card .play-mask {
    position: absolute; inset: 0; z-index: 1; display: flex;
    align-items: center; justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%);
    opacity: 0; transition: opacity .25s ease;
}
.vod-card .play-mask i {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; padding-left: 3px; box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.vod-card .vod-title {
    margin-top: 7px; font-size: 13px; font-weight: 500; line-height: 1.45;
    color: var(--text); transition: color .2s;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; word-break: break-word;
}
.vod-card .vod-meta {
    margin-top: 3px; font-size: 11px; color: var(--text-dim);
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap; overflow: hidden;
}
.vod-card .vod-meta span { overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) {
    .vod-card > a:hover .thumb img { transform: scale(1.06); }
    .vod-card > a:hover .play-mask { opacity: 1; }
    .vod-card > a:hover .vod-title { color: var(--accent); }
}

/* ================================================================ 版块容器 */
.box { margin-top: 22px; }
.box .title {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; gap: 10px;
}
.box .title h2 {
    position: relative; padding-left: 12px; font-size: 17px; font-weight: 700;
    color: var(--text); line-height: 1.3;
}
.box .title h2:before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 16px; border-radius: 2px; background: var(--accent);
}
.box .title a {
    flex: 0 0 auto; font-size: 12px; color: var(--text-muted);
    padding: 3px 12px; border: 1px solid var(--border); border-radius: 40px;
    transition: all .2s;
}
.box .title a:hover { color: var(--accent); border-color: var(--accent); }
.box .box_title { font-size: 17px; font-weight: 700; margin: 4px 0 14px; }
.box .box_con { width: 100%; }

/* 广告位 */
.ad-box { margin-top: 18px; }
.ad-box .shoutu-ad-img { display: block; border-radius: var(--radius); overflow: hidden; }
.ad-box img { width: 100%; display: block; border-radius: var(--radius); }

/* =============================================================== 首页首屏 */
.hero-strip {
    display: grid; gap: var(--gap); margin-top: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-strip .nav-item { min-width: 0; }
.hero-strip .nav-item > a {
    position: relative; display: block; overflow: hidden;
    padding: 16px 14px; border-radius: var(--radius);
    background: linear-gradient(100deg, #2c0e16 0%, var(--surface) 62%);
    border: 1px solid var(--border); min-height: 92px;
}
.hero-strip .nav-item:nth-child(2n) > a { background: linear-gradient(100deg, #1b0d1f 0%, var(--surface) 62%); }
.hero-strip .nav-item h3 { font-size: 17px; font-weight: 700; color: var(--text); }
.hero-strip .nav-item p {
    font-size: 12px; color: var(--text-muted); margin: 3px 0 10px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-strip .nav-item span {
    display: inline-block; font-size: 12px; padding: 3px 12px; border-radius: 40px;
    color: var(--accent-ink); background: var(--accent); font-weight: 600;
}
.hero-strip .nav-item > a:after {
    content: ""; position: absolute; right: -18px; bottom: -22px;
    width: 88px; height: 88px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 144, 0, .3) 0%, rgba(255, 144, 0, 0) 70%);
}
@media (hover: hover) {
    .hero-strip .nav-item > a:hover { border-color: var(--accent); }
}

/* ============================================================== 分类页/列表 */
.page-main { display: block; }
.type-layout { display: block; }
.type-layout .page-main { padding: 0 var(--pad); }

/* 分类导航：移动端=顶部横滑条，PC=左侧竖排侧栏（同一份标记，CSS 切换形态） */
.type-aside {
    position: sticky; top: var(--header-h); z-index: 880;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.type-aside ul {
    display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--pad);
    max-width: var(--maxw); margin: 0 auto;
    scrollbar-width: none; -ms-overflow-style: none;
}
.type-aside ul::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
.type-aside ul li { flex: 0 0 auto; }
.type-aside ul li a {
    display: block; padding: 6px 14px; border-radius: 40px; font-size: 13px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-muted); white-space: nowrap; transition: all .2s;
}
.type-aside ul li a:hover { color: var(--text); border-color: var(--border-strong); }
.type-aside ul li a.active {
    background: var(--accent); border-color: var(--accent);
    color: var(--accent-ink); font-weight: 600;
}

/* ================================================================ 详情页 */
.detail-hero { position: relative; overflow: hidden; margin-top: 16px; }
.detail-hero .hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center 25%;
    filter: blur(28px) saturate(150%) brightness(.55);
    transform: scale(1.15);
}
.detail-hero .hero-bg:after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13, 13, 13, .55) 0%, var(--bg) 96%);
}
.detail-hero .hero-inner {
    position: relative; z-index: 1; padding: 20px var(--pad);
    max-width: var(--maxw); margin: 0 auto;
}

.detail-cols { display: flex; gap: 16px; align-items: flex-start; }
.detail-pic {
    flex: 0 0 118px; width: 118px; position: relative;
    border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
    box-shadow: var(--shadow);
}
.detail-pic img { display: block; width: 100%; height: auto; }
.detail-info { flex: 1 1 auto; min-width: 0; padding-top: 2px; }
.detail-title h1 {
    font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.detail-info .info { margin-top: 10px; }
.detail-info .info dl {
    display: flex; gap: 6px; font-size: 12.5px; line-height: 1.9; color: var(--text-muted);
    overflow: hidden;
}
.detail-info .info dt { flex: 0 0 auto; color: var(--text-dim); }
.detail-info .info dd { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.detail-info .info dd a, .detail-info .info dd span {
    display: inline-block; margin: 0 6px 0 0; padding: 0 8px; font-size: 12px;
    color: var(--text-muted); background: var(--surface-2);
    border: 1px solid var(--border); border-radius: 40px; line-height: 20px;
}
.detail-info .info dd a:hover { color: var(--accent); border-color: var(--accent); }
.detail-info .play-btn { margin-top: 14px; max-width: 260px; }
.detail-info .play-btn a {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 16px; border-radius: 40px; font-size: 14px; font-weight: 600;
    background: var(--accent); color: var(--accent-ink); transition: filter .2s;
}
.detail-info .play-btn a:hover { filter: brightness(1.08); color: var(--accent-ink); }

/* 播放 / 分享 / 返回 动作行 */
.detail-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.detail-actions .play-btn { margin-top: 0; flex: 1 1 auto; max-width: 240px; }
.detail-actions .round-btn {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text-muted); transition: all .2s; cursor: pointer;
}
.detail-actions .round-btn:hover { color: var(--accent); border-color: var(--accent); }
.detail-actions .round-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* 简介 */
.content-cols {
    margin-top: 16px; padding: 14px 16px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
}
.content-cols .content-title {
    font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 6px;
}
.content-cols .content-info { font-size: 13px; color: var(--text-muted); line-height: 1.75; }

/* 剧集选集 */
#play_tab.tab { margin: 18px 0 0; }
#play_tab.tab ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
#play_tab.tab ul::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
#play_tab.tab ul li {
    flex: 0 0 auto; padding: 6px 14px; border-radius: 40px; font-size: 13px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
    cursor: pointer; transition: all .2s;
}
#play_tab.tab ul li.active { background: var(--accent); border-color: var(--accent); }
#play_tab.tab ul li.active a { color: var(--accent-ink); font-weight: 600; }
#play_tab_box { margin-top: 14px; max-height: 340px; overflow-y: auto; }
.video_list {
    display: grid; gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.video_list a {
    display: block; padding: 7px 8px; text-align: center; font-size: 12.5px;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--surface); color: var(--text-muted);
    transition: all .2s; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.video_list a:hover { border-color: var(--accent); color: var(--accent); }
.video_list a.btn-warm { border-color: var(--accent) !important; color: var(--accent-ink) !important; background: var(--accent); font-weight: 600; }

/* ================================================================ 播放页 */
body.page-play { padding-bottom: 0; }
.play-wrap { width: 100%; }
#play-box {
    background: #000; width: 100%; overflow: hidden;
    /* 留出约 52px，让下方「选集」入口在首屏露出来（短剧集数多，这是主要导航） */
    height: calc(100vh - var(--header-h) - 52px);
}
#play-box .MacPlayer, #play-box video, #play-box iframe {
    width: 100%; height: 100%; border: 0; display: block;
}
#play-footer { padding: 18px var(--pad); }
.footer-title {
    display: flex; align-items: center; gap: 8px; padding: 12px 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 13.5px; color: var(--text-muted);
    cursor: pointer; transition: border-color .2s;
}
.footer-title:hover { border-color: var(--border-strong); }
.footer-title svg { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; }
.footer-title span { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); }
.footer-title i { flex: 0 0 auto; display: flex; }
#play-list {
    display: none; position: fixed; left: 0; right: 0; bottom: -100%;
    margin: 0 var(--pad) calc(18px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--radius); box-shadow: var(--shadow); z-index: 999999;
    transition: bottom .35s ease;
}
#play-list .footer-title { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
#play-list .play-list { max-height: 52vh; overflow-y: auto; padding: 12px; }
#overlay {
    display: none; position: fixed; inset: 0; z-index: 999998;
    background: rgba(0, 0, 0, .72);
}

/* ================================================================== 搜索页 */
.hot-search { padding: 18px 0 8px; }
.hot-search .title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.hot-search ul { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-search ul li {
    padding: 5px 12px; border-radius: 40px; font-size: 12.5px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
}
.hot-search ul li:hover { border-color: var(--accent); color: var(--accent); }

.all-like {
    margin: 14px 0; padding: 16px;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.all-like .title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.all-like ul { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.all-like ul li { min-width: 0; }
.all-like ul li a { font-size: 13px; color: var(--text-muted); display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.all-like ul li a span { color: var(--accent); font-weight: 700; font-style: italic; margin-right: 6px; }
.all-like ul li a:hover { color: var(--accent); }
.search-list .title h3 { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.search-list .title h3 .hl-total { color: var(--accent); font-weight: 700; padding: 0 3px; }

/* ============================================================ 历史/通用列表 */
#history #detail-box { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
#history .detail-cols {
    padding: 12px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
}
#history .detail-pic { flex: 0 0 96px; width: 96px; box-shadow: none; }
#history .play-btn { margin-top: 10px; max-width: 160px; }
#history .play-btn a { padding: 7px 14px; font-size: 13px; }

/* ============================================================== 翻页 */
.pages { padding: 22px 0 8px; }
.mac_pages .page_info { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mac_pages .page_link {
    min-width: 34px; height: 34px; line-height: 32px; padding: 0 11px;
    text-align: center; font-size: 13px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
    transition: all .2s;
}
.mac_pages .page_link:hover { border-color: var(--accent); color: var(--accent); }
.mac_pages .page_link.page_current {
    background: var(--accent) !important; border-color: var(--accent) !important;
    color: var(--accent-ink) !important; font-weight: 700;
}

/* ================================================================ 底部 */
.site-footer {
    margin-top: 34px; padding: 22px var(--pad) 26px;
    border-top: 1px solid var(--border); background: var(--bg-soft);
    text-align: center; font-size: 12.5px; color: var(--text-dim); line-height: 1.9;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 10px; }
.site-footer .footer-links a { font-size: 13px; }

/* 移动端底部导航 */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: flex; background: rgba(13, 13, 13, .96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav a {
    flex: 1 1 0; min-width: 0; height: var(--bottom-h);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 11px; color: var(--text-dim); transition: color .2s;
}
.bottom-nav a i { font-size: 20px; line-height: 1; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--accent); }

/* ============================================================== 弹窗 */
.shoutu-dialog {
    position: fixed; z-index: 999999; background: var(--surface);
    color: var(--text); display: flex; flex-direction: column; overflow: hidden; outline: 0;
    transition: transform .3s;
}
.shoutu-dialog .item { flex: 1; min-height: 0; overflow-y: auto; }
.shoutu-dialog .button {
    position: absolute; text-align: center; background: var(--surface-2); z-index: 999; color: var(--text);
}
.shoutu-dialog .button.right { top: 50%; left: 0; margin-top: -25px; width: 26px; height: 50px; line-height: 45px; border-radius: 0 5px 5px 0; }
.shoutu-dialog .button.left { top: 50%; right: 0; margin-top: -25px; width: 26px; height: 50px; line-height: 45px; border-radius: 5px 0 0 5px; }
.shoutu-dialog .button.bottom { top: 0; left: 50%; margin-left: -25px; width: 50px; height: 26px; line-height: 22px; border-radius: 0 0 5px 5px; }
.shoutu-dialog .button.top { bottom: 0; left: 50%; margin-left: -25px; width: 50px; height: 26px; line-height: 22px; border-radius: 5px 5px 0 0; }
.shoutu-dialog.bottom { left: 0; right: 0; bottom: 0; border-radius: 14px 14px 0 0; min-height: 225px; max-height: 75%; transform: translateY(100%); }
.shoutu-dialog.bottom.show { transform: translateY(0); }
.shoutu-dialog.right { top: 0; right: 0; bottom: 0; border-radius: 14px 0 0 14px; min-width: 225px; max-width: 360px; transform: translateX(100%); }
.shoutu-dialog.right.show { transform: translateX(0); }
.shoutu-dialog.left { top: 0; left: 0; bottom: 0; border-radius: 0 14px 14px 0; min-width: 225px; max-width: 360px; transform: translateX(-100%); }
.shoutu-dialog.left.show { transform: translateX(0); }
.shoutu-dialog.center { top: 50%; left: 50%; width: 320px; transform: translate(-50%, -50%); border-radius: 14px; display: none; }
.shoutu-dialog.center.show { display: block; }
.panel { position: relative; padding: 20px; margin-top: 16px; background: var(--surface); border-radius: var(--radius); }
.panel .panel-hd { position: relative; padding-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.mask { position: fixed; inset: 0; z-index: 999998; background: rgba(0, 0, 0, .72); }

/* 播放页试看提示 */
.player_showtry { color: var(--text); background: var(--surface); padding: 20px; }
.player_showtry .btn { display: inline-block; padding: 8px 18px; border-radius: 40px; margin: 0 4px; }
.player_showtry .btn-primary { background: var(--accent); color: var(--accent-ink); }

/* ======================================================== 响应式断点 */
@media (min-width: 600px) {
    :root { --pad: 18px; --gap: 14px; }
    .img-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .video_list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .detail-pic { flex: 0 0 150px; width: 150px; }
    .detail-title h1 { font-size: 22px; }
    .all-like ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    :root { --pad: 22px; --gap: 16px; --header-h: 62px; --catbar-h: 50px; }
    body { padding-bottom: 0; }
    .img-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .video_list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .vod-card .vod-title { font-size: 13.5px; }

    /* 首页首屏两栏更宽 */
    .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .hero-strip .nav-item > a { padding: 20px 22px; min-height: 112px; }
    .hero-strip .nav-item h3 { font-size: 20px; }

    /* 分类页：左侧栏 + 右侧网格 */
    .type-layout { display: flex; gap: 22px; align-items: flex-start; max-width: var(--maxw); margin: 0 auto; padding: 18px var(--pad) 0; }
    .type-layout .page-main { flex: 1 1 auto; min-width: 0; padding: 0; }
    .type-layout .box { margin-top: 0; }
    .type-aside {
        flex: 0 0 172px; width: 172px; position: sticky;
        top: calc(var(--header-h) + 14px);
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius); padding: 10px; overflow-y: auto;
        max-height: calc(100vh - var(--header-h) - 34px);
    }
    .type-aside ul { display: block; padding: 0; max-width: none; overflow: visible; }
    .type-aside ul li { margin-bottom: 2px; }
    .type-aside ul li a {
        padding: 9px 14px; border-radius: var(--radius-sm);
        background: transparent; border-color: transparent; font-size: 14px;
    }
    .type-aside ul li a:hover { background: var(--surface-2); }
    .type-aside ul li a.active { background: var(--accent); border-color: var(--accent); }

    /* 详情页 */
    .detail-pic { flex: 0 0 200px; width: 200px; }
    .detail-title h1 { font-size: 26px; }
    #history #detail-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* 底部导航改为普通页脚 */
    .bottom-nav { display: none; }
    .site-footer { margin-top: 44px; padding: 30px var(--pad) 34px; }
}

@media (min-width: 1200px) {
    .img-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    #history #detail-box { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1500px) {
    .img-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* 小屏顶栏适配 */
@media (max-width: 599px) {
    .site-logo .logo-text { font-size: 17px; }
    .site-header .header-inner { gap: 8px; }
    .box .title h2 { font-size: 16px; }
    .detail-info .play-btn { max-width: none; }
}

/* 播放页：PC 居中，播放器按 16:9（播放器与选集条左右对齐） */
@media (min-width: 900px) {
    .play-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
    #play-box { height: auto; aspect-ratio: 16 / 9; }
    #play-footer { padding: 18px 0; }
}

/* ==========================================================================
   X站扩展 — 成人向内容模块
   ========================================================================== */

/* -------------------------------------------------------------- 年龄验证 */
.age-gate {
    position: fixed; inset: 0; z-index: 9999999;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    background: var(--bg);
}
.age-gate .age-panel {
    width: 100%; max-width: 400px; padding: 28px 22px 22px;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: 16px; box-shadow: var(--shadow); text-align: center;
}
.age-gate .age-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 62px; height: 62px; margin-bottom: 14px; border-radius: 50%;
    background: rgba(255, 144, 0, .14); border: 2px solid var(--accent);
    color: var(--accent); font-size: 20px; font-weight: 800; letter-spacing: -.5px;
}
.age-gate h2 { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.age-gate p { font-size: 13px; color: var(--text-muted); line-height: 1.75; }
.age-gate .age-warn {
    margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: 12px; color: var(--text-dim); line-height: 1.7; text-align: left;
}
.age-gate .age-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.age-gate .age-actions a {
    display: block; padding: 11px 16px; border-radius: 40px;
    font-size: 14px; font-weight: 600; transition: filter .2s, border-color .2s;
}
.age-gate .age-actions .age-yes { background: var(--accent); color: var(--accent-ink); }
.age-gate .age-actions .age-yes:hover { filter: brightness(1.1); color: var(--accent-ink); }
.age-gate .age-actions .age-no {
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text-muted); font-weight: 500;
}
.age-gate .age-actions .age-no:hover { border-color: var(--border-strong); color: var(--text); }
.age-gate .age-foot { margin-top: 14px; font-size: 11.5px; color: var(--text-dim); }
html.age-locked, html.age-locked body { overflow: hidden; }

/* -------------------------------------------------------- 详情页信息胶囊 */
/* 女优 / 番号 / 片商 / 标签 —— 复用 .info dd a 的胶囊底，这里只补语义色 */
.detail-info .info dd a.info-actor { color: var(--accent); border-color: rgba(255, 144, 0, .4); }
.detail-info .info dd .info-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .4px; color: var(--text); background: var(--surface-3);
}
.detail-info .info dd .info-plain {
    background: transparent; border-color: transparent; padding: 0; color: var(--text-muted);
}

/* 女优头像条（详情页可选区块） */
.actor-strip { margin-top: 16px; }
.actor-strip .actor-list {
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.actor-strip .actor-list::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
.actor-strip .actor-list li { flex: 0 0 auto; width: 64px; text-align: center; }
.actor-strip .actor-list li a { display: block; }
.actor-strip .actor-list li .avatar {
    display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--border);
}
.actor-strip .actor-list li .avatar img { width: 100%; height: 100%; object-fit: cover; }
.actor-strip .actor-list li span {
    display: block; margin-top: 6px; font-size: 11.5px; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.actor-strip .actor-list li a:hover span { color: var(--accent); }
.actor-strip .actor-list li a:hover .avatar { border-color: var(--accent); }

/* ------------------------------------------------------------ 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-cloud a {
    padding: 5px 13px; border-radius: 40px; font-size: 12.5px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
    transition: all .2s;
}
.tag-cloud a:hover { color: var(--accent); border-color: var(--accent); }

/* -------------------------------------------------- 卡片角标语义变体 */
.vod-card .badge.badge-hot { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.vod-card .badge.badge-new { background: rgba(56, 176, 96, .92); color: #fff; font-weight: 700; }

/* ------------------------------------------------------ 播放页补充 */
/* 播放页不显示底部 tabbar，避免遮挡选集面板 */
body.page-play .bottom-nav { display: none; }
body.page-play { padding-bottom: 0; }
#play-box .MacPlayer { background: #000; }

/* 详情页 hero 背景图占位（无封面时不至于发灰） */
.detail-hero .hero-bg.no-pic { background-image: linear-gradient(120deg, var(--surface) 0%, var(--bg) 100%); }

/* ---------------------------------------------------------- 页脚文案区 */
.site-footer .footer-tips { margin-bottom: 8px; color: var(--text-dim); }
.site-footer .footer-copy p { color: var(--text-dim); }
.site-footer .footer-copy p + p { margin-top: 2px; }

/* ------------------------------------------------- 弹窗关闭按钮点击区 */
.eject-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; color: var(--text-muted);
    transition: background .2s, color .2s;
}
.eject-close:hover { background: var(--surface-2); color: var(--accent); }
.shoutu-dialog .panel-bd { color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.shoutu-dialog .panel-bd img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* -------------------------------------------------- 播放页试看/工具类 */
.mb20 { margin-bottom: 20px; }
.col-pd { padding: 0 14px; }
.myui-player__notice h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.myui-player__notice h5 { font-size: 13px; font-weight: 400; color: var(--text-muted); }

/* ==========================================================================
   广告模块 — 样式对齐 uutv8.shop
   ========================================================================== */

/* ---------------------------------------------------- ① 滚屏公告条 */
.scroll-ad {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    height: 26px;
    line-height: 26px;
    margin: 8px 10px 6px;
    background-color: rgba(255, 255, 255, .08);
    border-radius: 13px;
    cursor: pointer;
}
/* 左右渐隐遮罩 */
.scroll-ad::before,
.scroll-ad::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 22px;
    z-index: 1;
    pointer-events: none;
}
.scroll-ad::before { left: 0;  background: linear-gradient(90deg,  var(--bg), transparent); }
.scroll-ad::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.scroll-ad-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll-ad-move 30s linear infinite;
    will-change: transform;
}
.scroll-ad:hover .scroll-ad-track { animation-play-state: paused; }

.scroll-ad-item {
    display: inline-block;
    font-size: 13px;
    color: var(--text);
    letter-spacing: .3px;
}
.scroll-ad-item::after {
    content: "◆";
    margin: 0 22px;
    font-size: 8px;
    color: var(--accent);
    vertical-align: 1px;
}

@keyframes scroll-ad-move {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-ad-track { animation: none; padding-left: 10px; }
}

/* ---------------------------------------------------- ② GIF 广告行 */
.gif-ad-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 10px 10px 4px;
}
.gif-ad-item {
    flex: 1 1 calc(20% - 6px);      /* 一行 5 个，自动等分 */
    min-width: 0;
    max-width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: 5px 3px 4px;
    box-sizing: border-box;
    text-decoration: none;
    transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}
.gif-ad-item:hover {
    transform: translateY(-2px);
    filter: brightness(1.25);
    border-color: rgba(255, 144, 0, .45);
}
.gif-ad-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background: var(--surface-2);
}
.gif-ad-item .gif-ad-text {
    margin: 4px 0 0;
    font-size: 11px;
    line-height: 1.3;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
/* 小屏一行 4 个，避免卡片过窄 */
@media (max-width: 400px) {
    .gif-ad-item { flex: 1 1 calc(25% - 6px); }
}

/* ---------------------------------------------------- ③ 横幅轮播 */
.banner-slider {
    position: relative;
    margin: 12px 10px 4px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
}
.banner-slider .bs-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.banner-slider .bs-track::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
.banner-slider .bs-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: block;
}
.banner-slider .bs-item img {
    width: 100%;
    height: auto;
    display: block;
}
