/* feed 抖音式翻动样式 */
html, body {
    margin: 0;
    padding: 0;
    background: #000;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    /* iOS: 禁止弹性滚动橡皮筋 */
    overscroll-behavior: none;
}

.feed-container {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* iOS: 消除滚动延迟 */
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}
.feed-container::-webkit-scrollbar {
    display: none;
}

.feed-item {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    -webkit-scroll-snap-align: start;
    -webkit-scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    /* iOS: 防止子元素溢出触发弹性 */
    contain: layout style;
}

.feed-video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-object-fit: contain;
    background: #000;
    display: block;
}

/* 底部信息浮层 */
.feed-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: #fff;
    pointer-events: none;
    z-index: 2;
}
.feed-author {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    /* 可点击：覆盖父级 pointer-events:none */
    pointer-events: auto;
    cursor: pointer;
    color: #fe2c55;
    display: inline-block;
}
.feed-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.feed-desc {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.4;
    max-height: 3.9em;
    overflow: hidden;
}

/* 静音切换按钮 */
.mute-toggle {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
}
.mute-toggle:active {
    background: rgba(0,0,0,0.7);
}

/* 点击视频暂停/继续播放的中央图标 */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}

/* PC 端：竖屏视频居中限宽（仿抖音桌面版） */
@media (min-width: 768px) {
    .feed-container {
        max-width: 480px;
        margin: 0 auto;
        border-left: 1px solid #1a1a1a;
        border-right: 1px solid #1a1a1a;
    }
}

/* 加载更多占位提示 */
.feed-loading {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 13px;
    scroll-snap-align: none;
}
.feed-end {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 13px;
    scroll-snap-align: none;
}
