﻿.streaming-arena{
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    width: 100%;
    clear: both;
}

.video-frame {
    flex: 1;
    position: relative;
    padding: 10px;
    background: #000;

    border: 4px double #a000c8;
    border-radius: 5px;

    animation: breathingGlow 4s ease-in-out infinite;
}

.video-frame iframe{
    width: 100%;
    aspect-ratio: 19 / 9;
    display: block;
    border: 1px solid #111;
}

@keyframes breathingGlow{
    0%{
        border-color: #a000c8;
        box-shadow: 0 0 15px rgba(160,0,200,0.5), inset 0 0 10px rgba(160,0.200,0.3);
    }

    50%{
        border-color: red;
        box-shadow: 0 0 30px rgba(255,0,0,0.8), inset 0 0 20px rgba(255,0,0,0.5);
    }
    100% {
        border-color: #a000c8;
        box-shadow: 0 0 15px rgba(160, 0, 200, 0.5), inset 0 0 10px rgba(160, 0, 200, 0.3);
    }
}

.chat-frame {
    flex: 1;
    border: 2px solid #a000c8;
    background: #000;
    height: 350px;
}

@media (max-width: 900px){
    .streaming-arena{
        flex-direction: column;
        padding: 4px
    }

    .chat-frame {
        display: none;
    }

    .video-frame {
        padding: 5px;
    }
}

/* --- 3. THE SONG SCROLL FIX --- */
#song-title-container {
    display: flex;
    overflow-x: auto; /* Enables horizontal scrolling */
    overflow-y: hidden;
    white-space: nowrap; /* Keeps songs in one long row */
    gap: 15px;
    padding: 20px;
    -webkit-overflow-scrolling: touch; /* Smooth swipe for Android */
}

/* THE MAGIC LINE: Stops buttons from shrinking to fit the screen */
.song-item {
    flex: 0 0 auto; /* */
    padding: 15px 25px;
    background: #000;
    color: #fff;
    border: 1px solid red;
    cursor: pointer;
    font-family: monospace;
    text-transform: uppercase;
    transition: 0.3s ease;
}

    .song-item:hover {
        background: #a000c8;
        color: #000;
        box-shadow: 0 0 15px red;
    }

/* --- 4. CUSTOM PURPLE SCROLLBAR --- */
#song-title-container::-webkit-scrollbar {
    height: 8px;
}

#song-title-container::-webkit-scrollbar-track {
    background: #000;
}

#song-title-container::-webkit-scrollbar-thumb {
    background: #a000c8;
    border-radius: 10px;
    border: 1px solid red;
}

/* --- 5. MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .streaming-arena {
        flex-direction: column; /* Stack video on top of chat */
        padding: 5px;
    }

    .chat-frame {
        display: none; /* Hide chat on small screens to prioritize gameplay */
    }

    .video-frame {
        padding: 5px;
    }
}


.live-status {
    color: white;
    font-family: monospace;
    font-weight: bold;
    margin-bottom: 10px;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: blink 1s infinite; /* Makes it blink! */
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}