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

body { 
    background: #000; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
}

#player { 
    width: 100vw; 
    height: 100vh; 
}

.controls {
    position: fixed; 
    top: 20px; 
    left: 20px; 
    z-index: 1000;
    background: rgba(0,0,0,0.9); 
    color: white;
    padding: 20px; 
    border-radius: 12px; 
    min-width: 280px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.controls h3 { 
    margin-bottom: 15px; 
    font-size: 18px;
    font-weight: 600;
}

.stream-list { 
    max-height: 250px; 
    overflow-y: auto; 
    margin-bottom: 15px;
}

.stream-item {
    padding: 12px 15px; 
    margin: 8px 0; 
    cursor: pointer;
    background: rgba(255,255,255,0.1); 
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stream-item:hover { 
    background: rgba(255,255,255,0.2); 
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.stream-item.active { 
    background: rgba(0,123,255,0.4); 
    border-color: rgba(0,123,255,0.6);
}

.auth-status {
    padding: 10px;
    background: rgba(40,167,69,0.2);
    border: 1px solid rgba(40,167,69,0.4);
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
}

.auth-status.error {
    background: rgba(220,53,69,0.2);
    border-color: rgba(220,53,69,0.4);
}

.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.login-content {
    background: rgba(20,20,20,0.95);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    min-width: 320px;
    text-align: center;
}

.login-content h3 {
    margin-bottom: 25px;
    font-size: 20px;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#authKey {
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 16px;
}

#authKey:focus {
    outline: none;
    border-color: rgba(0,123,255,0.6);
    background: rgba(255,255,255,0.15);
}

#loginForm button {
    padding: 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#loginForm button:hover {
    background: #0056b3;
}

.hidden { 
    display: none !important; 
}

/* Responsive design */
@media (max-width: 768px) {
    .controls {
        top: 10px;
        left: 10px;
        right: 10px;
        min-width: auto;
        padding: 15px;
    }
    
    .login-content {
        margin: 20px;
        padding: 30px 20px;
        min-width: auto;
    }
}

/* Custom scrollbar */
.stream-list::-webkit-scrollbar {
    width: 6px;
}

.stream-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.stream-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.stream-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}