/* 全息美AI短剧系统 - 前端样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
html, body {
    width: 100%;
    min-height: 100vh;
}
body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #ffffff;
    color: #222222;
    max-width: 480px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Logo区域 */
.logo-wrap {
    padding: 20px 20px 10px;
    text-align: center;
}
.logo-img {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* 下落弹跳 + 放大动画 */
@keyframes dropBounce {
    0% {
        transform: translateY(-80vh) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translateY(20px) scale(0.5);
        opacity: 1;
    }
    65% {
        transform: translateY(0) scale(0.55);
        opacity: 1;
    }
    80% {
        transform: translateY(0) scale(1.12);
    }
    92% {
        transform: translateY(0) scale(0.95);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* 主按钮 */
.main-button {
    margin: 20px 30px;
    background: #168cff;
    color: #ffffff;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
    padding: 16px 0;
    border-radius: 8px;
    letter-spacing: 2px;
    animation: dropBounce 2.6s ease-out forwards;
}

/* 介绍区块 */
.intro-block {
    padding: 20px 26px;
    text-align: center;
}
.intro-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 18px;
}
.intro-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    
}

/* 片段展示标题 */
.section-heading {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin: 36px 0 24px;
}

/* 视频卡片 */
.video-card {
    margin-bottom: 28px;
    padding: 0 20px;
}
.video-card-title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 14px;
    color: #333;
}
.video-cover-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
    cursor: pointer;
}
.video-cover-box:last-child {
    margin-bottom: 0;
}
.video-cover-box img.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 自动提取的封面 */
.video-cover-box img.cover-auto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* 播放按钮 */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.2s;
}
.video-cover-box:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}
.play-icon::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 22px solid #222222;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 4px;
}

/* 视频标题叠加 */
.video-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 12px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 14px;
    z-index: 1;
}

/* 原位视频播放器 */
.video-cover-box .inline-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: #000;
    display: none;
}
.video-cover-box .inline-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* 隐藏下载按钮 */
.video-cover-box .inline-player video::-internal-media-controls-download-button {
    display: none !important;
}
.video-cover-box .inline-player video::-webkit-media-controls-enclosure {
    overflow: hidden;
}
.video-cover-box .inline-player video::-webkit-media-controls-panel {
    width: calc(100% + 30px);
}
.video-cover-box.playing .play-icon,
.video-cover-box.playing .cover-img,
.video-cover-box.playing .video-title-overlay {
    display: none;
}
.video-cover-box.playing .inline-player {
    display: block;
}
.video-cover-box.playing {
    cursor: default;
}

/* 倍速控制 */
.speed-control {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 20;
    display: none;
}
.video-cover-box.playing .speed-control {
    display: block;
}
.speed-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 13px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.speed-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}
.speed-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 80px;
}
.speed-menu.show {
    display: block;
}
.speed-option {
    display: block;
    width: 100%;
    padding: 8px 16px;
    color: #fff;
    font-size: 13px;
    text-align: center;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.15s;
}
.speed-option:hover {
    background: rgba(255, 255, 255, 0.15);
}
.speed-option.active {
    color: #168cff;
    font-weight: bold;
}

/* 底部留白 */
.footer-space {
    height: 40px;
}

/* 空状态 */
.empty-videos {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}
