* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.video-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 初始无过渡，由JS控制 */
}

#currentVideo {
    transform: translateY(0);
    z-index: 2;
}

#nextVideo {
    transform: translateY(100vh);
    /* 初始在屏幕下方 */
    z-index: 1;
}

.skeleton,
.status {
    position: absolute;
    bottom: 7%;
    left: 2%;
    /* transform: translate(-50%, -50%); */
    /* background: rgba(0, 0, 0, 0.7); */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10;
}

.skeleton {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    font-size: 12px;
}

.status.error {
    color: #ff6b6b;
}

.status.success {
    /* color: #51cf66; */
    color: #666666;
}

.status.loading {
    color: #339af0;
}

.status.info {
    color: #893bf5;
}

#playButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    z-index: 10;
    border: 2px solid white;
    display: none;
}

#playButton:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
    transition: all 0.2s;
}

/* ===== 视频标题容器 - 响应式布局 ===== */
#video-title-container {
    /* 公共样式 */
    position: absolute;
    bottom: 60px;
    /* background-color: rgba(0, 0, 0, 0.6); */
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.3s ease;
    backdrop-filter: blur(4px);
    max-width: 90%;
    min-height: 56px;
    line-height: 1.4;
}

#video-title-container.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== 标题文字样式 ===== */
#video-title {
    margin: 0;
    text-align: left;                 /* PC 上左对齐更自然 */
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);

    /* 换行 + 多行省略 */
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#logo{
    width: 150px;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 3;
    line-height: 1em;
}

#logo img{
    width: 100%;
}
#logo span{
    font-size: 1.2em;
    color: #666666;
}

/* 👉 PC 端：靠左下角 */
@media (min-width: 768px) {
    #video-title-container {
        left: 18%;                    /* 距离左边 20px */
        right: auto;
        bottom:95px;
        transform: none;               /* 取消居中变换 */
        /* width: auto;
        max-width: 580px; */
        width: 555px;
        min-height: 45px;
        padding: 10px 20px;
    }
    #video-title {
        -webkit-line-clamp: 3;
    }
}

/* 👉 移动端：屏幕正下方居中 */
@media (max-width: 767px) {
    #video-title-container {
        left: 50%;
        right: auto;
        transform: translateX(-50%);   /* 水平居中 */
        width: 90%;
    }
}



/* 移动端字体稍小 */
@media (max-width: 480px) {
    #video-title {
        font-size: 16px;
        text-align: center; /* 移动端居中文本 */
    }

    #video-title-container {
        bottom: 60px;
        padding: 0;
    }
    #logo{
        width: 100px;
        padding: 10px;
    }
    #logo span{
        font-size: 1em;
    }
}

