:root {
    --primary: #ff0000;
    --primary-dark: #cc0000;
    --bg-color: #0f0f0f;
    --card-bg: #1e1e1e;
    --text-main: #ffffff;
    --text-sec: #aaaaaa;
    --input-bg: #2a2a2a;
    --border: #3f3f3f;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

header p {
    color: var(--text-sec);
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--input-bg);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: var(--primary);
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

button:hover {
    background-color: var(--primary-dark);
}

.error-message {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    gap: 10px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--input-bg);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--text-sec);
}
