:root {
    --player-width: 100%;  /* 播放器宽度变量 */
}

/* 播放器容器 */
.player-wrapper {
    position: relative;
    width: var(--player-width);
    background: var(--background);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    margin-bottom: 24px;
}

.player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

/* Video.js 自定义样式 */
.video-js {
    width: 100% !important;
    height: 100% !important;
    font-family: var(--font-sans);
}

/* 播放按钮 */
.vjs-big-play-button {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    line-height: 80px !important;
    margin: -40px 0 0 -40px !important;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease !important;
}

.vjs-big-play-button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1);
}

/* 控制栏 */
.vjs-control-bar {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent) !important;
    height: 4em !important;
    padding: 0 1em !important;
}

/* 进度条 */
.vjs-progress-control {
    display: none !important;
    position: absolute !important;
    top: -0.5em !important;
    height: 0.5em !important;
    width: 100% !important;
    left: 0 !important;
}

.vjs-progress-holder {
    height: 0.5em !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

.vjs-play-progress {
    background: var(--primary-color) !important;
}

.hide-progress-bar .vjs-progress-control {
    display: none !important;
}

video::-webkit-media-controls-timeline,
video::-webkit-media-controls-seek-back-button,
video::-webkit-media-controls-seek-forward-button {
display: none !important;
}

video::-moz-progress-bar {
display: none !important;
}

video::-ms-seek-bar {
display: none !important;
}

/* 按钮样式 */
.vjs-control {
    width: 3em !important;
    height: 3em !important;
    opacity: 0.8;
    transition: opacity 0.2s ease !important;
}

.vjs-control:hover {
    opacity: 1;
}

/* 音量控制 */
.vjs-volume-panel {
    margin-right: 1em !important;
}

.vjs-volume-control {
    width: 8em !important;
}

/* 封面图片容器 */
.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 封面遮罩层 */
.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* 消息样式 */
.cover-message {
    font-size: 24px;
    font-weight: 500;
    color: white;
    text-align: center;
}

/* 倒计时容器 */
.countdown-container {
    text-align: center;
    color: white;
}

/* 倒计时标题 */
.countdown-title {
    font-size: 24px;
    margin-bottom: 24px;
    font-weight: 500;
}

/* 倒计时数字 */
.countdown-time {
    font-size: 48px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.countdown-time span {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 12px;
    min-width: 80px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cover-message {
        font-size: 20px;
    }

    .countdown-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .countdown-time {
        font-size: 32px;
        gap: 12px;
    }

    .countdown-time span {
        min-width: 60px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .cover-message {
        font-size: 16px;
    }

    .countdown-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .countdown-time {
        font-size: 24px;
        gap: 8px;
    }

    .countdown-time span {
        min-width: 40px;
        padding: 4px 8px;
    }
}

@media (max-width: 450px) {
    .vjs-big-play-button {
        width: 60px !important;
        height: 60px !important;
        line-height: 60px !important;
        margin: -30px 0 0 -30px !important;
    }

    .countdown-title {
        font-size: 1rem;
    }

    .countdown-time {
        font-size: 1.2rem;
        gap: 8px;
    }

    .countdown-time span {
        min-width: 40px;
        padding: 4px 8px;
        font-size: 1rem;
    }
}

/* 错误提示 */
.player-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 3;
    width: 80%;
    max-width: 400px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.player-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff3b30;
}

.retry-button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: white;
    color: black;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

