/* ============================================================
   视频流页面 - PC 端抖音风格全屏上下滑动
   ============================================================ */

/* 主容器：全屏黑色背景 */
.ls-vf-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100;
    overflow: hidden;
}

/* ========== 左上角工具栏 ========== */
.ls-vf-toolbar {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ls-vf-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    color: #fff;
    text-decoration: none;
}
.ls-vf-tool-btn:hover {
    background: rgba(255,255,255,0.2);
}
.ls-vf-tool-btn i {
    font-size: 20px;
    color: #fff;
}

/* ========== 视口 ========== */
.ls-vf-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 滑动容器 */
/* translate 百分比基于自身高度，自身 300% → -33.333% = 向上 1 个视口 */
.ls-vf-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300%;
    transform: translate3d(0, -33.333%, 0);
    will-change: transform;
}

/* 每个 slot */
.ls-vf-slot {
    position: relative;
    width: 100%;
    height: calc(100% / 3);
    overflow: hidden;
}

/* ========== 视频项 ========== */
.ls-vf-video-item {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* 模糊背景 */
.ls-vf-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 0;
    pointer-events: none;
}
.ls-vf-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px) brightness(0.35);
}

/* 播放器 */
.ls-vf-player {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ls-vf-player video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

/* 暂停图标 */
.ls-vf-pause-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 5;
}
.ls-vf-pause-icon i {
    font-size: 36px;
    color: #fff;
    margin-left: 4px;
}
.ls-vf-paused .ls-vf-pause-icon {
    opacity: 1;
}

/* Loading spinner */
.ls-vf-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 6;
}
.ls-vf-loading .ls-vf-spinner {
    opacity: 1;
    animation: ls-vf-spin 0.8s linear infinite;
}
.ls-vf-loading .ls-vf-pause-icon {
    display: none;
}

@keyframes ls-vf-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 进度条 */
.ls-vf-progress {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.24);
    z-index: 30;
    cursor: pointer;
    pointer-events: auto;
    touch-action: none;
    transition: height 0.15s ease, background 0.15s ease;
}
.ls-vf-progress::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -24px;
    bottom: -10px;
}
.ls-vf-progress-bar {
    height: 100%;
    width: 0;
    background: #fff;
    transition: width 0.15s linear;
    will-change: width;
}
.ls-vf-progress:hover,
.ls-vf-progress.ls-vf-progress-dragging {
    height: 7px;
    background: rgba(255,255,255,0.34);
}
.ls-vf-progress:hover .ls-vf-progress-bar,
.ls-vf-progress.ls-vf-progress-dragging .ls-vf-progress-bar {
    background: #fe2c55;
}

/* 无权限封面 */
.ls-vf-cover-locked {
    position: relative;
    width: 100%;
    height: 100%;
}
.ls-vf-cover-locked > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(25px) brightness(0.4);
}
.ls-vf-locked-mask {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}
.ls-vf-locked-mask i {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.8;
}
.ls-vf-locked-mask span {
    font-size: 16px;
    opacity: 0.7;
}

/* ========== 底部信息区 ========== */
.ls-vf-bottom-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 100px;
    padding: 0 24px 32px;
    z-index: 10;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding-top: 80px;
    animation: ls-vf-fadeIn 0.3s ease;
}

.ls-vf-info-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.ls-vf-info-name a {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.ls-vf-info-name a:hover {
    text-decoration: underline;
}
/* 认证标识 */
.ls-vf-info-name .ls-avatar-verify {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 4px;
}
.ls-vf-info-name .ls-avatar-verify img {
    width: 20px;
    height: 20px;
}

.ls-vf-info-desc {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.ls-vf-info-content {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.85;
}

.ls-vf-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.ls-vf-info-tag {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    background: rgba(255,255,255,0.12);
    padding: 3px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}
.ls-vf-info-tag:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

/* ========== 右侧互动栏 ========== */
.ls-vf-actions {
    position: absolute;
    right: 20px;
    bottom: 120px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: ls-vf-fadeIn 0.3s ease 0.1s both;
}

/* 头像 */
.ls-vf-act-avatar {
    position: relative;
    margin-bottom: 8px;
}
.ls-vf-act-avatar img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}
.ls-vf-act-avatar img:hover {
    transform: scale(1.08);
}

.ls-vf-follow-btn {
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: #fe2c55;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.ls-vf-follow-btn:hover {
    transform: translateX(-50%) scale(1.15);
}
.ls-vf-follow-btn i {
    font-size: 16px;
    color: #fff;
}

/* 操作按钮 */
.ls-vf-act-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.15s;
}
.ls-vf-act-item:hover {
    transform: scale(1.1);
}
.ls-vf-act-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: background 0.2s;
}
.ls-vf-act-item:hover .ls-vf-act-icon {
    background: rgba(255,255,255,0.16);
}
.ls-vf-act-icon i {
    font-size: 26px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.ls-vf-act-num {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin-top: 4px;
    text-align: center;
}

/* 已点赞 */
.ls-vf-act-item.ls-liked .ls-vf-act-icon i {
    color: #fe2c55;
}
.ls-vf-act-item.ls-liked .ls-vf-act-icon {
    background: rgba(254,44,85,0.15);
}

/* 静音按钮 */
.ls-vf-actions .ls-vf-mute-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}
.ls-vf-actions .ls-vf-mute-btn:hover {
    background: rgba(255,255,255,0.22);
}
.ls-vf-actions .ls-vf-mute-btn i {
    font-size: 18px;
    color: #fff;
}

/* ========== 空状态 ========== */
.ls-vf-empty-pc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255,255,255,0.4);
}
.ls-vf-empty-pc i {
    font-size: 80px;
    margin-bottom: 20px;
}
.ls-vf-empty-pc p {
    font-size: 18px;
}

/* ========== 动画 ========== */
@keyframes ls-vf-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ls-vf-like-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}
.ls-vf-act-item.ls-liked .ls-vf-act-icon i {
    animation: ls-vf-like-pop 0.35s ease;
}

/* ========== 键盘快捷键提示 ========== */
.ls-vf-toolbar .ls-vf-tool-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
}
