/* MIIGO V4 shell home skeleton clean-v1
   合并来源：
   1. miigo-v4-shell-home-skeleton-v2c-fix3.css
   2. miigo-v4-shell-card-tune-v2c-fix3-3.css
   3. miigo-v4-title-adaptive-v2c-fix3-6.css
   4. miigo-v4-latest-title-one-line-v2c-fix3-7.css
   只在 shell=1 / empty-shell-active / v2cfix3 结构下生效。
*/

/* ===== source: fix3 base ===== */
/* MIIGO V4 Shell Home Skeleton V2C Fix3
   清洁骨架：最新上架唯一、展示区过滤最新更新、所有一级导航展示区都有广告位。
   只在 shell=1 生效，不接播放/阅读器。
*/

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] {
  --miigo-v2c-side: 22px;
  --miigo-v2c-gap: 10px;
}

/* 首面入口按钮全部不要 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-shell-actions,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-shell-action {
  display: none !important;
}

/* 隐藏旧 V2B 输出，避免重复“最新更新/展示区” */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] > .miigo-shell-page > .miigo-shell-tags,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-shell-content-title,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-shell-grid,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-shell-readonly-note {
  display: none !important;
}

/* 统一主容器：标签、一级分类、最新上架、展示区全部同一左边距 */
.miigo-v2cfix3-main {
  margin: 0 var(--miigo-v2c-side);
  padding-top: 16px;
}

.miigo-v2cfix3-block {
  width: 100%;
  margin-top: 20px;
}

.miigo-v2cfix3-tags,
.miigo-v2cfix3-primary-nav,
.miigo-v2cfix3-latest-rail {
  width: 100%;
  display: flex;
  gap: var(--miigo-v2c-gap);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.miigo-v2cfix3-tags::-webkit-scrollbar,
.miigo-v2cfix3-primary-nav::-webkit-scrollbar,
.miigo-v2cfix3-latest-rail::-webkit-scrollbar {
  display: none;
}

.miigo-v2cfix3-tag,
.miigo-v2cfix3-navbtn {
  flex: 0 0 auto;
  height: 36px;
  border-radius: 999px;
  border: 1px dashed rgba(0,0,0,.14);
  background: rgba(255,255,255,.72);
  color: rgba(0,0,0,.62);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.miigo-v2cfix3-section-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.miigo-v2cfix3-section-title {
  font-size: 18px;
  line-height: 22px;
  font-weight: 800;
  color: rgba(0,0,0,.84);
}

.miigo-v2cfix3-more {
  font-size: 13px;
  color: rgba(0,0,0,.48);
  font-weight: 700;
}

.miigo-v2cfix3-card {
  min-width: 0;
}

.miigo-v2cfix3-thumb {
  width: 100%;
  border-radius: 12px;
  border: 1px dashed rgba(0,0,0,.14);
  background: rgba(255,255,255,.72);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* 视频图：横版 16:9 */
#miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="video"] .miigo-v2cfix3-thumb {
  aspect-ratio: 16 / 9;
}

/* 动漫/漫画/小说：竖版 3:4 */
#miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="anime"] .miigo-v2cfix3-thumb,
#miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="manga"] .miigo-v2cfix3-thumb,
#miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="novel"] .miigo-v2cfix3-thumb {
  aspect-ratio: 3 / 4;
}

.miigo-v2cfix3-name {
  margin-top: 7px;
  font-size: 13px;
  line-height: 17px;
  font-weight: 700;
  color: rgba(0,0,0,.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.miigo-v2cfix3-meta {
  margin-top: 4px;
  min-height: 16px;
  font-size: 11px;
  line-height: 16px;
  color: rgba(0,0,0,.48);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.miigo-v2cfix3-update {
  margin-top: 2px;
  min-height: 15px;
  font-size: 11px;
  color: rgba(0,0,0,.46);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 最新上架：视频一排露出约2.5个；最新上架下面不放广告 */
#miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v2cfix3-latest-card {
  flex: 0 0 calc((100% - 20px) / 2.5);
}

/* 最新上架：动漫/漫画/小说一排露出约3.5个 */
#miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-v2cfix3-latest-card,
#miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-latest-card,
#miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-v2cfix3-latest-card {
  flex: 0 0 calc((100% - 30px) / 3.5);
}

/* 首页导航展示区 */
.miigo-v2cfix3-home-section {
  width: 100%;
  margin-top: 26px;
}

.miigo-v2cfix3-grid {
  width: 100%;
  display: grid;
  gap: 12px var(--miigo-v2c-gap);
}

#miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v2cfix3-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-v2cfix3-grid,
#miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 小说当前方式展示 */
.miigo-v2cfix3-novel-list {
  width: 100%;
  display: block;
}

.miigo-v2cfix3-novel-row {
  width: 100%;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.miigo-v2cfix3-novel-row .miigo-v2cfix3-thumb {
  width: 78px;
  aspect-ratio: 3 / 4;
  grid-row: 1 / span 3;
}

.miigo-v2cfix3-novel-row .miigo-v2cfix3-name {
  margin-top: 3px;
}

.miigo-v2cfix3-refresh {
  width: 100%;
  height: 34px;
  margin-top: 12px;
  border-radius: 999px;
  border: 1px dashed rgba(0,0,0,.14);
  background: rgba(255,255,255,.72);
  color: rgba(0,0,0,.54);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* 所有一级导航展示区：换一批下面都有广告位 */
.miigo-v2cfix3-ad-slot {
  width: 100%;
  height: 72px;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,.16);
  background: rgba(255,255,255,.74);
  color: rgba(0,0,0,.42);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.miigo-v2cfix3-empty {
  width: 100%;
  min-height: 132px;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,.14);
  background: rgba(255,255,255,.72);
  color: rgba(0,0,0,.48);
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ===== source: fix3.3 card tune ===== */
/* MIIGO V4 V2C fix3.3
   修复：
   1. 动漫/漫画共用卡片规则
   2. 标题 JS 截断 + CSS 两行兜底
   3. 标题与热度评分距离减少三分之二
   4. 至xx话/章/集显示在图片右下角，白字无底色
*/

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-v2cfix3-name {
  margin-top: 4px !important;
  margin-bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 34px !important;
  line-height: 17px !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  word-break: break-all;
}

/* 热度评分紧贴标题，距离减少约三分之二 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-v2cfix3-meta {
  margin-top: 0 !important;
  min-height: 14px !important;
  line-height: 14px !important;
  font-size: 11px !important;
}

/* 隐藏旧底部更新行，更新信息只在图片右下角 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-v2cfix3-update {
  display: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-v2cfix3-thumb {
  position: relative !important;
}

/* 右下角只放白字，不加底色 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-v2cfix3-update-badge {
  position: absolute;
  right: 5px;
  bottom: 5px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.85);
  max-width: 90%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

/* 动漫和漫画同步：上下间距一起收紧 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="anime"] .miigo-v2cfix3-name,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="manga"] .miigo-v2cfix3-name {
  max-height: 34px !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="anime"] .miigo-v2cfix3-grid,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="manga"] .miigo-v2cfix3-grid {
  gap: 8px var(--miigo-v2c-gap) !important;
}

/* 卡片内部更紧凑，但不影响主线对齐 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-v2cfix3-home-section {
  margin-top: 18px !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-v2cfix3-section-head {
  margin-bottom: 7px !important;
}

/* ===== source: fix3.6 title adaptive ===== */
/* MIIGO V4 V2C fix3.6 标题自适应
   小图短标题，大列表长标题。
   不改 API、不改数据库、不接功能。
*/

/* 所有卡片标题两行兜底 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-v2cfix3-name {
  overflow: hidden !important;
  word-break: break-all;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

/* 小图卡片：保持紧凑，不跑版 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-v2cfix3-card .miigo-v2cfix3-name {
  line-height: 16px !important;
  max-height: 32px !important;
  margin-top: 4px !important;
  margin-bottom: 0 !important;
}

/* 小说展示区/大列表：空间大，允许更长，不要过早 ..... */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-v2cfix3-novel-row .miigo-v2cfix3-name {
  line-height: 18px !important;
  max-height: 36px !important;
  margin-top: 0 !important;
  margin-bottom: 1px !important;
  -webkit-line-clamp: 2 !important;
}

/* 大列表热度评分贴近标题 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-v2cfix3-novel-row .miigo-v2cfix3-meta {
  margin-top: 1px !important;
  line-height: 15px !important;
}

/* 动漫/漫画未来有作品时共用小图规则 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="anime"] .miigo-v2cfix3-card .miigo-v2cfix3-name,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="manga"] .miigo-v2cfix3-card .miigo-v2cfix3-name {
  line-height: 16px !important;
  max-height: 32px !important;
}

/* ===== source: fix3.7 latest title one line ===== */
/* MIIGO V4 V2C fix3.7
   只处理“最新上架”小图标题：
   1. 单行
   2. 超出显示 .....
   3. 不影响下面小说展示区/大列表
*/

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-v2cfix3-rail .miigo-v2cfix3-name,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-v2cfix3-latest .miigo-v2cfix3-name {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  height: 17px !important;
  max-height: 17px !important;
  line-height: 17px !important;
  margin-top: 4px !important;
  margin-bottom: 0 !important;
}

/* 下面小说展示区继续保留 fix3.6 的长标题，不动 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-v2cfix3-novel-row .miigo-v2cfix3-name {
  display: -webkit-box !important;
  white-space: normal !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  height: auto !important;
  max-height: 36px !important;
}





/* MIIGO_V4_NOVEL_PUBLIC_TAG_NAV_VISUAL_V2_START
 * 小说 public 标签/导航紧凑版：
 * 规则保持：点上方标签按 rule 筛选，点下方分类按 type_id 筛选；
 * 本刀只调视觉，不动 novel.js / 阅读器 / API / 广告 / 其它频道。
 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="novel"] .miigo-v2cfix3-tags,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-tags{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    width:100% !important;
    padding:4px 10px 2px !important;
    margin:0 auto 1px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    box-sizing:border-box !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="novel"] .miigo-v2cfix3-tag,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-tag{
    flex:0 0 auto !important;
    min-width:48px !important;
    height:28px !important;
    line-height:28px !important;
    padding:0 11px !important;
    border:0 !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.72) !important;
    color:#6f4b35 !important;
    font-size:13px !important;
    font-weight:650 !important;
    box-shadow:0 3px 10px rgba(117,75,36,.07) !important;
    white-space:nowrap !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="novel"] .miigo-v2cfix3-tag.is-active,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-tag.is-active{
    background:linear-gradient(135deg,#ffca69,#ff9f3f) !important;
    color:#4b2600 !important;
    font-weight:800 !important;
    box-shadow:0 5px 14px rgba(255,157,54,.20) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="novel"] .miigo-v2cfix3-primary-nav,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-primary-nav{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:6px !important;
    width:100% !important;
    padding:2px 10px 4px !important;
    margin:0 auto 4px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    box-sizing:border-box !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="novel"] .miigo-v2cfix3-navbtn,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-navbtn{
    flex:0 0 auto !important;
    height:27px !important;
    line-height:27px !important;
    padding:0 10px !important;
    border:0 !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.62) !important;
    color:#775944 !important;
    font-size:12px !important;
    font-weight:650 !important;
    box-shadow:0 2px 9px rgba(110,70,35,.06) !important;
    white-space:nowrap !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="novel"] .miigo-v2cfix3-navbtn.is-active,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-navbtn.is-active{
    background:#fff1d5 !important;
    color:#d26b00 !important;
    font-weight:800 !important;
    box-shadow:0 4px 12px rgba(210,107,0,.14) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="novel"] .miigo-v2cfix3-tags::-webkit-scrollbar,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="novel"] .miigo-v2cfix3-primary-nav::-webkit-scrollbar,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-tags::-webkit-scrollbar,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"] .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-primary-nav::-webkit-scrollbar{
    display:none !important;
}
/* MIIGO_V4_NOVEL_PUBLIC_TAG_NAV_VISUAL_V2_END */


/* MIIGO_V4_NOVEL_THEME_BUTTON_TITLE_STYLE_V1_START
   小说主页主题分类：
   1) “换一换”小黄胶囊按钮；
   2) 主题分类图文卡标题单行省略，不换第二排。
*/
.miigo-v2cfix3-novel-theme-block > .miigo-v2cfix3-refresh[data-miigo-novel-theme-batch-btn="1"] {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 30px !important;
  line-height: 30px !important;
  margin: 12px auto 2px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fff4c8 0%, #ffe28a 100%) !important;
  color: #2f2113 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .5px !important;
  box-shadow: 0 5px 14px rgba(255, 185, 45, .24) !important;
  text-align: center !important;
}

.miigo-v2cfix3-novel-theme-grid .miigo-v2cfix3-section-card {
  min-width: 0 !important;
  overflow: hidden !important;
}

.miigo-v2cfix3-novel-theme-grid .miigo-v2cfix3-card-title,
.miigo-v2cfix3-novel-theme-grid .miigo-v2cfix3-card-name,
.miigo-v2cfix3-novel-theme-grid .miigo-v2cfix3-title,
.miigo-v2cfix3-novel-theme-grid .miigo-v2cfix3-name,
.miigo-v2cfix3-novel-theme-grid .miigo-card-title,
.miigo-v2cfix3-novel-theme-grid .miigo-card-name {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 18px !important;
  line-height: 18px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

/* 兜底：如果卡片标题没有专用 class，也限制主题卡里第一个文字标题不换行 */
.miigo-v2cfix3-novel-theme-grid .miigo-v2cfix3-section-card [class*="title"],
.miigo-v2cfix3-novel-theme-grid .miigo-v2cfix3-section-card [class*="name"] {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}
/* MIIGO_V4_NOVEL_THEME_BUTTON_TITLE_STYLE_V1_END */


/* MIIGO_V4_NOVEL_LATEST_TITLE_META_STYLE_V1_START
   小说最新上架：标题单行省略，热度/评分单行显示，不跳第二排。
*/
#miigo-v4-empty-shell-v1 .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-latest-rail {
  align-items: flex-start !important;
}

#miigo-v4-empty-shell-v1 .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-latest-card {
  min-width: 0 !important;
  overflow: hidden !important;
}

#miigo-v4-empty-shell-v1 .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-latest-card .miigo-v2cfix3-name,
#miigo-v4-empty-shell-v1 .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-latest-card .miigo-v2cfix3-title,
#miigo-v4-empty-shell-v1 .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-latest-card .miigo-v2cfix3-card-title,
#miigo-v4-empty-shell-v1 .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-latest-card [class*="name"],
#miigo-v4-empty-shell-v1 .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-latest-card [class*="title"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 17px !important;
  line-height: 17px !important;
  margin-top: 5px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #20160f !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

#miigo-v4-empty-shell-v1 .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-latest-card .miigo-v2cfix3-meta,
#miigo-v4-empty-shell-v1 .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-latest-card .miigo-v2cfix3-desc,
#miigo-v4-empty-shell-v1 .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-latest-card [class*="meta"],
#miigo-v4-empty-shell-v1 .miigo-shell-page.miigo-shell-channel-novel .miigo-v2cfix3-latest-card [class*="desc"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 15px !important;
  line-height: 15px !important;
  margin-top: 1px !important;
  font-size: 11px !important;
  color: #8e7b6a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
/* MIIGO_V4_NOVEL_LATEST_TITLE_META_STYLE_V1_END */


/* MIIGO_V4_NOVEL_AMBIENT_CLEAN_V1_START
   干净版小说顶部动态气氛：
   - 页面内 absolute，不 fixed；
   - 从广告图取色，跟随轮播图变化；
   - 顶部有颜色，底部接广告图处白色柔化；
   - 频道字灰白/选中白；
   - 不影响内容区和阅读器。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] {
  position: relative !important;
  overflow: hidden !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-page.miigo-shell-channel-novel {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] [data-miigo-novel-ambient-clean-v1="1"] {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 350px !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] [data-miigo-novel-ambient-clean-img-v1="1"] {
  position: absolute !important;
  left: -8% !important;
  top: -42px !important;
  width: 116% !important;
  height: 430px !important;
  object-fit: cover !important;
  object-position: center 96% !important;
  filter: blur(5px) saturate(1.46) brightness(1.03) !important;
  transform: scale(1.08) !important;
  opacity: .95 !important;
  display: block !important;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.96) 0%,
    rgba(0,0,0,.90) 34%,
    rgba(0,0,0,.68) 58%,
    rgba(0,0,0,.26) 78%,
    rgba(0,0,0,0) 100%
  ) !important;
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.96) 0%,
    rgba(0,0,0,.90) 34%,
    rgba(0,0,0,.68) 58%,
    rgba(0,0,0,.26) 78%,
    rgba(0,0,0,0) 100%
  ) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] [data-miigo-novel-ambient-clean-v1="1"]::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 145px !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: linear-gradient(
    to top,
    rgba(246,246,246,1) 0%,
    rgba(246,246,246,.94) 18%,
    rgba(246,246,246,.60) 48%,
    rgba(246,246,246,.18) 74%,
    rgba(246,246,246,0) 100%
  ) !important;
}

/* 顶部 UI 压到动态气氛上层 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-safe,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-search,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-channel-nav,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-hero {
  position: relative !important;
  z-index: 2 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-safe {
  background: transparent !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-v2cfix3-main {
  position: relative !important;
  z-index: 2 !important;
  background: #f6f6f6 !important;
}

/* 防止旧轮播内部气氛残留显示 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-v4-top-carousel-ambient {
  display: none !important;
}

/* 顶部频道字 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-channel-nav a {
  color: rgba(255,255,255,.68) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.18) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-channel-nav a.is-active {
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.24) !important;
}

/* 轮播主图圆角保持 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-v4-top-carousel,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-v4-top-carousel-slide,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-v4-top-carousel-slide img {
  border-radius: 16px !important;
  overflow: hidden !important;
}
/* MIIGO_V4_NOVEL_AMBIENT_CLEAN_V1_END */


/* MIIGO_V4_NOVEL_STATUS_AMBIENT_CLEAN_V2_START
   旧成功态补齐：状态栏/顶部兜底 fill。
   注意：真实浏览器状态栏仍主要靠 meta theme-color；
   这个 fill 负责 H5 内部 0-安全区的视觉连续。
*/
body.miigo-v4-page-novel .miigo-status-ambient-fill-v2,
body.miigo-v4-empty-shell-active .miigo-status-ambient-fill-v2 {
  position: fixed !important;
  left: 50% !important;
  top: 0 !important;
  width: min(100vw, 430px) !important;
  height: 96px !important;
  transform: translateX(-50%) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  background-color: #5f4747 !important;
  background-image: var(--miigo-ambient-url) !important;
  background-size: cover !important;
  background-position: center 96% !important;
  filter: blur(5px) saturate(1.38) brightness(.98) !important;
  opacity: .92 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] {
  background:
    linear-gradient(180deg, rgba(95,71,71,.72) 0%, rgba(246,246,246,0) 112px),
    #f6f6f6 !important;
}

/* 让 safe/search/nav 继续压在 fill 上面 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-page.miigo-shell-channel-novel,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-safe,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-search,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-channel-nav,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-hero {
  position: relative !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-page.miigo-shell-channel-novel {
  z-index: 1 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-safe,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-search,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-channel-nav,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="novel"] .miigo-shell-hero {
  z-index: 3 !important;
}
/* MIIGO_V4_NOVEL_STATUS_AMBIENT_CLEAN_V2_END */


/* MIIGO_V4_VIDEO_AMBIENT_CLEAN_V1_START
   video 顶部动态气氛：
   - 跟小说结构一致；
   - 只作用 video；
   - 不串 novel/anime/manga/short。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] {
  position: relative !important;
  overflow: hidden !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-page.miigo-shell-channel-video {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-ambient-clean-v1="1"] {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 350px !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-ambient-clean-img-v1="1"] {
  position: absolute !important;
  left: -8% !important;
  top: -42px !important;
  width: 116% !important;
  height: 430px !important;
  object-fit: cover !important;
  object-position: center 96% !important;
  filter: blur(5px) saturate(1.46) brightness(1.03) !important;
  transform: scale(1.08) !important;
  opacity: .95 !important;
  display: block !important;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.96) 0%,
    rgba(0,0,0,.90) 34%,
    rgba(0,0,0,.68) 58%,
    rgba(0,0,0,.26) 78%,
    rgba(0,0,0,0) 100%
  ) !important;
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.96) 0%,
    rgba(0,0,0,.90) 34%,
    rgba(0,0,0,.68) 58%,
    rgba(0,0,0,.26) 78%,
    rgba(0,0,0,0) 100%
  ) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-ambient-clean-v1="1"]::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 145px !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: linear-gradient(
    to top,
    rgba(246,246,246,1) 0%,
    rgba(246,246,246,.94) 18%,
    rgba(246,246,246,.60) 48%,
    rgba(246,246,246,.18) 74%,
    rgba(246,246,246,0) 100%
  ) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-safe,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-search,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-channel-nav,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-hero {
  position: relative !important;
  z-index: 2 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-safe {
  background: transparent !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v2cfix3-main {
  position: relative !important;
  z-index: 2 !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v4-top-carousel-ambient {
  display: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-channel-nav a {
  color: rgba(255,255,255,.68) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.18) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-channel-nav a.is-active {
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.24) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v4-top-carousel,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v4-top-carousel-slide,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v4-top-carousel-slide img {
  border-radius: 16px !important;
  overflow: hidden !important;
}
/* MIIGO_V4_VIDEO_AMBIENT_CLEAN_V1_END */


/* MIIGO_V4_VIDEO_STATUS_AMBIENT_CLEAN_V1_START
   video 状态栏动态气氛 fill。
*/
body.miigo-v4-page-video .miigo-video-status-ambient-fill-v1,
body.miigo-v4-empty-shell-active .miigo-video-status-ambient-fill-v1 {
  position: fixed !important;
  left: 50% !important;
  top: 0 !important;
  width: min(100vw, 430px) !important;
  height: 96px !important;
  transform: translateX(-50%) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  background-color: #364153 !important;
  background-image: var(--miigo-video-ambient-url) !important;
  background-size: cover !important;
  background-position: center 96% !important;
  filter: blur(5px) saturate(1.38) brightness(.98) !important;
  opacity: .92 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] {
  background:
    linear-gradient(180deg, rgba(54,65,83,.72) 0%, rgba(246,246,246,0) 112px),
    #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-page.miigo-shell-channel-video,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-safe,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-search,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-channel-nav,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-hero {
  position: relative !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-page.miigo-shell-channel-video {
  z-index: 1 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-safe,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-search,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-channel-nav,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-hero {
  z-index: 3 !important;
}
/* MIIGO_V4_VIDEO_STATUS_AMBIENT_CLEAN_V1_END */


/* MIIGO_V4_ANIME_AMBIENT_CLEAN_V1_START
   anime 顶部动态气氛：
   - 跟小说/video 结构一致；
   - 只作用 anime；
   - 不串 novel/video/manga/short。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] {
  position: relative !important;
  overflow: hidden !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-page.miigo-shell-channel-anime {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] [data-miigo-anime-ambient-clean-v1="1"] {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 350px !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] [data-miigo-anime-ambient-clean-img-v1="1"] {
  position: absolute !important;
  left: -8% !important;
  top: -42px !important;
  width: 116% !important;
  height: 430px !important;
  object-fit: cover !important;
  object-position: center 96% !important;
  filter: blur(5px) saturate(1.46) brightness(1.03) !important;
  transform: scale(1.08) !important;
  opacity: .95 !important;
  display: block !important;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.96) 0%,
    rgba(0,0,0,.90) 34%,
    rgba(0,0,0,.68) 58%,
    rgba(0,0,0,.26) 78%,
    rgba(0,0,0,0) 100%
  ) !important;
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.96) 0%,
    rgba(0,0,0,.90) 34%,
    rgba(0,0,0,.68) 58%,
    rgba(0,0,0,.26) 78%,
    rgba(0,0,0,0) 100%
  ) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] [data-miigo-anime-ambient-clean-v1="1"]::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 145px !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: linear-gradient(
    to top,
    rgba(246,246,246,1) 0%,
    rgba(246,246,246,.94) 18%,
    rgba(246,246,246,.60) 48%,
    rgba(246,246,246,.18) 74%,
    rgba(246,246,246,0) 100%
  ) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-safe,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-search,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-channel-nav,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-hero {
  position: relative !important;
  z-index: 2 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-safe {
  background: transparent !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-v2cfix3-main {
  position: relative !important;
  z-index: 2 !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-v4-top-carousel-ambient {
  display: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-channel-nav a {
  color: rgba(255,255,255,.68) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.18) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-channel-nav a.is-active {
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.24) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-v4-top-carousel,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-v4-top-carousel-slide,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-v4-top-carousel-slide img {
  border-radius: 16px !important;
  overflow: hidden !important;
}
/* MIIGO_V4_ANIME_AMBIENT_CLEAN_V1_END */


/* MIIGO_V4_ANIME_STATUS_AMBIENT_CLEAN_V1_START
   anime 状态栏动态气氛 fill。
*/
body.miigo-v4-page-anime .miigo-anime-status-ambient-fill-v1,
body.miigo-v4-empty-shell-active .miigo-anime-status-ambient-fill-v1 {
  position: fixed !important;
  left: 50% !important;
  top: 0 !important;
  width: min(100vw, 430px) !important;
  height: 96px !important;
  transform: translateX(-50%) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  background-color: #4b3f6b !important;
  background-image: var(--miigo-anime-ambient-url) !important;
  background-size: cover !important;
  background-position: center 96% !important;
  filter: blur(5px) saturate(1.38) brightness(.98) !important;
  opacity: .92 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] {
  background:
    linear-gradient(180deg, rgba(75,63,107,.72) 0%, rgba(246,246,246,0) 112px),
    #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-page.miigo-shell-channel-anime,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-safe,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-search,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-channel-nav,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-hero {
  position: relative !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-page.miigo-shell-channel-anime {
  z-index: 1 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-safe,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-search,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-channel-nav,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="anime"] .miigo-shell-hero {
  z-index: 3 !important;
}
/* MIIGO_V4_ANIME_STATUS_AMBIENT_CLEAN_V1_END */


/* MIIGO_V4_MANGA_AMBIENT_CLEAN_V1_START
   manga 顶部动态气氛：
   - 跟小说/video/anime 结构一致；
   - 只作用 manga；
   - 不串 novel/video/anime/short。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] {
  position: relative !important;
  overflow: hidden !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-page.miigo-shell-channel-manga {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-ambient-clean-v1="1"] {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 350px !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-ambient-clean-img-v1="1"] {
  position: absolute !important;
  left: -8% !important;
  top: -42px !important;
  width: 116% !important;
  height: 430px !important;
  object-fit: cover !important;
  object-position: center 96% !important;
  filter: blur(5px) saturate(1.46) brightness(1.03) !important;
  transform: scale(1.08) !important;
  opacity: .95 !important;
  display: block !important;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.96) 0%,
    rgba(0,0,0,.90) 34%,
    rgba(0,0,0,.68) 58%,
    rgba(0,0,0,.26) 78%,
    rgba(0,0,0,0) 100%
  ) !important;
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.96) 0%,
    rgba(0,0,0,.90) 34%,
    rgba(0,0,0,.68) 58%,
    rgba(0,0,0,.26) 78%,
    rgba(0,0,0,0) 100%
  ) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-ambient-clean-v1="1"]::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 145px !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: linear-gradient(
    to top,
    rgba(246,246,246,1) 0%,
    rgba(246,246,246,.94) 18%,
    rgba(246,246,246,.60) 48%,
    rgba(246,246,246,.18) 74%,
    rgba(246,246,246,0) 100%
  ) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-safe,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-search,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-channel-nav,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-hero {
  position: relative !important;
  z-index: 2 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-safe {
  background: transparent !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-main {
  position: relative !important;
  z-index: 2 !important;
  background: #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v4-top-carousel-ambient {
  display: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-channel-nav a {
  color: rgba(255,255,255,.68) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.18) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-channel-nav a.is-active {
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.24) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v4-top-carousel,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v4-top-carousel-slide,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v4-top-carousel-slide img {
  border-radius: 16px !important;
  overflow: hidden !important;
}
/* MIIGO_V4_MANGA_AMBIENT_CLEAN_V1_END */


/* MIIGO_V4_MANGA_STATUS_AMBIENT_CLEAN_V1_START
   manga 状态栏动态气氛 fill。
*/
body.miigo-v4-page-manga .miigo-manga-status-ambient-fill-v1,
body.miigo-v4-empty-shell-active .miigo-manga-status-ambient-fill-v1 {
  position: fixed !important;
  left: 50% !important;
  top: 0 !important;
  width: min(100vw, 430px) !important;
  height: 96px !important;
  transform: translateX(-50%) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  background-color: #7a3f65 !important;
  background-image: var(--miigo-manga-ambient-url) !important;
  background-size: cover !important;
  background-position: center 96% !important;
  filter: blur(5px) saturate(1.38) brightness(.98) !important;
  opacity: .92 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] {
  background:
    linear-gradient(180deg, rgba(122,63,101,.72) 0%, rgba(246,246,246,0) 112px),
    #f6f6f6 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-page.miigo-shell-channel-manga,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-safe,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-search,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-channel-nav,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-hero {
  position: relative !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-page.miigo-shell-channel-manga {
  z-index: 1 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-safe,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-search,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-channel-nav,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-hero {
  z-index: 3 !important;
}
/* MIIGO_V4_MANGA_STATUS_AMBIENT_CLEAN_V1_END */


/* MIIGO_V4_MANGA_TAG_CAT_BUTTONS_STEP1_START
   漫画标签/分类按钮 Step1：
   - 只美化 manga 标签按钮和分类导航；
   - 不影响 novel/video/anime/short。
*/

/* 第一排标签：漫画首页 / 精选 / 排行 / 新漫 / 完结 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="manga"] .miigo-v2cfix3-tags,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-page.miigo-shell-channel-manga .miigo-v2cfix3-tags {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  overflow-x: auto !important;
  padding: 0 18px 2px !important;
  margin: 10px 0 7px !important;
  box-sizing: border-box !important;
  scrollbar-width: none !important;
  position: relative !important;
  z-index: 5 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-tags::-webkit-scrollbar {
  display: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-tag {
  flex: 0 0 auto !important;
  min-width: auto !important;
  height: 32px !important;
  line-height: 32px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255, 120, 180, .20) !important;
  background: rgba(255,255,255,.66) !important;
  color: #9b5a7b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  box-shadow:
    0 5px 14px rgba(122,63,101,.08),
    inset 0 1px 0 rgba(255,255,255,.62) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  cursor: pointer !important;
  user-select: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-tag.is-active {
  color: #fff !important;
  border-color: rgba(255,255,255,.55) !important;
  background:
    linear-gradient(135deg, #ff77b7 0%, #d94f96 50%, #a64080 100%) !important;
  box-shadow:
    0 8px 18px rgba(166,64,128,.24),
    inset 0 1px 0 rgba(255,255,255,.46) !important;
}

/* 第二排分类导航 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-v2c-fix3="1"][data-channel="manga"] .miigo-v2cfix3-cats,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-shell-page.miigo-shell-channel-manga .miigo-v2cfix3-cats {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding: 0 18px 3px !important;
  margin: 0 0 10px !important;
  box-sizing: border-box !important;
  scrollbar-width: none !important;
  position: relative !important;
  z-index: 5 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-cats::-webkit-scrollbar {
  display: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-cat {
  flex: 0 0 auto !important;
  min-width: auto !important;
  height: 29px !important;
  line-height: 29px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(122,63,101,.10) !important;
  background: rgba(255,255,255,.54) !important;
  color: #7b6170 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 12px rgba(122,63,101,.06) !important;
  cursor: pointer !important;
  user-select: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-cat.is-active {
  color: #fff !important;
  background:
    linear-gradient(135deg, #a64080 0%, #7a3f65 100%) !important;
  border-color: rgba(255,255,255,.48) !important;
  box-shadow:
    0 7px 16px rgba(122,63,101,.22),
    inset 0 1px 0 rgba(255,255,255,.32) !important;
}
/* MIIGO_V4_MANGA_TAG_CAT_BUTTONS_STEP1_END */


/* MIIGO_V4_MANGA_CAT_NAV_BUTTONS_STEP1B_START
   漫画第二排分类导航按钮真实修正版：
   - 命中 .miigo-v2cfix3-navbtn；
   - 只作用 manga。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-cat-nav-row-step1b="1"] {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  overflow-x: auto !important;
  padding: 1px 18px 4px !important;
  margin: 0 0 11px !important;
  box-sizing: border-box !important;
  scrollbar-width: none !important;
  position: relative !important;
  z-index: 8 !important;
  -webkit-overflow-scrolling: touch !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-cat-nav-row-step1b="1"]::-webkit-scrollbar {
  display: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-cat-nav-step1b="1"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-navbtn[data-miigo-manga-cat-nav-step1b="1"] {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: auto !important;
  height: 30px !important;
  line-height: 30px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(122,63,101,.14) !important;
  background: rgba(255,255,255,.62) !important;
  color: #7f5b70 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  letter-spacing: .1px !important;
  box-shadow:
    0 4px 12px rgba(122,63,101,.07),
    inset 0 1px 0 rgba(255,255,255,.62) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  cursor: pointer !important;
  user-select: none !important;
  text-decoration: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-cat-nav-step1b="1"].is-active,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-navbtn[data-miigo-manga-cat-nav-step1b="1"].is-active {
  color: #fff !important;
  background:
    linear-gradient(135deg, #c85aa4 0%, #944778 48%, #71375f 100%) !important;
  border-color: rgba(255,255,255,.52) !important;
  box-shadow:
    0 8px 18px rgba(122,63,101,.26),
    inset 0 1px 0 rgba(255,255,255,.36) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-cat-nav-step1b="1"]:active {
  transform: scale(.97) !important;
}
/* MIIGO_V4_MANGA_CAT_NAV_BUTTONS_STEP1B_END */


/* MIIGO_V4_MANGA_BUTTONS_HOME_ALL_MORE_STEP1D_START
   漫画按钮统一去阴影：
   - 不强行去底色，避免破坏已成功样式；
   - 首页/全部/更多漫画相关按钮也去阴影；
   - 只作用 manga。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-tag,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-tag.is-active,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-navbtn,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-navbtn.is-active,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-cat,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-cat.is-active,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-more,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-refresh,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] button {
  box-shadow: none !important;
  text-shadow: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-more-grid-step1d="1"] {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px 8px !important;
  padding: 0 12px 12px !important;
  box-sizing: border-box !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-more-page-step1d="1"] .miigo-v2cfix3-section-head {
  padding: 0 12px 10px !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-back-home-step1d="1"] {
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  cursor: pointer !important;
}
/* MIIGO_V4_MANGA_BUTTONS_HOME_ALL_MORE_STEP1D_END */


/* MIIGO_V4_MANGA_CATEGORY_PAGE_KEEP_NAV_STEP2G_START
   漫画 Step2G：
   - 分类专属页顶部保留第一排标签 + 第二排分类；
   - 下方展示分类作品；
   - 不显示返回首页；
   - 只作用 manga。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-hide-step2g="1"] {
  display: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-category-page-keep-nav-step2g="1"] {
  padding: 0 0 14px !important;
  box-sizing: border-box !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-category-title-step2g="1"] {
  margin: 8px 12px 10px !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
  color: #241821 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-category-grid-step2g="1"] {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px 8px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-theme-refresh-step2g {
  display: block !important;
  width: 96px !important;
  height: 30px !important;
  line-height: 30px !important;
  margin: 12px auto 4px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ff77b7 0%, #d94f96 50%, #a64080 100%) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-align: center !important;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-theme-refresh-step2g:active {
  transform: scale(.97) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-theme-refresh-step2g[data-miigo-manga-theme-loading-step2g="1"] {
  opacity: .72 !important;
}
/* MIIGO_V4_MANGA_CATEGORY_PAGE_KEEP_NAV_STEP2G_END */


/* MIIGO_V4_MANGA_DETAIL_READER_STEP3A_START
   漫画详情弹窗 + 阅读器：
   - 参考小说详情/阅读器结构；
   - 漫画粉紫按钮；
   - 只作用 manga。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-mask-step3a {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99980 !important;
  width: min(100vw, 430px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(15, 18, 28, .38) !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 0 10px 12px !important;
  box-sizing: border-box !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-panel-step3a {
  width: 100% !important;
  max-height: 84vh !important;
  overflow-y: auto !important;
  border-radius: 24px !important;
  background: #fff !important;
  padding: 24px 18px 18px !important;
  box-sizing: border-box !important;
  position: relative !important;
  box-shadow: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-close-step3a {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  height: 34px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f3f4f8 !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-main-step3a {
  display: grid !important;
  grid-template-columns: 128px 1fr !important;
  gap: 14px !important;
  align-items: center !important;
  margin-top: 46px !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-cover-step3a {
  width: 128px !important;
  aspect-ratio: 3 / 4 !important;
  border-radius: 16px !important;
  background: #f4f4f5 center / cover no-repeat !important;
  overflow: hidden !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-info-step3a h2 {
  margin: 0 0 10px !important;
  color: #0f172a !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-badges-step3a {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-badges-step3a span {
  height: 28px !important;
  line-height: 28px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 119, 183, .13) !important;
  color: #c0428b !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-info-step3a p {
  margin: 6px 0 0 !important;
  color: #7b8190 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-desc-step3a {
  margin-top: 18px !important;
  border-top: 1px solid #eef0f4 !important;
  padding-top: 16px !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-desc-step3a h3 {
  margin: 0 0 10px !important;
  color: #111827 !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-desc-step3a p {
  margin: 0 !important;
  color: #4b5563 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-actions-step3a {
  display: grid !important;
  grid-template-columns: 1fr 1.4fr !important;
  gap: 14px !important;
  margin-top: 18px !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-actions-step3a button {
  height: 50px !important;
  border-radius: 16px !important;
  border: 0 !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  box-shadow: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-fav-step3a {
  background: #f3f4f6 !important;
  color: #4b5563 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-read-step3a {
  background: linear-gradient(135deg, #ff77b7 0%, #d94f96 50%, #a64080 100%) !important;
  color: #fff !important;
}

/* reader */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-mask-step3a {
  position: fixed !important;
  inset: 0 !important;
  width: min(100vw, 430px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 99990 !important;
  background: #fffdf9 !important;
  overflow: hidden !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-step3a {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fffdf9 !important;
  color: #111827 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-top-step3a {
  height: 54px !important;
  flex: 0 0 auto !important;
  display: grid !important;
  grid-template-columns: 62px 1fr 56px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  background: rgba(255,253,249,.96) !important;
  border-bottom: 1px solid rgba(166,64,128,.08) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-top-step3a button {
  height: 32px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255,119,183,.13) !important;
  color: #a64080 !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-top-step3a strong {
  min-width: 0 !important;
  color: #111827 !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-top-step3a span {
  color: #9ca3af !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-align: right !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-body-step3a {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  padding: 20px 0 96px !important;
  box-sizing: border-box !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-body-step3a h2 {
  margin: 0 22px 14px !important;
  color: #111827 !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  line-height: 1.3 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-pages-step3a {
  width: 100% !important;
  box-sizing: border-box !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-pages-step3a img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-empty-step3a {
  margin: 30px 22px !important;
  color: #6b7280 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-float-step3a {
  position: fixed !important;
  right: calc((100vw - min(100vw, 430px)) / 2 + 14px) !important;
  bottom: 126px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  z-index: 99995 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-float-step3a button {
  width: 58px !important;
  height: 58px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: linear-gradient(135deg, #d94f96 0%, #8d356d 100%) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  box-shadow: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-bottom-step3a {
  position: fixed !important;
  left: 50% !important;
  bottom: 12px !important;
  transform: translateX(-50%) !important;
  width: calc(min(100vw, 430px) - 24px) !important;
  height: 64px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 10px !important;
  padding: 8px !important;
  box-sizing: border-box !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.94) !important;
  border: 1px solid rgba(166,64,128,.08) !important;
  box-shadow: none !important;
  z-index: 99994 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-bottom-step3a button {
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ff77b7 0%, #d94f96 50%, #a64080 100%) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  box-shadow: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-bottom-step3a button:disabled {
  background: #d1d5db !important;
  color: #fff !important;
  opacity: 1 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-catalog-step3a {
  position: fixed !important;
  left: 50% !important;
  bottom: 86px !important;
  transform: translateX(-50%) !important;
  width: calc(min(100vw, 430px) - 28px) !important;
  max-height: 48vh !important;
  overflow-y: auto !important;
  border-radius: 20px !important;
  background: #fff !important;
  border: 1px solid rgba(166,64,128,.10) !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  z-index: 99996 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-catalog-step3a strong {
  display: block !important;
  margin: 0 0 10px !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  color: #111827 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-catalog-step3a button {
  display: block !important;
  width: 100% !important;
  min-height: 38px !important;
  margin: 0 0 8px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: rgba(255,119,183,.11) !important;
  color: #a64080 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  text-align: left !important;
  padding: 0 12px !important;
  box-shadow: none !important;
}
/* MIIGO_V4_MANGA_DETAIL_READER_STEP3A_END */


/* MIIGO_V4_MANGA_DETAIL_READER_STEP3B_TUNE_START
   漫画详情/阅读器微调：
   - 收藏按钮选中态；
   - 阅读器顶部留状态栏安全距离；
   - 底部按钮外层白底去掉；
   - 右下第二按钮变日夜切换；
   - 漫画图片左右缩窄。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-fav-step3a.is-faved-step3b {
  background: linear-gradient(135deg, #ff77b7 0%, #d94f96 50%, #a64080 100%) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* 顶部不要顶到状态栏 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-top-step3a {
  min-height: 78px !important;
  height: 78px !important;
  padding: 22px 14px 0 !important;
  box-sizing: border-box !important;
  align-items: center !important;
}

/* 阅读正文跟着下移一点 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-body-step3a {
  padding-top: 18px !important;
}

/* 图片左右缩窄：手机上约左右各留一段距离 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-pages-step3a img {
  width: calc(100% - 64px) !important;
  max-width: 100% !important;
  margin: 0 auto 8px !important;
  border-radius: 6px !important;
}

/* 底部只保留按钮，去掉白色托盘 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-bottom-step3a {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 12px !important;
  height: 50px !important;
  width: min(100vw, 430px) !important;
  bottom: 14px !important;
  gap: 10px !important;
}

/* 底部按钮保持胶囊 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-bottom-step3a button {
  height: 48px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

/* 右下浮动日夜按钮 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] [data-miigo-manga-reader-night-step3b="1"] {
  background: linear-gradient(135deg, #ff77b7 0%, #d94f96 50%, #a64080 100%) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* 夜间模式 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-mask-step3a.is-night-step3b,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-mask-step3a.is-night-step3b .miigo-manga-reader-step3a {
  background: #11131a !important;
  color: #e5e7eb !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-mask-step3a.is-night-step3b .miigo-manga-reader-top-step3a {
  background: rgba(17,19,26,.96) !important;
  border-bottom-color: rgba(255,255,255,.08) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-mask-step3a.is-night-step3b .miigo-manga-reader-top-step3a strong,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-mask-step3a.is-night-step3b .miigo-manga-reader-body-step3a h2 {
  color: #f9fafb !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-mask-step3a.is-night-step3b .miigo-manga-reader-pages-step3a {
  background: #11131a !important;
}
/* MIIGO_V4_MANGA_DETAIL_READER_STEP3B_TUNE_END */


/* MIIGO_V4_MANGA_READER_TOP_COVER_FIX_STEP3C_START
   漫画阅读器/详情 Step3C：
   - 顶部状态栏区域铺白底；
   - 详情封面修复 background-image 被覆盖的问题。
*/

/* 阅读器打开时，最顶部状态栏区域补白，不露灰 */
body.miigo-v4-empty-shell-active.miigo-manga-reader-open-step3c .miigo-manga-reader-top-fill-step3c {
  display: block !important;
  position: fixed !important;
  left: 50% !important;
  top: 0 !important;
  width: min(100vw, 430px) !important;
  height: 48px !important;
  transform: translateX(-50%) !important;
  z-index: 99988 !important;
  pointer-events: none !important;
  background: #fffdf9 !important;
}

/* 阅读器本体也从最顶开始铺满 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-mask-step3a {
  top: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  min-height: 100vh !important;
  background: #fffdf9 !important;
}

/* 头部白底继续覆盖状态栏下方，文字不要顶到时间栏 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-top-step3a {
  background: #fffdf9 !important;
  min-height: 88px !important;
  height: 88px !important;
  padding: 32px 14px 0 !important;
  box-sizing: border-box !important;
}

/* 夜间时顶部补深色 */
body.miigo-v4-empty-shell-active.miigo-manga-reader-open-step3c #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-mask-step3a.is-night-step3b ~ .miigo-manga-reader-top-fill-step3c,
body.miigo-v4-empty-shell-active.miigo-manga-reader-open-step3c .miigo-manga-reader-top-fill-step3c.is-night-step3c {
  background: #11131a !important;
}

/* 详情封面修复：不要用 background 简写盖掉 inline background-image */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-cover-step3a {
  background-color: #f4f4f5 !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* 若旧 CSS 里 background 简写带 !important，这里用更靠后的规则强制保留图片属性 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-cover-step3a[style*="background-image"] {
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* 图片继续保持两侧缩窄 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-reader-pages-step3a img {
  width: calc(100% - 64px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* MIIGO_V4_MANGA_READER_TOP_COVER_FIX_STEP3C_END */


/* MIIGO_V4_MANGA_DETAIL_COVER_FIX_STEP3D_START
   漫画详情封面强修：
   - 覆盖旧 background 简写；
   - 强制显示 JS 写入的封面图。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-cover-step3a {
  background-color: #f4f4f5 !important;
  background-image: var(--miigo-manga-detail-cover-url-step3d, none) !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-manga-detail-cover-step3a[data-miigo-manga-detail-cover-fixed-step3d="1"] {
  background-image: var(--miigo-manga-detail-cover-url-step3d) !important;
}
/* MIIGO_V4_MANGA_DETAIL_COVER_FIX_STEP3D_END */


/* MIIGO_V4_MANGA_NAV_DECOUPLE_STEP3E_START
   漫画一二排导航解耦：
   - 第一排标签不跟随第二排点击抖动；
   - 只取消过渡/动画，不改原按钮颜色。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-tags .miigo-v2cfix3-tag,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-tags .miigo-v2cfix3-tag.is-active {
  transition: none !important;
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="manga"] .miigo-v2cfix3-tags[data-miigo-manga-nav-decouple-step3e="1"] {
  contain: layout paint !important;
}
/* MIIGO_V4_MANGA_NAV_DECOUPLE_STEP3E_END */
/* MIIGO_V4_VIDEO_BUTTON_REFRESH_STYLE_STEP1A_START
   视频页按钮微调：
   1. 一排/二排未选中按钮改浅浅蓝色；
   2. 选中按钮保持现有深蓝；
   3. 换一换按钮左右缩短。
   只作用 video，不碰其它频道。
*/

/* 一排、二排未选中：浅蓝 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-tags-step1a="1"] .miigo-v2cfix3-tag:not(.is-active),
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-cats-step1a="1"] .miigo-v2cfix3-navbtn:not(.is-active) {
  background: rgba(91, 141, 239, .12) !important;
  color: #315fc8 !important;
  box-shadow: none !important;
  border-color: rgba(91, 141, 239, .16) !important;
}

/* 选中保持现在深蓝状态，不改逻辑，只兜底锁住颜色 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-tags-step1a="1"] .miigo-v2cfix3-tag.is-active,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-cats-step1a="1"] .miigo-v2cfix3-navbtn.is-active {
  background: linear-gradient(135deg, #5b8def 0%, #315fc8 100%) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* 换一换按钮左右缩短，多减一点 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-refresh-step1a="1"] {
  display: block !important;
  width: calc(100% - 126px) !important;
  max-width: 250px !important;
  min-width: 170px !important;
  height: 42px !important;
  margin: 13px auto 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

/* MIIGO_V4_VIDEO_BUTTON_REFRESH_STYLE_STEP1A_END */


/* MIIGO_V4_VIDEO_REFRESH_WIDTH_SMALLER_V2_START
   视频页换一换按钮继续缩窄，只作用 video。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-refresh-step1a="1"] {
  width: calc(100% - 190px) !important;
  max-width: 210px !important;
  min-width: 138px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* MIIGO_V4_VIDEO_REFRESH_WIDTH_SMALLER_V2_END */


/* MIIGO_V4_VIDEO_BUTTON_HEIGHT_LATEST_SCROLL_STEP5A_START
   视频页 Step5A：
   1. 一排/二排按钮上下高度减少；
   2. 最新更新一排露出 2.5 个，可横向滑动。
   只作用 video。
*/

/* 一排、二排按钮高度降低 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-tags-step1a="1"] .miigo-v2cfix3-tag,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-cats-step1a="1"] .miigo-v2cfix3-navbtn {
  min-height: 30px !important;
  height: 30px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 30px !important;
}

/* 最新更新展示区：横向滑动，一屏露出 2.5 个 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-display-block-step2="1"]:first-of-type [data-miigo-video-grid-step2="1"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-display-block-step1a="1"]:first-of-type [data-miigo-video-grid-step1a="1"] {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 0 14px 4px 0 !important;
}

/* 隐藏横滑滚动条 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-display-block-step2="1"]:first-of-type [data-miigo-video-grid-step2="1"]::-webkit-scrollbar,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-display-block-step1a="1"]:first-of-type [data-miigo-video-grid-step1a="1"]::-webkit-scrollbar {
  display: none !important;
}

/* 最新更新卡片宽度：2.5 个露出 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-display-block-step2="1"]:first-of-type [data-miigo-video-grid-step2="1"] .miigo-v2cfix3-card,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-display-block-step1a="1"]:first-of-type [data-miigo-video-grid-step1a="1"] .miigo-v2cfix3-card {
  flex: 0 0 calc((100% - 20px) / 2.5) !important;
  width: calc((100% - 20px) / 2.5) !important;
  scroll-snap-align: start !important;
}

/* MIIGO_V4_VIDEO_BUTTON_HEIGHT_LATEST_SCROLL_STEP5A_END */


/* MIIGO_V4_VIDEO_HIDE_OLD_EMPTY_SHELL_KEEP_CAROUSEL_STEP5E_V2_START
   视频页刷新防露旧壳 V2：
   - 不再隐藏 miigo-shell-hero，避免动态轮播/Banner/气氛图消失；
   - 只隐藏旧搜索/入口/标签/卡片占位文字；
   - 新装修结构正常显示。
*/

/* 旧搜索、入口、标签、卡片占位隐藏 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-search,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-action,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-tag,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-card-img,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-card-title,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-card-subtitle,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-section-title {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* 顶部轮播 / Banner / 气氛区必须放开 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-hero,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v4-top-carousel,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-top-carousel-bound],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-ambient-clean-v1],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-ambient-clean-v1] * {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 防止隐藏旧占位后页面高度猛跳 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-shell-page {
  min-height: 520px;
}

/* 新装修结构正常显示 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v2cfix3-main,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v2cfix3-main * {
  opacity: 1;
  visibility: visible;
}
/* MIIGO_V4_VIDEO_HIDE_OLD_EMPTY_SHELL_KEEP_CAROUSEL_STEP5E_V2_END */


/* MIIGO_V4_VIDEO_DIRECT_PLAYER_STEP6B_START
   视频直接播放器手机端样式，电脑独立窗口使用内嵌样式。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-direct-player-mask-step6b {
  position: fixed !important;
  inset: 0 !important;
  width: min(100vw, 430px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 99990 !important;
  background: rgba(5, 10, 20, .92) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-direct-player-panel-step6b {
  position: relative !important;
  width: 100% !important;
  border-radius: 22px !important;
  background: #0b1020 !important;
  overflow: hidden !important;
  padding: 56px 12px 16px !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-direct-close-step6b {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  height: 34px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  box-shadow: none !important;
  z-index: 3 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-direct-screen-step6b {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #000 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-direct-screen-step6b video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-direct-info-step6b {
  margin-top: 14px !important;
  color: #fff !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-direct-info-step6b strong {
  display: block !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  line-height: 1.4 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-direct-info-step6b p {
  margin: 6px 0 0 !important;
  color: rgba(255,255,255,.68) !important;
  font-size: 13px !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-direct-loading-step6b {
  min-height: 240px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  color: #fff !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-direct-poster-step6b {
  width: 120px !important;
  aspect-ratio: 3 / 4 !important;
  border-radius: 16px !important;
  background: #111827 center / cover no-repeat !important;
  margin-bottom: 12px !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-direct-loading-step6b strong {
  display: block !important;
  max-width: 90% !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.4 !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-direct-loading-step6b p {
  margin: 8px 0 0 !important;
  color: rgba(255,255,255,.68) !important;
  font-size: 14px !important;
}
/* MIIGO_V4_VIDEO_DIRECT_PLAYER_STEP6B_END */


/* MIIGO_V4_VIDEO_REFRESH_BUTTON_STYLE_REPAIR_STEP6C_START
   视频页换一换按钮样式修复：
   - 兼容 step1a / step5b 两种按钮标记；
   - 恢复蓝色胶囊；
   - 保持缩短宽度；
   - 只作用 video。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-refresh-step1a="1"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-refresh-step5b="1"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-display-block-step2="1"] > .miigo-v2cfix3-refresh {
  display: block !important;
  width: calc(100% - 190px) !important;
  max-width: 210px !important;
  min-width: 138px !important;
  height: 42px !important;
  line-height: 42px !important;
  margin: 13px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #5b8def 0%, #315fc8 100%) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  text-align: center !important;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-refresh-step1a="1"]:active,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-refresh-step5b="1"]:active,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-display-block-step2="1"] > .miigo-v2cfix3-refresh:active {
  transform: scale(.97) !important;
}
/* MIIGO_V4_VIDEO_REFRESH_BUTTON_STYLE_REPAIR_STEP6C_END */


/* MIIGO_V4_VIDEO_ADS_REFRESH_WIDTH_STEP7A_START
   视频页：
   1. 两个广告位样式；
   2. 换一换按钮在当前基础上再缩短约三分之一。
   只作用 video。
*/

/* 广告块 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-block-step7a {
  display: block !important;
  margin: 12px 0 14px !important;
  padding: 0 12px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-slot-step7a {
  width: 100% !important;
  min-height: 86px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #f5f8ff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  color: rgba(49, 95, 200, .55) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-slot-step7a a,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-slot-step7a img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-slot-step7a img {
  min-height: 86px !important;
  object-fit: cover !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-block-step7a[data-miigo-video-ad-empty-step7a="1"] {
  display: none !important;
}

/* 换一换再缩短三分之一：兼容 step1a/step5b/普通 refresh */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-refresh-step1a="1"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-refresh-step5b="1"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-display-block-step2="1"] > .miigo-v2cfix3-refresh {
  width: 33.33% !important;
  max-width: 140px !important;
  min-width: 92px !important;
  height: 40px !important;
  line-height: 40px !important;
  margin: 13px auto 0 !important;
}

/* MIIGO_V4_VIDEO_ADS_REFRESH_WIDTH_STEP7A_END */


/* MIIGO_V4_VIDEO_AD_HEIGHT_HALF_STEP7B_START
   视频广告位高度减半，只作用 video。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-block-step7a {
  margin: 8px 0 10px !important;
  padding: 0 12px !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-slot-step7a {
  height: 43px !important;
  min-height: 43px !important;
  max-height: 43px !important;
  border-radius: 12px !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-slot-step7a a,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-slot-step7a img {
  height: 43px !important;
  min-height: 43px !important;
  max-height: 43px !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-slot-step7a img {
  object-fit: cover !important;
}
/* MIIGO_V4_VIDEO_AD_HEIGHT_HALF_STEP7B_END */


/* MIIGO_V4_VIDEO_AD_HEIGHT_BG_FIX_STEP7C_START
   视频广告位样式修复：
   - 高度在 Step7B 43px 基础上增加约 1/3，调整为 58px；
   - 广告图片完整铺满广告容器；
   - 去掉白色底露出；
   - 只作用 video。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-block-step7a {
  margin: 8px 0 10px !important;
  padding: 0 12px !important;
  background: transparent !important;
  line-height: 0 !important;
  box-sizing: border-box !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-slot-step7a {
  display: block !important;
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: transparent !important;
  background-color: transparent !important;
  line-height: 0 !important;
  font-size: 0 !important;
  box-shadow: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-slot-step7a a {
  display: block !important;
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  line-height: 0 !important;
  font-size: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-slot-step7a img {
  display: block !important;
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  object-fit: cover !important;
  object-position: center center !important;
  vertical-align: top !important;
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 加载占位也不要白底，避免后台图替换瞬间露白 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-loading-step7a {
  height: 58px !important;
  line-height: 58px !important;
  background: transparent !important;
  color: rgba(49, 95, 200, .32) !important;
  font-size: 12px !important;
}
/* MIIGO_V4_VIDEO_AD_HEIGHT_BG_FIX_STEP7C_END */


/* MIIGO_V4_VIDEO_AD_HEIGHT_FILL_STEP7C_START
   视频广告位 Step7C：
   - 高度从 43px 增加 1/3，改为 58px；
   - 图片铺满广告容器，不露白色底；
   - 只作用 video。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-block-step7a {
  margin: 8px 0 10px !important;
  padding: 0 12px !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-slot-step7a {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: transparent !important;
  line-height: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* 有广告图时，链接和图片必须完全填满广告位 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-slot-step7a a {
  display: block !important;
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  overflow: hidden !important;
  background: transparent !important;
  line-height: 0 !important;
  box-sizing: border-box !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-slot-step7a img {
  display: block !important;
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: transparent !important;
  line-height: 0 !important;
  box-sizing: border-box !important;
}

/* 加载占位也保持同高度，避免闪一下白底 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-loading-step7a {
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  border-radius: inherit !important;
  background: #f5f8ff !important;
  color: rgba(49, 95, 200, .55) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* 已加载广告图后，彻底去掉底色 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-block-step7a[data-miigo-video-ad-loaded-step7a="1"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-ad-block-step7a[data-miigo-video-ad-loaded-step7a="1"] .miigo-video-ad-slot-step7a {
  background: transparent !important;
}
/* MIIGO_V4_VIDEO_AD_HEIGHT_FILL_STEP7C_END */


/* MIIGO_V4_VIDEO_CAROUSEL_OPACITY_FIX_STEP7E_START
   修复“轮播点在动，但图片不动”：
   - 不再强制 .miigo-v4-top-carousel * opacity=1；
   - slide 的 opacity 重新听 JS 切换；
   - 只作用 video。
*/

/* 轮播容器本身可见 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v4-top-carousel {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 根据 JS 写入的 style opacity 强制匹配，覆盖之前残留的全局 opacity:1 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v4-top-carousel .miigo-v4-top-carousel-slide[style*="opacity: 0"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v4-top-carousel .miigo-v4-top-carousel-slide[style*="opacity:0"] {
  opacity: 0 !important;
  visibility: visible !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v4-top-carousel .miigo-v4-top-carousel-slide[style*="opacity: 1"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v4-top-carousel .miigo-v4-top-carousel-slide[style*="opacity:1"] {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 图片本身保持可见，但不抢 slide opacity */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v4-top-carousel .miigo-v4-top-carousel-slide img {
  opacity: 1 !important;
  visibility: visible !important;
}

/* dots 保持可见 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v4-top-carousel [data-miigo-v4-top-carousel-dot] {
  opacity: 1 !important;
  visibility: visible !important;
}
/* MIIGO_V4_VIDEO_CAROUSEL_OPACITY_FIX_STEP7E_END */


/* MIIGO_V4_VIDEO_MIIGO_TAG_STYLE_STEP1_START
   视频页第一排标签对接后台 MIIGO 标签设置。
   只作用 video 第一排，不动第二排分类。
*/
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-tags-step1a="1"] .miigo-v2cfix3-tag[data-miigo-video-miigo-tag-step1="1"] {
  background: var(--miigo-video-tag-bg, rgba(91,141,239,.12)) !important;
  color: var(--miigo-video-tag-color, #315fc8) !important;
  border-radius: var(--miigo-video-tag-radius, 999px) !important;
  padding-left: var(--miigo-video-tag-pad-x, 14px) !important;
  padding-right: var(--miigo-video-tag-pad-x, 14px) !important;
  font-size: var(--miigo-video-tag-font-size, 13px) !important;
  font-weight: var(--miigo-video-tag-weight, 800) !important;
  box-shadow: none !important;
  border: 0 !important;
  transition: none !important;
  animation: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-tags-step1a="1"] .miigo-v2cfix3-tag[data-miigo-video-miigo-tag-step1="1"].is-active {
  background: var(--miigo-video-tag-active-bg, #315fc8) !important;
  color: var(--miigo-video-tag-active-color, #fff) !important;
  box-shadow: none !important;
}
/* MIIGO_V4_VIDEO_MIIGO_TAG_STYLE_STEP1_END */


/* MIIGO_V4_VIDEO_MIIGO_TAG_ICON_STEP2_START
   视频页第一排 MIIGO 标签图标显示：
   - 渲染后台 tag_icon class；
   - 提取 layui icon 最小字体规则；
   - 只作用 video 第一排标签。
*/
@font-face{font-family:layui-icon;src:url(/static/layui/font/iconfont.eot?v=220);src:url(/static/layui/font/iconfont.eot?v=220#iefix) format('embedded-opentype'),url(/static/layui/font/iconfont.svg?v=220#iconfont) format('svg'),url(/static/layui/font/iconfont.woff?v=220) format('woff'),url(/static/layui/font/iconfont.ttf?v=220) format('truetype')}
.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.layui-icon{margin-right:3px;font-size:18px;vertical-align:bottom;vertical-align:middle\9}
.layui-icon{display:inline-block;vertical-align:middle;text-align:center;font-size:14px}
.layui-icon{position:relative;width:32px;height:30px;line-height:30px;margin:3px 5px;color:#777;cursor:pointer;border-radius:2px}
.layui-icon{font-size:50px;color:#009688}
.layui-icon{position:relative;display:inline-block;top:3px;transition:all .3s;-webkit-transition:all .3s}
.layui-icon{top:-2px;top:3px\9;-webkit-transform:rotate(180deg);transform:rotate(180deg)}
.layui-icon{top:-2px\0/IE9}
.layui-icon{display:inline-block}
.layui-icon-duihua:before{content:"\e611"}
.layui-icon-shezhi:before{content:"\e614"}
.layui-icon-yinshenim:before{content:"\e60f"}
.layui-icon-search:before{content:"\e615"}
.layui-icon-fenxiang1:before{content:"\e641"}
.layui-icon-shezhi1:before{content:"\e620"}
.layui-icon-yinqing:before{content:"\e628"}
.layui-icon-yuejuancuohao:before{content:"\1006"}
.layui-icon-cuo:before{content:"\1007"}
.layui-icon-baobiao:before{content:"\e629"}
.layui-icon-star:before{content:"\e600"}
.layui-icon-yuandian:before{content:"\e617"}
.layui-icon-chat:before{content:"\e606"}
.layui-icon-logo:before{content:"\e609"}
.layui-icon-list:before{content:"\e60a"}
.layui-icon-tubiao:before{content:"\e62c"}
.layui-icon-right:before{content:"\1005"}
.layui-icon-huanfu2:before{content:"\e61b"}
.layui-icon-On-line:before{content:"\e610"}
.layui-icon-biaoge:before{content:"\e62d"}
.layui-icon-youyou:before{content:"\e602"}
.layui-icon-zuozuo:before{content:"\e603"}
.layui-icon-cart-simple:before{content:"\e698"}
.layui-icon-cry:before{content:"\e69c"}
.layui-icon-smile:before{content:"\e6af"}
.layui-icon-survey:before{content:"\e6b2"}
.layui-icon-tree:before{content:"\e62e"}
.layui-icon-iconfont17:before{content:"\e62f"}
.layui-icon-tianjia:before{content:"\e61f"}
.layui-icon-xiazai:before{content:"\e601"}
.layui-icon-xuanzemoban48:before{content:"\e630"}
.layui-icon-gongju:before{content:"\e631"}
.layui-icon-face-surprised:before{content:"\e664"}
.layui-icon-bianji:before{content:"\e642"}
.layui-icon-speaker:before{content:"\e645"}
.layui-icon-xiangxia:before{content:"\e61a"}
.layui-icon-wenjian:before{content:"\e621"}
.layui-icon-layouts:before{content:"\e632"}
.layui-icon-duigou:before{content:"\e618"}
.layui-icon-tianjia1:before{content:"\e608"}
.layui-icon-yaoyaozhibofanye:before{content:"\e633"}
.layui-icon-read:before{content:"\e705"}
.layui-icon-404:before{content:"\e61c"}
.layui-icon-lunbozutu:before{content:"\e634"}
.layui-icon-help:before{content:"\e607"}
.layui-icon-daima1:before{content:"\e635"}
.layui-icon-jinshui:before{content:"\e636"}
.layui-icon-find-fill:before{content:"\e670"}
.layui-icon-about:before{content:"\e60b"}
.layui-icon-location:before{content:"\e715"}
.layui-icon-xiangshang:before{content:"\e619"}
.layui-icon-pause:before{content:"\e651"}
.layui-icon-riqi:before{content:"\e637"}
.layui-icon-uploadfile:before{content:"\e61d"}
.layui-icon-delete:before{content:"\e640"}
.layui-icon-play:before{content:"\e652"}
.layui-icon-top:before{content:"\e604"}
.layui-icon-haoyouqingqiu:before{content:"\e612"}
.layui-icon-weibiaoti1:before{content:"\e605"}
.layui-icon-chuangkou:before{content:"\e638"}
.layui-icon-comiisbiaoqing:before{content:"\e60c"}
.layui-icon-zhengque:before{content:"\e616"}
.layui-icon-dollar:before{content:"\e659"}
.layui-icon-iconfontwodehaoyou:before{content:"\e613"}
.layui-icon-wenjianxiazai:before{content:"\e61e"}
.layui-icon-tupian:before{content:"\e60d"}
.layui-icon-lianjie:before{content:"\e64c"}
.layui-icon-diamond:before{content:"\e735"}
.layui-icon-jilu:before{content:"\e60e"}
.layui-icon-liucheng:before{content:"\e622"}
.layui-icon-fontstrikethrough:before{content:"\e64f"}
.layui-icon-unlink:before{content:"\e64d"}
.layui-icon-bianjiwenzi:before{content:"\e639"}
.layui-icon-sanjiao:before{content:"\e623"}
.layui-icon-danxuankuanghouxuan:before{content:"\e63f"}
.layui-icon-danxuankuangxuanzhong:before{content:"\e643"}
.layui-icon-juzhongduiqi:before{content:"\e647"}
.layui-icon-youduiqi:before{content:"\e648"}
.layui-icon-zuoduiqi:before{content:"\e649"}
.layui-icon-gongsisvgtubiaozongji22:before{content:"\e626"}
.layui-icon-gongsisvgtubiaozongji23:before{content:"\e627"}
.layui-icon-refresh-2:before{content:"\1002"}
.layui-icon-loading-1:before{content:"\e63e"}
.layui-icon-return:before{content:"\e65c"}
.layui-icon-jiacu:before{content:"\e62b"}
.layui-icon-uploading:before{content:"\e67c"}
.layui-icon-liaotianduihuaimgoutong:before{content:"\e63a"}
.layui-icon-video:before{content:"\e6ed"}
.layui-icon-headset:before{content:"\e6fc"}
.layui-icon-wenjianjiafan:before{content:"\e624"}
.layui-icon-shouji:before{content:"\e63b"}
.layui-icon-tianjia2:before{content:"\e654"}
.layui-icon-wenjianjia:before{content:"\e7a0"}
.layui-icon-biaoqing:before{content:"\e650"}
.layui-icon-html:before{content:"\e64b"}
.layui-icon-biaodan:before{content:"\e63c"}
.layui-icon-cart:before{content:"\e657"}
.layui-icon-camera-fill:before{content:"\e65d"}
.layui-icon-25:before{content:"\e62a"}
.layui-icon-emwdaima:before{content:"\e64e"}
.layui-icon-fire:before{content:"\e756"}
.layui-icon-set:before{content:"\e716"}
.layui-icon-zitixiahuaxian:before{content:"\e646"}
.layui-icon-sanjiao1:before{content:"\e625"}
.layui-icon-tips:before{content:"\e702"}
.layui-icon-tupian-copy-copy:before{content:"\e64a"}
.layui-icon-more-vertical:before{content:"\e671"}
.layui-icon-zhuti2:before{content:"\e66c"}
.layui-icon-loading:before{content:"\e63d"}
.layui-icon-xieti:before{content:"\e644"}
.layui-icon-refresh-1:before{content:"\e666"}
.layui-icon-rmb:before{content:"\e65e"}
.layui-icon-home:before{content:"\e68e"}
.layui-icon-user:before{content:"\e770"}
.layui-icon-notice:before{content:"\e667"}
.layui-icon-voice:before{content:"\e688"}
.layui-icon-download:before{content:"\e681"}
.layui-icon-snowflake:before{content:"\e6b1"}
.layui-icon-yemian1:before{content:"\e655"}
.layui-icon-template:before{content:"\e663"}
.layui-icon-auz:before{content:"\e672"}
.layui-icon-console:before{content:"\e665"}
.layui-icon-app:before{content:"\e653"}
.layui-icon-xiayiye:before{content:"\e65a"}
.layui-icon-website:before{content:"\e7ae"}
.layui-icon-xiayiye1:before{content:"\e65b"}
.layui-icon-component:before{content:"\e857"}
.layui-icon-more:before{content:"\e65f"}
.layui-icon-shrink-right:before{content:"\e668"}
.layui-icon-spread-left:before{content:"\e66b"}
.layui-icon-camera:before{content:"\e660"}
.layui-icon-note:before{content:"\e66e"}
.layui-icon-refresh:before{content:"\e669"}
.layui-icon-nv:before{content:"\e661"}
.layui-icon-nan:before{content:"\e662"}
.layui-icon-senior:before{content:"\e674"}
.layui-icon-theme:before{content:"\e66a"}
.layui-icon-tread:before{content:"\e6c5"}
.layui-icon-praise:before{content:"\e6c6"}
.layui-icon-star-fill:before{content:"\e658"}
.layui-icon-template-1:before{content:"\e656"}
.layui-icon-loading-2:before{content:"\e66d"}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-tags-step1a="1"] .miigo-v2cfix3-tag[data-miigo-video-miigo-tag-step1="1"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-miigo-tag-icon-step2 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1em !important;
  height: 1em !important;
  font-size: var(--miigo-video-tag-icon-size, 15px) !important;
  line-height: 1 !important;
  color: var(--miigo-video-tag-color, #315fc8) !important;
  flex: 0 0 auto !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-v2cfix3-tag.is-active .miigo-video-miigo-tag-icon-step2 {
  color: var(--miigo-video-tag-active-color, #fff) !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-miigo-tag-text-step2 {
  display: inline-block !important;
  line-height: 1 !important;
}
/* MIIGO_V4_VIDEO_MIIGO_TAG_ICON_STEP2_END */


/* MIIGO_V4_VIDEO_TAG_ICON_NO_FLIP_LATEST_NO_REFRESH_STEP2D_START
   视频页：
   1. 第一排标签图标按后台原样显示，不旋转；
   2. 最新更新固定横向滑动，一屏露出 2.5 个；
   3. 最新更新下面不要换一换按钮。
   只作用 video。
*/

/* 第一排标签：图标左，文字右，图标不旋转 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-tags-step1a="1"] .miigo-v2cfix3-tag[data-miigo-video-miigo-tag-step1="1"] {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-miigo-tag-icon-step2 {
  order: 1 !important;
  margin-left: 0 !important;
  margin-right: 2px !important;
  transform: none !important;
  rotate: none !important;
  scale: none !important;
  transform-origin: center center !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] .miigo-video-miigo-tag-text-step2 {
  order: 2 !important;
}

/* 最新更新：稳定横滑，一排露 2.5 个 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-scroll-step2d="1"] [data-miigo-video-latest-grid-step2d="1"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-block-step5b="1"] [data-miigo-video-grid-step2="1"] {
  display: flex !important;
  grid-template-columns: none !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 0 14px 4px 0 !important;
  box-sizing: border-box !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-scroll-step2d="1"] [data-miigo-video-latest-grid-step2d="1"]::-webkit-scrollbar,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-block-step5b="1"] [data-miigo-video-grid-step2="1"]::-webkit-scrollbar {
  display: none !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-scroll-step2d="1"] [data-miigo-video-latest-grid-step2d="1"] .miigo-v2cfix3-card,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-block-step5b="1"] [data-miigo-video-grid-step2="1"] .miigo-v2cfix3-card {
  flex: 0 0 calc((100% - 20px) / 2.5) !important;
  width: calc((100% - 20px) / 2.5) !important;
  min-width: calc((100% - 20px) / 2.5) !important;
  max-width: calc((100% - 20px) / 2.5) !important;
  scroll-snap-align: start !important;
}

body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-scroll-step2d="1"] [data-miigo-video-latest-grid-step2d="1"] .miigo-v2cfix3-thumb,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-block-step5b="1"] [data-miigo-video-grid-step2="1"] .miigo-v2cfix3-thumb {
  width: 100% !important;
}

/* 最新更新下面不要换一换 */
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-scroll-step2d="1"] [data-miigo-video-refresh-step1a="1"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-scroll-step2d="1"] [data-miigo-video-refresh-step5b="1"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-scroll-step2d="1"] .miigo-v2cfix3-refresh,
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-refresh-removed-step2d="1"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-block-step5b="1"] [data-miigo-video-refresh-step1a="1"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-block-step5b="1"] [data-miigo-video-refresh-step5b="1"],
body.miigo-v4-empty-shell-active #miigo-v4-empty-shell-v1[data-channel="video"] [data-miigo-video-latest-block-step5b="1"] .miigo-v2cfix3-refresh {
  display: none !important;
}
/* MIIGO_V4_VIDEO_TAG_ICON_NO_FLIP_LATEST_NO_REFRESH_STEP2D_END */


/* MIIGO_APP_ME_ENTRY_LINK_20260623 */
.miigo-v4-app-me-entry-link {
    width: 100%;
    min-height: 92px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #0f172a;
    text-decoration: none;
    background: #fff;
}

.miigo-v4-app-me-entry-link strong {
    font-size: 18px;
    font-weight: 950;
}

.miigo-v4-app-me-entry-link span {
    font-size: 13px;
    color: #64748b;
    font-weight: 800;
}

/* MIIGO_VIDEO_TWO_ROW_NAV_SCROLL_STYLE_20260624
   视频页一级/二级分类导航横向滑动，二级按钮统一成一级按钮样式
*/
[data-miigo-video-cats-step1a],
[data-miigo-video-second-row-final] {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  padding: 2px 0 6px 0 !important;
}

[data-miigo-video-cats-step1a]::-webkit-scrollbar,
[data-miigo-video-second-row-final]::-webkit-scrollbar {
  display: none !important;
}

[data-miigo-video-cats-step1a] .miigo-v2cfix3-navbtn,
[data-miigo-video-second-row-final] .miigo-v2cfix3-navbtn {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: auto !important;
  height: 34px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 0 !important;
  border-style: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 34px !important;
  text-decoration: none !important;
}

[data-miigo-video-second-row-final] {
  margin-top: 8px !important;
}

[data-miigo-video-second-row-final] .miigo-v2cfix3-navbtn {
  background: #EEF3FF !important;
  color: #2F5FDB !important;
}

[data-miigo-video-second-row-final] .miigo-v2cfix3-navbtn.is-active {
  background: #4E79E6 !important;
  color: #FFFFFF !important;
}

/* MIIGO_VIDEO_ALL_BUTTONS_ORANGE_PILL_20260624
   视频页全部按钮统一成橙色/白色胶囊风格：
   - 顶部：首页/精选/排行/新书...
   - 一级分类/二级分类
   - 展示区“换一换”按钮
*/

/* 顶部标签行、一级分类行、二级分类行：全部横向滑动 */
[data-miigo-video-tags-step1a],
[data-miigo-video-cats-step1a],
[data-miigo-video-second-row-final] {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  padding: 4px 0 7px 0 !important;
}

[data-miigo-video-tags-step1a]::-webkit-scrollbar,
[data-miigo-video-cats-step1a]::-webkit-scrollbar,
[data-miigo-video-second-row-final]::-webkit-scrollbar {
  display: none !important;
}

/* 顶部标签按钮 + 分类按钮 + 二级按钮 */
[data-miigo-video-tags-step1a] .miigo-v2cfix3-tag,
[data-miigo-video-cats-step1a] .miigo-v2cfix3-navbtn,
[data-miigo-video-second-row-final] .miigo-v2cfix3-navbtn {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 31px !important;
  min-width: auto !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  border: 0 !important;
  outline: none !important;
  background: #FFFFFF !important;
  color: #4B2A00 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 31px !important;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .08) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/* 顶部标签文字 */
[data-miigo-video-tags-step1a] .miigo-video-miigo-tag-text-step2 {
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* 选中按钮：橙色 */
[data-miigo-video-tags-step1a] .miigo-v2cfix3-tag.is-active,
[data-miigo-video-cats-step1a] .miigo-v2cfix3-navbtn.is-active,
[data-miigo-video-second-row-final] .miigo-v2cfix3-navbtn.is-active {
  background: #FFB23F !important;
  color: #3A2300 !important;
  box-shadow: 0 6px 15px rgba(255, 178, 63, .28) !important;
}

/* 换一换 / 刷新按钮统一 */
[data-miigo-video-refresh-step5b],
[data-miigo-video-refresh-step1a],
.miigo-v2cfix3-refresh,
.miigo-v2cfix3-change,
.miigo-v2cfix3-more {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 31px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  border: 0 !important;
  outline: none !important;
  background: #FFFFFF !important;
  color: #4B2A00 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 31px !important;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .08) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/* 换一换按下去时 */
[data-miigo-video-refresh-step5b]:active,
[data-miigo-video-refresh-step1a]:active,
.miigo-v2cfix3-refresh:active,
.miigo-v2cfix3-change:active,
.miigo-v2cfix3-more:active,
[data-miigo-video-tags-step1a] .miigo-v2cfix3-tag:active,
[data-miigo-video-cats-step1a] .miigo-v2cfix3-navbtn:active,
[data-miigo-video-second-row-final] .miigo-v2cfix3-navbtn:active {
  transform: scale(.96) !important;
}
