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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #111111;
    color: #e0e0e0;
    min-height: 100vh;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    flex-wrap: wrap;
    gap: 8px;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
}

.channel-badge {
    background: #2a2a2a;
    color: #e0e0e0;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.role-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}
.role-badge.host { background: #2a2a2a; color: #cccccc; }
.role-badge.client { background: #2a2a2a; color: #aaaaaa; }

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #666;
}
.status-dot.connected { background: #4caf50; }
.status-dot.disconnected { background: #f44336; }

.client-count {
    background: #2a2a2a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #999;
}

.nav-link {
    color: #777;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s;
}
.nav-link:hover { color: #fff; }

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-play { background: #4caf50; color: #fff; font-size: 1.2rem; padding: 16px 48px; }
.btn-play:hover:not(:disabled) { background: #45a049; }
.btn-stop { background: #f44336; color: #fff; font-size: 1.2rem; padding: 16px 48px; }
.btn-stop:hover:not(:disabled) { background: #e53935; }
.btn-small { padding: 8px 16px; font-size: 0.85rem; background: #2a2a2a; color: #ddd; }
.btn-small:hover:not(:disabled) { background: #3a3a3a; }
.btn-secondary { background: #333; }

.muted { color: #666; font-size: 0.85rem; }

.panel {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
}
.panel h2 {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 12px;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #111111;
    color: #e0e0e0;
    font-size: 0.9rem;
    outline: none;
}
.form-group input:focus, .form-group select:focus {
    border-color: #888;
}
.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .top-bar {
        padding: 8px 12px;
    }
    .top-right {
        font-size: 0.78rem;
        gap: 8px;
    }
    .logo {
        font-size: 1.1rem;
    }
    .channel-badge, .role-badge {
        font-size: 0.72rem;
        padding: 3px 8px;
    }
    .client-count {
        font-size: 0.72rem;
    }
    .nav-link {
        font-size: 0.72rem;
        padding: 3px 6px;
    }
}
