/* 我的收藏 UI v2 */
#favPage { background: linear-gradient(180deg, #F7FCFF 0%, #EAF4FD 55%, #E2EFF9 100%); }
#favPage .topbar {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74,159,216,.10);
}
#favPage .topbar .title { font-size: 17px; font-weight: 800; color: #12303F; }
#favPage #favCount { font-size: 11.5px; color: #93A8B8; font-weight: 700; }

/* 列表：白卡 */
#favContent { padding: 12px 12px 26px; }
#favContent .fav-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 13px;
  margin-bottom: 9px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 4px 16px rgba(24,68,102,.05);
  transition: transform .12s ease, box-shadow .16s;
}
#favContent .fav-row:active { transform: scale(.992); box-shadow: 0 2px 9px rgba(24,68,102,.09); }

/* 缩略图 */
.fav-thumb {
  width: 56px; height: 56px; flex: none;
  border-radius: 13px; overflow: hidden;
  background: #EAF4FD;
  position: relative;
  box-shadow: 0 4px 12px rgba(24,68,102,.10);
}
.fav-thumb img, .fav-thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.fav-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  background: rgba(10,30,45,.28);
}
.fav-thumb.vid .fav-play {
  width: 26px; height: 26px; margin: auto; border-radius: 50%;
  background: rgba(10,30,45,.5);
  font-size: 11px;
}

/* 文字类图标 */
.fav-ico {
  width: 56px; height: 56px; flex: none;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(74,159,216,.10);
  color: #2E7DB2;
}
.fav-ico .ico-svg { width: 22px; height: 22px; }

/* 文案 */
.fav-body { flex: 1; min-width: 0; }
.fav-t {
  font-size: 14px; font-weight: 700; color: #1B3A4D;
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.fav-m { font-size: 11px; color: #93A8B8; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 删除：小胶囊 */
.fav-del {
  flex: none;
  font-size: 11px; font-weight: 700;
  color: #C1483F;
  background: rgba(217,83,79,.09);
  border: 1px solid rgba(217,83,79,.16);
  padding: 5px 10px; border-radius: 999px;
}
.fav-del:active { transform: scale(.95); }

/* 空态 */
#favContent .empty { color: #8FA5B5; padding: 70px 20px; }
#favContent .empty .empty-ico {
  width: 68px; height: 68px; margin: 0 auto 14px;
  border-radius: 22px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#FFF6E3,#FBE7BF);
  color: #C8871F;
}
#favContent .empty .empty-ico svg { width: 30px; height: 30px; }
#favContent .empty small { display: block; margin-top: 6px; font-size: 11.5px; color: #A2B6C4; }

/* 详情弹窗 */
.favd-box {
  background: rgba(244,250,255,.9);
  border: 1px solid rgba(74,159,216,.12);
  border-radius: 14px;
  padding: 14px;
}
.favd-text { font-size: 14px; line-height: 1.65; color: #1B3A4D; word-break: break-word; }
.favd-meta { margin-top: 10px; font-size: 11px; color: #93A8B8; }

/* ==================================================================
   收藏 v3：更细腻的一版
   —— 顶部类型筛选、按日期分组、类型小标、视频用服务器封面、
      删除改成小图标、骨架屏、按下回弹
   ================================================================== */
#favPage { background: linear-gradient(178deg, #F3F9FE 0%, #E8F2FA 60%, #E3EFF9 100%) !important; }
#favPage .topbar {
  background: rgba(247,251,255,.86) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(74,159,216,.10) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
#favPage .topbar .title { font-size: 17px; font-weight: 800; color: #12303F; letter-spacing: .3px; }
#favPage #favCount {
  font-size: 11px; font-weight: 700; color: #6B8CA3;
  background: rgba(74,159,216,.10); border-radius: 999px; padding: 2px 8px;
}
#favContent { padding: 10px 12px calc(28px + env(safe-area-inset-bottom, 0px)) !important; }

/* ---------- 筛选条 ---------- */
.fav-tabs {
  display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 10px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.fav-tabs::-webkit-scrollbar { display: none; }
.fav-tab {
  flex: none; border: 1px solid rgba(74,159,216,.16); background: rgba(255,255,255,.78);
  color: #4A728C; font-size: 12.5px; font-weight: 650;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, transform .1s;
}
.fav-tab b { margin-left: 5px; font-size: 11px; font-weight: 700; opacity: .62; }
.fav-tab.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #63B4E6, #2F80D2);
  box-shadow: 0 6px 14px rgba(47,128,210,.26);
}
.fav-tab:active { transform: scale(.97); }

/* ---------- 日期分组 ---------- */
.fav-day {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; color: #7C99AD;
  letter-spacing: .3px; margin: 6px 4px 8px;
}
.fav-day::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(74,159,216,.16), rgba(74,159,216,0)); }

/* ---------- 卡片 ---------- */
#favContent .fav-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 13px; margin-bottom: 9px;
  border-radius: 17px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 1px 2px rgba(16,52,74,.03), 0 5px 18px rgba(24,68,102,.055);
  transition: transform .13s ease, box-shadow .18s ease, opacity .18s ease;
  position: relative; overflow: hidden;
}
#favContent .fav-row:active { transform: scale(.994); box-shadow: 0 2px 10px rgba(24,68,102,.09); }
#favContent .fav-row.gone { opacity: 0; transform: scale(.96); }

/* 缩略图 / 类型图标 */
#favContent .fav-thumb {
  width: 58px; height: 58px; flex: none; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #E9F4FC, #D9EAF7);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 3px 10px rgba(24,68,102,.10);
}
#favContent .fav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
#favContent .fav-thumb .fav-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(8,26,40,.06), rgba(8,26,40,.34));
}
#favContent .fav-thumb .fav-play svg { width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
#favContent .fav-ico {
  width: 58px; height: 58px; flex: none; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
#favContent .fav-ico .ico-svg { width: 23px; height: 23px; }
#favContent .fav-ico-media { background: linear-gradient(135deg, #E6F3FD, #CFE7F9); color: #2E7DB2; }
#favContent .fav-ico-text  { background: linear-gradient(135deg, #EFF6FD, #DCEBF8); color: #4A728C; }
#favContent .fav-ico-money { background: linear-gradient(135deg, #FFF4E0, #FCE3B9); color: #C8871F; }
#favContent .fav-ico-audio { background: linear-gradient(135deg, #E9F7F1, #D3EDE1); color: #2E8B69; }

/* 文案 */
#favContent .fav-body { flex: 1; min-width: 0; }
#favContent .fav-t {
  font-size: 14px; font-weight: 650; color: #19394E; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word;
}
#favContent .fav-m {
  margin-top: 5px; font-size: 11px; color: #93A8B8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 5px;
}
#favContent .fav-dot { font-style: normal; opacity: .5; }
.fav-tag {
  flex: none; font-size: 10px; font-weight: 700; line-height: 1;
  padding: 3px 6px; border-radius: 6px;
}
.fav-tag.t-media { color: #2E7DB2; background: rgba(74,159,216,.12); }
.fav-tag.t-text  { color: #55788F; background: rgba(120,150,170,.13); }
.fav-tag.t-money { color: #B47A16; background: rgba(232,168,60,.16); }
.fav-tag.t-audio { color: #2E8B69; background: rgba(46,139,105,.13); }
.fav-tag.t-dead  { color: #9AA9B5; background: rgba(150,168,180,.14); }

/* 删除：小图标按钮，平时很淡 */
#favContent .fav-del {
  flex: none; width: 30px; height: 30px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(193,72,63,.14);
  background: rgba(217,83,79,.06); color: rgba(193,72,63,.78);
  cursor: pointer; transition: background .15s, color .15s, transform .1s;
}
#favContent .fav-del svg { width: 14px; height: 14px; }
#favContent .fav-del:hover, #favContent .fav-del:active { background: rgba(217,83,79,.14); color: #C1483F; }
#favContent .fav-del:active { transform: scale(.92); }

/* 空态 */
#favContent .empty { color: #8FA5B5; padding: 64px 20px; font-size: 13.5px; }
#favContent .empty .empty-ico {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #FFF7E6, #FBE5BE);
  color: #C8871F; box-shadow: 0 8px 22px rgba(200,135,31,.14), inset 0 0 0 1px rgba(255,255,255,.7);
}
#favContent .empty .empty-ico svg { width: 30px; height: 30px; }
#favContent .empty small { display: block; margin-top: 8px; font-size: 11.5px; color: #A2B6C4; }

/* 骨架屏 */
.fav-skel { padding: 4px 2px; }
.fav-sk-row {
  height: 82px; margin-bottom: 9px; border-radius: 17px;
  background: linear-gradient(100deg, rgba(255,255,255,.75) 30%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.75) 70%);
  background-size: 220% 100%;
  animation: favSk 1.15s ease-in-out infinite;
  box-shadow: 0 1px 2px rgba(16,52,74,.03);
}
@keyframes favSk { 0% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

body.dark #favContent .fav-row { background: rgba(22,38,54,.9); border-color: rgba(255,255,255,.06); }
body.dark #favContent .fav-t { color: #E4EFF8; }
body.dark .fav-tab { background: rgba(255,255,255,.06); color: #A9C2D4; border-color: rgba(255,255,255,.08); }
body.dark .fav-sk-row { background: linear-gradient(100deg, rgba(255,255,255,.05) 30%, rgba(255,255,255,.10) 50%, rgba(255,255,255,.05) 70%); background-size: 220% 100%; }

/* 旧样式给删除按钮塞了个 ✕ 伪元素，跟新的垃圾桶图标撞在一起 —— 关掉 */
#favContent .fav-del::after { content: '' !important; display: none !important; }
/* 右上角条数：做成一枚小胶囊，别顶到屏幕边上 */
#favPage > .topbar #favCount.ic,
#favPage > .topbar #favCount {
  width: auto !important; min-width: 34px !important; height: 26px !important;
  padding: 0 9px !important; margin-right: 2px;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  border-radius: 999px !important;
  background: rgba(74,159,216,.12) !important;
  color: #2E7DB2 !important;
  font-size: 12px !important; font-weight: 700 !important;
  line-height: 1 !important; flex: none !important;
  position: static !important;
  transform: none !important;
}
