/* 手机端抖音式全屏信息流：桌面端完全隐藏，不影响原桌面首页 */
.dy-app, .dy-tabbar, .dy-toast { display: none; }

@media (max-width: 900px) {
  body.is-home, body.is-watch {
    padding: 0 !important; margin: 0; background: #000;
    height: 100vh; height: 100dvh; overflow: hidden;
  }
  body.is-home > .myui-header__top,
  body.is-home > .container,
  body.is-home > .myui-footer { display: none !important; }
  body.is-home .dy-app, body.is-watch .dy-app {
    display: block; position: fixed; inset: 0; z-index: 1;
    background: #000; color: #fff;
  }

  /* 顶部 Tab 栏 */
  .dy-topbar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 12;
    height: 58px; padding: 0 12px; padding-top: env(safe-area-inset-top);
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(180deg, rgba(0,0,0,.72), transparent);
  }
  .dy-icon-btn { color: #fff; font-size: 23px; width: 34px; text-align: center; text-decoration: none; }
  .dy-tabs { display: flex; align-items: center; gap: 18px; }
  .dy-tab {
    position: relative; background: none; border: 0; color: rgba(255,255,255,.62);
    font-size: 16px; padding: 0; cursor: pointer; white-space: nowrap;
  }
  .dy-tab.on { color: #fff; font-weight: 700; }
  .dy-tab.on::after {
    content: ''; position: absolute; bottom: -8px; left: 25%; width: 50%;
    height: 2px; background: #fff; border-radius: 2px;
  }

  /* 全屏竖滑容器 */
  .dy-feed {
    position: absolute; inset: 0; overflow-y: auto;
    scroll-snap-type: y mandatory; overscroll-behavior-y: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .dy-feed::-webkit-scrollbar { display: none; }
  .dy-item {
    position: relative; width: 100%; height: 100vh; height: 100dvh;
    scroll-snap-align: start; scroll-snap-stop: always;
    overflow: hidden; background: radial-gradient(circle at 50% 30%, #2a2a35, #000 72%);
  }
  .dy-blur {
    position: absolute; inset: -10%; width: 120%; height: 120%;
    object-fit: cover; filter: blur(28px) brightness(.45); z-index: 0;
  }
  .dy-poster {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1; transition: opacity .25s;
  }
  .dy-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; z-index: 3; background: #000; pointer-events: none;
  }
  .dy-playing .dy-poster { opacity: 0; }
  .dy-shade {
    position: absolute; inset: 0; z-index: 4; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.4) 0, transparent 28%, transparent 52%, rgba(0,0,0,.88) 100%);
  }
  .dy-label {
    position: absolute; top: 70px; left: 14px; z-index: 8;
    background: rgba(255,115,0,.9); color: #fff; font-size: 11px;
    padding: 4px 10px; border-radius: 20px;
  }
  .dy-center-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    z-index: 8; width: 64px; height: 64px; line-height: 64px; text-align: center;
    border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 26px;
  }
  .dy-playing .dy-center-play { display: none; }
  .dy-pause-mark {
    display: none; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%); z-index: 9; color: #fff; font-size: 48px;
    text-shadow: 0 2px 12px rgba(0,0,0,.6); pointer-events: none;
  }
  .dy-paused .dy-pause-mark { display: block; }

  /* 左下信息区 */
  .dy-info { position: absolute; left: 14px; right: 82px; bottom: 84px; z-index: 8; }
  .dy-account { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
  .dy-account b { font-size: 15px; }
  .dy-rec { color: #ffb35c; font-size: 11px; }
  .dy-title {
    display: block; color: #fff; font-size: 19px; font-weight: 700;
    margin-bottom: 6px; text-decoration: none; line-height: 1.35;
  }
  .dy-meta { display: flex; flex-wrap: wrap; gap: 8px; color: #ddd; font-size: 12px; }
  .dy-score { color: #ffd76a; }
  .dy-desc {
    margin: 8px 0 0; color: #eee; font-size: 13px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .dy-hash { margin-top: 6px; color: #ffb35c; font-size: 12px; }
  .dy-sound {
    margin-top: 10px; background: rgba(0,0,0,.5); color: #fff; border: 0;
    border-radius: 20px; padding: 6px 14px; font-size: 12px; cursor: pointer;
  }
  .dy-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 12px; height: 42px; border-radius: 24px; color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 700;
    background: linear-gradient(90deg, #ff4d4f, #ff7300);
  }
  .dy-cta span { font-size: 12px; font-weight: 400; opacity: .92; }

  /* 右侧操作栏 */
  .dy-actions {
    position: absolute; right: 8px; bottom: 118px; z-index: 8;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
  }
  .dy-ava { position: relative; width: 44px; }
  .dy-ava img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #333; }
  .dy-plus {
    position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 20px; border: 0; border-radius: 50%; background: #ff4d4f;
    color: #fff; font-size: 14px; line-height: 18px; cursor: pointer;
  }
  .dy-act {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: none; border: 0; color: #fff; font-size: 11px;
    text-decoration: none; cursor: pointer;
  }
  .dy-act .dy-ico { font-size: 28px; line-height: 1; }
  .dy-act em { font-style: normal; }
  .dy-act.on { color: #ff4d4f; }

  /* 进度条与时间：真实 timeupdate，不用假动画 */
  .dy-progress {
    position: absolute; left: 0; right: 0; bottom: 64px; height: 3px;
    background: rgba(255,255,255,.28); z-index: 10;
  }
  .dy-progress i { display: block; height: 100%; width: 0; background: #fff; transition: width .2s linear; }
  .dy-time {
    position: absolute; right: 12px; bottom: 72px; z-index: 10;
    color: #fff; font-size: 11px; font-variant-numeric: tabular-nums;
  }
  .dy-swipe-hint {
    position: absolute; top: 76px; right: 12px; z-index: 11;
    color: rgba(255,255,255,.72); font-size: 12px;
  }
  .dy-swipe-hint[hidden] { display: none; }

  /* 底部导航 */
  .dy-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    height: 58px; height: calc(58px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid #222; background: #0b0b0d;
  }
  body.is-home .dy-tabbar { display: flex; }
  .dy-tb {
    flex: 1; display: flex; align-items: center; justify-content: center;
    color: #888; font-size: 12px; text-decoration: none;
  }
  .dy-tb.on { color: #fff; }

  .dy-toast {
    position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
    z-index: 100; background: rgba(0,0,0,.82); color: #fff;
    padding: 9px 18px; border-radius: 20px; font-size: 13px;
  }
  .dy-toast[hidden] { display: none; }

  /* 沉浸连播页 */
  body.is-watch .dy-feed { bottom: 0; }
  .dy-watch .dy-topbar { background: rgba(0,0,0,.7); }
  .dy-watch .dy-info { bottom: 128px; }
  .dy-watch .dy-actions { bottom: 150px; }
  .dy-watch .dy-progress { bottom: 74px; }
  .dy-watch .dy-time { bottom: 82px; }
  .dy-watch .dy-swipe-hint { display: none; }
  .watch-bar {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 14;
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    padding: 10px 12px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  }
  .watch-bar::-webkit-scrollbar { display: none; }
  .watch-bar button {
    flex: 0 0 auto; border: 1px solid rgba(255,255,255,.25); border-radius: 18px;
    background: rgba(0,0,0,.45); color: #ddd; padding: 6px 14px; font-size: 12px; cursor: pointer;
  }
  .watch-bar button.on { background: linear-gradient(90deg, #ff4d4f, #ff7300); color: #fff; border-color: transparent; }
  .watch-hint {
    position: absolute; top: 104px; right: 12px; z-index: 13;
    text-align: right; color: rgba(255,255,255,.7); font-size: 11px;
  }
}

/* 贴片广告层（脚本内联样式为主，此处仅补按钮通用样式） */
.xby-promo { font-family: inherit; }
.xby-promo-badge {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  background: rgba(0,0,0,.62); color: #fff; font-size: 13px;
  padding: 6px 14px; border-radius: 20px; pointer-events: none;
}
.xby-promo-btn {
  position: absolute; z-index: 6; background: rgba(0,0,0,.68); color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 22px;
  padding: 9px 20px; font-size: 14px; cursor: pointer;
}
