* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background-color: #000000;
    color: #fff;
    overflow-x: hidden;
}

/* Header */
.youtube-header {
    background-color: #000000;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.youtube-logo {
    height: 20px;
    width: 90px;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
}

.header-icon:hover {
    opacity: 0.7;
}

.header-separator {
    height: 1px;
    background-color: #303030;
    margin-top: 56px;
}

/* Container Principal */
.main-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    max-width: 1920px;
    margin: 0 auto;
    padding: 24px;
    margin-top: 56px;
}

/* Seção de Vídeo */
.video-section {
    width: 100%;
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    position: relative;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Informações do Vídeo */
.video-info {
    padding: 20px 0;
}

.video-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    margin-bottom: 12px;
    color: #fff;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-details {
    display: flex;
    flex-direction: column;
}

.channel-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.channel-subs {
    font-size: 12px;
    color: #aaa;
}

.subscribe-btn {
    background-color: #cc0000;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.subscribe-btn:hover {
    background-color: #a00000;
}

.video-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    background-color: transparent;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 2px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #303030;
}

.action-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.action-btn.likes {
    border-left: 1px solid #303030;
    padding-left: 16px;
}

.dislike {
    margin-left: 8px;
}

.like-count {
    font-size: 13px;
    color: #fff;
}

.action-btn.more {
    padding: 8px;
}

/* Chat ao Vivo */
.chat-section {
    background-color: #0f0f0f;
    border: 1px solid #303030;
    border-radius: 12px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid #303030;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
}

.chat-viewers {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #aaa;
}

.viewer-icon {
    width: 16px;
    height: 16px;
    fill: #aaa;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #0f0f0f;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #303030;
    border-radius: 4px;
}

.chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #3ea6ff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Individual avatar colors */
.user-avatar.rebeca {
    background-color: #ff6b6b;
}

.user-avatar.carol {
    background-color: #4ecdc4;
}

.user-avatar.roberto {
    background-color: #95e1d3;
    color: #000;
}

.user-avatar.maria {
    background-color: #f38181;
}

.user-avatar.rosana {
    background-color: #aa96da;
}

.message-content {
    flex: 1;
}

.username {
    font-size: 13px;
    font-weight: 500;
    color: #3ea6ff;
    display: block;
    margin-bottom: 4px;
}

.message-text {
    font-size: 13px;
    line-height: 18px;
    color: #fff;
    word-wrap: break-word;
}

.chat-input {
    padding: 16px;
    border-top: 1px solid #303030;
    display: flex;
    gap: 8px;
}

.chat-input input {
    flex: 1;
    background-color: #212121;
    border: 1px solid #303030;
    border-radius: 2px;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.chat-input input:focus {
    border-color: #3ea6ff;
}

.send-btn {
    background-color: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn svg {
    width: 24px;
    height: 24px;
    fill: #aaa;
}

.send-btn:hover svg {
    fill: #fff;
}

/* Footer */
.footer {
    background-color: #0f0f0f;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #303030;
    margin-top: 40px;
}

.footer p {
    font-size: 12px;
    color: #aaa;
}

/* Responsivo */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .chat-section {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 12px;
    }

    .video-title {
        font-size: 16px;
        line-height: 22px;
    }

    .video-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-actions {
        width: 100%;
        justify-content: space-between;
    }
}