* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

h1 {
    text-align: center;
    padding: 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    margin: 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.player-container {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
}

#videoPlayer {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #000;
}

.control-panel {
    padding: 30px;
    background: white;
}

.input-section {
    margin-bottom: 25px;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
}

.input-section h3 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.3em;
}

.url-input, .file-input {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

#urlInput {
    flex: 1;
    min-width: 300px;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#urlInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#fileInput {
    flex: 1;
    min-width: 300px;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    background: white;
}

button {
    padding: 12px 25px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.player-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    background: #e9ecef;
    border-radius: 10px;
    margin-top: 20px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

#volumeSlider {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: #dee2e6;
    outline: none;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#volumeSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#volumeValue {
    font-weight: 600;
    color: #495057;
    min-width: 40px;
}

.status-panel {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

#statusMessage {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 10px;
}

#errorMessage {
    color: #dc3545;
    font-weight: 600;
    background: #f8d7da;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    h1 {
        font-size: 2em;
        padding: 20px;
    }
    
    .player-container {
        padding: 20px;
    }
    
    #videoPlayer {
        height: 250px;
    }
    
    .control-panel {
        padding: 20px;
    }
    
    .url-input, .file-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    #urlInput, #fileInput {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .player-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .volume-control {
        margin-left: 0;
        justify-content: center;
    }
}