/* 暂无数据样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    width: 100%;
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 12px;
    min-height: 400px;
}
.empty-icon {
    margin-bottom: 24px;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.empty-title { font-size: 18px; color: #666; font-weight: 500; margin-bottom: 8px; }
.empty-desc  { font-size: 14px; color: #aaa; }

/* 加载动画 */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f0f0f5;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 列表浏览次数小图标 */
.views { display: inline-flex; align-items: center; gap: 4px; }
.views .views-icon { width: 20px; height: 14px; vertical-align: middle; }

.content-area { padding: 15px; }
.filter-sidebar { background: #fff; }
.video-grid { gap: 15px; }
.video-card { border-radius: 10px; }
.video-thumbnail .image-preview-blur {
    filter: blur(5px);
    transform: scale(1.06);
}
.image-glass-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-glass-mask span {
    padding: 8px 16px;
    border-radius: 18px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.prompt-preview-wrap {
    position: relative;
    flex: 1;
    min-height: 220px;
    display: flex;
}
.prompt-preview-wrap.locked .modal-textarea {
    color: rgba(68, 68, 68, .52);
    overflow: hidden;
}
.prompt-lock-mask {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72%;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(to bottom, rgba(250,250,250,0), rgba(250,250,250,.92) 38%, rgba(250,250,250,.98));
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
.prompt-lock-mask button {
    border: none;
    border-radius: 24px;
    background: #3a2f27;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 34px;
    cursor: pointer;
}
.prompt-lock-mask button:hover { background: #241d18; }

/* 排序栏 - sticky 固定顶部 */
.sort-bar {
    position: sticky;
    top: 0;
    z-index: 80;
    background: #fff;
    border-radius: 0;
    margin: -15px -15px 15px;
    padding: 15px 15px 10px;
    box-shadow: 0 10px 14px -12px rgba(0, 0, 0, 0.18);
}
.sort-bar.is-stuck {
    border-radius: 0;
    box-shadow: 0 10px 14px -12px rgba(0, 0, 0, 0.18);
}

/* 搜索建议下拉 */
.filter-sticky {
    flex-shrink: 0;
    background: #fff;
    padding: 30px 24px 1px;
}
.filter-search {
    position: relative;
}
.search-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    z-index: 200;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}
.search-suggest.show { display: block; }
.search-suggest-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}
.search-suggest-item:last-child { border-bottom: none; }
.search-suggest-item:hover,
.search-suggest-item.active { background: #f6efff; color: #8f41e9; }
.search-suggest-item mark { color: #8f41e9; background: transparent; font-weight: 600; }
.search-suggest-empty { padding: 14px 16px; color: #999; font-size: 13px; text-align: center; }
.sort-options { display: flex; align-items: center; gap: 20px; }
.sort-label { color: #666; font-size: 14px; }
.sort-item {
    padding: 6px 12px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    transition: background .2s, color .2s;
}
.sort-item.active { background: #667eea; color: #fff; }

/* 加载更多 */
.load-more { text-align: center; padding: 30px 0; display: none; }
.load-more #loadingText { color: #999; font-size: 14px; display: none; }
.load-more #loadMoreBtn {
    padding: 12px 40px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

/* layer 弹窗内详情布局 */
.layer-video-modal .layui-layer-content { padding: 0; overflow: hidden; }
.layer-video-modal .modal-content-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    box-sizing: border-box;
}
.layer-video-modal .modal-header { padding: 16px 30px 0; flex-shrink: 0; }
.layer-video-modal .modal-layout { flex: 1; min-height: 0; padding: 50px 30px 50px; gap: 30px; }
.layer-video-modal .modal-video-section {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.layer-video-modal .modal-video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: block;
}
.layer-video-modal .modal-video,
.layer-video-modal .modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: none;
}
.layer-video-modal .modal-image-blur {
    filter: blur(5px);
    transform: scale(1.03);
}
.layer-video-modal .modal-image-glass-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.layer-video-modal .modal-image-glass-mask span {
    padding: 10px 20px;
    border-radius: 22px;
    background: rgba(0, 0, 0, .48);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}
.layer-video-modal .modal-info     { min-height: 0; overflow: auto; }
.layer-video-modal .modal-textarea { min-height: 180px; }

