﻿:root {
  --bg:           #F9F9F9;
  --bg-card:      #ffffff;
  --topbar-bg:    rgba(255, 255, 255, 0.9);
  --topbar-border:#e5e9ef;
  --border:       #e0e0e0;
  --text:         #616161;
  --text-sub:     #888888;
  --text-link:    #636563;
  --input-bg:     #f2f2f2;
  --tag-bg:       #f7f7f7;
  --tag-border:   #e8e8e8;
  --shadow-sm:    0 1px 10px rgba(0, 0, 0, 0.09);
  --transition:   0.25s ease;
  --loadmore:     #9f7d69;
  --topbar-btn-color: #666666;
  --njs-bg:           #F5F5F3;
  --njs-link-color:   #808080;
  --njs-active-bg:    #E6E6E6;
  --njs-active-color: #9E6C6C;
  --njs-item-height:  41px;
  --pl-section-bg:#ffffff;
  --pl-section-border:#e5e9ef;
  --tag-radius: 6px;
  --gutter-v:   14px;
  --gutter-h:   9px;
  
  --epg-scroll-height: 171.2px;   /* 内嵌滚动时的容器高度（EPG_USE_SCROLL=true 时生效）*/
  --epg-btn-height:    40px;    /* 格子最小高度 */
  --epg-gap:           7px;     /* 格子间距 */
  --epg-pad-v:         8px;     /* 容器上下内边距 */
  --epg-pad-h:         10px;    /* 容器左右内边距 */
  --epg-radius:        8px;     /* 格子圆角 */
  --epg-font-size:     13px;    /* 集数字体大小 */
  --epg-sub-font-size: 11px;    /* 副标题字体大小 */

  /* 【浅色配色】 */
  --epg-divider:       #fff2e6; /* 容器上下边框 */
  --epg-wrap-bg:       #F6F4F2; /* 容器背景 */
  --epg-btn-bg:        #f0eeec; /* 格子背景 */
  --epg-btn-border:    #e4e0dc; /* 格子边框 */
  --epg-text:          #808080; /* 集数文字 */
  --epg-t2:            #737373;
  --epg-sub-text:      #b4b0ac; 
  --epg-active-bg:     #F0EEEC; 
  --epg-active-border: #c0a898; 
  --epg-active-text:   #a89595; 
  --epg-watched-mark:  #c0a898; 
  --epg-cols:           3;        
}
body.dark-mode {
  --bg:           #1F1F1F;
  --bg-card:      #1f1f1f;
  --topbar-bg:    #1F1F1F;
  --topbar-border:#000000;
  --border:       #2e2e2e;
  --text:         #7e7e7e;
  --text-sub:     #777777;
  --text-link:    #6f8b99;
  --input-bg:     #2a2a2a;
  --tag-bg:       #2a2a2a;
  --tag-border:   #3a3a3a;
  --shadow-sm:    0 1px 6px rgba(0,0,0,0.3);
  --topbar-btn-color: #999999;
  --njs-bg:           #1e1e1e;
  --njs-link-color:   #777777;
  --njs-active-bg:    #2e2e2e;
  --njs-active-color: #c8a0a0;
  --loadmore:     #636563;
  --pl-section-bg:#1F1F1F;
  --pl-section-border:#2e2e2e;

  /* 【深色配色】 */
  --epg-divider:       #171717;
  --epg-wrap-bg:       #1f1f1f;
  --epg-btn-bg:        #222222;
  --epg-btn-border:    #2e2e2e;
  --epg-text:          #747474;
  --epg-t2:            #7e7e7e;
  --epg-sub-text:      #4a4a4a;
  --epg-active-bg:     #2c2422;
  --epg-active-border: #5a3a38;
  --epg-active-text:   #c8a0a0;
  --epg-watched-mark:  #5a3a38;
}

body.dark-mode .comment-box {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  
}
body.dark-mode .like-btn { color: #7e7e7e; }
body.dark-mode .comment-box b { color: #9C7040; }

/* ============================================================
   全局重置
============================================================ */
html, body { margin: 0; padding: 0; overflow-x: hidden; font-size: 16px; }
* { -webkit-box-sizing: border-box; box-sizing: border-box; }
body {
  font-family: 'PingFang SC','Noto Sans CJK SC','Noto Sans SC','Source Han Sans SC','Microsoft YaHei',sans-serif;
  line-height: 20px; color: var(--text); background: var(--bg);
  -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important;
  padding-top: 48px;
  -webkit-transition: background var(--transition), color var(--transition);
  transition: background var(--transition), color var(--transition);
}
a { text-decoration: none; color: var(--text); }
a:link, a:visited, a:hover, a:active { color: var(--text); text-decoration: none; }
ul, ol, li { list-style: none; margin: 0; padding: 0; }

/* ============================================================
   置顶导航栏
============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 48px;
  background: var(--topbar-bg); border-bottom: 1px solid var(--topbar-border);
  -webkit-box-shadow: var(--shadow-sm); box-shadow: var(--shadow-sm);
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: space-between; justify-content: space-between;
  padding: 0 14px; z-index: 1000;
  -webkit-transition: background var(--transition), border-color var(--transition);
  transition: background var(--transition), border-color var(--transition);
}
.topbar-left { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.site-logo { font-size: 17px; font-weight: 700; color: #058EC4; letter-spacing: -0.3px; white-space: nowrap; }
.topbar-right { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.topbar-cat-btn {
  display: -webkit-inline-flex; display: inline-flex;
  -webkit-align-items: center; align-items: center;
  height: 32px; padding: 0 11px; border-radius: 16px; border: none;
  background: var(--tag-bg); cursor: pointer;
  color: var(--topbar-btn-color);
  font-size: 13px; font-family: inherit; margin-right: 8px;
  -webkit-transition: background var(--transition); transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.topbar-cat-btn:active { background: var(--njs-active-bg); }
.topbar-cat-btn svg { display: block; margin-right: 4px; }

/* ============================================================
   内嵌搜索框
============================================================ */

.inline-search-wrap {
  margin: 12px 14px 20px;
  transition: background 0.2s;
}
.inline-search-inner {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 0 14px;
  height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid #e6e6e6;
  transition: background 0.2s;
}
.inline-search-inner:active { background: #f2f2f2; }
.inline-search-icon { color: #74b3ff; flex-shrink: 0; margin-right: 10px; display: block; }
.inline-search-placeholder { flex: 1; font-size: 14px; color: #a3a3a3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inline-search-label { flex-shrink: 0; font-size: 13px; font-weight: 700; color: #2f80ed; margin-left: 8px; }

body.dark-mode .inline-search-inner {
  background: #1e2028;
  border-color: #2e3240;
  transition: background 0.2s;
}
body.dark-mode .inline-search-inner:active {
  background: #262a36;
}
body.dark-mode .inline-search-icon {
  color: #4a9eff;
}
body.dark-mode .inline-search-placeholder {
  color: #616675;
}
body.dark-mode .inline-search-label {
  color: #4a9eff;
}

/* 顶栏"浅色/深色"按钮 */
.theme-toggle {
  height: 28px; padding: 0 10px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--tag-bg);
  cursor: pointer; display: -webkit-inline-flex; display: inline-flex;
  -webkit-align-items: center; align-items: center;
  font-size: 13px; color: var(--topbar-btn-color);
  white-space: nowrap;
  -webkit-transition: background var(--transition), border-color var(--transition);
  transition: background var(--transition), border-color var(--transition);
  -webkit-tap-highlight-color: transparent; font-family: inherit;
}
.theme-toggle:active { opacity: 0.7; }
.theme-icon-sun, .theme-icon-moon { font-size: 14px; line-height: 1; }
.theme-label { font-size: 12px; margin-left: 4px; }
body:not(.dark-mode) .theme-icon-moon { display: none; }
body:not(.dark-mode) .theme-icon-sun  { display: inline; }
body.dark-mode .theme-icon-sun  { display: none; }
body.dark-mode .theme-icon-moon { display: inline; }

/* ============================================================
   搜索覆盖层
============================================================ */
.search-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 2000; overflow-y: auto;
}
.search-overlay.active { display: block; }
.search-header {
  position: -webkit-sticky; position: sticky; top: 0; background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  padding: 8px 12px; z-index: 10;
}
.search-input-wrap {
  -webkit-flex: 1; flex: 1; position: relative;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  margin-right: 10px;
}
.search-input-wrap svg { position: absolute; left: 12px; color: var(--text-sub); pointer-events: none; }
.search-input {
  width: 100%; height: 38px; border: 1px solid var(--border); border-radius: 19px;
  padding: 0 40px 0 38px; font-size: 15px; font-family: inherit;
  outline: none; background: var(--input-bg); color: var(--text);
  -webkit-appearance: none; appearance: none;
  -webkit-transition: border-color var(--transition); transition: border-color var(--transition);
}
.search-input:focus { border-color: #058EC4; }
.search-clear {
  position: absolute; right: 10px; width: 20px; height: 20px;
  border-radius: 50%; background: #bbb; border: none; color: #fff;
  font-size: 13px; cursor: pointer; display: none;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  padding: 0; line-height: 20px; text-align: center;
}
.search-clear.show { display: -webkit-flex; display: flex; }
.search-cancel {
  background: none; border: none; font-size: 15px; color: var(--text-link);
  cursor: pointer; padding: 0; white-space: nowrap; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.search-suggest { display: none; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.search-suggest.show { display: block; }
.suggest-item {
  padding: 11px 16px; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--border); cursor: pointer;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:active { background: var(--njs-active-bg); }
.suggest-icon { color: var(--text-sub); margin-right: 10px; font-size: 13px; }
.suggest-match { color: var(--text-link); }
.search-body { padding: 14px 14px 30px; }
.search-section { margin-bottom: 22px; }
.search-section-head {
  display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  -webkit-align-items: center; align-items: center; margin-bottom: 10px;
}
.search-section-title {
  font-size: 13px; font-weight: 700; color: var(--text-sub);
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
}

.clear-btn { font-size: 12px; color: var(--text-link); background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.search-tags { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.search-tag {
  background: var(--tag-bg); border: 1px solid var(--tag-border);
  border-radius: 16px; padding: 5px 14px; font-size: 13px; color: var(--text);
  cursor: pointer; margin: 0 6px 6px 0; -webkit-tap-highlight-color: transparent;
}
.search-tag:active { background: var(--njs-active-bg); }
.custom-links { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.custom-link-item {
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center;
  background: var(--tag-bg); border: 1px solid var(--tag-border);
  border-radius: 16px; padding: 5px 14px; font-size: 13px; color: var(--text-link);
  margin: 0 6px 6px 0; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.custom-link-item:active { background: var(--njs-active-bg); }
.custom-link-item svg { margin-right: 4px; }

/* ============================================================
   播放器
============================================================ */
.k2 {
  width: 100%; display: block; margin: 0; padding: 0;
  background: #000; -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.k2 iframe { display: block; width: 100%; margin: 0; padding: 0; border: 0; }
/* 默认播放器高度 */
@media screen and (max-width: 767px) { .k2 iframe { height: 320px; } }
@media screen and (min-width: 768px) { .k2 iframe { height: 528px; } }

/* 大屏模式：高度由 JS 动态写入 iframe.style.height，CSS 不设置 */

/* 横屏：只隐藏大屏按钮，高度不变（竖屏用户设定的高度保持不变）*/


/* ============================================================
   系列标题
============================================================ */
.series-header { padding: 13px 14px 11px; }
.series-title-text {
  font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4;
  -webkit-transition: color var(--transition); transition: color var(--transition);
}
.series-action-bar {
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: space-between; justify-content: space-between;
  margin-top: 18px;
}
.series-update-time { font-size: 12px; color: var(--text-sub); }
.series-action-right {
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  gap: 10px;
}
.action-like-btn {
  display: -webkit-inline-flex; display: inline-flex;
  -webkit-align-items: center; align-items: center;
  position: relative;
  height: 28px; padding: 0 10px; border-radius: 14px;
  border: 1px solid var(--tag-border); background: var(--tag-bg);
  font-size: 12px; color: var(--text-sub); cursor: pointer;
  font-family: inherit; -webkit-tap-highlight-color: transparent;
  -webkit-transition: border-color 0.2s, color 0.2s; transition: border-color 0.2s, color 0.2s;
}
.action-like-btn:active { opacity: 0.7; }
.action-like-btn.liked { border-color: #e57373; color: #e53935; background: #fff5f5; }
body.dark-mode .action-like-btn.liked { background: #2a1a1a; }
.action-like-icon { margin-right: 4px; font-size: 13px; line-height: 1; }
#likeCount { font-weight: 500; }
.like-plus {
  position: absolute; top: -2px; left: 50%;
  font-size: 12px; font-weight: 700; color: #e53935;
  pointer-events: none; white-space: nowrap;
  -webkit-animation: likePop 0.8s ease forwards; animation: likePop 0.8s ease forwards;
}
@-webkit-keyframes likePop {
  0%  { opacity:1; -webkit-transform:translateX(-50%) translateY(0); }
  100%{ opacity:0; -webkit-transform:translateX(-50%) translateY(-22px); }
}
@keyframes likePop {
  0%  { opacity:1; transform:translateX(-50%) translateY(0); }
  100%{ opacity:0; transform:translateX(-50%) translateY(-22px); }
}
.action-share-btn {
  display: -webkit-inline-flex; display: inline-flex;
  -webkit-align-items: center; align-items: center;
  height: 28px; padding: 0 10px; border-radius: 14px;
  border: 1px solid var(--tag-border); background: var(--tag-bg);
  font-size: 12px; color: var(--text-sub); cursor: pointer;
  font-family: inherit; -webkit-tap-highlight-color: transparent;
  -webkit-transition: background var(--transition); transition: background var(--transition);
}
.action-share-btn:active { opacity: 0.7; }
.action-share-icon { margin-right: 4px; font-size: 13px; line-height: 1; }

/* 大屏按钮（和点赞/分享按钮同款样式） */
.action-bigscreen-btn {
  display: -webkit-inline-flex; display: inline-flex;
  -webkit-align-items: center; align-items: center;
  height: 28px; padding: 0 10px; border-radius: 14px;
  border: 1px solid var(--tag-border); background: var(--tag-bg);
  font-size: 12px; color: var(--text-sub); cursor: pointer;
  font-family: inherit; -webkit-tap-highlight-color: transparent;
  -webkit-transition: background var(--transition), border-color var(--transition), color var(--transition);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.action-bigscreen-btn:active { opacity: 0.7; }
/* 大屏激活状态 */
.action-bigscreen-btn.epg-bigscreen-on {
  border-color: #058EC4; color: #058EC4;
  background: rgba(5,142,196,0.08);
}
body.dark-mode .action-bigscreen-btn.epg-bigscreen-on {
  background: rgba(5,142,196,0.15);
}
.action-bigscreen-icon { margin-right: 4px; font-size: 13px; line-height: 1; }

/* 旧集数样式 njs/njs2/njs3 已移除，统一使用新 epg- 样式 */

/* ============================================================
   ★ 新集数样式（epg- 前缀，完全独立于旧 njs）
============================================================ */

/* 外层容器 */
.epg-wrap {
  margin: 6px 0 12px;
  border-top: 1px solid var(--epg-divider);
  border-bottom: 1px solid var(--epg-divider);
  background: var(--epg-wrap-bg);
  padding: var(--epg-pad-v) var(--epg-pad-h);
  -webkit-transition: background .25s, border-color .25s;
  transition: background .25s, border-color .25s;
}

/* 内嵌滚动模式（EPG_USE_SCROLL=true 时 JS 会加上此 class） */
.epg-wrap.epg-scroll {
  height: var(--epg-scroll-height);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/*
  flex-wrap 布局：每格固定宽度，最后一行缺格时保持原宽靠左，不撑满整行
  关键：flex-grow:0 禁止格子拉伸
*/
.epg-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: var(--epg-gap);
}

/* 每个格子：独立圆角卡片 */
.epg-btn {
  width: -webkit-calc((100% - var(--epg-gap) * (var(--epg-cols) - 1)) / var(--epg-cols));
  width: calc((100% - var(--epg-gap) * (var(--epg-cols) - 1)) / var(--epg-cols));
  -webkit-flex-shrink: 0; flex-shrink: 0;
  -webkit-flex-grow: 0;   flex-grow: 0;

  border-radius: var(--epg-radius);
  background: var(--epg-btn-bg);
  border: 1.5px solid var(--epg-btn-border);
  display: -webkit-flex; display: flex;
  -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: flex-start; align-items: flex-start;
  -webkit-justify-content: center; justify-content: center;
  padding: 8px 9px;
  min-height: var(--epg-btn-height);
  font-size: var(--epg-font-size);
  color: var(--epg-text);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.35;
  position: relative;
  -webkit-transition: background .15s, border-color .15s;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.epg-btn:active { opacity: .85; }

/* 当前集 */
.epg-btn.epg-active {
  background: var(--epg-active-bg);
  border-color: var(--epg-active-border);
  color: var(--epg-active-text);
}
.epg-btn.epg-active .epg-num { font-weight: 600; }

/* 集数文字 */
.epg-num {
  font-size: var(--epg-font-size);
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 已播：右上角极淡 ?，文字颜色不变灰 */
.epg-btn.epg-watched::after {
  content: '已点击';
  position: absolute; top: 3px; right: 4px;
  font-size: 9px;
  color: var(--epg-watched-mark);
  line-height: 1;
}

/* 副标题 */
.epg-sub {
  font-size: var(--epg-sub-font-size);
  color: var(--epg-sub-text);
  margin-top: 2px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.epg-btn.epg-active .epg-sub { color: var(--epg-active-text); opacity: .75; }

/* ============================================================
   标签栏
============================================================ */

.tags-wrap {
  overflow: hidden;
}

.tags {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  margin-top:  -14px;
  margin-left: -9px;
  padding: 3px 12px 6px;
  background: var(--bg);
}

.tags .tag {
  -webkit-flex: 1 0 auto;
          flex: 1 0 auto; 
  -webkit-justify-content: center;
          justify-content: center;
  text-align: center;
  background: var(--tag-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: var(--tag-radius);
  border: 1px solid var(--tag-border);
  text-decoration: none;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
          align-items: center;
  box-shadow: 0 2px 7px rgba(0,0,0,.08);
  margin-top:  var(--gutter-v);
  margin-left: var(--gutter-h);
  -webkit-tap-highlight-color: transparent;
}

.tags .tag:active { opacity: .7; }

body.dark-mode .tags {
  background: #1f1f1f;
}
body.dark-mode .tags .tag {
  background: #2a2a2a;
  color: #7E7E7E;
  border-color: #333333;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}

/* ============================================================
   留言区
============================================================ */
.pl-section {
  background: var(--pl-section-bg);
  margin: 10px 0 19px;
  border-top: 1px solid var(--pl-section-border);
  border-bottom: 1px solid var(--pl-section-border);
  -webkit-transition: background var(--transition); transition: background var(--transition);
}
.comment-list-wrap { padding: 8px 14px 0; }

/* 评论块状卡片 */
.comment-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 14px; color: var(--text); line-height: 1.6;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  -webkit-transition: background var(--transition), border-color var(--transition);
  transition: background var(--transition), border-color var(--transition);
}
.comment-box b { font-weight: 700; color: #979797; font-size: 14px; }
.comment-box img.emoji { width: 20px; height: 20px; vertical-align: middle; }
.comment-box .pinned {
  display: inline-block; font-size: 11px; color: #fff; background: #e53935;
  border-radius: 3px; padding: 1px 5px; margin-left: 4px; vertical-align: middle;
}
/* 时间小字 */
.comment-box div[style*="font-size:12px"] {
  font-size: 12px !important;
  color: var(--text-sub) !important;
  margin-top: 4px;
}
.comment-children {
  margin-left: 16px; border-left: 2px solid var(--border);
  padding-left: 12px; margin-top: 10px;
}

/* 点赞按钮：右上角 */
.like-btn {
  font-size: 13px; color: #A0783A;
  background: var(--tag-bg); border-radius: 6px;
  padding: 3px 8px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-transition: background var(--transition); transition: background var(--transition);
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 3px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}


.like-btn:active { opacity: 0.6; }

/* 回复按钮 */
.reply-btn {
  display: inline-block; font-size: 12px;
  color: #058EC4; cursor: pointer; margin-top: 2px;
  -webkit-tap-highlight-color: transparent;
}
.reply-btn:active { opacity: 0.6; }

#loadMore {
  text-align: center; font-size: 13px; color: var(--loadmore);
  padding: 10px 16px; cursor: pointer; display: none;
  margin: 4px auto 8px;
  background: var(--tag-bg); border-radius: 8px;
  width: -webkit-fit-content; width: fit-content;
  -webkit-transition: background var(--transition); transition: background var(--transition);
}
#loadMore:active { opacity: 0.7; }
#commentInputBox.comment-text-link {
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  padding: 3px 14px 7px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#commentInputBox.comment-text-link svg { display: block; color: var(--text-link); margin-right: 6px; -webkit-flex-shrink: 0; flex-shrink: 0; }
#commentInputBox.comment-text-link .cib-text { font-size: 14px; color: var(--text-link); text-decoration-color: rgba(5,142,196,0.4); }
#commentInputBox.comment-text-link:active .cib-text { opacity: 0.7; }
#commentForm { display: none; padding: 10px 14px 10px; border-top: 1px solid var(--border); }
.cf-nickname-row { margin-bottom: 8px; }
.username-input {
  width: 100%; height: 36px; border: 1px solid var(--border); border-radius: 6px;
  padding: 0 12px; font-size: 14px; font-family: inherit;
  outline: none; background: var(--input-bg); color: var(--text);
  -webkit-appearance: none; appearance: none;
  -webkit-transition: border-color var(--transition); transition: border-color var(--transition);
}
.username-input:focus { border-color: #058EC4; }
.reply-info { display: none; font-size: 12px; color: #a76969; margin-bottom: 6px; }
.reply-cancel { color: var(--text-link); margin-left: 8px; }
#contentDisplay {
  width: 100%; min-height: 60px; max-height: 150px;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 15px; font-family: inherit; line-height: 1.6;
  outline: none; background: var(--input-bg); color: var(--text);
  overflow-y: auto; word-break: break-all;
  -webkit-overflow-scrolling: touch;
  -webkit-transition: border-color var(--transition); transition: border-color var(--transition);
  display: block;
}
#contentDisplay:focus { border-color: #058EC4; }
#contentDisplay img.emoji { width: 20px; height: 20px; vertical-align: middle; }
#contentDisplay[data-empty="1"]::before { content: "写留言..."; color: #b0b0b0; pointer-events: none; display: block; }
#contentDisplay[data-empty="1"]:before  { content: "写留言..."; color: #b0b0b0; pointer-events: none; display: block; }
#content { display: none; }
.emoji-box {
  display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap;
  padding: 6px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-top: 8px; margin-bottom: 10px;
}
.emoji-box img { width: 32px; height: 32px; cursor: pointer; padding: 2px; -webkit-tap-highlight-color: transparent; }
.emoji-box img:active { opacity: 0.7; }
.comment-btn-row { display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center; -webkit-align-items: center; align-items: center; }
.btn-cancel {
  height: 34px; padding: 0 24px; margin-right: 12px;
  background: none; border: 1px solid var(--border); border-radius: 20px;
  font-size: 15px; color: var(--text-sub); cursor: pointer; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  -webkit-transition: background var(--transition); transition: background var(--transition);
}
.btn-cancel:active { background: var(--njs-active-bg); }
.btn-send {
  height: 34px; padding: 0 24px;
  background: #058EC4; color: #fff; border: none; border-radius: 20px;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  -webkit-transition: opacity 0.2s; transition: opacity 0.2s;
}
.btn-send:active { opacity: 0.75; }
#sendSuccess {
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 12px 24px;
min-width: 220px;
text-align: center;
  border-radius: 8px;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  -webkit-transition: opacity 0.4s;
  transition: opacity 0.4s;
}


/* ============================================================
   推荐视频
============================================================ */
.main { width: 100%; margin: 0; padding: 0; }

.video {
  background: var(--bg-card);
  margin-bottom: 8px;
  padding: 0;
  border-bottom: none;
  height: auto;
  -webkit-transition: background var(--transition);
  transition: background var(--transition);
}
.video .pic {
  width: 100%;
  float: none;
  margin-right: 0;
  display: block;
  height: 56vw;
  max-height: 500px;
  overflow: hidden;
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
  position: relative;
}
.video .pic::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='38' fill='rgba(0,0,0,0.55)'/%3E%3Cpolygon points='30,22 30,58 60,40' fill='white'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.9;
}
.video .pic a:active::after {
  opacity: 0.6;
}
.video .pic a {
  display: block;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
}
.video .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: none;
}
.video .nr.jr {
  padding: 0;
  height: auto;
  margin-top: 0;
  position: static;
  overflow: visible;
}
.video .nr.jr h2 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45em;
  color: var(--text);
  margin: 0;
  padding: 10px 12px 6px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-transition: color var(--transition);
  transition: color var(--transition);
}
.video .nr.jr h2 a {
  color: inherit;
  text-decoration: none;
}
.video .info {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 12px 10px;
  font-size: 12px;
  color: var(--text-sub);
}
.video .info a {
  color: var(--text);
  background: var(--tag-bg);
  border-radius: 20px;
  padding: 9px 10px;
  font-size: 12px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-transition: background var(--transition);
  transition: background var(--transition);
}
.video .info a:active {
  background: var(--njs-active-bg);
}
.video .gx {
  font-size: 12px;
  color: #bbb;
}

/* ============================================================
   底部
============================================================ */
.load-more { text-align: center; }
.load-more a { background: #D43D3D; border: 1px solid #D43D3D; color: #fff; cursor: pointer; display: inline-block; font-size: 12px; margin: 13px 0 11px; padding: 6px 30px; text-decoration: none; }
.d { margin: 0; overflow: hidden; }
.dl li { float: left; width: 25%; border-bottom: 1px solid var(--border); text-align: center; line-height: 13px; height: 40px; position: relative; bottom: -1px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl li a { color: var(--text-sub); display: block; border-right: 1px solid var(--border); height: 13px; margin-top: 13px; }
.dl li:nth-of-type(4n) a { border-right: 0; }
.foot.c { background: var(--bg); color: var(--text-sub); font-size: 12px; padding: 23px 0; text-align: center; -webkit-transition: background var(--transition); transition: background var(--transition); }
.foot a { color: var(--text); }
.footl { font-size: 13px; color: var(--text); }
.footc { line-height: 1.8; color: var(--text-sub); font-size: 12px; white-space: normal; }
.k1 { display: none; }


#njs {
    height: 108px;
    margin: 12px 0 15px 0;
    overflow: auto;
    width: 100%;
    background-color: #F5F5F3;
  }
  .njs2 {
    height: 42px;
    width: 100%;
    padding-bottom: 4px;
    line-height: 220%;
    border-bottom: #dfdfdf 1px dashed;
    text-align: justify;
    padding-top: 2px;
	padding: 1.6px 16px;
    font-size: 14px;
	text-decoration: none; 
    color: #808080; 
    cursor: pointer;
	display: block;
    overflow: hidden;
    text-overflow: ellipsis;
	padding-top: 7px;
  }
  

#njs1 {width:100%;margin:12px 0 15px 0;background-color:#F5F5F3} 


.ww {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  background: linear-gradient(160deg, #fafafa 0%, #f3f0eb 100%);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
  box-sizing: border-box;
  transition: background .3s, color .3s, box-shadow .3s;
}


body.dark-mode .ww {
  color: #a2a2a2;
  background: linear-gradient(160deg, #252429 0%, #1e1c22 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.2);
}

audio#jp_audio_0 {
    width: 100%;
    display: block;
    border-radius: 8px;
}


body.dark-mode audio#jp_audio_0 {
    filter: invert(1) hue-rotate(180deg);
}


body.dark-mode #jp_container_1 {
    background: #1e1e1e;
    border-color: #2b2b2b;
}



/* 按钮文字颜色 */
body.dark-mode #jp_container_1 .jp-controls button {
    color: #ccc;
}

/* 进度条背景 */
body.dark-mode #jp_container_1 .jp-seek-bar {
    background: #444;
}

/* 进度条已播放部分 */
body.dark-mode #jp_container_1 .jp-play-bar {
    background: #888;
}

/* 时间文字 */
body.dark-mode #jp_container_1 .jp-current-time,
body.dark-mode #jp_container_1 .jp-duration {
    color: #aaa;
}

/* 播放列表背景 */
body.dark-mode #jp_container_1 .jp-playlist {
    background: #1e1e1e;
    border-color: #444;
}

/* 播放列表项 */
body.dark-mode #jp_container_1 .jp-playlist li {
    border-color: #333;
}

/* 播放列表链接 */
body.dark-mode #jp_container_1 .jp-playlist a.jp-playlist-item {
    color: #bbb;
}

/* 当前播放项 */
body.dark-mode #jp_container_1 .jp-playlist a.jp-playlist-current {
    color: #7d7d7d;
    font-weight: 700;
}

/* 鼠标悬停 */
body.dark-mode #jp_container_1 .jp-playlist a.jp-playlist-item:hover {
    color: #fff;
}


body.dark-mode #njs1 {
    background-color: #1F1F1F;
}
body.dark-mode .njs2 {
    border-bottom: #2d2727 1px dashed;
}
body.dark-mode  .njs2 select { background-color: #2a2a2a; color: #e0e0e0; border: 1px solid #555; }
body.dark-mode  .njs2 option  { background-color: #2a2a2a; color: #e0e0e0; }
