/* 萤火直播 Firefly Live · 首页信息流（对标 BIGO Live 手机端首页）
   ────────────────────────────────────────────────────────────
   版式：顶部搜索条 → 横滑分类 chip → 全宽竖屏大卡（Hero）→ 主播榜横滑
        → Live Now 双列网格 → Game 横滑 → 推荐横滑 → Explore 页尾。
   与 home.css 的区别：不再有左右栅格/侧栏，一切为单列竖屏信息流。 */

.feed { padding: 0 0 18px; background: #0a0b0f; }

/* ══════════ 顶部搜索条 ══════════ */
.feed-top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 8px;
  background: linear-gradient(180deg, #0a0b0f 74%, rgba(10, 11, 15, 0));
}
.feed-search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .5); font-size: 13px;
}
.feed-search svg { width: 16px; height: 16px; flex: none; }
.feed-top .icobtn {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff;
}
.feed-top .icobtn svg { width: 19px; height: 19px; }

/* ══════════ 分类 chip（横滑） ══════════ */
.feed-cats {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 14px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.feed-cats::-webkit-scrollbar { display: none; }
.feed-cats a {
  flex: none; height: 31px; padding: 0 15px; border-radius: 999px;
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .07);
  transition: .16s; white-space: nowrap;
}
.feed-cats a.on { color: #fff; background: var(--grad); box-shadow: 0 5px 16px rgba(254, 44, 85, .34); }
.feed-cats a:active { transform: scale(.96); }

/* ══════════ Hero 大卡（竖屏，BIGO 首屏那种占满宽度的直播卡） ══════════ */
.hero { padding: 0 14px; }
.feat {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4 / 5; cursor: pointer;
  background: linear-gradient(140deg, #241019 0%, #331420 45%, #1b1620 100%);
  display: flex; align-items: flex-end;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
}
.feat .bgimg { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(254, 44, 85, .26), transparent 62%); }
.feat .silh { position: absolute; right: 6%; bottom: 0; width: 62%; display: flex; flex-direction: column; align-items: center; }
.feat .silh .h { width: 42%; aspect-ratio: 1; border-radius: 50%; background: rgba(0, 0, 0, .34); margin-bottom: -5%; z-index: 2; }
.feat .silh .b { width: 100%; height: 150px; background: rgba(0, 0, 0, .34); border-radius: 50% 50% 0 0 / 70% 70% 0 0; z-index: 1; }
.feat .grad { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 7, 10, .95) 4%, rgba(6, 7, 10, .35) 42%, transparent 68%); }
.feat .inner { position: relative; z-index: 3; padding: 16px 16px 18px; width: 100%; }
.livepill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; background: var(--live);
  font-size: 10.5px; font-weight: 800; letter-spacing: .6px;
  box-shadow: 0 4px 14px rgba(254, 44, 85, .45); margin-bottom: 9px;
}
.livepill i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: blink 1.1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .2 } }
.feat h2 { font-size: 19px; line-height: 1.32; margin-bottom: 8px; text-shadow: 0 3px 16px rgba(0, 0, 0, .6); }
.feat .sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: rgba(255, 255, 255, .74); margin-bottom: 14px; }
.feat .sub em { font-style: normal; display: flex; align-items: center; gap: 4px; }
.feat .go {
  height: 40px; width: 100%; border-radius: 12px;
  background: #fff; color: #0a0b0f; font-weight: 800; font-size: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}
.feat .go:active { transform: scale(.98); }

/* Hero 下的小卡横滑（原 heroSide） */
.hside { display: flex; gap: 10px; overflow-x: auto; padding: 12px 14px 0; scrollbar-width: none; }
.hside::-webkit-scrollbar { display: none; }
.minicard {
  position: relative; flex: none; width: 132px; aspect-ratio: 3 / 4;
  border-radius: 13px; overflow: hidden; cursor: pointer;
  background: linear-gradient(150deg, #2c2f3a, #1f2129);
}
.minicard .grad { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(6, 7, 10, .94), transparent 66%); }
.minicard .txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 9px 10px; }
.minicard .txt b { display: block; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.minicard .txt em { font-style: normal; font-size: 10px; color: rgba(255, 255, 255, .62); }
.minicard .cnt {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px);
}

/* ══════════ 区块标题 ══════════ */
.sect { margin-top: 22px; }
.sect-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 11px;
}
.sect-head h3 { font-size: 15.5px; font-weight: 800; letter-spacing: .2px; display: flex; align-items: center; gap: 7px; }
.sect-head h3 i { width: 3.5px; height: 14px; border-radius: 3px; background: var(--grad); display: block; }
.sect-head .more { font-size: 12px; color: rgba(255, 255, 255, .5); display: flex; align-items: center; gap: 2px; }
.sect-head .tabs { display: flex; gap: 5px; }
.sect-head .tabs button {
  font-size: 11.5px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .55); font-weight: 700;
}
.sect-head .tabs button.on { background: var(--grad); color: #fff; }

/* ══════════ 主播榜（横滑名次条） ══════════ */
.rankgrid {
  display: flex; gap: 9px; overflow-x: auto; padding: 0 14px 4px;
  scrollbar-width: none;
}
.rankgrid::-webkit-scrollbar { display: none; }
.ritem {
  flex: none; width: 118px; padding: 11px 10px;
  border-radius: 13px; background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .06);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative;
}
.ritem .no {
  position: absolute; top: 7px; left: 9px;
  font-size: 11px; font-weight: 900; font-style: italic; color: rgba(255, 255, 255, .3);
}
.ritem.t1 .no { color: #ffd54a; }
.ritem.t2 .no { color: #d7deea; }
.ritem.t3 .no { color: #e0a06a; }
.ritem .av {
  width: 42px; height: 42px; border-radius: 50%; margin-top: 6px;
  display: grid; place-items: center; font-size: 15px; font-weight: 800; color: #fff;
}
.ritem.t1 .av { box-shadow: 0 0 0 2px #ffd54a; }
.ritem .nm {
  font-size: 11.5px; font-weight: 700; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ritem .vl { font-size: 10.5px; color: rgba(255, 255, 255, .45); font-variant-numeric: tabular-nums; }

/* ══════════ 筛选 chip（Live Now 区域） ══════════ */
.filter {
  display: flex; align-items: center; gap: 7px;
  overflow-x: auto; padding: 0 14px 12px; position: relative;
  scrollbar-width: none;
}
.filter::-webkit-scrollbar { display: none; }
.filter .fc {
  flex: none; font-size: 11.5px; padding: 5px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .58);
  font-weight: 700; white-space: nowrap;
}
.filter .fc.on { background: var(--grad); color: #fff; }
.filter .ddwrap { flex: none; margin-left: 0; position: relative; }
.filter .dd {
  display: flex; align-items: center; gap: 5px; font-size: 11.5px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .58); font-weight: 700;
}
.ddpanel {
  position: absolute; right: 0; top: 34px; z-index: 45;
  width: min(330px, calc(100vw - 48px)); max-height: 320px; overflow-y: auto;
  padding: 13px; display: none;
  background: #16181f; border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px; box-shadow: 0 22px 50px rgba(0, 0, 0, .7);
}
.ddpanel.open { display: block; animation: fadeDown .2s ease both; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-7px) } to { opacity: 1; transform: none } }
.reg { margin-bottom: 12px; }
.reg:last-child { margin-bottom: 0; }
.reg h5 { font-size: 11px; color: rgba(255, 255, 255, .35); font-weight: 800; letter-spacing: .5px; margin-bottom: 7px; }
.reg .cs { display: flex; flex-wrap: wrap; gap: 6px; }
.reg .cs span {
  font-size: 11.5px; padding: 4px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .62); cursor: pointer;
}
.reg .cs span:active { background: var(--grad); color: #fff; }

/* ══════════ 直播卡网格（双列竖屏卡） ══════════ */
.rgrid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; padding: 0 14px;
}
.rcard {
  border-radius: 14px; overflow: hidden; cursor: pointer;
  background: #15171e; transition: transform .18s;
}
.rcard:active { transform: scale(.977); }
.thumb {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: linear-gradient(150deg, #2c2f3a, #1f2129);
}
.thumb .glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 22%, rgba(255, 255, 255, .28), transparent 62%); }
.thumb .silh { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 64%; display: flex; flex-direction: column; align-items: center; }
.thumb .silh .h { width: 46%; aspect-ratio: 1; border-radius: 50%; background: rgba(0, 0, 0, .32); margin-bottom: -6%; z-index: 2; }
.thumb .silh .b { width: 100%; height: 46px; background: rgba(0, 0, 0, .32); border-radius: 50% 50% 0 0 / 70% 70% 0 0; z-index: 1; }
.thumb .grad { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(6, 7, 10, .96) 2%, rgba(6, 7, 10, .3) 44%, transparent 66%); }
.b-live {
  position: absolute; top: 8px; left: 8px; z-index: 4;
  display: flex; align-items: center; gap: 4px;
  padding: 2.5px 7px; border-radius: 999px; background: var(--live);
  font-size: 9px; font-weight: 800; letter-spacing: .4px;
  box-shadow: 0 3px 10px rgba(254, 44, 85, .45);
}
.b-live i { width: 4px; height: 4px; border-radius: 50%; background: #fff; animation: blink 1.1s infinite; }
.b-ck {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  font-size: 9px; font-weight: 700; padding: 2.5px 7px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px);
}
.b-ck::before { content: "👁 "; font-size: 8.5px; }
.b-pk {
  position: absolute; bottom: 62px; left: 8px; z-index: 4;
  font-size: 9px; font-weight: 800; padding: 2.5px 7px; border-radius: 999px;
  background: rgba(254, 44, 85, .92); color: #fff;
}
.rfoot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 8px 9px; }
.rfoot b {
  display: block; font-size: 11.5px; font-weight: 700; line-height: 1.34;
  margin-bottom: 5px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.rfoot .who { display: flex; align-items: center; gap: 5px; font-size: 10px; color: rgba(255, 255, 255, .68); }
.rfoot .who .av { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 8px; font-weight: 800; color: #fff; flex: none; }
.rfoot .who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rfoot .who .ct {
  margin-left: auto; flex: none; font-size: 9px; padding: 1px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8);
  max-width: 52%; overflow: hidden; text-overflow: ellipsis;
}

/* 封面：有快照时铺满并隐藏剪影 */
.thumb .cover, .gt .cover, .minicard .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.thumb.has-cover .silh, .gt.has-cover .silh, .minicard.has-cover .silh { display: none; }
.minicard .grad { z-index: 2; }
.thumb.has-cover .grad { background: linear-gradient(0deg, rgba(6, 7, 10, .96) 2%, rgba(6, 7, 10, .16) 40%, transparent 62%); }
.feat .bgimg.has-cover { background-size: cover; background-position: center; }
.feat .bgimg.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 7, 10, .9) 8%, rgba(6, 7, 10, .3) 48%, rgba(6, 7, 10, .12)); }

/* 分类底色调收敛为中性炭灰 */
.c1,.c2,.c3,.c4,.c5,.c6,.c7,.c8,.c9,.c10,.c11,.c12 { background: linear-gradient(150deg, #2c2f3a, #1f2129); }

/* ══════════ 游戏直播（横滑） ══════════ */
.ggrid { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 4px; scrollbar-width: none; }
.ggrid::-webkit-scrollbar { display: none; }
.gcard {
  flex: none; width: 118px; border-radius: 13px; overflow: hidden; cursor: pointer;
  background: #15171e;
}
.gcard .gt { position: relative; aspect-ratio: 1 / 1.2; overflow: hidden; background: linear-gradient(150deg, #2c2f3a, #1f2129); }
.gcard .gt .avbig {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; font-weight: 800;
  border: 2px solid rgba(255, 255, 255, .5);
}
.gcard .info { padding: 8px 9px 10px; }
.gcard .info b {
  display: block; font-size: 11px; font-weight: 700; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gcard .info .who { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: rgba(255, 255, 255, .5); }
.gcard .info .who .k { margin-left: auto; color: var(--brand); font-weight: 700; }

/* ══════════ 横滑推荐 ══════════ */
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .rcard { flex: none; width: 128px; }

/* ══════════ Explore 页尾（话题 / 热榜 / 联系 / 下载） ══════════ */
.explore { padding: 0 14px; }
.explore .card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px; padding: 14px; margin-bottom: 11px;
}
.explore .card h4 { font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span {
  font-size: 11.5px; padding: 5px 11px; border-radius: 9px;
  background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .6);
}
.tags span:active { background: var(--grad); color: #fff; }
.hotlist .h { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 12.5px; }
.hotlist .h .no { width: 15px; font-size: 11px; font-weight: 900; font-style: italic; color: var(--brand); flex: none; }
.hotlist .h .t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, .62); }
.contact { font-size: 11.5px; line-height: 2; }
.contact .row { display: flex; justify-content: space-between; color: rgba(255, 255, 255, .5); }
.contact .row b { color: rgba(255, 255, 255, .78); font-weight: 600; }

/* 下载卡 */
.dlcard { display: flex; gap: 13px; align-items: center; }
.dlcard .qrbox { width: 72px; margin: 0; padding: 5px; border-radius: 9px; background: #fff; }
.dlcard .t b { display: block; font-size: 12.5px; margin-bottom: 4px; }
.dlcard .t em { font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, .5); line-height: 1.6; }
.stores { display: flex; gap: 5px; margin-top: 8px; }
.stores span { font-size: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .55); }

/* 登录引导卡（未登录时） */
.logincard { text-align: center; }
.logincard h4 { font-size: 14px; margin-bottom: 5px; }
.logincard .p { font-size: 11.5px; color: rgba(255, 255, 255, .5); line-height: 1.6; margin-bottom: 12px; }
.logincard .btns { display: flex; gap: 9px; }
.logincard .btns button, .logincard .btns a {
  flex: 1; height: 38px; border-radius: 11px; font-size: 12.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.logincard .btns .p1 { background: var(--grad); color: #fff; }
.logincard .btns .p2 { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }

/* 空态 */
.empty { grid-column: 1 / -1; text-align: center; color: rgba(255, 255, 255, .3); padding: 34px 0; font-size: 12px; }

/* ══════════ Android App 专用信息流 ══════════
   首屏只保留：品牌/搜索、四个内容频道、一个精选直播和双列房间网格。 */
html.in-firefly-app .app-feed {
  min-height: 100%;
  padding: 0 0 24px;
  background: #090a0e;
}
.app-feed-head {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(8px, env(safe-area-inset-top, 0px)) 16px 6px;
  background: rgba(9, 10, 14, .94);
  backdrop-filter: blur(18px);
}
.app-wordmark { display: inline-flex; align-items: center; gap: 9px; color: #f7f8fb; font-size: 18px; font-weight: 850; letter-spacing: -.45px; }
.app-wordmark b { color: #fe4668; font-weight: 850; }
.app-mark {
  width: 32px; height: 32px; border-radius: 11px;
  display: grid; place-items: center;
  background: #fe4668; color: #fff;
  box-shadow: 0 7px 18px rgba(254, 70, 104, .26);
  font-size: 16px; font-weight: 900;
}
.app-feed-actions { display: flex; align-items: center; gap: 9px; }
.app-round-btn, .app-user-dot {
  width: 35px; height: 35px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #f7f8fb;
}
.app-round-btn svg { width: 18px; height: 18px; }
.app-user-dot { background: #2a2d36; border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 800; }
.app-login-link { height: 34px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center; background: #f7f8fb; color: #111218; font-size: 12.5px; font-weight: 800; }
.app-round-btn:active, .app-user-dot:active, .app-login-link:active { transform: scale(.95); }

.app-channels {
  position: sticky; top: 58px; z-index: 48;
  display: flex; align-items: center; gap: 24px;
  overflow-x: auto; padding: 5px 16px 11px;
  background: rgba(9, 10, 14, .94); backdrop-filter: blur(18px);
  scrollbar-width: none;
}
.app-channels::-webkit-scrollbar { display: none; }
.app-channels a {
  position: relative; flex: none; padding: 6px 0;
  color: rgba(247, 248, 251, .48); font-size: 14px; font-weight: 750;
}
.app-channels a.on { color: #fff; }
.app-channels a.on::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 18px; height: 3px; transform: translateX(-50%); border-radius: 999px; background: #fe4668; }

.app-feature { padding: 2px 14px 0; }
.app-feature-card, .app-feature-skeleton, .app-feature-empty {
  position: relative; display: block; width: 100%; aspect-ratio: 5 / 4;
  overflow: hidden; border-radius: 18px; background: #171920;
}
.app-feature-card { color: #fff; }
.app-feature-card .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.app-feature-initial {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.32); font-size: 72px; font-weight: 900;
  background: linear-gradient(145deg, #272a34, #161820); z-index: 0;
}
.app-feature-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(7,8,12,.94) 0%, rgba(7,8,12,.22) 54%, rgba(7,8,12,.08) 100%); }
.app-live-badge {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  height: 24px; padding: 0 9px; border-radius: 7px;
  display: inline-flex; align-items: center; gap: 5px;
  background: #fe4668; color: #fff; font-size: 9.5px; font-weight: 850; letter-spacing: .5px;
}
.app-live-badge i, .live-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: appPulse 1.4s ease-in-out infinite; }
/* 确认无流（stream_online=false）的卡片角标：灰色静默，不再闪红假装在播 */
.app-live-badge.b-off { background: rgba(255,255,255,.16); color: #b7bcc8; }
.app-live-badge.b-off i { animation: none; }
@keyframes appPulse { 50% { opacity: .35; transform: scale(.76); } }
.app-feature-copy { position: absolute; left: 16px; right: 110px; bottom: 16px; z-index: 4; display: flex; flex-direction: column; gap: 4px; }
.app-feature-copy small { color: rgba(255,255,255,.62); font-size: 9.5px; font-weight: 800; letter-spacing: .8px; }
.app-feature-copy b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 17px; line-height: 1.25; }
.app-feature-copy em { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: rgba(255,255,255,.66); font-size: 11px; font-style: normal; }
.app-watch-button { position: absolute; right: 14px; bottom: 16px; z-index: 4; height: 34px; padding: 0 13px; border-radius: 999px; display: flex; align-items: center; background: #f7f8fb; color: #111218; font-size: 11.5px; font-weight: 800; }
.app-feature-card:active { transform: scale(.987); }
.app-feature-empty { min-height: 170px; aspect-ratio: auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 20px; background: linear-gradient(145deg, #242731, #15171d); }
.app-feature-empty b { font-size: 17px; }
.app-feature-empty span { color: rgba(255,255,255,.52); font-size: 12px; line-height: 1.5; }

.app-live-block { margin-top: 22px; }
.app-section-title { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 12px; }
.app-section-title > div { display: flex; align-items: center; gap: 8px; }
.app-section-title h2 { margin: 0; font-size: 17px; letter-spacing: -.25px; }
.app-section-title .live-dot { width: 7px; height: 7px; color: #fe4668; background: #fe4668; }
.app-section-title button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.62); background: rgba(255,255,255,.07); }
.app-section-title button svg { width: 17px; height: 17px; }
.app-section-title button.loading svg { animation: appSpin .75s linear infinite; }
@keyframes appSpin { to { transform: rotate(360deg); } }

.app-room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; padding: 0 14px; }
.app-room-card { min-width: 0; color: #f7f8fb; }
.app-room-cover, .app-room-skeleton { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: #171920; }
.app-room-cover .cover { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.app-card-initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; font-weight: 900; color: rgba(255,255,255,.22); }
.app-room-card.tone-0 .app-room-cover, .app-room-card.tone-3 .app-room-cover { background: #27242b; }
.app-room-card.tone-1 .app-room-cover, .app-room-card.tone-4 .app-room-cover { background: #20242c; }
.app-room-card.tone-2 .app-room-cover, .app-room-card.tone-5 .app-room-cover { background: #292329; }
.app-room-cover::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(7,8,12,.48), transparent 52%); pointer-events: none; }
.app-room-cover .app-live-badge { top: 8px; left: 8px; height: 21px; padding: 0 7px; border-radius: 6px; font-size: 8.5px; }
.app-view-count { position: absolute; right: 8px; bottom: 8px; z-index: 4; padding: 3px 7px; border-radius: 999px; color: #fff; background: rgba(7,8,12,.62); backdrop-filter: blur(8px); font-size: 9.5px; font-weight: 750; }
.app-room-info { min-width: 0; padding: 8px 2px 0; }
.app-room-info b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; line-height: 1.35; }
.app-room-info span { display: flex; gap: 6px; align-items: center; margin-top: 3px; min-width: 0; color: rgba(247,248,251,.48); font-size: 10.5px; }
.app-room-info em { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-style: normal; }
.app-room-info small { flex: none; margin-left: auto; font-size: 9.5px; }
.app-room-card:active .app-room-cover { transform: scale(.985); }

.skeleton { overflow: hidden; background: #171920; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); animation: skeletonSweep 1.25s ease-in-out infinite; }
@keyframes skeletonSweep { to { transform: translateX(100%); } }
.app-feed-state { margin: 24px 16px 0; padding: 20px; text-align: center; color: rgba(247,248,251,.52); font-size: 12.5px; }
.app-feed-state p { margin: 0 0 12px; }
.app-feed-state button { height: 36px; padding: 0 16px; border-radius: 999px; background: #f7f8fb; color: #111218; font-weight: 800; }

/* Party 页复用同一信息流密度。 */
.app-party-intro { padding: 8px 16px 18px; }
.app-party-intro h2 { margin: 0 0 5px; font-size: 21px; letter-spacing: -.4px; }
.app-party-intro p { margin: 0; max-width: 34ch; color: rgba(247,248,251,.5); font-size: 12px; line-height: 1.55; }

/* ══════════ 桌面宽屏（≥900px）：信息流随容器限宽 + 房间卡扩到 4 列 ══════════
   仅桌面增强；≤899px 的移动端样式保持原样（appshell 在 ≥900px 解除手机框）。 */
@media (min-width: 900px) {
  .feed-top,
  .feed-cats,
  .hero,
  .sect-head,
  .rankgrid,
  .filter,
  .ggrid,
  .hscroll,
  .explore { padding-left: 24px; padding-right: 24px; }
  .hside { padding: 12px 24px 0; }

  /* 首屏大卡：桌面不再按 4/5 竖屏比例拉伸，改为固定高度横版 */
  .feat { aspect-ratio: auto; height: 440px; }
  .feat .inner { max-width: 640px; }
  .feat .go { width: auto; min-width: 180px; padding: 0 34px; }
  .feat .silh { width: 34%; }

  /* 房间卡网格：自适应扩到 4 列（卡片 3/4 竖版比例不变），桌面补悬停态 */
  .rgrid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .rgrid .rcard:active { transform: none; }
  .rgrid .rcard:hover {
    transform: translateY(-4px);
    border: 1px solid rgba(254, 44, 85, .45);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  }
}
