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

body {
    font-family: "Roboto", "Arial", sans-serif;
    background-color: #0f0f0f;
    color: #f1f1f1;
}

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

/* Header */
.header {
    background-color: #0f0f0f;
    padding: 12px 16px;
    border-bottom: 1px solid #272727;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo svg {
    width: 90px;
    height: 20px;
}

/* Main content */
.main-content {
    display: flex;
    gap: 24px;
    padding: 24px;
    max-width: 1800px;
    margin: 0 auto;
}

/* Video section */
.video-section {
    flex: 1;
    max-width: 1280px;
}

.video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    margin-top: 16px;
}

.video-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: #f1f1f1;
    margin-bottom: 8px;
}

.video-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 16px;
}

.live-badge {
    background-color: #cc0000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* CTA Button */
.cta-button {
    width: 100%;
    background: linear-gradient(90deg, #cc0000 0%, #ff0000 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin: 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.cta-button:hover {
    background: linear-gradient(90deg, #ff0000 0%, #ff3333 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Description */
.description {
    background-color: #272727;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
}

.channel-info {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.channel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.channel-details h3 {
    font-size: 16px;
    font-weight: 600;
    color: #f1f1f1;
}

.subscribers {
    font-size: 12px;
    color: #aaa;
}

.description-text {
    margin-top: 12px;
    line-height: 1.6;
    color: #f1f1f1;
}

.description-text p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Chat section */
.chat-section {
    width: 400px;
    background-color: #212121;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: calc(100vh - 100px);
    position: sticky;
    top: 80px;
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid #3f3f3f;
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #f1f1f1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 400px;
    max-height: 600px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #0f0f0f;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #3f3f3f;
    border-radius: 4px;
}

.chat-message {
    display: flex;
    gap: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.message-content {
    flex: 1;
}

.message-author {
    font-size: 13px;
    font-weight: 600;
    color: #f1f1f1;
    margin-bottom: 2px;
}

.message-text {
    font-size: 13px;
    color: #f1f1f1;
    line-height: 1.4;
    word-wrap: break-word;
}

.message-time {
    font-size: 11px;
    color: #aaa;
    margin-left: 4px;
}

/* Chat input */
.chat-input-container {
    padding: 16px;
    border-top: 1px solid #3f3f3f;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    background-color: #3f3f3f;
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
    gap: 8px;
}

.chat-input {
    flex: 1;
    background-color: transparent;
    border: none;
    color: #f1f1f1;
    font-size: 14px;
    outline: none;
    padding: 8px 0;
}

.chat-input::placeholder {
    color: #aaa;
}

.send-button {
    background-color: transparent;
    color: #aaa;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.send-button svg {
    width: 24px;
    height: 24px;
}

.chat-input:not(:placeholder-shown) ~ .send-button,
.chat-input:focus ~ .send-button {
    color: #3ea6ff;
}

.send-button:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }

    .chat-section {
        width: 100%;
        max-height: 500px;
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 8px 12px;
    }

    .logo svg {
        width: 70px;
        height: 16px;
    }

    .main-content {
        padding: 12px;
        gap: 16px;
    }

    .video-player {
        border-radius: 8px;
    }

    .video-info {
        margin-top: 12px;
    }

    .video-title {
        font-size: 15px;
        line-height: 22px;
    }

    .video-meta {
        font-size: 12px;
        gap: 12px;
    }

    .live-badge {
        font-size: 11px;
        padding: 3px 6px;
    }

    .cta-button {
        font-size: 15px;
        padding: 14px 18px;
        margin: 12px 0;
    }

    .description {
        padding: 12px;
    }

    .channel-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .channel-details h3 {
        font-size: 14px;
    }

    .subscribers {
        font-size: 11px;
    }

    .description-text p {
        font-size: 13px;
    }

    .chat-section {
        max-height: 400px;
    }

    .chat-header {
        padding: 12px;
    }

    .chat-header h3 {
        font-size: 14px;
    }

    .chat-messages {
        padding: 12px;
        gap: 12px;
        min-height: 300px;
        max-height: 400px;
    }

    .message-avatar {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .message-author {
        font-size: 12px;
    }

    .message-text {
        font-size: 12px;
    }

    .message-time {
        font-size: 10px;
    }

    .chat-input-container {
        padding: 12px;
    }

    .chat-input {
        font-size: 13px;
        padding: 8px 12px;
    }

    .send-button {
        font-size: 13px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 8px;
        gap: 12px;
    }

    .video-title {
        font-size: 14px;
        line-height: 20px;
    }

    .cta-button {
        font-size: 14px;
        padding: 12px 16px;
    }

    .description-text p {
        font-size: 12px;
    }

    .chat-messages {
        min-height: 250px;
        max-height: 300px;
    }
}