* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #1E2732; /* 修改为指定的背景色 */
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.back-button {
    text-decoration: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.header-placeholder {
    width: 40px;
}

.video-player-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
    margin-bottom: 20px;
}

video {
    width: 100%;
    height: 100%;
    display: block;
}

.controls {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.video-player:hover .controls {
    transform: translateY(0);
}

.progress-bar {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#progress {
    flex-grow: 1;
    height: 6px;
    margin-right: 12px;
    -webkit-appearance: none;
    appearance: none;
    background: #555;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2196f3;
    cursor: pointer;
    transition: all 0.2s ease;
}

#progress::-webkit-slider-thumb:hover {
    background: #42a5f5;
    transform: scale(1.2);
}

.time-display {
    font-size: 0.9rem;
    min-width: 90px;
    text-align: right;
    color: #ddd;
}

.control-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(33, 150, 243, 0.8);
    transform: scale(1.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#volume {
    width: 80px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #555;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2196f3;
    cursor: pointer;
}

.speed-control {
    position: relative;
}

.speed-options {
    position: absolute;
    bottom: 45px;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 5px;
    min-width: 80px;
    z-index: 10;
}

.speed-control:hover .speed-options {
    display: flex;
}

.speed-options button {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.speed-options button:hover {
    background: rgba(33, 150, 243, 0.3);
}

.speed-options button.active {
    background: #2196f3;
    color: #fff;
    font-weight: 600;
}

.video-details {
    padding: 0 10px;
}

.video-details h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.stats span {
    display: flex;
    align-items: center;
}

.stats i {
    margin-right: 5px;
}

#video-description {
    line-height: 1.6;
    color: #e0e0e0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .video-player-wrapper {
        padding: 15px;
    }
    
    .control-buttons {
        justify-content: space-between;
        gap: 10px;
    }
    
    .volume-control {
        flex-grow: 1;
        justify-content: flex-end;
    }
    
    #volume {
        width: 60px;
    }
    
    .speed-options {
        bottom: 40px;
        left: -20px;
    }
    
    .video-details h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .video-container {
        padding: 10px;
    }
    
    header {
        margin-bottom: 15px;
    }
    
    .video-player-wrapper {
        padding: 10px;
    }
    
    .control-buttons {
        flex-direction: row;
        align-items: stretch;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .volume-control {
        justify-content: space-between;
    }
    
    #volume {
        flex-grow: 1;
        margin: 0 10px;
    }
    
    .speed-options {
        left: -30px;
        bottom: 38px;
    }
    
    .video-details {
        padding: 0 5px;
    }
    
    .video-details h2 {
        font-size: 1.2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 5px;
    }
}