* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: transparent;
    color: #e0e0e0;
    height: 100vh;
    display: flex;
    justify-content: center;
}
.container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100vh;
}
header {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #8B3A1F 0%, #2A5C8B 100%);
    border-bottom: 3px solid #C9922A;
}
.logo {
    width: 80px;
    height: auto;
    margin-bottom: 8px;
    border-radius: 8px;
}
h1 {
    font-size: 28px;
    color: #C9922A;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.subtitle { color: #fff; margin-top: 4px; font-size: 14px; }
.meta { color: #ccc; font-size: 11px; margin-top: 2px; }
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.message { display: flex; }
.message.user { justify-content: flex-end; }
.message.bot { justify-content: flex-start; }
.bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}
.message.user .bubble {
    background: #2A5C8B;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.message.bot .bubble {
    background: #2a2a3e;
    color: #e0e0e0;
    border-bottom-left-radius: 4px;
    border: 1px solid #3a3a4e;
}
.bubble strong { color: #C9922A; }
.bubble a { color: #5ba8f5; text-decoration: none; }
.bubble a:hover { text-decoration: underline; }
.bubble a.yt-link {
    display: inline-block;
    background: #8B3A1F;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    margin: 4px 2px;
    font-size: 13px;
}
.bubble a.yt-link:hover { background: #a84a2f; }
.bubble h1,.bubble h2,.bubble h3 { color: #C9922A; margin: 8px 0 4px; font-size: 16px; }
.bubble ul,.bubble ol { margin-left: 20px; margin-top: 4px; }
.bubble li { margin-bottom: 4px; }
.bubble blockquote {
    border-left: 3px solid #C9922A;
    padding-left: 12px;
    margin: 8px 0;
    color: #bbb;
    font-style: italic;
}
.loading { color: #888; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.input-area {
    padding: 16px;
    display: flex;
    gap: 8px;
    background: #1a1a2e;
    border-top: 1px solid #3a3a4e;
}
#question {
    flex: 1;
    padding: 12px 16px;
    border-radius: 24px;
    border: 1px solid #3a3a4e;
    background: #2a2a3e;
    color: #fff;
    font-size: 15px;
    outline: none;
}
#question:focus { border-color: #C9922A; }
#question::placeholder { color: #666; }
#send {
    padding: 12px 24px;
    border-radius: 24px;
    border: none;
    background: #8B3A1F;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
}
#send:hover { background: #a84a2f; }
#send:disabled { opacity: 0.5; cursor: not-allowed; }
footer {
    padding: 10px;
    text-align: center;
    font-size: 11px;
    color: #666;
    border-top: 1px solid #2a2a3e;
}
footer a { color: #C9922A; text-decoration: none; }
footer a:hover { text-decoration: underline; }
@media (max-width: 600px) {
    .bubble { max-width: 92%; font-size: 13px; }
    header { padding: 12px; }
    h1 { font-size: 22px; }
    .logo { width: 60px; }
}
