/* 51视频 · 抖音风全屏竖滑 */
html.feed-page,
body.feed-page {
  height: 100%;
  overflow: hidden;
  background: #0a0a0a;
  color: #fff;
}

body.feed-page {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.feed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px calc(10px + env(safe-area-inset-top));
  padding-top: calc(12px + env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
  pointer-events: none;
}

.feed-top a,
.feed-top .feed-tabs {
  pointer-events: auto;
}

.feed-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
}

.feed-brand span {
  color: #0d9f6e;
}

.feed-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.feed-tabs a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 6px 12px;
  border-radius: 999px;
}

.feed-tabs a.is-active {
  color: #111;
  background: #fff;
  font-weight: 650;
}

.feed-counter {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  min-width: 3.5em;
  text-align: right;
}

.video-feed {
  height: 100%;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.feed-item {
  position: relative;
  height: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  display: grid;
  place-items: center;
}

.feed-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.feed-ui {
  position: absolute;
  left: 0;
  right: 64px;
  bottom: 0;
  padding: 48px 16px calc(28px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
}

.feed-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 650;
}

.feed-tip {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.feed-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.feed-play-btn[hidden] {
  display: none !important;
}

.feed-empty {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  padding: 24px;
  text-align: center;
}

.feed-empty[hidden] {
  display: none !important;
}

.feed-empty a {
  color: #0d9f6e;
}

@media (min-width: 900px) {
  .video-feed {
    max-width: 430px;
    margin: 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  .feed-top {
    max-width: 430px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
  }
}
