  body {
            font-family: Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: 0;
            padding: 10px;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .container {
            background: white;
            border-radius: 15px;
            padding: 15px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            max-width: 100%;
            width: 100%;
            box-sizing: border-box;
        }
        
        h1 {
            color: #333;
            font-size: 2em;
            margin-bottom: 10px;
            margin-top: 10px;
        }
        
        .instructions {
            font-size: 1.1em;
            color: #555;
            margin-bottom: 15px;
            line-height: 1.5;
        }
        
        .voice-button {
            background: #4CAF50;
            color: white;
            border: none;
            border-radius: 50%;
            width: 120px;
            height: 120px;
            font-size: 1em;
            cursor: pointer;
            margin: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
        }
        
        .voice-button:hover {
            background: #45a049;
            transform: scale(1.05);
        }
        
        .voice-button.listening {
            background: #f44336;
            animation: pulse 1.5s infinite;
        }
        
        .stop-button {
            background: #d32f2f;
            color: white;
            border: none;
            border-radius: 50%;
            width: 120px;
            height: 120px;
            font-size: 1.1em;
            cursor: pointer;
            margin: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(211, 47, 47, 0.5);
            font-weight: bold;
        }
        
        .stop-button:hover {
            background: #b71c1c;
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(183, 28, 28, 0.6);
        }
        
        .stop-button:active {
            transform: scale(0.95);
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        .status {
            font-size: 1.1em;
            margin: 10px 0;
            color: #333;
            min-height: 25px;
            padding: 5px;
        }
        
        .transcript {
            background: #f0f0f0;
            padding: 15px;
            border-radius: 10px;
            margin: 20px 0;
            font-size: 1.2em;
            min-height: 50px;
            border: 2px solid #ddd;
        }
        
        .suggestions {
            margin-top: 30px;
            text-align: left;
        }
        
        .suggestions h3 {
            color: #333;
            font-size: 1.3em;
            margin-bottom: 15px;
        }
        
        .suggestions ul {
            font-size: 1.1em;
            color: #666;
            line-height: 1.8;
        }
        
        .error {
            color: #f44336;
            font-weight: bold;
        }
        
        .success {
            color: #4CAF50;
            font-weight: bold;
        }
        
        .ai-badge {
            background: #667eea;
            color: white;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 0.9em;
            margin-top: 10px;
            display: inline-block;
        }
        
        .conversation-area {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 10px;
            margin: 10px 0;
            max-height: 50vh;
            overflow-y: auto;
            border: 2px solid #e9ecef;
            text-align: left;
        }
        
        .message {
            margin: 10px 0;
            padding: 10px 12px;
            border-radius: 12px;
            max-width: 90%;
            line-height: 1.4;
            font-size: 1.05em;
            word-wrap: break-word;
        }
        
        .user-message {
            background: #e3f2fd;
            margin-left: auto;
            text-align: right;
            border-bottom-right-radius: 5px;
        }
        
        .ai-message {
            background: #f1f8e9;
            margin-right: auto;
            border-bottom-left-radius: 5px;
        }
        
        .controls {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 10px 0;
            flex-wrap: wrap;
        }
        
        .control-button {
            background: #6c757d;
            color: white;
            border: none;
            border-radius: 20px;
            padding: 10px 18px;
            font-size: 1em;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 100px;
        }
        
        .control-button:hover:not(:disabled) {
            transform: scale(1.05);
        }
        
        .control-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        
        .speaking-indicator {
            background: #ff9800;
            animation: pulse 1.5s infinite;
        }
        
        .youtube-suggestion {
            background: #ffebee;
            border: 2px solid #e91e63;
            border-radius: 10px;
            padding: 15px;
            margin: 15px 0;
            text-align: center;
        }
        
        .youtube-button {
            background: #ff0000;
            color: white;
            border: none;
            border-radius: 20px;
            padding: 10px 20px;
            font-size: 1.1em;
            cursor: pointer;
            margin-top: 10px;
            transition: all 0.3s ease;
        }
        
        .youtube-button:hover {
            background: #cc0000;
            transform: scale(1.05);
        }
        
        .mode-toggle {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #28a745;
            color: white;
            border: none;
            border-radius: 15px;
            padding: 6px 12px;
            cursor: pointer;
            font-size: 0.9em;
        }
        
        .welcome-message {
            font-size: 1.1em;
            color: #666;
            font-style: italic;
            margin: 10px 0;
            padding: 5px;
        }
        
        .auto-listening {
            background: linear-gradient(45deg, #4CAF50, #81C784);
            box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
        }

        /* Mobile-specific optimizations */
        @media (max-width: 768px) {
            body {
                padding: 5px;
                align-items: flex-start;
            }

            .container {
                border-radius: 10px;
                padding: 10px;
                margin-top: 50px;
            }

            h1 {
                font-size: 1.6em;
                margin-bottom: 8px;
                margin-top: 5px;
            }

            .instructions {
                font-size: 1em;
                margin-bottom: 10px;
            }

            .conversation-area {
                padding: 8px;
                margin: 8px 0;
                max-height: 45vh;
            }

            .message {
                font-size: 1em;
                padding: 8px 10px;
                max-width: 95%;
            }

            .voice-button, .stop-button {
                width: 100px;
                height: 100px;
                font-size: 0.9em;
                margin: 8px;
            }

            .control-button {
                padding: 8px 14px;
                font-size: 0.9em;
                min-width: 90px;
            }

            .status {
                font-size: 1em;
                margin: 8px 0;
            }

            .youtube-suggestion {
                padding: 10px;
                margin: 10px 0;
            }

            .youtube-button {
                font-size: 1em;
                padding: 8px 16px;
            }

            .suggestions h3 {
                font-size: 1.1em;
            }

            .suggestions ul {
                font-size: 0.95em;
                padding-left: 20px;
            }

            .transcript {
                font-size: 1em;
                padding: 10px;
            }

            .mode-toggle {
                top: 5px;
                right: 5px;
                padding: 5px 10px;
                font-size: 0.85em;
            }
        }

        /* Extra small phones */
        @media (max-width: 400px) {
            .container {
                padding: 8px;
            }

            h1 {
                font-size: 1.4em;
            }

            .voice-button, .stop-button {
                width: 85px;
                height: 85px;
                font-size: 0.85em;
                margin: 5px;
            }

            .message {
                font-size: 0.95em;
                padding: 6px 8px;
            }

            .control-button {
                padding: 6px 10px;
                font-size: 0.85em;
                min-width: 80px;
            }
        }

        /* Landscape orientation on mobile */
        @media (max-height: 600px) and (orientation: landscape) {
            .container {
                margin-top: 10px;
            }

            .conversation-area {
                max-height: 30vh;
            }

            .voice-button, .stop-button {
                width: 80px;
                height: 80px;
                font-size: 0.8em;
                margin: 5px;
            }
        }