* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    background-color: #fff;
    color: #202124;
    transition: background 0.2s, color 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.dark {
    background-color: #1a1a1a;
    color: #e8e8e8;
}
body.dark .header a {
    color: #e8e8e8;
}
body.dark .header a:hover {
    color: #fff;
}
body.dark .search-box input {
    background: #2b2b2b;
    border-color: #4a4a4a;
    color: #e8e8e8;
}
body.dark .search-box input:focus {
    border-color: #6ab0f7;
}
body.dark .result-item {
    background: #2a2a2a;
    border-color: #444;
}
body.dark .footer {
    background: #1f1f1f;
    border-color: #333;
    color: #aaa;
}
body.dark .footer a {
    color: #aaa;
}
body.dark .footer a:hover {
    color: #fff;
}
body.dark .weather-block {
    background: #2a2a2a;
    border-color: #444;
}

.header {
    display: flex;
    justify-content: flex-end;
    padding: 20px 30px;
    gap: 20px;
}
.header a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
}
.header a:hover {
    text-decoration: underline;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.logo {
    font-size: 72px;
    font-weight: 500;
    letter-spacing: -2px;
    margin-bottom: 30px;
}
.logo .tom {
    color: green;
}
.logo .sko {
    color: #ea4335;
}
.search-form {
    width: 100%;
    max-width: 584px;
}
.search-box {
    display: flex;
    gap: 8px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 6px 10px 6px 20px;
    background: #fff;
    transition: box-shadow 0.2s;
}
.search-box:focus-within {
    border-color: #4285f4;
    box-shadow: 0 1px 6px rgba(66,133,244,0.3);
}
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px 0;
    background: transparent;
    color: #202124;
}
body.dark .search-box {
    background: #2b2b2b;
    border-color: #4a4a4a;
}
.search-box button {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 24px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    background: #4285f4;
    color: #fff;
    border: none;
}
.search-box button:hover {
    background: #3367d6;
}

.info-links {
    margin-top: 30px;
    display: flex;
    gap: 24px;
}
.info-links a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
}
.info-links a:hover {
    text-decoration: underline;
}

.results-container {
    max-width: 820px;
    margin: 20px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}
.search-bar {
    margin-bottom: 24px;
}
.search-bar form {
    display: flex;
    gap: 8px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 6px 10px 6px 20px;
    background: #fff;
}
.search-bar form:focus-within {
    border-color: #4285f4;
    box-shadow: 0 1px 6px rgba(66,133,244,0.3);
}
.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px 0;
    background: transparent;
}
.search-bar button {
    background: #4285f4;
    border: none;
    border-radius: 24px;
    padding: 8px 20px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}
body.dark .search-bar form {
    background: #2b2b2b;
    border-color: #4a4a4a;
}

.weather-block {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}
.weather-block h3 {
    margin-bottom: 10px;
}
.weather-block img {
    vertical-align: middle;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.result-count {
    font-size: 14px;
    color: #70757a;
    margin-bottom: 10px;
}
.result-item {
    border-bottom: 1px solid #e8eaed;
    padding: 16px 0;
}
.result-item h3 {
    font-size: 18px;
    font-weight: 500;
}
.result-item h3 a {
    color: #1a73e8;
    text-decoration: none;
}
.result-item h3 a:hover {
    text-decoration: underline;
}
.result-item .snippet {
    font-size: 14px;
    color: #3c4043;
    margin: 6px 0;
    line-height: 1.5;
}
.result-item .meta {
    font-size: 13px;
    color: #70757a;
    display: flex;
    gap: 16px;
}
body.dark .result-item {
    border-color: #444;
}
body.dark .result-item .snippet {
    color: #ccc;
}
body.dark .result-item h3 a {
    color: #6ab0f7;
}
body.dark .result-item .meta {
    color: #aaa;
}

.no-results {
    font-size: 16px;
    color: #70757a;
    padding: 20px 0;
}

.footer {
    background: #f2f2f2;
    border-top: 1px solid #dadce0;
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #70757a;
    margin-top: auto;
}

@media (max-width: 600px) {
    .logo { font-size: 48px; }
    .header { padding: 12px 16px; }
    .search-box { padding: 6px 10px; }
    .results-container { padding: 0 12px; }
}

.result-item {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #e8eaed;
    padding: 16px 0;
}
.result-content {
    flex: 1;
}
.result-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
}
.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} 
