body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #070F26;
    color: #333;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Video and Chat Section */
.video-chat-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Desktop layout - side by side */
.video-container {
    flex: 2;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    position: relative;
}

.chat-container {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    height: 0;
    padding-bottom: 56.25%;
    /* Match video height */
    position: relative;
}

.video-container iframe,
.chat-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Related Streams Section */
.related-streams {
    margin-top: 30px;
    padding: 0 0px;
}

.related-streams h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    color: #ffffff;
    font-weight: 500;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel {
    overflow: hidden;
}

.streams-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
    cursor: grab;
    user-select: none;
}

.streams-track:active {
    cursor: grabbing;
}

.stream-card {
    flex: 0 0 23%;
    background: #0F0F0F;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    touch-action: pan-y;
    /* Allow vertical scrolling on touch devices */
}

/* Add smooth transition when not dragging */
.streams-track:not(.dragging) {
    transition: transform 0.5s ease;
}

.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stream-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.stream-info {
    padding: 12px;
    background: #0F0F0F;
}

.stream-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-info .view-count {
    margin: 5px 0 0;
    color: #e7e7e7;
    font-size: 13px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #252525;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.carousel-button:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: -20px;
}

.carousel-button.next {
    right: -20px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .stream-card {
        flex: 0 0 31%;
        /* 3 cards per row */
    }
}

@media (max-width: 768px) {
    .video-chat-container {
        flex-direction: column;
    }

    .video-container {
        padding-bottom: 56.25%;
        /* 16:9 aspect ratio */
        width: 100%;
    }

    .chat-container {
        padding-bottom: 100%;
        /* Square aspect ratio for chat */
        width: 100%;
        margin-top: 15px;
    }

    .stream-card {
        flex: 0 0 48%;
        /* 2 cards per row */
    }

    .stream-card img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .video-chat-container {
        gap: 10px;
    }

    .chat-container {
        padding-bottom: 120%;
        /* Taller chat area */
    }

    .stream-card {
        flex: 0 0 100%;
        /* 1 card per row */
    }

    .carousel-button {
        width: 30px;
        height: 30px;
    }
}

.video-chat-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Desktop layout - side by side */
.video-container {
    flex: 2;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    position: relative;
}

.chat-container {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    height: 0;
    padding-bottom: 56.25%;
    /* Match video height */
    position: relative;
}

.video-container iframe,
.chat-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile layout - stacked */
@media (max-width: 768px) {
    .video-chat-container {
        flex-direction: column;
    }

    .video-container {
        padding-bottom: 56.25%;
        /* 16:9 aspect ratio */
        width: 100%;
    }

    .chat-container {
        padding-bottom: 100%;
        /* Square aspect ratio for chat */
        width: 100%;
        margin-top: 15px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .video-chat-container {
        gap: 10px;
    }

    .chat-container {
        padding-bottom: 120%;
        /* Taller chat area */
    }
}