/* 猜你喜欢-优酷式悬停预览效果 */

/* 去除"猜你喜欢"影片卡片 hover 时的半透明遮罩层效果 */
.hover-preview-area .public-list-bj .public-list-exp:before {
    content: none !important;
    transition: none !important;
}

/* 进场动画 */
@keyframes previewIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 退场动画 */
@keyframes previewOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.85) translateY(10px);
    }
}

.hover-preview-card {
    position: fixed;
    width: 320px;
    background: rgba(24, 24, 24, 0.98);
    border-radius: 8px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.7);
    z-index: 9990;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.hover-preview-card.active {
    display: block;
    animation: previewIn .3s cubic-bezier(.86, 0, .07, 1) forwards;
}

.hover-preview-card.hide-out {
    display: block;
    animation: previewOut .2s ease-out forwards;
}

/* 图片区域 */
.hover-preview-card .preview-img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.hover-preview-card .preview-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 灯罩渐变遮罩层 - 覆盖整个预览框 */
.hover-preview-card .hover-mask {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8) 48%, rgba(0, 0, 0, 0.9));
    pointer-events: none;
    z-index: 1;
    border-radius: 8px;
}

.hover-preview-card.active .hover-mask,
.hover-preview-card:hover .hover-mask {
    display: block;
}


/* 信息区域 - 绝对定位贴在图片底部 */
.hover-preview-card .preview-info {
    padding: 0 14px 16px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    box-sizing: border-box;
}

/* 影片名称 */
.hover-preview-card .preview-title {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* 标签容器 */
.hover-preview-card .preview-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 14px;
    gap: 5px;
}

/* 单个标签pill */
.hover-preview-card .preview-tags .preview-tag {
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    line-height: normal;
}

/* 上映时间 */
.hover-preview-card .preview-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 14px;
    line-height: normal;
}

/* 影片详情（简介） */
.hover-preview-card .preview-detail {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 14px;
    line-height: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 操作按钮 - 优酷风格大图标 */
.hover-preview-card .preview-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.hover-preview-card .preview-action-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    text-decoration: none;
    background: rgba(255, 255, 255, .1);
    border: .5px solid rgba(255, 255, 255, .05);
    border-radius: 50%;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hover-preview-card .preview-action-item:hover {
    background: #26b2ff;
    border-color: rgba(255, 255, 255, .05);
}

.hover-preview-card .preview-action-item i {
    font-size: 20px;
    color: rgba(255, 255, 255);
}

.hover-preview-card .preview-action-item:hover i {
    color: rgba(255, 255, 255, 0.95);
}

.hover-preview-card .preview-action-item.primary i {
    color: rgba(255, 255, 255);
}



/* 分享弹窗 - 参考详情页share-box样式 */
.hover-preview-card .preview-share-popup {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: none;
    line-height: 20px;
}

/* theme1 浅色主题 */
.theme1 .hover-preview-card .preview-share-popup {
    background: #fff;
}
.theme1 .hover-preview-card .preview-share-popup .share-text {
    color: #333;
}
.theme1 .hover-preview-card .preview-share-popup .share-tips {
    color: #666;
}
.theme1 .hover-preview-card .preview-share-popup .share-url {
    background: #f5f5f5;
    color: #333;
}
.theme1 .hover-preview-card .preview-share-popup .share-copy {
    background: #ff4d4d;
    color: #fff;
}
.theme1 .hover-preview-card .preview-share-popup .share-copy:hover {
    background: #ff6b6b;
}

/* theme2 深色主题 */
.theme2 .hover-preview-card .preview-share-popup {
    background: rgba(30, 30, 30, 0.98);
}
.theme2 .hover-preview-card .preview-share-popup .share-text {
    color: rgba(255, 255, 255, 0.9);
}
.theme2 .hover-preview-card .preview-share-popup .share-tips {
    color: rgba(255, 255, 255, 0.7);
}
.theme2 .hover-preview-card .preview-share-popup .share-url {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}
.theme2 .hover-preview-card .preview-share-popup .share-copy {
    background: rgba(255, 255, 255, 0.15);
    color: hsla(0, 0%, 100%, 0.87);
}
.theme2 .hover-preview-card .preview-share-popup .share-copy:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 左侧二维码区 */
.hover-preview-card .preview-share-popup .share-qrcode {
    float: left;
    display: block;
    width: 100px;
    text-align: center;
}

/* "手机扫描访问" 文字 */
.hover-preview-card .preview-share-popup .share-text {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px;
}

/* 二维码图 */
.hover-preview-card .preview-share-popup .share-pic {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    padding: 3px;
}

/* 隐藏canvas，只显示img */
.hover-preview-card .preview-share-popup .hl-cans canvas {
    display: none;
}
.hover-preview-card .preview-share-popup .share-pic img {
    width: 100%;
    height: 100%;
}

/* 右侧链接区 */
.hover-preview-card .preview-share-popup .share-links {
    float: left;
    display: block;
    margin-left: 30px;
    padding-left: 30px;
    width: 230px;
}

/* 提示文字 */
.hover-preview-card .preview-share-popup .share-tips {
    display: block;
    font-size: 14px;
}

/* 链接文本 */
.hover-preview-card .preview-share-popup .share-url {
    display: block;
    border-radius: 4px;
    word-break: break-all;
    padding: 10px;
    max-height: 50px;
    margin: 15px 0 0;
    font-size: 14px;
}

/* 复制按钮 */
.hover-preview-card .preview-share-popup .share-copy {
    margin: 10px auto 0;
    width: 100%;
    line-height: 36px;
    display: block;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
