/**
 * 视频详情页样式 - 抖音风格
 * vd- 前缀命名
 */

/* ==================== 主容器 ==================== */
body.route-video {
    background: #000;
}

.vd-main {
    position: absolute;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    overflow: hidden;
    z-index: 100;
    background: #000;
    width: 100%;
}

/* 内联认证标识（用户名旁边） */
.vd-info-name .ls-avatar-verify,
.vd-bottom-info .ls-avatar-verify {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
    line-height: 0;
}

.vd-info-name .ls-avatar-verify img,
.vd-bottom-info .ls-avatar-verify img {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    border: none !important;
    position: static !important;
    border-radius: 0 !important;
}

/* ==================== 左侧视频区 ==================== */
.vd-left {
    flex: 1;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 滚动容器 */
.vd-scroll-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 3-slot 滑动器 */
.vd-slider {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 300%;
    will-change: transform;
}

.vd-slider.vd-animating {
    transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1);
}

.vd-slot {
    width: 100%;
    height: 33.3333%;
    position: relative;
    overflow: hidden;
}

/* ==================== 视频项 ==================== */
.vd-video-item {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    --vd-dm-bar-height: 56px;
    --vd-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* 模糊背景 */
.vd-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: #000;
    overflow: hidden;
}

.vd-bg img {
    width: 120%;
    height: 120%;
    position: absolute;
    left: -10%;
    top: -10%;
    filter: blur(40px) brightness(0.4);
    object-fit: cover;
}

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

.vd-player video {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    outline: none;
    object-fit: contain;
    display: block;
}

/* 暂停图标 */
.vd-pause-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
    z-index: 5;
}

.vd-pause-icon i {
    font-size: 72px;
    color: rgb(255 255 255 / 85%);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

/* 视频加载中 spinner */
.vd-pause-icon .vd-spinner {
    width: 48px;
    height: 48px;
    border: 2.5px solid rgb(255 255 255 / 25%);
    border-top-color: rgb(255 255 255 / 85%);
    border-radius: 50%;
    animation: vd-spin 0.8s linear infinite;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

@keyframes vd-spin {
    to { transform: rotate(360deg); }
}

.vd-player.vd-paused .vd-pause-icon {
    opacity: 1;
}

/* 加载中强制显示（不受 vd-paused 影响） */
.vd-player.vd-loading .vd-pause-icon {
    opacity: 1;
}

.vd-player.vd-loading .vd-pause-icon i {
    display: none;
}

/* 进度条：用 ::before 伪元素扩大点击热区，避免改动盒模型 */
.vd-progress {
    position: absolute;
    bottom: calc(var(--vd-dm-bar-height) + 6px + var(--vd-safe-bottom, 0px));
    left: 16px;
    right: 16px;
    height: 4px;
    background: rgb(255 255 255 / 28%);
    z-index: 10;
    cursor: pointer;
    touch-action: none;
    border-radius: 999px;
    box-shadow: 0 1px 8px rgb(0 0 0 / 22%);
    transition: height .15s, background .15s;
}

/* 透明热区层：不改变视觉高度，但给鼠标和手指更大的命中范围 */
.vd-progress::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    bottom: -14px;
}

.vd-progress:hover,
.vd-progress.vd-progress-dragging {
    height: 6px;
    background: rgb(255 255 255 / 36%);
}

.vd-progress-bar {
    height: 100%;
    background: #fff;
    width: 0;
    transition: none;
    border-radius: 999px;
}

.vd-progress-dot {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform .15s;
    left: 0;
    box-shadow: 0 0 6px rgba(0,0,0,.4);
}

.vd-progress:hover .vd-progress-dot,
.vd-progress.vd-progress-dragging .vd-progress-dot {
    transform: translate(-50%, -50%) scale(1);
}

/* 进度条时间预览气泡 */
.vd-progress-time {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    transform: translateX(-50%);
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}

.vd-progress:hover .vd-progress-time,
.vd-progress.vd-progress-dragging .vd-progress-time {
    opacity: 1;
}

/* 封面/无权限 */
.vd-cover-locked {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
}

.vd-cover-locked > img {
    height: 100%;
    max-width: 100%;
    filter: brightness(0.3) blur(8px);
    object-fit: cover;
    pointer-events: none;
    transform: scale(1.05);
}

.vd-locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    z-index: 5;
}

/* 权限卡片容器 */
.vd-power-mask {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 400px;
    width: 100%;
    padding: 0 20px;
}

.vd-power-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
}

.vd-power-header > i {
    font-size: 22px;
    opacity: 0.9;
}

.vd-power-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.vd-power-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: background 0.2s;
    flex-wrap: wrap;
}
.vd-power-card-quota {
    width: 100%;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

.vd-power-card:hover {
    background: rgba(255,255,255,0.18);
}

.vd-power-card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.vd-power-card-icon i {
    font-size: 16px;
    color: #fff;
}

.vd-power-card-text {
    flex: 1;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}

.vd-power-card-btn {
    padding: 5px 14px;
    border: none;
    border-radius: 16px;
    background: rgba(255,255,255,0.95);
    color: #333;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.vd-power-card-btn:hover {
    background: #fff;
    transform: scale(1.03);
}

.vd-power-card-btn:active {
    transform: scale(0.97);
}

.vd-power-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.vd-power-footer i {
    font-size: 14px;
}

/* ==================== 状态提示 ==================== */
.vd-status-tip {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #fff;
    background: rgba(180, 83, 9, 0.85);
    backdrop-filter: blur(8px);
    z-index: 20;
    pointer-events: none;
    white-space: nowrap;
}

.vd-status-tip i { font-size: 16px; }

/* ==================== 底部信息栏（抖音风格） ==================== */
.vd-bottom-info {
    position: absolute;
    bottom: calc(var(--vd-dm-bar-height) + 28px + var(--vd-safe-bottom, 0px));
    left: 20px;
    right: 100px;
    color: #fff;
    z-index: 11;
    pointer-events: auto;
    max-width: 50%;
}

.vd-info-name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.vd-info-name a {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: opacity .2s;
}

.vd-info-name a:hover {
    opacity: 0.8;
}

.vd-private-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(123, 31, 162, 0.2);
    color: #e1bee7;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.vd-private-badge i {
    font-size: 11px;
}

/* 内容折叠容器 */
.vd-info-body {
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.vd-info-body.vd-no-clamp {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.vd-bottom-info.vd-expanded .vd-info-body {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.vd-info-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgb(255 255 255 / 90%);
    word-break: break-word;
}

.vd-info-content {
    font-size: 14px;
    line-height: 1.6;
    color: rgb(255 255 255 / 70%);
    word-break: break-word;
}

.vd-info-meta {
    display: flex;
    align-items: center;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
    color: rgb(255 255 255 / 48%);
    text-shadow: 0 1px 2px rgb(0 0 0 / 24%);
}

.vd-info-meta span + span {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.vd-info-meta span + span::before {
    content: '';
    width: 3px;
    height: 3px;
    margin-right: 8px;
    border-radius: 50%;
    background: rgb(255 255 255 / 32%);
}

/* @用户链接 */
.vd-at-link {
    color: rgb(255 255 255 / 90%);
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
}

.vd-at-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* 展开/收起按钮 */
.vd-info-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: rgb(255 255 255 / 60%);
    font-size: 13px;
    cursor: pointer;
    transition: color .2s;
    margin-top: 4px;
}

.vd-info-toggle:hover {
    color: rgb(255 255 255 / 90%);
}

.vd-info-toggle i {
    font-size: 18px;
    transition: transform .2s;
}

.vd-bottom-info.vd-expanded .vd-info-toggle i {
    transform: rotate(180deg);
}

/* 合集入口 */
.vd-collection {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgb(255 255 255 / 10%);
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
    max-width: 60%;
}

.vd-collection:hover {
    background: rgb(255 255 255 / 16%);
}

.vd-collection-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 15%);
    border-radius: 6px;
    font-size: 16px;
    color: #fff;
}

.vd-collection-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.vd-collection-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vd-collection-meta {
    font-size: 12px;
    color: rgb(255 255 255 / 50%);
    margin-top: 1px;
}

.vd-collection-nav {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 2px;
}

.vd-collection-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 20px;
    border-radius: 4px;
    color: rgb(255 255 255 / 60%);
    transition: all .2s;
    cursor: pointer;
}

.vd-collection-btn:hover {
    color: #fff;
    background: rgb(255 255 255 / 12%);
}

.vd-collection-btn i {
    font-size: 18px;
}

.vd-collection-btn.vd-disabled {
    opacity: .3;
    cursor: default;
    pointer-events: none;
}

.vd-collection-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* ==================== 合集 Tab 内容（深色面板） ==================== */
#vd-collection-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.vd-collection-header {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgb(255 255 255 / 6%);
    flex-shrink: 0;
}
.vd-collection-cover {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: rgb(255 255 255 / 8%);
}
.vd-collection-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vd-collection-cover-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255 255 255 / 30%);
    font-size: 24px;
    background: rgb(255 255 255 / 8%);
}
.vd-collection-detail {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.vd-collection-detail-title {
    font-size: 15px;
    font-weight: 600;
    color: rgb(255 255 255 / 90%);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vd-collection-detail-desc {
    font-size: 12px;
    color: rgb(255 255 255 / 45%);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}
.vd-collection-detail-meta {
    font-size: 12px;
    color: rgb(255 255 255 / 35%);
}

/* 合集视频列表 */
.vd-collection-list {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 0;
}
.vd-collection-list::-webkit-scrollbar {
    width: 4px;
}
.vd-collection-list::-webkit-scrollbar-track {
    background: none;
}
.vd-collection-list::-webkit-scrollbar-thumb {
    background: rgb(255 255 255 / 15%);
    border-radius: 4px;
}

/* 合集视频项 */
.vd-collection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    text-decoration: none;
    color: inherit;
    transition: background .2s;
    position: relative;
    cursor: pointer;
}
.vd-collection-item:hover {
    background: rgb(255 255 255 / 6%);
}

/* 当前播放项 */
.vd-collection-item.ls-on {
    background: rgb(255 255 255 / 10%);
}
.vd-collection-item.ls-on .vd-collection-item-index {
    color: #fe2c55;
    font-weight: 700;
}
.vd-collection-item.ls-on .vd-collection-item-title {
    color: #fff;
    font-weight: 600;
}
.vd-collection-item.ls-on .vd-equalizer {
    display: flex;
}
.vd-collection-item.ls-on .vd-collection-item-cover {
    outline: 2px solid #fe2c55;
    outline-offset: -2px;
}
.vd-collection-item.ls-on .vd-collection-item-dur {
    display: none;
}

/* 序号 */
.vd-collection-item-index {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: rgb(255 255 255 / 35%);
}

/* 封面 */
.vd-collection-item-cover {
    flex-shrink: 0;
    width: 96px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #000;
}

/* 静音自动播放提示：浏览器强制静音时引导用户用一次点击开启声音 */
.vd-sound-tip {
    position: absolute;
    top: 64px;
    left: 50%;
    z-index: 24;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: min(520px, calc(100% - 48px));
    padding: 12px 14px;
    border: 1px solid rgba(248, 113, 113, 0.24);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(76, 17, 32, 0.86), rgba(127, 29, 29, 0.68));
    color: #fff;
    box-shadow: 0 14px 36px rgba(127, 29, 29, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(16px);
}

.vd-sound-tip.is-show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.vd-sound-tip-text {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffe4e6;
    white-space: nowrap;
}

.vd-sound-tip-text i {
    font-size: 18px;
    color: #fb4f67;
}

.vd-sound-tip-btn {
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.vd-sound-tip-btn:hover {
    background: #fff1f2;
}
.vd-collection-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.vd-collection-item:hover .vd-collection-item-cover img {
    transform: scale(1.05);
}
.vd-collection-item-dur {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgb(0 0 0 / 70%);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
}

/* 内容 */
.vd-collection-item-body {
    flex: 1;
    min-width: 0;
}
.vd-collection-item-title {
    font-size: 13px;
    color: rgb(255 255 255 / 80%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    line-height: 20px;
}
.vd-collection-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: rgb(255 255 255 / 35%);
}
.vd-collection-item-meta i {
    font-size: 12px;
    margin-right: 2px;
}

/* 标签 */
.vd-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.vd-info-tag {
    padding: 3px 10px;
    border-radius: 4px;
    background: rgb(255 255 255 / 12%);
    color: rgb(255 255 255 / 90%);
    font-size: 13px;
    text-decoration: none;
    transition: background .2s;
    font-weight: 500;
}

.vd-info-tag:hover {
    background: rgb(255 255 255 / 22%);
}

/* 位置定位 */
.vd-info-location {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
    color: rgb(255 255 255 / 45%);
    text-shadow: 0 1px 2px rgb(0 0 0 / 24%);
}

.vd-info-location i {
    font-size: 13px;
}

/* ==================== 右侧互动栏（抖音风格，每个视频独立） ==================== */
.vd-action-bar {
    position: absolute;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(100px + var(--vd-safe-bottom, 0px));
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* 作者头像 */
.vd-action-avatar {
    position: relative;
    margin-bottom: 6px;
}

.vd-action-avatar a {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.vd-action-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vd-avatar-follow-btn {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    background: #fe2c55;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #000;
    transition: transform .2s, opacity .3s;
}

.vd-avatar-follow-btn i {
    font-size: 14px;
    color: #fff;
    line-height: 1;
}

.vd-avatar-follow-btn:hover {
    transform: translateX(-50%) scale(1.15);
}

.vd-avatar-follow-btn.vd-hide {
    display: none;
}

/* 关注成功动画 */
.vd-avatar-follow-btn.vd-followed {
    animation: vd-follow-pop .5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes vd-follow-pop {
    0% { transform: translateX(-50%) scale(1); opacity: 1; }
    40% { transform: translateX(-50%) scale(1.5); opacity: 1; }
    100% { transform: translateX(-50%) scale(0); opacity: 0; }
}

/* 互动按钮 */
.vd-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: transform .15s;
}

.vd-action-item:hover {
    transform: scale(1.08);
}

.vd-action-item:active {
    transform: scale(0.95);
}

.vd-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgb(255 255 255 / 10%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.vd-action-item:hover .vd-action-icon {
    background: rgb(255 255 255 / 18%);
}

.vd-action-icon i {
    font-size: 24px;
    color: #fff;
    transition: color .15s;
}

.vd-action-num {
    font-size: 12px;
    color: rgb(255 255 255 / 85%);
    font-weight: 500;
    line-height: 16px;
    text-align: center;
}

/* 喜欢激活 */
.vd-action-item.ls-liked .vd-action-icon {
    background: rgb(254 44 85 / 15%);
}

.vd-action-item.ls-liked .vd-action-icon i {
    color: #fe2c55;
}

/* 收藏激活 */
.vd-action-item.ls-collected .vd-action-icon {
    background: rgb(245 158 11 / 15%);
}

.vd-action-item.ls-collected .vd-action-icon i {
    color: #f59e0b;
}

/* 弹跳动画 */
.vd-action-item.vd-bounce {
    animation: vd-bounce .45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes vd-bounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.35); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 禁止评论状态 */
.vd-action-item.vd-comment-closed {
    cursor: not-allowed;
    opacity: 0.45;
}

.vd-action-item.vd-comment-closed:hover {
    transform: none;
}

.vd-action-item.vd-comment-closed:hover .vd-action-icon {
    background: rgb(255 255 255 / 8%);
}

/* 评论框禁止评论状态 */
.ls-comment-closed .ls-comment-textarea {
    opacity: 0.5;
    cursor: not-allowed;
}

.ls-comment-closed .ls-comment-submit.ls-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: auto;
}

.ls-comment-closed .ls-comment-toolbar .tool-btn.ls-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== 左上角工具栏 ==================== */
.vd-toolbar-left {
    position: fixed;
    left: calc(24px + env(safe-area-inset-left, 0px));
    top: calc(24px + env(safe-area-inset-top, 0px));
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 101;
}

.vd-tool-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 10%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s;
}

.vd-tool-btn:hover {
    background: rgb(255 255 255 / 20%);
}

.vd-tool-btn:active {
    transform: scale(0.92);
}

/* 静音按钮（在工具栏内，继承 vd-tool-btn 样式） */
.vd-btn-mute {
    border: none;
    outline: none;
    transition: background .2s, color .2s;
}

.vd-btn-mute.vd-muted {
    color: #fe2c55;
    background: rgb(254 44 85 / 15%);
}

.vd-btn-mute.vd-muted:hover {
    background: rgb(254 44 85 / 25%);
}

/* 权限图标按钮 */
.vd-btn-power {
    color: #ffb74d;
    background: rgb(255 152 0 / 15%);
    font-size: 18px;
    position: relative;
}

.vd-btn-power:hover {
    background: rgb(255 152 0 / 25%);
}

/* 面板切换按钮（视频区域右上角） */
.vd-btn-panel {
    position: absolute;
    right: calc(16px + env(safe-area-inset-right, 0px));
    top: calc(24px + env(safe-area-inset-top, 0px));
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 10%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 101;
    transition: background .2s;
    border: none;
    outline: none;
}

.vd-btn-panel:hover {
    background: rgb(255 255 255 / 20%);
}

.vd-btn-panel:active {
    transform: scale(0.92);
}

/* ==================== 右侧面板（常驻） ==================== */
.vd-right {
    width: 420px;
    min-width: 420px;
    height: 100vh;
    height: 100dvh;
    background: #161823;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    border-left: 1px solid rgb(255 255 255 / 8%);
    transition: margin-right .35s cubic-bezier(0.16, 1, 0.3, 1), opacity .35s;
}

.vd-right.vd-panel-hidden {
    margin-right: -420px;
    opacity: 0;
    pointer-events: none;
}

/* Tab 菜单 */
.vd-tabs {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 20px;
    gap: 24px;
    flex-shrink: 0;
    border-bottom: 1px solid rgb(255 255 255 / 6%);
}

.vd-tab-item {
    font-size: 15px;
    color: rgb(255 255 255 / 50%);
    cursor: pointer;
    position: relative;
    line-height: 46px;
    transition: color .2s;
    font-weight: 500;
}

.vd-tab-item:hover {
    color: rgb(255 255 255 / 80%);
}

.vd-tab-item.ls-on {
    color: #fff;
    font-weight: 600;
}

.vd-tab-item.ls-on::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #fe2c55;
    border-radius: 2px;
}

/* Tab 内容区 */
.vd-tab-body {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.vd-tab-panel {
    display: none;
    height: 100%;
    flex-direction: column;
}

.vd-tab-panel.ls-on {
    display: flex;
}

/* ==================== 推荐列表 ==================== */
.vd-recommend-list {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px 16px;
}

.vd-recommend-list::-webkit-scrollbar {
    width: 4px;
}

.vd-recommend-list::-webkit-scrollbar-track {
    background: none;
}

.vd-recommend-list::-webkit-scrollbar-thumb {
    background: rgb(255 255 255 / 15%);
    border-radius: 4px;
}

.vd-recommend-item {
    display: flex;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: background .2s;
}

.vd-recommend-item:hover {
    background: rgb(255 255 255 / 6%);
}

.vd-recommend-item.ls-on {
    background: rgb(255 255 255 / 10%);
}

.vd-recommend-cover {
    width: 130px;
    height: 78px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.vd-recommend-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.vd-recommend-item:hover .vd-recommend-cover img {
    transform: scale(1.08);
}

.vd-recommend-dur {
    position: absolute;
    right: 6px;
    bottom: 6px;
    font-size: 11px;
    background: rgb(0 0 0 / 65%);
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 16px;
}

.vd-recommend-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
}

.vd-recommend-item:hover .vd-recommend-play {
    opacity: 1;
    background: rgb(0 0 0 / 30%);
}

.vd-recommend-item.ls-on:hover .vd-recommend-play {
    opacity: 0;
}

.vd-recommend-play i {
    font-size: 28px;
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.3));
}

.vd-recommend-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.vd-recommend-title {
    font-size: 14px;
    line-height: 20px;
    color: rgb(255 255 255 / 90%);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.vd-recommend-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgb(255 255 255 / 45%);
}

.vd-recommend-views {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 当前播放项 - 音谱均衡器动画 */
.vd-equalizer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
    z-index: 3;
}

.vd-equalizer span {
    display: block;
    width: 3px;
    background: #fe2c55;
    border-radius: 1.5px;
    animation: vd-eq-bar 1s ease-in-out infinite;
}

.vd-equalizer span:nth-child(1) { height: 40%; animation-delay: 0s; }
.vd-equalizer span:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.vd-equalizer span:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.vd-equalizer span:nth-child(4) { height: 80%; animation-delay: 0.45s; }

.vd-recommend-item.ls-on .vd-equalizer {
    display: flex;
}

/* 推荐列表当前播放项红色边框 */
.vd-recommend-item.ls-on .vd-recommend-cover {
    outline: 2px solid #fe2c55;
    outline-offset: -2px;
}

/* 隐藏正在播放项的时长标签，避免和均衡器重叠 */
.vd-recommend-item.ls-on .vd-recommend-dur {
    display: none;
}

@keyframes vd-eq-bar {
    0%, 100% { height: 20%; }
    25% { height: 80%; }
    50% { height: 40%; }
    75% { height: 100%; }
}

/* ==================== 评论区 ==================== */
.vd-comment-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ==================== 评论区深色适配 ==================== */
.vd-comment-wrap .ls-comment-box {
    background: transparent;
    color: rgb(255 255 255 / 90%);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: none;
}

/* 评论区深色背景：认证标识边框适配 */
.vd-comment-wrap .ls-avatar .ls-avatar-verify img {
    border-color: rgb(30 30 30);
    background: rgb(30 30 30);
}

/* 菜单栏 */
.vd-comment-wrap .ls-comment-menu {
    border-bottom: 1px solid rgb(255 255 255 / 8%) !important;
    padding: 12px 16px;
    background: transparent;
}

.vd-comment-wrap .ls-comment-count {
    color: rgb(255 255 255 / 80%);
}

.vd-comment-wrap .ls-comment-count em {
    color: #fff;
}

.vd-comment-wrap .ls-comment-tabs {
    background: transparent !important;
}

.vd-comment-wrap .ls-comment-tabs .tab-item {
    color: rgb(255 255 255 / 50%) !important;
    background: transparent !important;
    border-color: transparent !important;
}

.vd-comment-wrap .ls-comment-tabs .tab-item:hover {
    color: rgb(255 255 255 / 75%) !important;
}

.vd-comment-wrap .ls-comment-tabs .tab-item.on {
    color: #fff !important;
}

/* 评论输入框 */
.vd-comment-wrap .ls-comment-form {
    padding: 10px;
}
.vd-comment-wrap .ls-comment-reply-form .ls-comment-toolbar {
    padding: 5px 10px 10px;
}
.vd-comment-wrap .ls-comment-textarea {
    background: rgb(255 255 255 / 8%) !important;
    border: 1px solid rgb(255 255 255 / 10%) !important;
    color: #fff !important;
    border-radius: 8px;
}

.vd-comment-wrap .ls-comment-textarea::placeholder {
    color: rgb(255 255 255 / 35%);
}

.vd-comment-wrap .ls-comment-textarea:focus {
    border-color: rgb(255 255 255 / 20%) !important;
    background: rgb(255 255 255 / 10%) !important;
}

/* LSEditor 深色适配 */
.vd-comment-wrap .ls-comment-form .ls-editor {
    color: #fff;
}

.vd-comment-wrap .ls-comment-form .ls-editor:empty:not(:focus)::before {
    color: rgb(255 255 255 / 35%);
}

.vd-comment-wrap .ls-comment-reply-form .ls-editor {
    color: #fff;
}

.vd-comment-wrap .ls-comment-reply-form .ls-editor:empty:not(:focus)::before {
    color: rgb(255 255 255 / 35%);
}

.vd-comment-wrap .ls-comment-toolbar .tool-btn {
    color: rgb(255 255 255 / 50%);
    width: 22px;
}

.vd-comment-wrap .ls-comment-toolbar .tool-btn:hover {
    color: rgb(255 255 255 / 80%);
}
.vd-comment-wrap .ls-comment-toolbar .tool-btn:hover {
    background: #ffffff00;
}
.vd-comment-wrap .ls-comment-toolbar .tool-btn .remix-icon {
    font-size: 16px;
}
.vd-comment-wrap .ls-comment-submit {
    background: #fe2c55 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
}

/* 评论图片上传区 */
.vd-comment-wrap .ls-comment-img-list {
    border-color: rgb(255 255 255 / 8%) !important;
}

/* @用户标签 */
.vd-comment-wrap .ls-at-tags {
    background: transparent;
}

.vd-comment-wrap .ls-at-tags .ls-at-tag {
    background: rgb(255 255 255 / 10%) !important;
    color: rgb(255 255 255 / 80%) !important;
    border-color: rgb(255 255 255 / 15%) !important;
}

/* 评论列表 */
.vd-comment-wrap .ls-comment-list {
    flex: 1;
    overflow-y: auto;
}

.vd-comment-wrap .ls-comment-list::-webkit-scrollbar {
    width: 4px;
}

.vd-comment-wrap .ls-comment-list::-webkit-scrollbar-thumb {
    background: rgb(255 255 255 / 15%);
    border-radius: 4px;
}

/* 评论用户名 */
.vd-comment-wrap .ls-comment-item {
    align-items: flex-start;
}

.vd-comment-wrap .ls-ci-header .ls-ci-name,
.vd-comment-wrap .ls-ci-header .ls-ci-name a,
.vd-comment-wrap .ls-ci-user,
.vd-comment-wrap .ls-ci-user a {
    color: rgb(255 255 255 / 85%) !important;
}

.vd-comment-wrap .ls-ci-user:hover,
.vd-comment-wrap .ls-ci-user a:hover {
    color: #4ea4f6 !important;
}

.vd-comment-wrap .ls-ci-nickname {
    color: inherit !important;
}

/* 评论等级/VIP标签 */
.vd-comment-wrap .ls-ci-header .ls-ci-lv,
.vd-comment-wrap .ls-ci-header .ls-ci-vip {
    opacity: 0.85;
}

/* 作者标 */
.vd-comment-wrap .ls-ci-header .ls-ci-author-tag {
    background: rgb(254 44 85 / 15%) !important;
    color: #fe2c55 !important;
    border-color: rgb(254 44 85 / 25%) !important;
}

/* 评论内容 */
.vd-comment-wrap .ls-ci-content {
    color: rgb(255 255 255 / 80%);
}

.vd-comment-wrap .ls-ci-content a {
    color: #4ea4f6 !important;
}

/* 引用回复 */
.vd-comment-wrap .ls-ci-quote {
    background: rgb(255 255 255 / 5%) !important;
    border-color: rgb(255 255 255 / 10%) !important;
    color: rgb(255 255 255 / 60%) !important;
}

/* 评论图片 */
.vd-comment-wrap .ls-ci-images img {
    border-color: rgb(255 255 255 / 10%) !important;
}

/* 操作栏 */
.vd-comment-wrap .ls-ci-bar {
    justify-content: flex-end;
}

.vd-comment-wrap .ls-ci-bar-left {
    font-size: 11px;
}

.vd-comment-wrap .ls-ci-bar-left span,
.vd-comment-wrap .ls-ci-bar-left .ls-ci-time {
    color: rgb(255 255 255 / 35%) !important;
}

.vd-comment-wrap .ls-ci-bar-right > span {
    color: rgb(255 255 255 / 45%) !important;
}

.vd-comment-wrap .ls-ci-bar-right > span:hover {
    color: rgb(255 255 255 / 75%) !important;
    background: rgb(255 255 255 / 8%) !important;
}

.vd-comment-wrap .ls-ci-bar .ls-ci-action {
    color: rgb(255 255 255 / 45%) !important;
}

.vd-comment-wrap .ls-ci-bar .ls-ci-action:hover {
    color: rgb(255 255 255 / 75%) !important;
}

.vd-comment-wrap .ls-ci-bar .ls-ci-action.ls-liked,
.vd-comment-wrap .ls-ci-bar .ls-ci-action.ls-liked i {
    color: #fe2c55 !important;
}

/* 点赞激活深色适配 */
.vd-comment-wrap .ls-ci-up.is-up {
    color: #fe2c55 !important;
}

.vd-comment-wrap .ls-ci-up.is-up:hover {
    color: #fe2c55 !important;
    background: rgb(254 44 85 / 10%) !important;
}

/* 评论项间距修复 */
.vd-comment-wrap .ls-comment-item {
    border-bottom: 1px solid rgb(255 255 255 / 6%) !important;
    border-top: none !important;
}

.vd-comment-wrap .ls-comment-list > .ls-comment-item + .ls-comment-item {
    border-top: none !important;
}

/* 引用回复深色适配 */
.vd-comment-wrap .ls-ci-reply-ref {
    background: rgb(255 255 255 / 5%) !important;
    border-color: rgb(255 255 255 / 10%) !important;
    color: rgb(255 255 255 / 50%) !important;
}

.vd-comment-wrap .ls-ci-reply-ref:hover {
    background: rgb(255 255 255 / 8%) !important;
}

/* 置顶标签深色适配 */
.vd-comment-wrap .ls-ci-content .comment-sticky {
    color: #fe2c55 !important;
    border-color: rgb(254 44 85 / 30%) !important;
}

/* 子评论 */
.vd-comment-wrap .ls-ci-child-load-more,
.vd-comment-wrap .ls-ci-child-fold {
    color: #4ea4f6 !important;
}

.vd-comment-wrap .ls-ci-child-list {
    position: relative;
    border-left: 0 !important;
    padding: 0;
    margin: 0;
}

.vd-comment-wrap .ls-ci-child-list::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 12px;
    width: 2px;
    transform: translateX(-50%);
    background: rgb(255 255 255 / 8%);
    border-radius: 999px;
    pointer-events: none;
}

.vd-comment-wrap .ls-ci-child-list .ls-comment-item {
    position: relative;
}

/* 回复框 */
.vd-comment-wrap .ls-comment-reply-form {
    background: rgb(255 255 255 / 3%) !important;
    border-color: rgb(255 255 255 / 8%) !important;
}

.vd-comment-wrap .ls-comment-reply-form .ls-comment-textarea {
    background: rgb(255 255 255 / 6%) !important;
}

/* 评论空状态 */
.vd-comment-wrap .ls-comment-empty {
    color: rgb(255 255 255 / 40%);
}

/* 加载更多 */
.vd-comment-wrap .ls-comment-load-more {
    color: rgb(255 255 255 / 45%) !important;
    border-color: rgb(255 255 255 / 8%) !important;
}

.vd-comment-wrap .ls-comment-load-more:hover {
    color: rgb(255 255 255 / 70%) !important;
}

/* ==================== 作者面板 ==================== */
.vd-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

/* 作者头像深色背景适配 */
.vd-author-info .ls-avatar .ls-avatar-verify img {
    border-color: rgb(30 30 30);
    background: rgb(30 30 30);
}

.vd-author-body {
    flex: 1;
    min-width: 0;
}

.vd-author-name {
    font-size: 16px;
    line-height: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vd-author-name a {
    color: #fff;
    text-decoration: none;
}

.vd-author-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgb(255 255 255 / 55%);
    line-height: 18px;
}

.vd-author-stats i {
    width: 1px;
    height: 10px;
    background: rgb(255 255 255 / 20%);
    display: block;
}

.vd-author-follow {
    white-space: nowrap;
    padding: 6px 20px;
    border-radius: 4px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #fe2c55;
    color: #fff;
    transition: opacity .2s;
}

.vd-author-follow:hover {
    opacity: 0.85;
}

.vd-author-follow.had,
.vd-author-follow.followed {
    background: rgb(255 255 255 / 12%);
    color: rgb(255 255 255 / 70%);
}

/* 作者面板容器 */
#vd-author-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* 作者视频网格 */
.vd-author-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 16px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    align-items: start;
    grid-auto-rows: min-content;
    flex: 1;
    min-height: 0;
}

.vd-author-grid::-webkit-scrollbar {
    width: 4px;
}

.vd-author-grid::-webkit-scrollbar-track {
    background: none;
}

.vd-author-grid::-webkit-scrollbar-thumb {
    background: rgb(255 255 255 / 15%);
    border-radius: 4px;
}

.vd-author-grid-item {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.vd-author-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.vd-author-grid-item:hover img {
    transform: scale(1.08);
}

/* 作者网格当前播放项 */
.vd-author-grid-item.ls-on {
    outline: 2px solid #fe2c55;
    outline-offset: -2px;
}

.vd-author-grid-item .vd-equalizer {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
}

.vd-author-grid-item.ls-on .vd-equalizer {
    display: flex;
}

.vd-grid-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
}

.vd-grid-overlay i {
    font-size: 12px;
}

/* ==================== 空状态 ==================== */
.vd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    color: rgb(255 255 255 / 40%);
    grid-column: 1 / -1;
}

.vd-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.vd-empty span {
    font-size: 13px;
}

/* ==================== 切换动画入场 ==================== */
/* 默认隐藏，避免在 prev/next slot 中闪现 */
.vd-bottom-info,
.vd-action-bar {
    opacity: 0;
    transform: translateY(20px);
}

.vd-slot[data-slot="current"] .vd-bottom-info,
.vd-slot[data-slot="current"] .vd-action-bar {
    animation: vd-fade-up .4s ease .1s both;
}

@keyframes vd-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 加载动画 ==================== */
.vd-rec-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    color: rgb(255 255 255 / 40%);
    font-size: 13px;
}

/* ==================== 矮视口（平板横屏、小窗口） ==================== */
@media (max-height: 560px), (max-height: 760px) and (pointer: coarse) {
    .vd-action-bar {
        gap: 12px;
        bottom: calc(72px + var(--vd-safe-bottom, 0px));
    }

    .vd-action-avatar {
        margin-bottom: 2px;
    }

    .vd-action-avatar a,
    .vd-action-icon {
        width: 40px;
        height: 40px;
    }

    .vd-action-icon i {
        font-size: 20px;
    }

    .vd-toolbar-left {
        gap: 12px;
    }

    .vd-tool-btn {
        width: 40px;
        height: 40px;
    }
}

/* ---- 表情面板（通用组件，配合 emoji.js 使用） ---- */
.ls-emoji-panel {
    width: 360px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #e4e4e7;
}

.ls-emoji-tabs {
    display: flex;
    gap: 0;
    padding: 0 6px;
    border-bottom: 1px solid #f4f4f5;
    overflow-x: auto;
}

.ls-emoji-tabs::-webkit-scrollbar {
    display: none;
}

.ls-emoji-tab {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
    color: #71717a;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ls-emoji-tab:hover {
    color: #18181b;
}

.ls-emoji-tab.active {
    color: var(--ls-theme-color, #2563eb);
    border-bottom-color: var(--ls-theme-color, #2563eb);
}

.ls-emoji-tab img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.ls-emoji-body {
    padding: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.ls-emoji-body::-webkit-scrollbar {
    width: 4px;
}

.ls-emoji-body::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 2px;
}

.ls-emoji-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 2px;
}

.ls-emoji-group[data-type="text"] {
    grid-template-columns: repeat(auto-fill, minmax(auto, max-content));
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ls-emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.1s;
}

.ls-emoji-item:hover {
    background: #f4f4f5;
}

.ls-emoji-img {
    width: 100%;
    aspect-ratio: 1;
    padding: 3px;
}

.ls-emoji-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ls-emoji-text {
    padding: 4px 8px;
    font-size: 13px;
    color: #18181b;
    border-radius: 6px;
    background: #f4f4f5;
}

/* ============================================
   LS Comment - 全新评论区样式
   ============================================ */

/* 评论区容器 */
.ls-comment-box {
    padding: 16px;
    border-top: 1px solid #f4f4f5;
}

/* ---- 菜单栏 ---- */
.ls-comment-menu {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.ls-comment-count {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-right: auto;
}

.ls-comment-count em {
    font-style: normal;
}

.ls-comment-tabs {
    display: flex;
    background: #f4f4f5;
    border-radius: 6px;
    padding: 2px;
}

.ls-comment-tabs .tab-item {
    padding: 4px 12px;
    font-size: 12px;
    color: #71717a;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
    white-space: nowrap;
}

.ls-comment-tabs .tab-item:hover {
    color: #3f3f46;
}

.ls-comment-tabs .tab-item.on {
    background: #fff;
    color: #18181b;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* ---- 评论输入框 ---- */
.ls-comment-form {
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: border-color 0.15s;
}

.ls-comment-form:focus-within {
    border-color: #a1a1aa;
}

.ls-comment-form .ls-comment-textarea {
    width: 100%;
    padding: 12px 14px 6px;
    border: none;
    background: transparent;
    resize: none;
    height: 44px;
    max-height: 180px;
    font-size: 13px;
    line-height: 1.6;
    color: #18181b;
    outline: none;
}

.ls-comment-form .ls-comment-textarea::placeholder {
    color: #a1a1aa;
}

/* 图片上传列表 */
.ls-comment-img-list {
    display: inline-flex;
    gap: 6px;
    padding: 0 14px;
    flex-wrap: wrap;
}

.ls-comment-img-list:empty {
    display: none;
}

.ls-comment-img-list li {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

/* 上传列表里的图点开是灯箱（`LS.imgPicker` 给每张图挂了 `data-lightbox`），
   所以指针给放大镜 —— 不给的话它和右上角的删除按钮共用一个普通手型，
   看不出这张图本身也是可以点的。 */
.ls-comment-img-list li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.ls-comment-img-list li .close {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: rgba(0,0,0,0.55);
    border-radius: 0 8px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.15s;
    cursor: pointer;
}

.ls-comment-img-list li:hover .close {
    opacity: 1;
}

/* 评论结构化工具预览：位置、群聊 */
.ls-comment-extra-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 14px 6px;
}

.ls-comment-extra-list:empty {
    display: none;
}

.ls-comment-extra-card {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
}

.ls-comment-extra-card > i,
.ls-comment-extra-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #eff6ff;
    color: var(--ls-primary, #2563eb);
    overflow: hidden;
}

.ls-comment-extra-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-comment-extra-card > div:not(.ls-comment-extra-avatar) {
    min-width: 0;
    flex: 1;
}

.ls-comment-extra-card strong,
.ls-comment-extra-card span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-comment-extra-card strong {
    font-size: 13px;
    color: #111827;
}

.ls-comment-extra-card span {
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
}

.ls-comment-extra-remove {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: transparent;
    cursor: pointer;
}

.ls-comment-extra-remove:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* 图片拖拽排序 */
.ls-comment-img-list li.ls-img-sort-ghost {
    opacity: 0.35;
}
.ls-comment-img-list li.ls-img-sort-chosen {
    cursor: grabbing;
}
.ls-comment-img-list li.ls-img-sort-drag {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* 工具栏 */
.ls-comment-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 6px;
}

.ls-comment-toolbar .toolbar-left {
    display: flex;
    gap: 5px;
}

.ls-comment-toolbar .tool-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    color: #a1a1aa;
    transition: all 0.15s;
    font-size: 17px;
}

.ls-comment-toolbar .tool-btn:hover {
    color: #52525b;
    background: #f4f4f5;
}

.ls-comment-toolbar .tool-btn.is-active {
    color: var(--ls-primary, #2563eb);
    background: rgba(37, 99, 235, 0.08);
}

/* 被挡住的图：整张压一个锁，图本身就是服务端发来的打码图。

   **这里不再叠 `filter: blur()`。** 服务端发的是一张 48 px 的小图，浏览器把它
   拉到几百像素本身就够朦胧；再叠一层高斯会把仅有的轮廓也糊掉，而「看得出画的
   是什么」正是这张图存在的理由 —— 让人想买。

   安全不靠这一层：服务端那边要么发打码图、要么发一点灰
   （`server-api/src/infra/image.rs` 的 `blur_pending`），**原图地址一次都不出现**。 */
.ls-ci-images-locked img {
    background: var(--ls-bg-secondary, #e9ebee);
    /* 评论那一格只有 90 px 上下，放大不到两倍，1 px 就够把块状抹平。
       判据与另外两档见 `pc/css/post-list.css` 那一段。 */
    filter: blur(1px);
}

.ls-ci-images-locked a {
    position: relative;
    overflow: hidden;
}

/* 能解锁的那种整块可点；锁图标自己不收事件，免得点在它上面时
   `event.target.closest('.ls-ci-img-locked')` 还要多跳一层。 */
.ls-ci-img-locked[data-comment-id] {
    cursor: pointer;
}

.ls-ci-img-lock {
    pointer-events: none;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* 能解锁的那张，鼠标悬上去锁放大一点，看得出它是能点的。 */
.ls-ci-img-locked[data-comment-id] .ls-ci-img-lock {
    transition: transform 0.15s;
}

.ls-ci-img-locked[data-comment-id]:hover .ls-ci-img-lock {
    transform: scale(1.12);
}

/* 档位标识：底栏左边那一组里，紧跟在「来自哪个端」后面。 */
.ls-ci-bar .ls-ci-visibility-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #ff9800;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.ls-ci-bar .ls-ci-visibility-tag i {
    font-size: 13px;
}

/* 解锁卡片：正文被挡住时顶替正文那一块。 */
.ls-ci-paywall {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 4px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 152, 0, 0.22);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08), rgba(255, 152, 0, 0.03));
    font-size: 13px;
    color: var(--ls-text-secondary, #6b7280);
}

.ls-ci-paywall-icon {
    flex-shrink: 0;
    font-size: 16px;
    color: #ff9800;
}

.ls-ci-paywall-text {
    flex: 1;
    min-width: 0;
}

.ls-ci-paywall-btn {
    flex-shrink: 0;
    height: 28px;
    padding: 0 16px;
    border: none;
    border-radius: 14px;
    background: #ff9800;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s;
}

.ls-ci-paywall-btn:hover {
    background: #f57c00;
}

/* 可见范围菜单。挂在 body 上按视口坐标定位（`position: fixed`）——
   评论框为了圆角带着 `overflow: hidden`，挂在里面会被整块裁掉。
   层级、圆角、投影与出场动画都照站点通用浮层 `.ls-dropdown` 那一套。 */
.ls-comment-visibility-menu {
    position: fixed;
    z-index: 10020;
    width: 268px;
    padding: 10px;
    border-radius: 10px;
    background: var(--ls-card-bg, #fff);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
    transform-origin: top left;
    transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 翻到按钮上方时出场也要从下边缘长出来，否则动画方向和位置是反的。 */
.ls-comment-visibility-menu.is-above {
    transform: scale(0.96) translateY(4px);
    transform-origin: bottom left;
}

.ls-comment-visibility-menu.is-open {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.ls-comment-visibility-menu .ls-cvm-hd {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ls-text-tertiary, #9ca3af);
}

.ls-comment-visibility-menu .ls-cvm-tiers,
.ls-comment-visibility-menu .ls-cvm-currency {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ls-comment-visibility-menu .ls-cvm-item,
.ls-comment-visibility-menu .ls-cvm-coin {
    padding: 4px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--ls-bg-secondary, #f3f4f6);
    font-size: 12px;
    line-height: 18px;
    color: var(--ls-text-secondary, #4b5563);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ls-comment-visibility-menu .ls-cvm-item:hover,
.ls-comment-visibility-menu .ls-cvm-coin:hover {
    border-color: var(--ls-primary, #2563eb);
    color: var(--ls-primary, #2563eb);
}

.ls-comment-visibility-menu .ls-cvm-item.is-active,
.ls-comment-visibility-menu .ls-cvm-coin.is-active {
    border-color: var(--ls-primary, #2563eb);
    background: var(--ls-primary, #2563eb);
    color: #fff;
}

/* 付费那一段：只在选中「付费可见」时展开，收起时整段不占位。 */
.ls-comment-visibility-menu .ls-cvm-pay {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--ls-border, #eceef1);
}

/* **这一条不能省**：浏览器给 `[hidden]` 的是 `display: none`，
   而上面那条 `display: flex` 的选择器更具体，会把它盖掉 ——
   少了这一句，付费的货币与价钱在每一档下面都摆着。 */
.ls-comment-visibility-menu .ls-cvm-pay[hidden] {
    display: none;
}

.ls-comment-visibility-menu .ls-cvm-price {
    display: flex;
    align-items: center;
    height: 30px;
    padding-right: 10px;
    border: 1px solid var(--ls-border, #e5e6eb);
    border-radius: 8px;
    transition: border-color 0.15s;
}

.ls-comment-visibility-menu .ls-cvm-price:focus-within {
    border-color: var(--ls-primary, #2563eb);
}

.ls-comment-visibility-menu .ls-cvm-amount {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    color: var(--ls-text, #18181b);
    outline: none;
}

.ls-comment-visibility-menu .ls-cvm-unit {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--ls-text-tertiary, #9ca3af);
}

.ls-comment-visibility-menu .ls-cvm-rmb {
    font-size: 12px;
    line-height: 1.5;
    color: var(--ls-text-tertiary, #9ca3af);
}

.ls-comment-visibility-menu .ls-cvm-imgonly {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--ls-text-secondary, #4b5563);
    cursor: pointer;
}

/* 与付费那一段同理：`display: flex` 的选择器更具体，会盖掉 `[hidden]`。 */
.ls-comment-visibility-menu .ls-cvm-imgonly[hidden] {
    display: none;
}

.ls-comment-visibility-menu .ls-cvm-imgonly-input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--ls-primary, #2563eb);
    cursor: pointer;
}

/* 提交按钮 */
.ls-comment-submit {
    padding: 0 18px;
    height: 30px;
    border: none;
    border-radius: 15px;
    background: var(--ls-primary, #2563eb);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 30px;
}

.ls-comment-submit:hover {
    filter: brightness(1.08);
}

.ls-comment-submit.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* @用户列表 */
.ls-comment-at-box:empty {
    display: none;
}

.ls-comment-at-box {
    padding: 4px 14px 8px;
}

/* ---- 评论列表 ---- */
.ls-comment-list {
    display: flex;
    flex-direction: column;
}

/* ---- 评论项 ---- */
.ls-comment-item {
    display: flex;
    gap: 10px;
    padding: 14px 0;
}

.ls-comment-item > .ls-avatar .lsaf-avatar-hook {
    display: block;
    width: 100%;
    height: 100%;
}

.ls-comment-item > .ls-avatar .ls-avatar-frame {
    pointer-events: none;
}

.ls-comment-list > .ls-comment-item + .ls-comment-item {
    border-top: 1px solid #f4f4f5;
}

/* 闪烁 */
.ls-comment-item.fade {
    animation: ls-fade 1.2s ease;
}

/* 通知跳转高亮 */
.ls-comment-item.ls-comment-focus {
    background: rgba(37, 99, 235, 0.05);
    border-radius: 6px;
    padding: 10px;
}

@keyframes ls-fade {
    0%, 40% { background: rgba(37, 99, 235, 0.04); }
    100% { background: transparent; }
}

/* 主体 */
.ls-ci-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 用户信息 */
.ls-ci-header {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ls-ci-user {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 500;
    color: #18181b;
}

.ls-ci-user:hover {
    color: var(--ls-theme-color, #2563eb);
}

.ls-ci-nickname {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-ci-header .ls-mark {
    font-size: 10px;
    padding: 0 4px;
    line-height: 16px;
    border-radius: 3px;
}

.ls-ci-header .ls-user-title {
    flex-shrink: 0;
}

.ls-ci-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.ls-ci-badge {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 5px;
    border-radius: 3px;
    background: #f4f4f5;
    color: #52525b;
    font-size: 10px;
    line-height: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.ls-ci-badge-author-engaged {
    background: rgba(37, 99, 235, 0.08);
    color: var(--ls-theme-color, #2563eb);
}

.ls-ci-badge-supporter {
    background: #fff7ed;
    color: #c2410c;
}

.ls-ci-badge-highlight {
    background: #f8fafc;
    color: #52525b;
}

.ls-ci-badge-part-author {
    color: var(--ls-theme-color, #2563eb);
}

.ls-ci-badge-part-supporter {
    color: #c2410c;
}

.ls-ci-badge-sep {
    margin: 0 4px;
    color: #a1a1aa;
}

/* 评论内容 */
.ls-ci-content {
    font-size: 14px;
    line-height: 1.7;
    color: #27272a;
    word-break: break-word;
}

.ls-ci-content .comment-sticky {
    display: inline-block;
    padding: 0 5px;
    font-size: 10px;
    line-height: 16px;
    color: #f43f5e;
    border: 1px solid #fda4af;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: text-bottom;
    font-weight: 500;
}

/* 引用回复 */
.ls-ci-reply-ref {
    background: #fafafa;
    border-left: 2px solid #e4e4e7;
    border-radius: 0 6px 6px 0;
    padding: 6px 10px;
    margin-bottom: 4px;
    font-size: 12px;
    color: #71717a;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-ci-reply-ref:hover {
    background: #f4f4f5;
}

/* @用户 */
.ls-ci-at-list {
    display: inline;
}

.ls-ci-at {
    color: #2563eb;
    margin-right: 2px;
    font-size: inherit;
    font-weight: 500;
}

.ls-ci-at:hover {
    text-decoration: underline;
}

/* 评论图片 */
.ls-ci-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-width: 280px;
    margin-top: 6px;
}

.ls-ci-images.img-1 {
    grid-template-columns: 1fr;
    max-width: 160px;
}

.ls-ci-images.img-2 {
    grid-template-columns: 1fr 1fr;
    max-width: 220px;
}

.ls-ci-images a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
}

.ls-ci-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.ls-ci-images a:hover img {
    transform: scale(1.03);
}

.ls-ci-images k.gif {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* 评论中的位置行 */
.ls-ci-location-line {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    margin-top: 4px;
    color: #2563eb;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
    vertical-align: top;
}

.ls-ci-location-line i {
    font-size: 15px;
    color: #3b82f6;
}

.ls-ci-location-line span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-ci-location-line:hover {
    color: #1d4ed8;
}

/* 评论中的群聊卡片 */
.ls-ci-tool-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(340px, 100%);
    min-height: 68px;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.ls-ci-tool-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.ls-ci-card-avatar {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0284c7;
}

.ls-ci-card-avatar {
    background: #eef2ff;
    color: #4f46e5;
}

.ls-ci-card-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-ci-card-info {
    min-width: 0;
    flex: 1;
}

.ls-ci-card-info strong,
.ls-ci-card-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-ci-card-info strong {
    font-size: 14px;
    color: #111827;
}

.ls-ci-card-info span {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

/* ---- 操作栏 ---- */
.ls-ci-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.ls-ci-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a1a1aa;
}

.ls-ci-bar-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.ls-ci-bar-right > span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 12px;
    color: #a1a1aa;
    transition: all 0.15s;
}

.ls-ci-bar-right > span:hover {
    background: #f4f4f5;
    color: #52525b;
}

.ls-ci-bar-right > span i {
    font-size: 14px;
}

.ls-ci-bar-right > span em {
    font-style: normal;
}

/* 点赞激活 */
.ls-ci-up.is-up {
    color: #f43f5e !important;
}

.ls-ci-up.is-up:hover {
    color: #f43f5e !important;
    background: #fff1f2 !important;
}

/* ---- 子评论 ---- */
.ls-ci-child-list {
    margin-top: 6px;
    margin-left: 4px;
    padding-left: 12px;
    border-left: 2px solid #f4f4f5;
}

.ls-ci-child-list:empty {
    display: none;
}

.ls-ci-child-list .ls-comment-item {
    padding: 10px 0;
}

/* 子评论头像缩小 */
.ls-ci-child-list .ls-avatar {
    width: 24px;
    height: 24px;
}

.ls-ci-child-list .ls-avatar img.avatar,
.ls-ci-child-list .ls-avatar > a > img {
    width: 24px;
    height: 24px;
}

.ls-ci-child-list .ls-avatar .ls-avatar-verify img {
    width: 12px;
    height: 12px;
}
.ls-ci-child-list .ls-avatar .ls-online-dot { width: 6px; height: 6px; }

.ls-ci-child-list .ls-ci-content {
    font-size: 13px;
}

/* 子评论操作按钮 */
.ls-ci-child-more {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.ls-ci-child-more span {
    font-size: 12px;
    color: var(--ls-theme-color, #2563eb);
    cursor: pointer;
    transition: opacity 0.15s;
}

.ls-ci-child-more span:hover {
    opacity: 0.7;
}

/* 「共 N 条回复」里的条数：em 是给 JS 定位用的，别让它斜体 */
.ls-ci-child-more em {
    font-style: normal;
}

.ls-ci-child-fold {
    color: #a1a1aa !important;
}

/* ---- 加载更多 ---- */
.ls-comment-load-more {
    text-align: center;
    padding: 8px 0 0;
}

.ls-comment-load-more span {
    font-size: 13px;
    color: var(--ls-theme-color, #2563eb);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    transition: opacity 0.15s;
}

.ls-comment-load-more span:hover {
    opacity: 0.7;
}

.ls-comment-load-more span i {
    font-size: 16px;
}

/* 空状态 */
.ls-comment-empty {
    text-align: center;
    padding: 36px 0;
    color: #a1a1aa;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ls-comment-empty i {
    font-size: 32px;
    color: #d4d4d8;
}

/* 加载中 */
.ls-comment-loading {
    text-align: center;
    padding: 20px 0;
}

/* ---- 回复框 ---- */
.ls-comment-reply-form {
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    overflow: hidden;
    margin: 8px 0;
    transition: border-color 0.15s;
}

.ls-comment-reply-form:focus-within {
    border-color: #a1a1aa;
}

.ls-comment-reply-form .ls-comment-textarea {
    width: 100%;
    padding: 10px 12px 4px;
    border: none;
    background: transparent;
    resize: none;
    height: 38px;
    max-height: 120px;
    font-size: 13px;
    line-height: 1.5;
    color: #18181b;
    outline: none;
}

.ls-comment-reply-form .ls-comment-toolbar {
    padding: 2px 6px 4px;
}

.ls-comment-reply-form .ls-comment-submit {
    height: 26px;
    padding: 0 14px;
    font-size: 12px;
    line-height: 26px;
    border-radius: 13px;
}

.ls-comment-reply-form .tool-btn {
    width: 26px;
    height: 26px;
    font-size: 15px;
}

/* ---- LSEditor 编辑器 ---- */
.ls-editor {
    border: none;
    background: transparent;
}

/* 主评论框 LSEditor */
.ls-comment-form .ls-editor {
    min-height: 44px;
    max-height: 180px;
    padding: 12px 14px 6px;
    font-size: 13px;
    line-height: 1.6;
    color: #18181b;
    outline: none;
    word-break: break-word;
    overflow-y: auto;
}

/* 回复框 LSEditor */
.ls-comment-reply-form .ls-editor {
    min-height: 38px;
    max-height: 120px;
    padding: 10px 12px 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #18181b;
    outline: none;
    word-break: break-word;
    overflow-y: auto;
}

.ls-editor:empty:not(:focus)::before {
    content: attr(data-placeholder);
    color: #a1a1aa;
    pointer-events: none;
}

.ls-editor .ls-emoji {
    width: auto;
    height: 1.4em;
    vertical-align: middle;
    margin: 0 1px;
}

/* ---- 语音条（评论列表） ---- */
.ls-ci-voice {
    --ls-voice-duration: 1;
    --ls-voice-width: clamp(82px, calc(82px + (var(--ls-voice-duration) - 1) * 3px), 180px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    min-width: 82px;
    width: var(--ls-voice-width);
    max-width: 180px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #bfd6ff;
    background: linear-gradient(90deg, #f3f8ff 0%, #e7f0ff 100%);
    color: #1d4ed8;
    cursor: pointer;
    user-select: none;
    transition: all .2s ease;
}

.ls-ci-voice:hover {
    border-color: #93c5fd;
}

.ls-ci-voice em {
    margin-left: auto;
    font-style: normal;
    font-size: 12px;
    color: #1e40af;
}

.ls-ci-voice-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.ls-ci-voice-wave i {
    display: block;
    width: 2px;
    border-radius: 999px;
    background: #60a5fa;
}

.ls-ci-voice-wave i:nth-child(1) { height: 5px; }
.ls-ci-voice-wave i:nth-child(2) { height: 9px; }
.ls-ci-voice-wave i:nth-child(3) { height: 7px; }
.ls-ci-voice-wave i:nth-child(4) { height: 10px; }
.ls-ci-voice-wave i:nth-child(5) { height: 6px; }

.ls-ci-voice.is-playing {
    border-color: #60a5fa;
    background: linear-gradient(90deg, #e7f1ff 0%, #dbeafe 100%);
}

.ls-ci-voice.is-playing .ls-ci-voice-wave i {
    animation: ls-ci-voice-playing .8s ease-in-out infinite;
}

.ls-ci-voice.is-playing .ls-ci-voice-wave i:nth-child(1) { animation-delay: .02s; }
.ls-ci-voice.is-playing .ls-ci-voice-wave i:nth-child(2) { animation-delay: .12s; }
.ls-ci-voice.is-playing .ls-ci-voice-wave i:nth-child(3) { animation-delay: .22s; }
.ls-ci-voice.is-playing .ls-ci-voice-wave i:nth-child(4) { animation-delay: .32s; }
.ls-ci-voice.is-playing .ls-ci-voice-wave i:nth-child(5) { animation-delay: .42s; }

@keyframes ls-ci-voice-playing {
    0%, 100% {
        transform: scaleY(.55);
        opacity: .55;
    }
    50% {
        transform: scaleY(1.35);
        opacity: 1;
    }
}

/* 群聊选择弹窗 */
.ls-comment-group-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ls-comment-group-tabs {
    display: flex;
    gap: 8px;
}

.ls-comment-group-tabs button {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    cursor: pointer;
}

.ls-comment-group-tabs button:hover,
.ls-comment-group-tabs button.is-active {
    border-color: var(--ls-primary, #2563eb);
    color: var(--ls-primary, #2563eb);
    background: #eff6ff;
}

.ls-comment-group-search {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #94a3b8;
    background: #f8fafc;
}

.ls-comment-group-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #111827;
}

.ls-comment-group-list {
    max-height: 360px;
    overflow-y: auto;
}

.ls-comment-group-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.ls-comment-group-item:hover {
    background: #f8fafc;
}

.ls-comment-group-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef2ff;
    color: #4f46e5;
}

.ls-comment-group-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-comment-group-main {
    min-width: 0;
    flex: 1;
}

.ls-comment-group-main strong,
.ls-comment-group-main em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-comment-group-main strong {
    font-size: 14px;
    color: #111827;
}

.ls-comment-group-main em {
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
    font-style: normal;
}

.ls-comment-group-empty,
.ls-comment-group-loading {
    padding: 32px 0;
    color: #94a3b8;
    text-align: center;
}

/**
 * @用户选择弹窗样式
 * 用于 SNS 首页快捷发布和评论区
 */

/* ========== 弹窗遮罩 ========== */
.ls-at-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10009;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
}

.ls-at-overlay.show {
    opacity: 1;
}

/* ========== 弹窗主体 ========== */
.ls-at-modal {
    width: 420px;
    max-width: 90vw;
    max-height: 80vh;
    max-height: 80dvh;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.ls-at-overlay.show .ls-at-modal {
    transform: translateY(0) scale(1);
}

/* ========== 头部 ========== */
.ls-at-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
}

.ls-at-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.ls-at-title span {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-left: 6px;
}

.ls-at-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    font-size: 14px;
}

.ls-at-close:hover {
    background: #e5e5e5;
    color: #333;
    transform: rotate(90deg);
}

/* ========== 搜索框 ========== */
.ls-at-search {
    padding: 0 20px 14px;
}

.ls-at-search-wrap {
    position: relative;
}

.ls-at-search-wrap > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

.ls-at-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    background: #f8f9fa;
    box-sizing: border-box;
}

.ls-at-search input::placeholder {
    color: #aaa;
}

.ls-at-search input:focus {
    border-color: var(--ls-color-primary, #1890ff);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

/* ========== 用户列表区域 ========== */
.ls-at-body {
    flex: 1;
    min-height: 200px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px 12px;
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.ls-at-body::-webkit-scrollbar {
    width: 5px;
}

.ls-at-body::-webkit-scrollbar-track {
    background: transparent;
}

.ls-at-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.ls-at-body::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.ls-at-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* ========== 用户项 ========== */
.ls-at-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    border: 1px solid transparent;
}

.ls-at-item:hover {
    border-color: #e8e8e8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ls-at-item.selected {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ls-at-item-info {
    flex: 1;
    min-width: 0;
}

.ls-at-item-name {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-at-item-name .ls-avatar-verify {
    margin-left: 4px;
    vertical-align: middle;
}

.ls-at-item-id {
    font-size: 11px;
    color: #999;
    margin-top: 1px;
}

.ls-at-item-check {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 11px;
}

.ls-at-item.selected .ls-at-item-check {
    background: var(--ls-color-primary, #1890ff);
    border-color: var(--ls-color-primary, #1890ff);
    color: #fff;
}

/* ========== 已选用户区域 ========== */
.ls-at-selected {
    padding: 14px 20px;
    background: #fff;
}

.ls-at-selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ls-at-selected-title {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.ls-at-selected-count {
    font-size: 11px;
    color: #fff;
    background: var(--ls-color-primary, #1890ff);
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.ls-at-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 80px;
    min-height: 32px;
    overflow-y: auto;
    align-content: flex-start;
}

.ls-at-selected-list::-webkit-scrollbar {
    width: 3px;
}

.ls-at-selected-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.ls-at-selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 4px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    transition: all 0.15s;
    max-width: 140px;
}

.ls-at-selected-tag:hover {
    background: #fff;
    border-color: #ddd;
}

.ls-at-selected-tag-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.ls-at-selected-tag-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ls-at-selected-tag-name {
    font-size: 12px;
    color: #333;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-at-selected-tag-remove {
    width: 16px;
    height: 16px;
    border: none;
    background: #e8e8e8;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 10px;
    border-radius: 50%;
    transition: all 0.15s;
    margin-left: 2px;
    flex-shrink: 0;
}

.ls-at-selected-tag-remove:hover {
    background: #ffebee;
    color: #f44336;
}

.ls-at-selected-empty {
    color: #bbb;
    font-size: 12px;
    padding: 6px 0;
    text-align: center;
    width: 100%;
}

/* ========== 底部按钮 ========== */
.ls-at-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 16px;
}

.ls-at-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ls-at-btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.ls-at-btn-cancel:hover {
    background: #e5e5e5;
    color: #333;
}

.ls-at-btn-confirm {
    background: var(--ls-color-primary, #1890ff);
    color: #fff;
    box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
}

.ls-at-btn-confirm:hover {
    filter: brightness(1.1);
    box-shadow: 0 3px 10px rgba(24, 144, 255, 0.4);
    transform: translateY(-1px);
}

.ls-at-btn-confirm:active {
    transform: translateY(0);
}

/* ========== 空状态和加载状态 ========== */
.ls-at-empty,
.ls-at-loading {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    padding: 40px 20px;
}

.ls-at-empty i,
.ls-at-loading i {
    font-size: 40px;
    margin-bottom: 12px;
    color: #ddd;
}

.ls-at-empty span,
.ls-at-loading span {
    font-size: 13px;
}

/* ========== @用户标签（评论区/发布区展示） ========== */
.ls-at-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 8px;
}

.ls-at-tags:empty {
    display: none;
}

.ls-at-tags .at {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 3px;
    background: #f0f7ff;
    border: 1px solid #d6e8fa;
    border-radius: 14px;
    font-size: 12px;
    color: var(--ls-color-primary, #1890ff);
    cursor: pointer;
    transition: all 0.15s;
}

.ls-at-tags .at:hover {
    background: #ffebee;
    border-color: #ffcdd2;
    color: #f44336;
}

.ls-at-tags .at img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.ls-at-tags .at .at-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 分组标题 ========== */
.ls-at-group-title {
    font-size: 11px;
    color: #999;
    padding: 8px 10px 4px;
    font-weight: 500;
}

.ls-at-group-title i {
    margin-right: 4px;
    font-size: 12px;
}

/**
 * LSMoveBBS - 移动帖子板块弹窗样式
 * 配合 pc/js/post-actions.js 使用
 */

.ls-move-bbs-modal-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ls-move-bbs-modal-content-title {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ls-bg);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--ls-border-light);
}

.ls-move-bbs-current-name,.ls-move-bbs-target-name {
    color: var(--ls-primary);
}

.ls-move-bbs-search-wrap {
    position: relative;
}

.ls-move-bbs-search-wrap > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

.ls-move-bbs-search-wrap input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--ls-border-light);
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    background: var(--ls-bg);
    box-sizing: border-box;
}

.ls-move-bbs-search-wrap input::placeholder {
    color: var(--ls-text-muted);
}

.ls-move-bbs-search-wrap input:focus {
    border-color: var(--ls-color-primary, #1890ff);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.ls-move-bbs-modal-content-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ls-move-bbs-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    border: 1px solid transparent;
}

.ls-move-bbs-list-item:hover {
    border-color: #e8e8e8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ls-move-bbs-list-item.selected {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ls-move-bbs-item-name {
    font-size: 14px;
}

.ls-move-bbs-item-check {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 12px;
}

.ls-move-bbs-list-item.selected .ls-move-bbs-item-check {
    background: var(--ls-color-primary, #1890ff);
    border-color: var(--ls-color-primary, #1890ff);
    color: #fff;
}
/**
 * Cloud File Picker - 云文件选择器样式
 *
 * @package LightSNS
 * @since 2026-02-08
 */

/* ===== 弹窗主体 ===== */
#ls-cloud-file {
    z-index: 10030;
}

#ls-cloud-file .ls-modal-content {
    height: 560px;
    max-height: 80vh;
    max-height: 80dvh;
}

#ls-cloud-file .ls-modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== 文件网格 ===== */
.ls-cf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    align-content: start;
}

.ls-cf-grid::-webkit-scrollbar {
    width: 4px;
}

.ls-cf-grid::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 2px;
}

/* ===== 文件项 ===== */
.ls-cf-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: var(--ls-bg, #f8fafc);
}

.ls-cf-item:hover {
    border-color: var(--ls-border, #e5e7eb);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 选中态 */
.ls-cf-item.selected {
    border-color: var(--ls-primary, #3b82f6);
    box-shadow: 0 0 0 1px var(--ls-primary, #3b82f6);
}

.ls-cf-item.selected .ls-cf-check {
    opacity: 1;
}

/* 勾选图标 */
.ls-cf-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: var(--ls-primary, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 3;
    pointer-events: none;
}

/* 后缀标签 */
.ls-cf-ext-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 1px 6px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.3px;
    z-index: 2;
    pointer-events: none;
}

/* ===== 缩略图区域 ===== */
.ls-cf-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background: #f4f4f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ls-cf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.ls-cf-item:hover .ls-cf-thumb img {
    transform: scale(1.03);
}

/* 视频播放图标 */
.ls-cf-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    z-index: 2;
    transition: background 0.15s;
}

.ls-cf-item:hover .ls-cf-play {
    background: rgba(0, 0, 0, 0.7);
}

/* 非图片类型的图标展示 */
.ls-cf-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ls-cf-icon i {
    font-size: 28px;
    color: var(--ls-text-muted, #9ca3af);
}

/* ===== 文件信息 ===== */
.ls-cf-info {
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 30px;
}

.ls-cf-name {
    font-size: 11px;
    color: var(--ls-text-secondary, #4b5563);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* 引用数 */
.ls-cf-biz {
    font-size: 10px;
    color: var(--ls-text-muted, #9ca3af);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 2px;
}

.ls-cf-biz i {
    font-size: 12px;
}

/* 删除按钮 */
.ls-cf-delete {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    z-index: 3;
    cursor: pointer;
}

.ls-cf-item:hover .ls-cf-delete {
    opacity: 1;
}

.ls-cf-delete:hover {
    background: var(--ls-danger, #ef4444);
}

/* ===== 预览按钮（在缩略图内部右下角） ===== */
.ls-cf-preview {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    z-index: 3;
    cursor: pointer;
}

.ls-cf-item:hover .ls-cf-preview {
    opacity: 1;
}

.ls-cf-preview:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* ===== 底部栏 ===== */

/* 外层只留左右的 24px 水槽（与 `.ls-cf-grid` 对齐），纵向内边距和分隔线
   全部交给里面那一层 `.ls-cf-footer`。
   两件事必须一起做：
   - 外层 `.ls-modal-footer` 默认 `justify-content:flex-end`，`.ls-cf-footer`
     不撑满就只有内容那么宽，于是它自己的 `space-between` 等于没有 ——
     「已选择 x 个」被挤到右边贴着「确定」；
   - 外层默认还画一条 `border-top`，里层再画一条就是两条平行线。 */
#ls-cloud-file .ls-modal-footer {
    padding: 0 24px;
    border-top: none;
}

.ls-cf-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--ls-border, #e5e7eb);
    flex-shrink: 0;
}

/* 「已选择 x 个 / x」贴住左边缘：`margin-right:auto` 让它和右侧那一组
   之间的空白全部落在中间，而不是被 `space-between` 按内容宽度分。 */
.ls-cf-footer-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: auto;
    gap: 12px;
    font-size: 13px;
    color: var(--ls-text-muted, #9ca3af);
}

.ls-cf-selected-count {
    color: var(--ls-primary, #3b82f6);
    font-weight: 500;
}

.ls-cf-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== 分页 ===== */
.ls-cf-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
}

.ls-cf-page-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ls-border, #e5e7eb);
    border-radius: 4px;
    background: #fff;
    color: var(--ls-text-secondary, #4b5563);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.ls-cf-page-btn:hover {
    border-color: var(--ls-primary, #3b82f6);
    color: var(--ls-primary, #3b82f6);
}

.ls-cf-page-btn.active {
    background: var(--ls-primary, #3b82f6);
    border-color: var(--ls-primary, #3b82f6);
    color: #fff;
}

.ls-cf-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== 空状态 ===== */
.ls-cf-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--ls-text-muted, #9ca3af);
    font-size: 13px;
    gap: 8px;
}

.ls-cf-empty i {
    font-size: 40px;
    color: #d4d4d8;
}

/* ===== 加载状态 ===== */
.ls-cf-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

/* ===== 音频预览播放器 ===== */
.ls-cf-audio-player {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10031;
    min-width: 300px;
}

.ls-cf-audio-player audio {
    height: 32px;
    flex: 1;
}

.ls-cf-audio-close {
    cursor: pointer;
    color: var(--ls-text-muted, #9ca3af);
    font-size: 16px;
    transition: color 0.15s;
}

.ls-cf-audio-close:hover {
    color: var(--ls-text, #1f2937);
}

/* ===== 视频预览弹窗 ===== */
.ls-cf-video-preview {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10031;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.ls-cf-video-preview.show {
    opacity: 1;
}

.ls-cf-video-wrap {
    width: 70vw;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.ls-cf-video-container {
    width: 100%;
    height: 100%;
}

.ls-cf-video-container video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.ls-cf-video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.15s;
}

.ls-cf-video-close:hover {
    color: #fff;
}


/**
 * 弹幕系统样式
 * vd-dm- 前缀命名
 */

/* ==================== 弹幕面板容器 ==================== */
.vd-dm-panel {
    position: absolute;
    bottom: var(--vd-safe-bottom, 0px);
    left: 0;
    right: 0;
    z-index: 9;
    pointer-events: none;
    transition: opacity 0.25s;
}

/* 有弹出层展开时提升层级，覆盖 action-bar(12) 和 bottom-info(11) */
.vd-dm-panel.vd-dm-popup-open {
    z-index: 13;
}

.vd-dm-panel.vd-dm-hidden {
    opacity: 0;
    pointer-events: none !important;
}

/* ==================== 底部发送栏 ==================== */
.vd-dm-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    pointer-events: auto;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

/* 弹幕开关 */
.vd-dm-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    transition: all 0.2s;
    position: relative;
}

.vd-dm-toggle:hover {
    background: rgba(255,255,255,0.15);
}

.vd-dm-toggle.vd-dm-off {
    color: rgba(255,255,255,0.4);
}

.vd-dm-toggle.vd-dm-off::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.5);
    transform: rotate(-45deg);
    border-radius: 1px;
}

/* 弹幕数量 */
.vd-dm-count {
    flex-shrink: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    min-width: 20px;
}

/* 在线人数 */
.vd-dm-online {
    flex-shrink: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    gap: 2px;
}

.vd-dm-online i {
    font-size: 14px;
}

.vd-dm-online em {
    font-style: normal;
}

/* 输入框容器 */
.vd-dm-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    height: 36px;
    background: rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 0 4px 0 12px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.vd-dm-input-wrap:focus-within {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.2);
}

.vd-dm-input-wrap input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    padding: 0;
    line-height: 36px;
}

.vd-dm-input-wrap input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* 颜色预览点 */
.vd-dm-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: transform 0.15s;
}

.vd-dm-color-dot:hover {
    transform: scale(1.15);
}

/* 发送按钮（在输入框内部右侧） */
.vd-dm-send {
    flex-shrink: 0;
    height: 28px;
    padding: 0 14px;
    border-radius: 14px;
    background: transparent;
    color: rgba(255,255,255,0.35);
    font-size: 13px;
    border: none;
    cursor: not-allowed;
    transition: all 0.2s;
    margin-left: 4px;
}

.vd-dm-send.vd-dm-active {
    background: var(--ls-color-primary, #4F8EF7);
    color: #fff;
    cursor: pointer;
}

.vd-dm-send.vd-dm-active:hover {
    filter: brightness(1.1);
}

/* 设置按钮 */
.vd-dm-settings-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    transition: all 0.2s;
}

.vd-dm-settings-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.vd-dm-list-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255,255,255,0.62);
    font-size: 18px;
    transition: all 0.2s;
}

.vd-dm-list-btn:hover,
.vd-dm-panel.vd-dm-list-open .vd-dm-list-btn {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.vd-dm-list-panel {
    position: absolute;
    left: var(--vd-dm-list-left, 50%);
    bottom: 58px;
    z-index: 2;
    width: min(380px, calc(100vw - 32px));
    max-height: min(500px, calc(100dvh - 96px));
    display: flex;
    flex-direction: column;
    background: rgba(22,24,35,0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: rgba(255,255,255,0.92);
    border-radius: var(--ls-border-radius, 12px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.34);
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.98);
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.18s, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.vd-dm-panel.vd-dm-list-open {
    z-index: 14;
}

.vd-dm-panel.vd-dm-list-open .vd-dm-list-panel {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.vd-dm-list-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 86px;
    align-items: center;
    column-gap: clamp(6px, 1.5vw, 12px);
}

.vd-dm-list-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 86px;
    align-items: center;
    column-gap: clamp(6px, 1.5vw, 12px);
}

.vd-dm-list-head {
    padding: 14px clamp(10px, 2vw, 18px) 8px;
    color: rgba(255,255,255,0.46);
    font-size: 13px;
}

.vd-dm-list-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 10px 12px;
}

.vd-dm-list-body::-webkit-scrollbar {
    width: 6px;
}

.vd-dm-list-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
}

.vd-dm-list-row {
    position: relative;
    min-height: 38px;
    padding: 5px 8px;
    border-radius: var(--ls-border-radius-btn, 7px);
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

.vd-dm-list-row:hover {
    background: rgba(255,255,255,0.1);
}

.vd-dm-list-time {
    color: rgba(255,255,255,0.48);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vd-dm-list-created {
    color: rgba(255,255,255,0.48);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.15s;
}

.vd-dm-list-row:hover .vd-dm-list-created {
    opacity: 0;
}

.vd-dm-list-row:focus-within .vd-dm-list-created {
    opacity: 0;
}

.vd-dm-list-content {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vd-dm-list-content img {
    width: 22px;
    height: 22px;
    border-radius: var(--ls-border-radius-avatar, 50%);
    object-fit: cover;
    flex-shrink: 0;
}

.vd-dm-list-content span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vd-dm-list-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 86px;
    display: flex;
    justify-content: flex-end;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.vd-dm-list-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 26px;
    padding: 0 8px;
    border: 0;
    border-radius: var(--ls-border-radius-btn, 6px);
    background: transparent;
    color: rgba(255,255,255,0.58);
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.vd-dm-list-row:hover .vd-dm-list-action {
    opacity: 1;
    pointer-events: auto;
}

.vd-dm-list-row:focus-within .vd-dm-list-action {
    opacity: 1;
    pointer-events: auto;
}

.vd-dm-list-action:focus-visible {
    opacity: 1;
}

.vd-dm-list-action i {
    font-size: 14px;
}

.vd-dm-list-report:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.vd-dm-list-delete:hover {
    background: rgba(239,68,68,0.13);
    color: #dc2626;
}

.vd-dm-list-empty {
    padding: 42px 16px;
    text-align: center;
    color: rgba(255,255,255,0.48);
    font-size: 13px;
}

/* ==================== 颜色选择器弹出层 ==================== */
.vd-dm-color-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(28,28,32,0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    min-width: 220px;
    z-index: 30;
}

.vd-dm-color-picker.vd-dm-show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
    z-index: 50;
}

.vd-dm-color-picker::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(28,28,32,0.95);
}

.vd-dm-color-title {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.vd-dm-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vd-dm-color-item {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s;
    border: 2px solid transparent;
    position: relative;
}

.vd-dm-color-item:hover {
    transform: scale(1.2);
}

.vd-dm-color-item.vd-dm-selected {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

/* VIP 专属标识 */
.vd-dm-color-item.vd-dm-vip-only::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    border: 1px solid rgba(28,28,32,0.95);
}

/* 弹幕模式选择 */
.vd-dm-mode-row {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.vd-dm-mode-item {
    flex: 1;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    transition: all 0.15s;
    background: rgba(255,255,255,0.06);
}

.vd-dm-mode-item:hover {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
}

.vd-dm-mode-item.vd-dm-selected {
    background: var(--ls-color-primary, #4F8EF7);
    color: #fff;
}

/* ==================== 设置面板 ==================== */
.vd-dm-settings {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 16px;
    background: rgba(28,28,32,0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 16px 18px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    width: 260px;
    z-index: 30;
}

.vd-dm-settings.vd-dm-show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 50;
}

.vd-dm-settings-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
}

/* 设置项 */
.vd-dm-setting-item {
    margin-bottom: 14px;
}

.vd-dm-setting-item:last-child {
    margin-bottom: 0;
}

.vd-dm-setting-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.vd-dm-setting-name {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.vd-dm-setting-value {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    min-width: 36px;
    text-align: right;
}

/* 滑块 */
.vd-dm-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
    outline: none;
    cursor: pointer;
}

.vd-dm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: transform 0.1s;
}

.vd-dm-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.vd-dm-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* 区域选择按钮组 */
.vd-dm-area-btns {
    display: flex;
    gap: 6px;
}

.vd-dm-area-btn {
    flex: 1;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
    transition: all 0.15s;
}

.vd-dm-area-btn:hover {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
}

.vd-dm-area-btn.vd-dm-selected {
    background: var(--ls-color-primary, #4F8EF7);
    color: #fff;
}

/* ==================== 弹幕面板显示 ==================== */
.vd-dm-bar {
    opacity: 1;
    z-index: 12;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 输入框聚焦时保持显示 */
.vd-dm-bar:focus-within {
    opacity: 1;
    z-index: 12;
}

/* ==================== 弹幕信息弹窗 ==================== */
.vd-dm-popover {
    position: fixed;
    z-index: 9999;
    background: rgba(28,28,32,0.96);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    min-width: 220px;
    max-width: 300px;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.18s, transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.vd-dm-popover.vd-dm-show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* 用户信息行 */
.vd-dm-pop-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.vd-dm-pop-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.vd-dm-pop-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.vd-dm-pop-vip {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
}

.vd-dm-pop-vip:empty {
    display: none;
}

.vd-dm-pop-vip .ls-mark {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* 弹幕内容 */
.vd-dm-pop-content {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    word-break: break-word;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
}

/* 操作按钮行 */
.vd-dm-pop-actions {
    display: flex;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.vd-dm-pop-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 30px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}

.vd-dm-pop-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.vd-dm-pop-btn i {
    font-size: 14px;
}

.vd-dm-pop-btn.vd-dm-pop-report {
    color: rgba(255,100,100,0.8);
}

.vd-dm-pop-btn.vd-dm-pop-report:hover {
    background: rgba(255,80,80,0.15);
    color: #ff6464;
}

.vd-dm-pop-btn.vd-dm-pop-delete {
    color: rgba(255,80,80,0.8);
}

.vd-dm-pop-btn.vd-dm-pop-delete:hover {
    background: rgba(255,80,80,0.15);
    color: #ff5050;
}

