* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #15181c;
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

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

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

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

.search-box input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    background: #202327;
    color: #fff;
    border: 1px solid #404040;
}

.search-box input:focus {
    outline: none;
    border-color: #1d9bf0;
}

.search-box input#keyword {
    flex: 2;
}

#search-btn {
    padding: 0 24px;
    background: #1d9bf0;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

#search-btn:hover {
    background: #1971c2;
}

#results {
    display: grid;
    gap: 15px;
}

.tweet {
    background: #1e2125;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #38444d;
}

.tweet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tweet-author {
    font-weight: bold;
    color: #1d9bf0;
}

.tweet-time {
    color: #71767b;
    font-size: 14px;
}

.tweet-text {
    margin-bottom: 10px;
    line-height: 1.5;
    word-wrap: break-word;
}

.tweet-stats {
    display: flex;
    gap: 20px;
    color: #71767b;
    font-size: 14px;
}

.error {
    color: #f91880;
    text-align: center;
    padding: 20px;
}

.loading {
    text-align: center;
    padding: 20px;
}