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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0e0e10;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

.container {
    max-width: 100%;
    height: 100%;
    margin: 0;
    background: #0e0e10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.main-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.streams-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    height: 100%;
    background: #18181b;
    border-right: 1px solid #1f1f23;
    justify-content: center;
}

.streams-header {
    background: #18181b;
    color: #efeff1;
    padding: 8px 12px;
    text-align: center;
    flex-shrink: 0;
    border-bottom: 1px solid #1f1f23;
}

.streams-header h1 {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
}

.stream-container {
    background: #18181b;
    overflow: hidden;
    flex-shrink: 0;
}

.stream-container:hover {
    background: #1f1f23;
}

.stream-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #1f1f23;
    border-bottom: 1px solid #2d2d31;
}

.stream-header img {
    width: 14px;
    height: 14px;
}

.stream-header .kick-icon {
    font-size: 14px;
}

.stream-header .kick-logo {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

.stream-header span {
    font-weight: 600;
    font-size: 0.75rem;
    color: #efeff1;
}

#twitch-embed {
    width: 100%;
    height: 210px;
}

#kick-embed {
    display: block;
    height: 210px;
}

.chat-section {
    background: #0e0e10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 6px 12px;
    background: #18181b;
    border-bottom: 1px solid #1f1f23;
    flex-shrink: 0;
}

.chat-header h2 {
    display: none;
}

.chat-tabs {
    display: flex;
    gap: 6px;
}

.tab-btn {
    flex: 1;
    padding: 6px 12px;
    border: none;
    background: #1f1f23;
    font-weight: 600;
    font-size: 0.75rem;
    color: #efeff1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #2d2d31;
}

.tab-btn.active {
    background: #9147ff;
    color: white;
}

.chat-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

#twitch-chat,
#kick-chat {
    position: absolute;
    top: 0;
    height: 100%;
    border: none;
}

#twitch-chat {
    left: 0;
    width: 50%;
}

#kick-chat {
    left: 50%;
    width: 50%;
}

/* Responsive design */
@media (max-width: 1600px) {
    .main-content {
        grid-template-columns: 450px 1fr;
    }
}

@media (max-width: 1400px) {
    .main-content {
        grid-template-columns: 400px 1fr;
    }
    
    #twitch-embed,
    #kick-embed {
        height: 250px;
    }
}

@media (max-width: 1024px) {
    body {
        height: auto;
        overflow: auto;
    }
    
    .container {
        height: auto;
        min-height: 100vh;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .streams-section {
        height: auto;
        overflow-y: visible;
    }
    
    .chat-section {
        height: 600px;
        min-height: 600px;
    }
    
    header h1 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    header {
        padding: 6px 15px;
    }
    
    header h1 {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 8px;
        gap: 8px;
    }
    
    #twitch-embed,
    #kick-embed {
        height: 220px;
    }
    
    .chat-section {
        height: 500px;
        min-height: 500px;
    }
}

/* Scrollbar personalizado */
.streams-section::-webkit-scrollbar {
    width: 8px;
}

.streams-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.streams-section::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.streams-section::-webkit-scrollbar-thumb:hover {
    background: #555;
}

