body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* 允许垂直滚动，阻止水平滚动 */
    background-color: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.video-container {
    width: 100%;
    height: 100vh; /* Fallback for browsers that do not support dvh */
    height: 100dvh;
    overflow-y: scroll; /* 允许垂直滚动 */
    position: relative;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.video-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.video-slide {
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed to cover to fill the screen */
    display: block;
}

.controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.controls button {
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.video-info {
    position: absolute;
    bottom: 70px; /* Adjust as needed */
    left: 15px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    z-index: 10;
    width: 80%;
}

.video-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.video-info p {
    margin: 0;
    font-size: 14px;
}

.interaction-icons {
    position: absolute;
    right: 15px;
    bottom: 70px; /* Align with video-info or adjust */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.interaction-icons .icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    cursor: pointer;
}

.interaction-icons .icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.interaction-icons .icon span {
    font-size: 12px;
    margin-top: 5px;
}

/* 自定义进度条样式 */
.progress-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #f1f1f1;
    opacity: 0.3;
    transition: width 0.1s linear;
}

/* 视频时间显示样式 */
.video-time {
    position: absolute;
    bottom: 30px;
    left: 15px;
    color: #ccc;
    font-size: 12px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    z-index: 10;
}

/* 中央播放/暂停按钮样式 */
.play-pause-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
}

.play-pause-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-pause-button svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* 广告UI元素样式 */
.ad-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 15;
}

.ad-progress-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    z-index: 15;
}

.ad-progress-bar {
    height: 100%;
    background-color: rgba(220, 234, 245, 0.6);
    opacity: 0.5;
    width: 0%;
    transition: width 0.1s linear;
}

/* 调整广告按钮共享样式 */
.skip-ad-button,
.view-detail-button {
    background-color: #000;
    opacity: 0.5;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    z-index: 20;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 跳过广告按钮位置 */
.skip-ad-button {
    position: absolute;
    bottom: 40px;
    right: 10%;
    display: none;
}

/* 查看详情按钮位置与宽度 */
.view-detail-button {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}

/* 详情选项面板样式 */
.detail-options-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background-color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 30;
    overflow-y: auto;
}

.options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.options-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close-panel {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.options-content {
    padding: 20px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.option-button {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

.option-button:active {
    background-color: #3b82f6;
    color: white;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.checkbox-group input {
    width: auto;
    margin-right: 5px;
}

.submit-button {
    background-color: #3b82f6;
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.submit-button:active {
    background-color: #2563eb;
}

/* 广告层样式 */
.ad-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 广告顶部控制栏 */
.ad-top-controls {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 15;
    height: 24px;
}

/* 小广告标识 */
.ad-label-small {
    background-color: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.7);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 18px;
}

/* 调整关闭广告按钮样式 */
.close-ad-button {
    position: absolute;
    top: 0px;
    right: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 15;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    line-height: 20px;
}

/* 广告时间显示 */
.ad-time {
    position: absolute;
    bottom: 40px;
    left: 10%;
    color: white;
    opacity: 0.5;
    font-size: 12px;
    z-index: 15;
}