:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-hover: #1a1a1a;
    --border: #2a2a2a;
    --border-focus: #3a3a3a;
    --text: #e8e8e8;
    --text-secondary: #888;
    --text-muted: #555;
    --accent: #667eea;
    --accent-hover: #7c8ef0;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.center-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    max-width: 680px;
    padding: 0 24px;
    transition: justify-content 0.4s ease;
}

.center-stage.has-results {
    justify-content: flex-start;
    padding-top: 40px;
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--accent) 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
}

.logo span {
    -webkit-text-fill-color: var(--text);
    opacity: 0.6;
}

.search-container {
    width: 100%;
    position: relative;
    margin-bottom: 24px;
}

.search-bar {
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.search-bar:focus-within {
    border-color: var(--border-focus);
    background: var(--surface-hover);
    box-shadow: 0 4px 32px rgba(102, 126, 234, 0.1);
}

.search-icon {
    color: var(--text-muted);
    padding: 0 16px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 1.05rem;
    padding: 14px 0;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-left: 4px;
}

.search-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.search-btn:active {
    transform: translateY(0);
}

.status-line {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 8px;
    min-height: 20px;
}

.status-line.active {
    color: var(--accent);
}

.quick-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.quick-link {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.quick-link:hover {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(102, 126, 234, 0.08);
}

.proxy-view {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: none;
}

.proxy-view.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.proxy-frame {
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 500px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.footer {
    padding: 24px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 100%;
}

@media (max-width: 640px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .search-btn {
        padding: 12px 16px;
    }
    
    .search-btn span {
        display: none;
    }
    
    .quick-links {
        gap: 8px;
    }
    
    .quick-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
