/* 融TV 手机版 m.css —— v1.19.0 移动端 UI（参照央视频布局范式，品牌蓝 #007AFF） */
:root {
  --bg: #0d1117;
  --card: #161c26;
  --card2: #1c2430;
  --text: #e8eef6;
  --sub: #8b98a9;
  --accent: #007AFF;
  --accent-soft: rgba(0, 122, 255, .16);
  --live: #FF3B30;
  --voice: #FF9500;
  --line: rgba(255, 255, 255, .08);
  --tabbar-h: 54px;
  --top-h: 52px;
}
html[data-theme="light"] {
  --bg: #f2f4f8;
  --card: #ffffff;
  --card2: #f0f3f8;
  --text: #16202e;
  --sub: #6b7789;
  --line: rgba(20, 30, 50, .1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ===== 顶栏 ===== */
.m-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: calc(var(--top-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.m-brand { display: flex; align-items: center; gap: 8px; }
.m-brand-logo { width: 26px; height: 26px; border-radius: 6px; }
.m-brand-name { font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.m-brand-tv { color: var(--accent); }
.m-top-r { display: flex; align-items: center; gap: 8px; }
.m-icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--text);
}
.m-icon-btn svg { width: 20px; height: 20px; }
.m-avatar-btn {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.m-avatar-btn svg { width: 20px; height: 20px; }
.m-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* v1.19.6 #385：顶栏「电脑版」入口（后台内容管理可配：可见/文本/URL/tooltip） */
.m-desktop-link {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--text);
  text-decoration: none; white-space: nowrap; margin-left: 4px;
}
.m-desktop-link:active { opacity: .72; }

/* ===== 页面容器 ===== */
.m-view {
  padding: calc(var(--top-h) + env(safe-area-inset-top)) 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  min-height: 100dvh;
  animation: mFade .18s ease;
}
@keyframes mFade { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== 首页 ===== */
.home-hero {
  position: relative; margin: 12px 12px 4px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #101b2e 0%, #16283f 55%, #0e1c2f 100%);
  border: 1px solid var(--line);
  min-height: 158px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px; cursor: pointer;
}
.hh-glow {
  position: absolute; right: -40px; top: -30px; width: 190px; height: 190px;
  background: radial-gradient(circle, rgba(0,122,255,.5), transparent 65%);
  pointer-events: none;
}
.hh-info { position: relative; z-index: 1; }
.live-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--live); padding: 3px 9px; border-radius: 999px;
}
.live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: livePulse 1.2s infinite; }
@keyframes livePulse { 50% { opacity: .35; } }
.hh-title { font-size: 20px; font-weight: 800; margin-top: 10px; color: #fff; }
.hh-desc {
  margin-top: 5px; font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hh-play {
  position: relative; z-index: 1; margin-top: 12px; align-self: flex-start;
  display: flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
}
.hh-play svg { width: 16px; height: 16px; }

/* ===== v1.18.0 运营位：公告条 + 轮播图 ===== */
.m-notice {
  margin: 10px 12px 0; padding: 9px 14px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(0,122,255,.16), rgba(0,122,255,.06));
  border: 1px solid rgba(0,122,255,.28);
  color: var(--text); font-size: 13px; line-height: 1.5;
  display: flex; align-items: center; gap: 8px;
}
.m-notice::before { content: "📢"; font-size: 14px; flex-shrink: 0; }
.m-banners { margin: 10px 12px 2px; position: relative; border-radius: 14px; overflow: hidden; }
.mb-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.mb-track::-webkit-scrollbar { display: none; }
.mb-item {
  position: relative; flex: 0 0 82%; scroll-snap-align: center;
  border-radius: 14px; overflow: hidden; cursor: pointer;
  aspect-ratio: 16 / 7; background: var(--card); border: 1px solid var(--line);
}
.mb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff; font-size: 13px; font-weight: 700;
}
.mb-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.mb-dots i {
  width: 6px; height: 6px; border-radius: 999px; background: var(--line);
  transition: all .25s;
}
.mb-dots i.on { width: 16px; background: var(--accent); }

.home-cats {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.home-cats::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; padding: 7px 15px; border-radius: 999px;
  font-size: 13px; color: var(--sub); background: var(--card);
  border: 1px solid var(--line);
}
.cat-chip.active { color: #fff; background: var(--accent); border-color: var(--accent); }

.home-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 12px 12px 20px;
}
.ch-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  cursor: pointer; position: relative;
}
.ch-card:active { transform: scale(.97); opacity: .9; }
.ch-card-img {
  aspect-ratio: 16/9; width: 100%; background: var(--card2);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.ch-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ch-card-img .ch-fallback {
  font-size: 30px; font-weight: 800; color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.ch-card-live { position: absolute; left: 8px; top: 8px; z-index: 2; }
.ch-card-body { padding: 8px 10px 10px; }
.ch-card-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-card-sub { font-size: 11px; color: var(--sub); margin-top: 3px; display: flex; gap: 6px; align-items: center; }
.ch-card-status { color: var(--live); font-size: 10px; font-weight: 700; }

/* ===== 看电视（播放页） ===== */
.video-wrap {
  position: relative; width: 100%;
  height: min(56.25vw, 34dvh);
  background: #000; overflow: hidden;
  touch-action: none;
}
.video-wrap video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vw-top {
  position: absolute; top: 10px; left: 12px; right: 12px;
  display: flex; align-items: center; gap: 8px; z-index: 5;
  pointer-events: none;
  transition: opacity .3s;
}
.vw-hd {
  font-size: 10px; font-weight: 700; color: #fff; background: rgba(0,0,0,.45);
  padding: 2px 7px; border-radius: 4px;
}
.vw-cast-badge { font-size: 10px; font-weight: 700; color: #fff; background: var(--voice); padding: 2px 7px; border-radius: 4px; }
.vw-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  transition: opacity .3s;
}
.vw-name-row { min-width: 0; flex: 1; }
.vw-name {
  display: block; font-size: 16px; font-weight: 800; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vw-code { font-size: 11px; color: rgba(255,255,255,.6); }
.vw-controls { display: flex; gap: 10px; }
.vw-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.42); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.vw-btn svg { width: 20px; height: 20px; }
.vw-btn.on { color: #FFD60A; }
.vw-btn.on svg { fill: rgba(255,214,10,.28); }
.vw-tip {
  position: absolute; top: 50%; left: 12px; right: 12px; z-index: 6;
  transform: translateY(-50%); text-align: center;
  color: #fff; font-size: 13px; line-height: 1.7;
  background: rgba(0,0,0,.55); border-radius: 10px; padding: 10px 12px;
  pointer-events: none;
}
.vw-center-hint {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4;
  background: rgba(0,0,0,.6); color: #fff; font-size: 12px;
  padding: 6px 14px; border-radius: 999px; pointer-events: none;
  animation: hintFade 1.6s ease forwards;
}
@keyframes hintFade { 0% { opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }

/* 横屏速切条（v1.23.0 #414：头部拖动定位 + 「»」收纳成窄条） */
.fs-rail {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%); z-index: 7;
  width: 118px; max-height: 72%;
  border-radius: 12px;
  background: rgba(10,14,20,.62); backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  overflow: hidden; scrollbar-width: none;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  transition: width .22s ease;
}
.fs-rail::-webkit-scrollbar { display: none; }
.fs-rail-head {
  display: flex; align-items: center; gap: 2px; flex-shrink: 0;
  padding: 3px 4px; color: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(255,255,255,.14);
  cursor: grab; touch-action: none; user-select: none;
  background: rgba(255,255,255,.06);
}
.fs-rail-head:active { cursor: grabbing; }
.fs-rail-drag { font-size: 12px; color: rgba(255,255,255,.75); padding: 2px 3px; }
.fs-rail-tit { flex: 1; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; }
.fs-rail-fold {
  font-size: 13px; font-weight: 900; padding: 2px 7px; border-radius: 6px;
  color: rgba(255,255,255,.9); cursor: pointer; transition: background .2s;
}
.fs-rail-fold:active { background: rgba(255,255,255,.2); }
.fs-rail-body {
  flex: 1; overflow-y: auto; padding: 4px; display: flex; flex-direction: column; gap: 2px;
  scrollbar-width: none;
}
.fs-rail-item {
  display: flex; align-items: center; gap: 7px; padding: 6px 7px; border-radius: 8px;
  color: rgba(255,255,255,.85); font-size: 12px; white-space: nowrap;
}
.fs-rail-item img { width: 26px; height: 18px; object-fit: cover; border-radius: 3px; }
.fs-rail-item.active { background: var(--accent); color: #fff; font-weight: 700; }
/* 收纳态：只留一条窄边 + 展开箭头 */
.fs-rail.min { width: 42px; }
.fs-rail.min .fs-rail-tit, .fs-rail.min .fs-rail-drag { display: none; }
.fs-rail.min .fs-rail-body { display: none; }
.fs-rail.min .fs-rail-head { justify-content: center; border-bottom: none; padding: 0; background: transparent; }
.fs-rail.min .fs-rail-fold { font-size: 14px; padding: 12px 4px; }

/* 广告层 */
.ad-layer {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(0,0,0,.82);
  display: flex; align-items: center; justify-content: center;
}
.ad-layer .ad-card { position: relative; width: 82%; max-width: 340px; }
/* v1.19.4 #372：文本/图片广告整卡可点直跳（对齐桌面 /web/，不再渲染「查看详情」锚点） */
.ad-layer .ad-card.ad-clickable { cursor: pointer; }
.ad-layer .ad-media {
  width: 100%; border-radius: 12px; overflow: hidden;
  background: #000; position: relative;
}
.ad-layer .ad-media img, .ad-layer .ad-media video { width: 100%; display: block; max-height: 42dvh; object-fit: contain; }
.ad-layer .ad-text { color: #fff; font-size: 14px; line-height: 1.6; text-align: center; padding: 10px 4px; }
.ad-layer .ad-count {
  position: absolute; right: 6px; top: 6px; z-index: 2;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 999px;
}
.ad-layer .ad-close {
  position: absolute; left: 50%; bottom: -38px; transform: translateX(-50%);
  background: rgba(255,255,255,.18); color: #fff;
  font-size: 12px; padding: 6px 22px; border-radius: 999px;
}

/* ===== v1.19.4 #373：返回继续观看胶囊 =====
   从超链/广告外链或后台回到页面且直播已暂停时浮现（m.js checkResumeOnReturn），
   悬浮于底部 Tab 栏上方，点击恢复直播并回到「看电视」视图 */
.resume-pill {
  position: fixed; left: 50%;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  transform: translateX(-50%); z-index: 120;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 10px 22px; border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0, 122, 255, .45);
  display: flex; align-items: center; gap: 6px;
  max-width: 82vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: resumePillIn .28s ease;
}
@keyframes resumePillIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== 视频超链层（v1.19.2：对齐桌面 player.css，移动端尺寸适配） ===== */
.overlay-layer { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.overlay-item {
  position: absolute; pointer-events: auto; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; white-space: nowrap;
  z-index: 10; user-select: none; -webkit-user-select: none;
  max-width: 88vw;
}
.overlay-item.hidden { display: none; }
.ov-close-btn {
  position: absolute; top: -9px; right: -9px; z-index: 15;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.3);
}
.overlay-pos-top-left { top: 8px; left: 8px; }
.overlay-pos-top-right { top: 8px; right: 8px; }
.overlay-pos-bottom-left { bottom: 60px; left: 8px; }
.overlay-pos-bottom-right { bottom: 60px; right: 8px; }
.overlay-pos-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* === 进入特技（一次性动画） === */
@keyframes ov-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ov-slide-left { from { opacity: 0; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes ov-slide-right { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes ov-slide-up { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
@keyframes ov-slide-down { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: translateY(0); } }
@keyframes ov-zoom-in { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
@keyframes ov-bounce-in { 0% { opacity: 0; transform: scale(0.3); } 50% { opacity: 1; transform: scale(1.15); } 70% { transform: scale(0.9); } 100% { transform: scale(1); } }
@keyframes ov-rotate-in { from { opacity: 0; transform: rotate(-180deg) scale(0.5); } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes ov-flip-x { from { opacity: 0; transform: perspective(400px) rotateY(90deg); } to { opacity: 1; transform: perspective(400px) rotateY(0); } }
@keyframes ov-flip-y { from { opacity: 0; transform: perspective(400px) rotateX(90deg); } to { opacity: 1; transform: perspective(400px) rotateX(0); } }
.ov-entr-fade-in { animation: ov-fade-in var(--ov-dur,500ms) ease forwards var(--ov-delay,0ms); }
.ov-entr-slide-left { animation: ov-slide-left var(--ov-dur,500ms) ease forwards var(--ov-delay,0ms); }
.ov-entr-slide-right { animation: ov-slide-right var(--ov-dur,500ms) ease forwards var(--ov-delay,0ms); }
.ov-entr-slide-up { animation: ov-slide-up var(--ov-dur,500ms) ease forwards var(--ov-delay,0ms); }
.ov-entr-slide-down { animation: ov-slide-down var(--ov-dur,500ms) ease forwards var(--ov-delay,0ms); }
.ov-entr-zoom-in { animation: ov-zoom-in var(--ov-dur,500ms) ease forwards var(--ov-delay,0ms); }
.ov-entr-bounce-in { animation: ov-bounce-in var(--ov-dur,800ms) cubic-bezier(.36,.07,.19,.97) forwards var(--ov-delay,0ms); }
.ov-entr-rotate-in { animation: ov-rotate-in var(--ov-dur,700ms) ease forwards var(--ov-delay,0ms); }
.ov-entr-flip-x { animation: ov-flip-x var(--ov-dur,600ms) ease forwards var(--ov-delay,0ms); }
.ov-entr-flip-y { animation: ov-flip-y var(--ov-dur,600ms) ease forwards var(--ov-delay,0ms); }

/* === 持续运动（循环动画，入场动画后开始） === */
@keyframes ov-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ov-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes ov-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@keyframes ov-flash { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes ov-marquee-l { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
@keyframes ov-marquee-r { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.ov-mot-float { animation: ov-float calc(3s / var(--mot-speed,1)) ease-in-out infinite; }
.ov-mot-pulse { animation: ov-pulse calc(2s / var(--mot-speed,1)) ease-in-out infinite; }
.ov-mot-shake { animation: ov-shake calc(0.5s / var(--mot-speed,1)) ease-in-out infinite; }
.ov-mot-flash { animation: ov-flash calc(1s / var(--mot-speed,1)) ease-in-out infinite; }
.ov-mot-marquee-left { animation: ov-marquee-l calc(6s / var(--mot-speed,1)) linear infinite; }
.ov-mot-marquee-right { animation: ov-marquee-r calc(6s / var(--mot-speed,1)) linear infinite; }

/* 播放页信息区 */
.watch-body { padding: 0 12px 24px; }
.ch-strip-title { font-size: 12px; color: var(--sub); font-weight: 700; margin: 14px 2px 8px; }
.ch-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ch-strip::-webkit-scrollbar { display: none; }
.ch-strip-item {
  flex-shrink: 0; width: 86px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 10px;
  overflow: hidden; cursor: pointer;
}
.ch-strip-item.active { border-color: var(--accent); }
.ch-strip-item .csi-img { height: 48px; background: var(--card2); display: flex; align-items: center; justify-content: center; }
.ch-strip-item .csi-img img { width: 100%; height: 100%; object-fit: cover; }
.ch-strip-item .csi-img .ch-fallback { font-size: 14px; font-weight: 800; color: var(--accent); }
.ch-strip-item .csi-name {
  font-size: 10px; text-align: center; padding: 4px 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prog-card {
  margin-top: 4px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}
.prog-card .pc-title { font-size: 13px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.prog-card .pc-title .live-badge { font-size: 9px; padding: 2px 7px; }
.prog-card .pc-desc { font-size: 12px; color: var(--sub); line-height: 1.7; word-break: break-word; }
.prog-card .pc-desc a { color: var(--accent); text-decoration: none; }

/* ===== 频道抽屉 ===== */
.drawer-wrap { position: fixed; inset: 0; z-index: 80; }
.drawer-mask { position: absolute; inset: 0; background: rgba(0,0,0,.55); animation: mFade .2s ease; }
.drawer-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 78dvh; background: var(--bg);
  border-radius: 18px 18px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
  animation: drawerUp .26s cubic-bezier(.2,.8,.25,1);
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes drawerUp { from { transform: translateY(100%); } to { transform: none; } }
.drawer-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 2px; }
.drawer-head { padding: 6px 14px 10px; }
.drawer-title { font-size: 16px; font-weight: 800; }
.drawer-search {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
}
.drawer-search svg { width: 16px; height: 16px; color: var(--sub); flex-shrink: 0; }
.drawer-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14px; }
.drawer-cats {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 14px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.drawer-cats::-webkit-scrollbar { display: none; }
.drawer-grid {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 4px 14px 20px;
}
.drawer-ch {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; cursor: pointer; text-align: center;
}
.drawer-ch:active { transform: scale(.96); }
.drawer-ch .dc-img { height: 52px; background: var(--card2); display: flex; align-items: center; justify-content: center; position: relative; }
.drawer-ch .dc-img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-ch .dc-img .ch-fallback { font-size: 16px; font-weight: 800; color: var(--accent); }
.drawer-ch .dc-img .dc-live {
  position: absolute; left: 4px; top: 4px;
  font-size: 8px; font-weight: 700; color: #fff; background: var(--live);
  padding: 1px 5px; border-radius: 4px;
}
.drawer-ch .dc-name { font-size: 11px; padding: 6px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-ch.off { opacity: .4; }

/* ===== 搜索弹层 ===== */
.search-panel {
  position: fixed; inset: 0; z-index: 70; background: var(--bg);
  padding: calc(var(--top-h) + env(safe-area-inset-top)) 12px 0;
}
.search-head { display: flex; align-items: center; gap: 10px; }
.search-head input {
  flex: 1; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 14px; color: var(--text); font-size: 15px; outline: none;
}
.search-cancel { font-size: 14px; color: var(--accent); padding: 6px; flex-shrink: 0; }
.search-results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 0 30px; }
.search-empty { grid-column: 1 / -1; text-align: center; color: var(--sub); font-size: 13px; padding: 40px 0; }

/* ===== 我的 ===== */
.view-title { font-size: 18px; font-weight: 800; padding: 6px 16px 2px; }
.mine-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 12px 12px 0; padding: 14px; }
.mine-sec-title { font-size: 13px; font-weight: 800; color: var(--sub); margin-bottom: 10px; }
.mine-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 8px 0; }
.mine-row a { color: var(--accent); text-decoration: none; }
.m-input {
  width: 100%; background: var(--card2); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; color: var(--text);
  font-size: 15px; outline: none; margin-bottom: 10px;
}
.m-btn {
  width: 100%; border-radius: 10px; padding: 12px; font-size: 15px; font-weight: 700;
  margin-bottom: 8px;
}
.m-btn.primary { background: var(--accent); color: #fff; }
.m-btn.ghost { background: var(--card2); color: var(--text); border: 1px solid var(--line); }
.mine-tip { font-size: 11px; color: var(--sub); line-height: 1.6; margin-top: 4px; }
.mine-user { display: flex; align-items: center; gap: 12px; }
.mine-user .mu-avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--accent); color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.mine-user .mu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mine-user .mu-name { font-size: 16px; font-weight: 800; }
.mine-user .mu-id { font-size: 12px; color: var(--sub); margin-top: 2px; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; border-radius: 999px; background: var(--line);
  transition: .2s; cursor: pointer;
}
.switch .slider::before {
  content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  border-radius: 50%; background: #fff; transition: .2s;
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ===== 弹层 ===== */
.modal-mask {
  position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-box {
  position: relative; width: 100%; max-width: 340px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 20px;
}
.modal-title { font-size: 17px; font-weight: 800; text-align: center; margin-bottom: 14px; }
.modal-close {
  position: absolute; right: 12px; top: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--card2); color: var(--sub); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
/* v1.19.6 #386：登录/注册 双 Tab */
.auth-box { padding-top: 10px; }
.auth-tabs {
  display: flex; margin: 0 auto 16px; width: 72%;
  background: var(--card2); border-radius: 999px; padding: 3px;
}
.auth-tab {
  flex: 1; padding: 8px 0; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--sub); transition: .18s;
}
.auth-tab.on { background: var(--accent); color: #fff; }
.auth-err {
  font-size: 12px; color: var(--live); line-height: 1.5;
  margin: -2px 0 8px; text-align: center;
}
.auth-foot {
  font-size: 12.5px; color: var(--sub); text-align: center; padding-top: 2px;
}
.auth-foot a { color: var(--accent); text-decoration: none; font-weight: 600; }
/* v1.19.6 #387：页内浏览器层 */
.ib-mask {
  position: fixed; inset: 0; z-index: 150; background: #fff;
  display: flex; flex-direction: column;
}
html[data-theme="dark"] .ib-mask { background: #0d1117; }
.ib-top {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  height: 48px; padding: 0 8px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.ib-btn {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  height: 34px; padding: 0 10px; border-radius: 999px;
  background: var(--card2); color: var(--accent);
  font-size: 13px; font-weight: 700; border: 1px solid var(--line);
}
.ib-btn svg { width: 17px; height: 17px; }
.ib-back { color: var(--accent); }
.ib-ext { color: var(--sub); margin-left: auto; }
.ib-host {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; text-align: center; font-size: 12px; color: var(--sub);
}
.ib-frame { flex: 1; width: 100%; border: 0; background: #fff; }
html[data-theme="dark"] .ib-frame { background: #fff; }
.wx-box { text-align: center; }
.wx-hint { font-size: 12px; color: var(--sub); margin-bottom: 12px; }
/* 微信官方组件为 300×400 iframe（300 二维码 + 底部提示），
   v1.18.0 scale(0.62) 缩放（视觉 186×248）后布局完整，但 iframe 底部
   "使用微信扫一扫登录" 文字被 overflow:hidden 裁掉 1-2 像素（容器
   严格等于 scale 视觉尺寸，渲染亚像素偏差致底部溢出）。
   v1.19.0：容器扩到 200×270 留 14×22 像素缓冲，scale 不动，完整容纳。 */
#wxQrContainer {
  position: relative;
  width: 200px;
  height: 270px;
  margin: 0 auto;
  overflow: hidden;
}
#wxQrContainer iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px !important;
  height: 400px !important;
  margin-left: -150px;
  margin-top: -200px;
  transform: scale(0.62);
  transform-origin: center center;
}
#wxQrContainer img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 186px;
  height: 186px;
  margin-left: -93px;
  margin-top: -93px;
}
.wx-status { font-size: 12px; color: var(--sub); margin-top: 10px; }

/* ===== 投屏 sheet ===== */
.sheet-mask { position: fixed; inset: 0; z-index: 85; background: rgba(0,0,0,.5); }
.cast-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 86;
  background: var(--bg); border-radius: 18px 18px 0 0; border-top: 1px solid var(--line);
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  animation: drawerUp .26s cubic-bezier(.2,.8,.25,1);
}
.sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
.sheet-title { font-size: 15px; font-weight: 800; text-align: center; margin-bottom: 12px; }
.cast-list { display: flex; flex-direction: column; gap: 8px; max-height: 42dvh; overflow-y: auto; }
.cast-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px;
}
.cast-item:active { border-color: var(--accent); }
.cast-item .ci-name { font-size: 14px; font-weight: 700; flex: 1; }
.cast-item .ci-detail { font-size: 11px; color: var(--sub); margin-top: 2px; }
.cast-status { font-size: 12px; color: var(--sub); text-align: center; margin-top: 12px; line-height: 1.6; }
.cast-status.ok { color: #34C759; }
.cast-status.err { color: var(--live); }

/* ===== 底部导航 ===== */
.m-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex;
}
.m-tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--sub); font-size: 10px;
}
.m-tabbar .tab svg { width: 22px; height: 22px; }
.m-tabbar .tab.active { color: var(--accent); font-weight: 700; }

/* ===== 全屏态 ===== */
.video-wrap:fullscreen { height: 100dvh; width: 100vw; background: #000; }
.video-wrap:fullscreen video { object-fit: contain; }
.video-wrap:-webkit-full-screen { height: 100dvh; width: 100vw; background: #000; }
.video-wrap:-webkit-full-screen video { object-fit: contain; }

/* ===== v1.19.0 我的页·应用功能入口 ===== */
.mine-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px 14px; border-radius: 14px;
  background: linear-gradient(160deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  transition: transform .12s ease;
}
.feat-btn:active { transform: scale(.96); }
.feat-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.feat-ico svg { width: 22px; height: 22px; }
.feat-video { background: linear-gradient(135deg, rgba(0,122,255,.28), rgba(0,122,255,.08)); color: #3ea2ff; }
.feat-doc { background: linear-gradient(135deg, rgba(255,149,0,.24), rgba(255,149,0,.06)); color: #ffb340; }
.feat-name { font-size: 14px; font-weight: 700; }
.feat-sub { font-size: 11px; color: var(--sub); }

/* ===== v1.19.0 内嵌页（看视频 / 看图文） ===== */
body.inner-open .m-top { display: none; }
body.inner-open .m-tabbar { display: none; }
body.inner-open .inner-view { padding-top: 0; padding-bottom: env(safe-area-inset-bottom); }
.inner-view {
  padding: 0 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; min-height: 100dvh;
}
.inner-view .m-top { display: none; }
.sub-top {
  position: sticky; top: 0; z-index: 40;
  height: calc(var(--top-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 10px 0;
  display: flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.sub-back {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--text);
}
.sub-back svg { width: 20px; height: 20px; }
.sub-title { flex: 1; text-align: center; font-size: 16px; font-weight: 800; }
.sub-spacer { width: 38px; }

/* 看视频容器 */
.iv-wrap {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9; flex-shrink: 0;
  background: #000;
}
.iv-wrap video { width: 100%; height: 100%; object-fit: contain; }
.iv-tip {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 86%; text-align: center;
  color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.6;
  background: rgba(10,14,20,.55); padding: 10px 18px; border-radius: 12px;
  pointer-events: none;
}
.iv-fs {
  position: absolute; right: 10px; bottom: 10px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,20,28,.55); color: #fff;
}
.iv-fs svg { width: 18px; height: 18px; }

/* URL 输入面板 */
.url-panel { padding: 12px; }
.url-row { display: flex; gap: 8px; }
.url-row input {
  flex: 1; min-width: 0; height: 42px;
  padding: 0 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--text); font-size: 14px; outline: none;
}
.url-row input:focus { border-color: var(--accent); }
.url-go {
  flex-shrink: 0; padding: 0 20px; height: 42px; border-radius: 12px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
}
.url-help { margin-top: 8px; font-size: 11px; color: var(--sub); line-height: 1.6; }
.hist-title { margin: 14px 0 8px; font-size: 13px; font-weight: 800; color: var(--sub); }
.hist-list { display: flex; flex-direction: column; gap: 6px; }
.hist-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
  overflow: hidden;
}
.hist-ico { color: var(--accent); flex-shrink: 0; font-size: 11px; }
.hist-url {
  font-size: 12px; color: var(--text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.hist-empty { font-size: 12px; color: var(--sub); padding: 6px 2px; }

/* 看图文容器 */
.doc-wrap {
  position: relative; width: 100%; flex: 1; min-height: 240px;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.doc-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--sub); font-size: 13px; text-align: center; padding: 20px;
}
.doc-empty svg { width: 56px; height: 56px; opacity: .45; }
.doc-wrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; transition: transform .12s ease;
  touch-action: manipulation;
}
.doc-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.doc-zoombar {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  background: rgba(15,20,28,.78); color: #fff;
  border-radius: 999px; padding: 6px 8px; z-index: 5;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.doc-zoombar button {
  min-width: 32px; height: 30px; border-radius: 999px;
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.doc-zoombar button:active { background: rgba(255,255,255,.16); }
.doc-zoombar span { min-width: 46px; text-align: center; font-size: 12px; }

/* 内嵌页全屏态 */
.iv-wrap:fullscreen { width: 100vw; height: 100dvh; aspect-ratio: auto; }
.iv-wrap:-webkit-full-screen { width: 100vw; height: 100dvh; aspect-ratio: auto; }

/* ===== v1.19.0 #344：本地文件 + TV 投屏 ===== */
.sub-act {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--text);
}
.sub-act svg { width: 19px; height: 19px; }
.sub-act:active { background: var(--accent); color: #fff; }
.local-row { display: flex; gap: 8px; margin-top: 10px; }
.local-btn {
  flex: 1; height: 42px; border-radius: 12px;
  font-size: 14px; font-weight: 700;
  background: var(--card); border: 1px dashed var(--line);
  color: var(--text);
}
.local-btn:active { border-color: var(--accent); color: var(--accent); }
.file-hidden { display: none !important; }

/* ===== v1.19.5 #379：投屏按钮醒目「TV」标识 ===== */
.vw-btn-tv {
  background: linear-gradient(135deg, #2f6bff, #7a3fff);
  color: #fff;
  font-weight: 900;
}
.vw-btn-tv .tv-label { font-size: 14px; font-weight: 900; letter-spacing: .5px; }
.vw-btn-tv:active { transform: scale(.92); }
.cast-sheet .sheet-sub {
  font-size: 11px; color: var(--sub); text-align: center;
  margin: -4px 0 10px; line-height: 1.5;
}
.cast-item { flex-wrap: wrap; }
.cast-item .ci-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.ci-remember {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--sub);
  padding: 4px 0 0; cursor: pointer; -webkit-user-select: none; user-select: none;
}
.ci-remember input { width: 15px; height: 15px; accent-color: var(--accent); flex-shrink: 0; }

/* ===== v1.19.5 #383：收藏卡片删除入口 ===== */
.fav-card { position: relative; }
.fav-card-main { display: block; }
.fav-del {
  position: absolute; top: 6px; right: 6px; z-index: 4;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.fav-del svg { width: 14px; height: 14px; }
.fav-del:active { background: var(--live); }

/* ===== v1.19.5 #377：个性化画像视图（复用桌面 /api/behavior-logs/my） ===== */
.pf-scroll { flex: 1; overflow-y: auto; padding: 4px 12px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); }
.pf-loading { text-align: center; color: var(--sub); font-size: 13px; padding: 40px 16px; line-height: 1.7; }
.pf-head { padding: 8px 2px 12px; }
.pf-title { font-size: 17px; font-weight: 800; }
.pf-sub { font-size: 11px; color: var(--sub); margin-top: 4px; line-height: 1.5; }
.pf-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-kpi {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 6px; text-align: center; min-width: 0;
}
.pf-kpi-val { font-size: 15px; font-weight: 800; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-kpi-name { font-size: 10px; color: var(--sub); margin-top: 4px; }
.pf-fav {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,214,10,.12), rgba(255,149,0,.06));
  border: 1px solid rgba(255,214,10,.25);
  font-size: 12px; color: var(--text); line-height: 1.6;
}
.pf-sec { font-size: 13px; font-weight: 800; color: var(--text); margin: 18px 2px 8px; }
.pf-bar-row { display: flex; align-items: center; gap: 8px; padding: 5px 2px; }
.pf-bar-label {
  width: 88px; flex-shrink: 0; font-size: 11px; color: var(--sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-bar-track { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pf-bar-fill { height: 100%; border-radius: 999px; min-width: 3%; }
.pf-bar-val { width: 86px; flex-shrink: 0; font-size: 10px; color: var(--sub); text-align: right; white-space: nowrap; }
.pf-hours { display: flex; align-items: flex-end; gap: 2px; padding: 6px 2px 0; overflow-x: auto; }
.pf-hour-col { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 14px; }
.pf-hour-bar { width: 10px; border-radius: 3px 3px 0 0; }
.pf-hour-label { font-size: 9px; color: var(--sub); }
.pf-recent { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.pf-recent table { width: 100%; border-collapse: collapse; font-size: 11px; min-width: 480px; }
.pf-recent th {
  text-align: left; padding: 8px 10px; color: var(--sub); font-weight: 700;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.pf-recent td { padding: 7px 10px; border-bottom: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.pf-recent tr:last-child td { border-bottom: none; }
[data-theme="light"] .pf-kpi-val { color: #0a66d8; }

/* ===== v1.19.7 #389 多屏播出（注册用户专属） ===== */
.ms-layer {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.ms-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.ms-back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text); padding: 6px 4px; }
.ms-back svg { width: 20px; height: 20px; }
.ms-title { font-size: 15px; font-weight: 700; }
.ms-fs-exit {
  position: relative; z-index: 30;   /* v1.19.7 修复：默认被 .ms-fs（absolute inset:0）覆盖，点击无效 */
  font-size: 12.5px; color: var(--bg); background: var(--accent);
  padding: 6px 12px; border-radius: 999px; font-weight: 600;
}
.ms-status {
  margin: 10px 14px 0; padding: 8px 12px; border-radius: 10px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--line);
  font-size: 12px; color: var(--sub); line-height: 1.5;
}
.ms-status.warn { color: #FF9500; border-color: rgba(255, 149, 0, .4); }
.ms-tip { margin: 8px 14px 0; font-size: 12px; color: var(--sub); text-align: center; }
.ms-grid-wrap { padding: 10px 14px 4px; flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }  /* v1.22.1：格子内部滚动，杜绝溢出遮挡工具条 */
.ms-grid { display: grid; gap: 6px; }
.ms-cell {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: var(--card2); border: 1px solid var(--line);
}
.ms-cell.main { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ms-cell video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.ms-cell-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  color: var(--sub); font-size: 11px;
}
.ms-cell-empty::before { content: '+'; font-size: 26px; line-height: 1; color: var(--accent); }
.ms-cell-name {
  position: absolute; left: 6px; bottom: 5px; max-width: 62%;
  font-size: 10.5px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.ms-cell-audio {
  position: absolute; right: 5px; bottom: 4px; min-width: 26px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(0,0,0,.55); font-size: 11px;
}
.ms-cell.main .ms-cell-audio { background: rgba(0, 122, 255, .8); }
.ms-cell-del {
  position: absolute; right: 5px; top: 5px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.ms-cell-tag {
  position: absolute; left: 6px; top: 5px; font-size: 9.5px; padding: 1px 6px;
  border-radius: 999px; background: rgba(0,0,0,.5); color: rgba(255,255,255,.85); pointer-events: none;
}
.ms-toolbar { display: flex; align-items: center; gap: 6px; padding: 8px 14px 2px; flex-shrink: 0; flex-wrap: wrap; position: relative; z-index: 2; }  /* v1.22.1：提升绘制层级，任何情况下不被格子盖住 */
.ms-lb {
  font-size: 12px; padding: 7px 12px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
}
.ms-lb.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.ms-tool-sep { width: 1px; height: 18px; background: var(--line); }
.ms-help { padding: 6px 16px 14px; font-size: 10.5px; color: var(--sub); line-height: 1.6; flex-shrink: 0; position: relative; z-index: 2; }
/* 全屏滑窗（3 播放器） */
.ms-fs { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; }
.ms-fs-strip {
  flex: 1; display: flex; width: 300%; height: 100%;
  transform: translateX(-33.333%); will-change: transform;
}
.ms-fs-pane { position: relative; width: 33.3333%; height: 100%; overflow: hidden; background: #000; }
.ms-fs-pane video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.ms-fs-pane.cur video { object-fit: contain; }
.ms-fs-tag {
  position: absolute; left: 10px; top: 10px; font-size: 12px;
  padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff;
}
.ms-fs-pane.cur .ms-fs-tag { background: rgba(0, 122, 255, .8); }
.ms-fs-hint {
  position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom));
  text-align: center; font-size: 12px; color: rgba(255,255,255,.65); pointer-events: none;
}
/* 频道选择抽屉（v1.21.0 #399 重构：分类快筛条 + 紧凑 4 列；底部由 JS 让出工具条高度） */
.ms-picker-mask { position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 5; }
.ms-picker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  max-height: 66%; overflow-y: auto; border-radius: 16px 16px 0 0;
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  transition: bottom .18s ease;
}
.ms-pick-cats {
  display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 8px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.ms-pick-cats::-webkit-scrollbar { display: none; }
.ms-pick-cats .cat-chip { flex-shrink: 0; font-size: 11.5px; padding: 5px 11px; }
.ms-pick-head {
  position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; background: var(--card); font-size: 14px; font-weight: 700;
  z-index: 2;
}
.ms-pick-head button { font-size: 16px; color: var(--sub); padding: 2px 8px; }
/* v1.21.0 #399：3 列大卡 → 4 列紧凑卡（浏览标签更小、一屏可见更多备选频道） */
/* v1.23.0 #412：选台卡缩小——4 列改 5 列、间距/内边距收紧、名称字号下调 */
.ms-pick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 0 8px 14px; }
.ms-pick-item { border-radius: 7px; background: var(--card2); border: 1px solid var(--line); overflow: hidden; position: relative; }
.ms-pick-item .mpi-img { aspect-ratio: 16 / 9; background: #0a0e14; }
.ms-pick-item .mpi-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-pick-item .mpi-name {
  padding: 3px 3px; font-size: 9.5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: var(--text); text-align: center;
}
.ms-pick-item.ch-fallback-item .mpi-img { display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 14px; }
/* v1.21.0 #399：播放模式预设弹层（复用 ms-picker 底部抽屉形态） */
.ms-preset-list { padding: 2px 14px 6px; display: flex; flex-direction: column; gap: 8px; }
.ms-preset-item {
  position: relative; border-radius: 10px; background: var(--card2);
  border: 1px solid var(--line); padding: 9px 34px 9px 12px; cursor: pointer;
}
.ms-preset-item:active { background: var(--accent); color: #fff; }
.ms-preset-item .spi-main { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.ms-preset-item .spi-main span { font-size: 11px; color: var(--sub); }
.ms-preset-item .spi-chans {
  margin-top: 3px; font-size: 11px; color: var(--sub); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ms-preset-item .spi-del {
  position: absolute; right: 8px; top: 8px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.ms-preset-empty { text-align: center; color: var(--sub); font-size: 12.5px; padding: 26px 10px; }
.ms-preset-tip { padding: 4px 16px 14px; font-size: 10.5px; color: var(--sub); line-height: 1.6; }

/* v1.19.9 #394 多屏分级档位角标：HD=主档 / SD=副格档 / 同源=单档源旁路 */
.ms-cell-tier {
  position: absolute; left: 6px; top: 5px; display: none;
  font-size: 10.5px; line-height: 1; color: #fff; background: rgba(60,60,67,.72);
  padding: 3px 6px; border-radius: 4px; pointer-events: none;
}
.ms-cell.has-ch .ms-cell-tier { display: block; }
.ms-cell.main .ms-cell-tier { background: rgba(0, 122, 255, .8); }

/* ===== v1.28.0 分享推广（B1/B4/B5：播放页分享 + 邀请有礼 + 底部弹层） ===== */
.m-share-sub { font-size: 12px; color: var(--sub); text-align: center; margin: 0 0 10px; }
.m-share-qr { display: flex; justify-content: center; margin: 4px 0 12px; }
.m-share-qr img, .m-share-qr canvas { background: #fff; border-radius: 10px; padding: 6px; }
.m-share-link { font-size: 11px; color: var(--sub); text-align: center; word-break: break-all; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.m-sheet-actions { display: flex; gap: 8px; }
.m-invite-code { font-size: 26px; font-weight: 800; letter-spacing: 3px; color: #e04355; text-align: center; font-family: Consolas, monospace; margin: 2px 0 8px; }
.m-invite-list { max-height: 160px; overflow-y: auto; font-size: 12px; margin-top: 6px; }
.m-invite-item { display: flex; justify-content: space-between; padding: 7px 6px; border-bottom: 1px dashed var(--line); }
.m-invite-at { color: var(--sub); }
.m-invite-empty { color: var(--sub); text-align: center; padding: 8px 0; }
/* v1.29.0 邀请激励：达标档位（进度 + 已解锁券码） */
.m-invite-tiers { font-size: 12px; margin-top: 8px; text-align: left; }
.m-invite-tiers-title { font-weight: 700; margin-bottom: 5px; }
.m-invite-tier { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 5px; }
.m-invite-tier.ok { border-color: #e04355; background: rgba(224, 67, 85, .08); }
.m-it-n { flex: 0 0 auto; font-weight: 700; white-space: nowrap; }
.m-it-r { flex: 1 1 auto; min-width: 0; }
.m-it-flag { font-style: normal; color: #e04355; font-weight: 700; }
.m-it-copy { flex: 0 0 auto; border: 0; background: #c8102e; color: #fff; border-radius: 7px; padding: 4px 10px; font-size: 11px; }
.m-invite-tier-note { color: var(--sub); font-size: 11px; margin-top: 3px; }

/* v1.30.0 分享弹层定向分享：微信好友 / QQ好友 */
.m-share-apps { margin-top: 8px; }
.m-share-apps .m-btn { display: flex; align-items: center; justify-content: center; gap: 5px; font-weight: 600; }
.m-share-apps .share-wx { color: #1aad19; border-color: rgba(26, 173, 25, .45); }
.m-share-apps .share-qq { color: #12b7f5; border-color: rgba(18, 183, 245, .45); }
[data-theme="light"] .m-share-apps .share-wx { color: #0f8a12; }
[data-theme="light"] .m-share-apps .share-qq { color: #0b87b8; }

/* v1.31.0 微信内分享引导浮层：引导点右上角「···」→ 发送给朋友（微信不开放网页主动发好友） */
.wx-guide { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .78); display: flex; flex-direction: column; align-items: flex-end; padding: 10px 14px; }
.wx-guide.hidden { display: none; }
.wx-guide-arrow { font-size: 46px; color: #fff; line-height: 1; transform: rotate(-8deg); margin-right: 4px; animation: wxGuidePulse 1.2s ease-in-out infinite; }
@keyframes wxGuidePulse { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-8px) rotate(-8deg); } }
.wx-guide-card { width: 100%; margin-top: 12px; background: var(--card); color: var(--text); border-radius: 14px; padding: 14px 16px; text-align: left; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.wx-guide-title { font-size: 15px; font-weight: 700; }
.wx-guide-tip { font-size: 13px; margin-top: 6px; }
.wx-guide-tip b { color: #1aad19; }
.wx-guide-sub { font-size: 12px; color: var(--sub); margin-top: 6px; line-height: 1.5; }
.wx-guide-card .m-btn { width: 100%; margin-top: 12px; }

/* ================= v1.32.0 首访注册横幅 + 注册页注册用户/游客对照 ================= */
.m-signup-banner{position:fixed;left:12px;right:12px;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);z-index:150;display:flex;align-items:center;gap:10px;background:linear-gradient(135deg,#1b2330,#0d1117);border:1px solid rgba(200,16,46,.55);border-radius:14px;padding:12px;box-shadow:0 10px 30px rgba(0,0,0,.45)}
.m-signup-banner.hidden{display:none}
.msb-txt{flex:1 1 auto;min-width:0}
.msb-main{color:#fff;font-size:15px;font-weight:700;letter-spacing:.5px}
.msb-sub{color:rgba(255,255,255,.65);font-size:12px;margin-top:2px}
.msb-acts{flex:0 0 auto;display:flex;align-items:center;gap:6px}
.msb-btn{border:0;background:#c8102e;color:#fff;font-size:13px;font-weight:700;padding:9px 14px;border-radius:999px;white-space:nowrap}
.msb-close{border:0;background:none;color:rgba(255,255,255,.45);font-size:16px;padding:2px 4px}
/* 注册用户 vs 游客 对照表 */
.reg-compare{margin-top:12px;border:1px solid rgba(127,127,127,.28);border-radius:10px;overflow:hidden;text-align:left;font-size:12px}
.rc-head,.rc-row{display:grid;grid-template-columns:.9fr 1.5fr 1.2fr;gap:0}
.rc-head{background:rgba(127,127,127,.14);font-weight:700;color:#fff}
.rc-head span,.rc-row span{padding:6px 8px;border-bottom:1px solid rgba(127,127,127,.16)}
.rc-row:last-child span{border-bottom:0}
.rc-name{color:#fff;font-weight:600}
.rc-yes{color:#4fd07a}
.rc-no{color:var(--sub)}

/* ================= v1.33.0 退出前检测：添加到桌面横幅（GWDIs 花朵图标） ================= */
.m-a2d-banner{position:fixed;left:12px;right:12px;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 96px);z-index:149;display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:linear-gradient(135deg,#14202e,#0d1117);border:1px solid rgba(255,166,0,.55);border-radius:14px;padding:12px;box-shadow:0 10px 30px rgba(0,0,0,.45)}
.m-a2d-banner.hidden{display:none}
.ma2d-ico{width:40px;height:40px;border-radius:9px;flex:0 0 auto}
.ma2d-guide{flex-basis:100%;color:rgba(255,255,255,.75);font-size:12px;line-height:1.5;border-top:1px solid rgba(255,255,255,.12);padding-top:8px;margin-top:2px}
.ma2d-done{color:rgba(255,255,255,.9);text-decoration:underline dotted;cursor:pointer;margin-left:8px;white-space:nowrap}
.m-a2d-never{flex-basis:100%;display:flex;align-items:center;gap:6px;color:rgba(255,255,255,.75);font-size:12px;cursor:pointer;user-select:none;margin-top:4px}
.m-a2d-never input{accent-color:#ff7a00;width:14px;height:14px;cursor:pointer;margin:0}

/* ============ v1.33.1：中央播放/暂停大浮标 ============
   暂停/未起播时常驻（播放三角），播放中隐藏；半透明毛玻璃圆钮、无文字；
   尺寸由 m.js 按容器 min(宽,高)×20% 写入 --pp-size（clamp 44~110px），
   竖屏/横屏全屏比例协调；层级 55：高于 vw-top/bottom(20)、低于缓冲胶囊(70)。 */
.video-wrap { --pp-size: 64px; }
.pp-big {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--pp-size); height: var(--pp-size);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 55;
  padding: 0;
  transition: background .15s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.pp-big svg { width: 46%; height: 46%; filter: drop-shadow(0 1px 4px rgba(0,0,0,.45)); }
.pp-big:active { transform: translate(-50%, -50%) scale(0.94); }
.pp-big.hidden { display: none; }

/* ============ v1.34.0 录像功能（移动端） ============ */
.vw-btn-rec { color: #e74c3c; }
.rec-dot-mini { width: 12px; height: 12px; border-radius: 50%; background: #e74c3c; display: inline-block; animation: recBlinkM 1.2s ease-in-out infinite; }
@keyframes recBlinkM { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
/* 录制中悬浮条 */
.rec-bar { position: absolute; left: 10px; top: 10px; z-index: 30; display: flex; align-items: center; gap: 7px; background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 6px 10px; color: #fff; font-size: 12px; }
.rec-bar.hidden { display: none; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #e74c3c; display: inline-block; animation: recBlinkM 1.2s ease-in-out infinite; flex: none; }
.rec-bar-txt { font-variant-numeric: tabular-nums; font-weight: 600; }
.rec-stop { background: #e74c3c; color: #fff; border: none; border-radius: 12px; padding: 4px 10px; font-size: 11px; cursor: pointer; }
/* REC 迷你浮标 */
.rec-pill { position: fixed; right: 14px; bottom: 76px; z-index: 9998; display: flex; align-items: center; gap: 7px; background: rgba(20,20,30,.92); color: #fff; border-radius: 20px; padding: 8px 14px; font-size: 13px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.rec-pill.hidden { display: none; }
/* 弹层遮罩与卡片 */
.mrec-mask { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mrec-mask.hidden { display: none; }
.mrec-card { position: relative; background: var(--card, #fff); color: var(--text, #1a1a2e); border-radius: 14px; width: 100%; max-width: 420px; max-height: 84vh; overflow-y: auto; padding: 18px 16px 16px; }
.mrec-close { position: absolute; top: 10px; right: 10px; border: none; background: transparent; font-size: 18px; color: #999; cursor: pointer; }
.mrec-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.mrec-title-red { color: #c0392b; }
.mrec-sub { font-size: 12px; color: #888; margin: -6px 0 10px; }
/* 选项组（沿用桌面同名结构，移动端紧凑化） */
.rec-tabs { display: flex; gap: 6px; margin-bottom: 12px; background: rgba(128,128,128,.14); border-radius: 8px; padding: 3px; }
.rec-tab { flex: 1; border: none; background: transparent; border-radius: 6px; padding: 8px 0; font-size: 13px; cursor: pointer; color: inherit; opacity: .7; }
.rec-tab.active { background: #1a1a2e; color: #fff; opacity: 1; font-weight: 600; }
.rec-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.rec-label { flex: none; width: 64px; font-size: 12px; opacity: .75; padding-top: 6px; }
.rec-ch { font-size: 13px; font-weight: 600; padding-top: 5px; }
.rec-opts { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; }
.rec-opt { border: 1px solid rgba(128,128,128,.35); background: transparent; border-radius: 13px; padding: 5px 10px; font-size: 11.5px; cursor: pointer; color: inherit; opacity: .8; }
.rec-opt.active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; opacity: 1; }
.rec-input { flex: 1; border: 1px solid rgba(128,128,128,.35); border-radius: 8px; padding: 7px 9px; font-size: 13px; min-width: 150px; background: transparent; color: inherit; }
.rec-select { background: var(--card, #fff); color: inherit; }
.rec-audio-note { font-size: 11.5px; color: #2ecc71; margin: 0 0 8px; }
.rec-switch-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin-bottom: 9px; cursor: pointer; }
.rec-note { font-size: 11.5px; color: #6fa8ff; background: rgba(43,95,184,.12); border-radius: 8px; padding: 8px 10px; margin-bottom: 9px; line-height: 1.6; }
.rec-note b { color: #ff6b6b; }
.rec-space { font-size: 11.5px; color: #2ecc71; background: rgba(46,204,113,.12); border-radius: 8px; padding: 7px 10px; margin-bottom: 9px; }
.rec-space.rec-space-warn { color: #ff6b6b; background: rgba(231,76,60,.14); }
.rec-commit-row { display: flex; align-items: center; gap: 7px; font-size: 12px; opacity: .85; margin-bottom: 11px; cursor: pointer; }
.rec-commit-row a { color: #6fa8ff; text-decoration: none; }
.rec-actions { display: flex; gap: 9px; margin-top: 4px; }
.rec-start { flex: 1; background: #c0392b; border: none; color: #fff; border-radius: 9px; padding: 11px 0; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.rec-start:disabled { background: #888; }
.rec-cancel { flex: none; background: rgba(128,128,128,.18); border: none; border-radius: 9px; padding: 11px 18px; font-size: 13px; opacity: .8; cursor: pointer; }
.rec-commit-body { background: rgba(128,128,128,.08); border-radius: 8px; padding: 12px 14px; font-size: 12.5px; line-height: 1.9; margin-bottom: 11px; }
.rec-commit-body p { margin: 0 0 5px; }
.rec-commit-red { color: #c0392b; font-weight: 700; }
/* 视频库 / 文稿 */
.rec-lib-list { display: flex; flex-direction: column; gap: 9px; max-height: 50vh; overflow-y: auto; margin-bottom: 9px; }
.rec-lib-item { background: rgba(128,128,128,.1); border-radius: 10px; padding: 10px 12px; }
.rec-lib-name { font-size: 13.5px; font-weight: 600; }
.rec-lib-meta { font-size: 11px; opacity: .65; margin-top: 3px; }
.rec-lib-src { font-size: 10.5px; margin-top: 3px; color: #2ecc71; }
.rec-lib-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.rec-lib-btn { border: 1px solid rgba(128,128,128,.35); background: transparent; border-radius: 8px; padding: 5px 10px; font-size: 11.5px; cursor: pointer; color: inherit; }
.rec-lib-btn.del { color: #ff6b6b; }
.rec-lib-empty { opacity: .6; font-size: 12.5px; text-align: center; padding: 24px 0; border: 1px dashed rgba(128,128,128,.35); border-radius: 10px; }
.rec-lib-tip { font-size: 11px; color: #b8860b; background: rgba(255,248,230,.14); border-radius: 8px; padding: 7px 10px; }
.rec-trans-body { background: rgba(128,128,128,.08); border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 2; max-height: 44vh; overflow-y: auto; margin-bottom: 11px; }
.rec-trans-body p { margin: 0 0 9px; }
.rec-trans-warn { color: #ff6b6b; }
.rec-sched-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 9px; }
.rec-sched-item { display: flex; align-items: center; gap: 7px; background: rgba(128,128,128,.1); border-radius: 8px; padding: 7px 10px; font-size: 11.5px; }
.rec-sched-item .rec-lib-btn { padding: 3px 8px; }

/* ===== v1.35.0 #433 多屏「整体全屏」（全部格子同屏铺满；msLayer 本身 fixed inset:0，隐藏控制区即等效全屏） ===== */
.ms-layer.ms-wholefs { background: #000; }
.ms-layer.ms-wholefs .ms-top,
.ms-layer.ms-wholefs .ms-status,
.ms-layer.ms-wholefs .ms-tip,
.ms-layer.ms-wholefs .ms-toolbar,
.ms-layer.ms-wholefs .ms-help { display: none; }
.ms-layer.ms-wholefs .ms-grid-wrap { flex: 1; }
.ms-lb-fs { color: #fff !important; background: #c8102e !important; font-weight: 600; }
.ms-wholefs-exit { position: absolute; left: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; background: rgba(0,0,0,.72); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 8px 14px; font-size: 12.5px; }
.ms-wholefs-exit.hidden { display: none; }
/* v1.35.0 #432：录像卡片挂进全屏元素内时，遮罩相对全屏元素铺满 */
.video-wrap:fullscreen .mrec-mask { position: fixed; }
