body {
    background-color: #f1f1f1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
}

form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

input[type=text] {
    width: 70%;
    padding: 12px 20px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button[type=submit] {
    background-color: maroon;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button[type=submit]:hover {
    background-color: #6b0000;
}

/* ── Results list ── */
.results {
    display: flex;
    justify-content: center;
}

.result {
    width: 82%;        /* matches the visual width of input + button */
    margin-bottom: 24px;
    padding: 16px 20px;
    background-color: #ddd;
    border-radius: 10px;
    text-align: left;
}

/* Favicon + domain row */
.result-source {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.favicon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.result-domain {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Clickable title */
.result-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: maroon;
    text-decoration: none;
    margin-bottom: 4px;
    line-height: 1.3;
}

.result-title:hover {
    text-decoration: underline;
}

/* Green URL line */
.result-url {
    font-size: 12px;
    color: #2a7a2a;
    margin-bottom: 6px;
    word-break: break-all;
}

/* Snippet / description */
.result-snippet {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}