/* ShortVideoFeed — home only */
body[data-page="home"] {
  height: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body[data-page="home"] > .screen--home {
  flex: 1;
  min-height: 0;
}
.screen--home {
  background: #000;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.screen--home > .statusbar {
  flex-shrink: 0;
  position: relative;
  z-index: 6;
}
.home-feed {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.home-feed::-webkit-scrollbar { width: 0; height: 0; }
.home-slide {
  position: relative;
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  box-sizing: border-box;
}
.home-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}
.home-slide.is-active .home-bg { transform: scale(1.02); }
.home-bg.v1 { background-image: linear-gradient(160deg, #1a2744 0%, #2f6bff 45%, #22b8c9 100%); }
.home-bg.v2 { background-image: linear-gradient(160deg, #2a1830 0%, #7c3aed 40%, #ec4899 100%); }
.home-bg.v3 { background-image: linear-gradient(160deg, #1f2d1a 0%, #0f9d77 42%, #24c79a 100%); }
.home-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 20% 30%, #fff 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
}
/* 固定控件层：不占用 feed 高度，叠在视频上 */
.home-fixed-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  pointer-events: none;
}
.home-industry--fixed,
.home-play--fixed,
.home-sound--fixed {
  pointer-events: auto;
}
.home-industry--fixed {
  position: absolute;
  top: 48px;
  left: 16px;
  max-width: calc(100% - 80px);
}
.home-sound--fixed {
  position: absolute;
  top: 48px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  font-family: inherit;
}
.home-sound--fixed.is-muted {
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.home-industry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}
.home-sound {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
}
.home-bottom {
  position: absolute;
  left: 0; right: 0;
  bottom: 60px;
  z-index: 3;
  padding: 48px 18px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.52) 100%);
  color: #fff;
}
.home-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.home-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.12);
}
.home-title { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; color: rgba(255,255,255,.92); }
.home-sub { font-size: 12px; opacity: 0.62; line-height: 1.4; margin-bottom: 12px; max-width: 88%; }
.home-cta {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--ds-grad);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(47,107,255,.35);
  font-family: inherit;
}

/* 居中播放按钮 — 固定视口层，不随 feed 竖滑 */
.home-play--fixed {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
  font-family: inherit;
  pointer-events: auto;
}
.home-play--fixed:active {
  transform: translate(-50%, -50%) scale(0.94);
  background: rgba(0, 0, 0, 0.4);
}
.home-play--fixed .ic { margin-left: 3px; opacity: 0.95; }

/* 首页底栏透明化（下层） */
.screen--home .tabbar--home {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin-top: 0;
  height: 60px;
  background: transparent;
  border-top: none;
  backdrop-filter: none;
  z-index: 5;
}
.screen--home .tabbar--home .tab {
  color: rgba(255, 255, 255, 0.48);
  font-weight: 500;
}
.screen--home .tabbar--home .tab.on {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}
.screen--home .tabbar--home .tab .ic {
  opacity: 0.55;
}
.screen--home .tabbar--home .tab.on .ic {
  opacity: 0.95;
}
