/* 刷剧流 · 全屏竖划推荐流（黑金） */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }

#feed { position: fixed; inset: 0; background: #000; color: #fff; --gold: #d6b36a; --gold2: #e8cd92; --red: #ff5060; }

/* 竖向 scroll-snap 分屏 */
#feed-scroll { height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#feed-scroll::-webkit-scrollbar { display: none; }

.fcell { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
/* 竖屏视频四周模糊填充做背景 */
.fcell-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(28px) brightness(.4); transform: scale(1.2); }
.fcell video { position: relative; z-index: 1; max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain; background: transparent; }
.fcell-tap { position: absolute; inset: 0; z-index: 3; border: 0; background: transparent; cursor: pointer; }

/* 中央暂停图标 */
.fcell-playicon { position: absolute; z-index: 4; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.8); width: 76px; height: 76px; border-radius: 50%; background: rgba(0,0,0,.34); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .18s, transform .18s; pointer-events: none; }
.fcell-playicon svg { width: 40px; height: 40px; margin-left: 4px; color: rgba(255,255,255,.92); }
.fcell.paused .fcell-playicon { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* 双击爱心 */
.fhearts { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.fheart { position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; color: var(--red); animation: fheart .8s ease-out forwards; }
.fheart svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
@keyframes fheart { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 25% { transform: scale(1.1) rotate(-8deg); opacity: 1; } 100% { transform: scale(1.5) translateY(-60px) rotate(-8deg); opacity: 0; } }

/* 右侧操作栏 */
.frail { position: absolute; z-index: 6; right: 10px; bottom: 128px; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.frail-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; color: #fff; cursor: pointer; padding: 0; text-decoration: none; }
.frail-btn svg { width: 38px; height: 38px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); transition: transform .15s; }
.frail-btn i { font-size: 12px; font-style: normal; color: rgba(255,255,255,.92); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.frail-btn:active svg { transform: scale(.86); }
.f-fav.on svg { color: var(--gold2); }
.f-like.on svg { color: var(--red); }

/* 底部信息 + 合集入口条（抖音/红果式毛玻璃条，非扎眼按钮） */
.fcell-info { position: absolute; z-index: 6; left: 14px; right: 76px; bottom: 26px; }
.finfo-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.fline { flex-shrink: 0; font-size: 12px; padding: 3px 9px; border-radius: 6px; background: rgba(214,179,106,.2); color: var(--gold2); border: 1px solid rgba(214,179,106,.4); }
.ftitle { font-size: 18px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdesc { font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.5; margin-bottom: 12px; text-shadow: 0 1px 4px rgba(0,0,0,.55);
         display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcollection { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 13px;
               background: rgba(28,28,32,.55); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.12); text-decoration: none; color: #fff; }
.fcollection:active { background: rgba(40,40,46,.7); }
.fcol-cover { flex-shrink: 0; width: 38px; height: 50px; border-radius: 8px; background-size: cover; background-position: center; background-color: #222; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.fcol-mid { flex: 1; min-width: 0; }
.fcol-mid b { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.fcol-mid em { display: block; font-style: normal; font-size: 12px; color: rgba(255,255,255,.62); margin-top: 2px; }
.fcol-arrow { flex-shrink: 0; width: 20px; height: 20px; color: rgba(255,255,255,.65); }

/* 顶栏 */
#feed-top { position: absolute; z-index: 8; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 14px;
            background: linear-gradient(180deg, rgba(0,0,0,.5), transparent); pointer-events: none; }
#feed-top .ficon, #feed-top .feed-brand { pointer-events: auto; }
.ficon { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; color: #fff; }
.ficon svg { width: 26px; height: 26px; }
.feed-brand { font-size: 17px; font-weight: 700; letter-spacing: 1px; }

/* 声音提示 */
#feed-unmute { position: absolute; z-index: 8; top: 62px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 99px;
               background: rgba(0,0,0,.55); color: #fff; font-size: 13px; border: 1px solid rgba(255,255,255,.25); cursor: pointer; backdrop-filter: blur(4px); }
#feed-unmute[hidden] { display: none; }

/* toast */
#feed-toast { position: absolute; z-index: 9; left: 50%; bottom: 32%; transform: translateX(-50%); padding: 9px 16px; border-radius: 10px;
              background: rgba(0,0,0,.72); color: #fff; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 80%; text-align: center; }
#feed-toast.show { opacity: 1; }

.feed-empty { color: rgba(255,255,255,.6); text-align: center; padding-top: 40vh; height: 100%; }

/* 桌面：约束成竖屏手机宽度居中，两侧留黑 */
@media (min-width: 820px) {
  #feed { max-width: 440px; margin: 0 auto; box-shadow: 0 0 60px rgba(0,0,0,.6); }
  body { background: #0a0a0c; }
  }
