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

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

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

h1 {
    text-align: center;
    padding: 20px;
    background: #2c3e50;
    color: white;
    font-size: 24px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

#videoPlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

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

.status {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    background: #e9ecef;
    border: 1px solid #ced4da;
}

.status.connected {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.status.syncing {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.info span {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    font-size: 14px;
}

#viewerCount {
    font-weight: bold;
    color: #e74c3c;
}

#currentTime {
    font-weight: bold;
    color: #3498db;
}
.status.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Адаптивность */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 10px;
    }
    
    h1 {
        font-size: 20px;
        padding: 15px;
    }
    
    .controls {
        padding: 15px;
    }
    
    .info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .info span {
        text-align: center;
    }
}