/* ===== Stream Carousel — Scoped Styles (sc- prefix) ===== */

#stream-carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Viewport (iframe wrapper) */
#stream-carousel-container .sc-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #111115;
}

#stream-carousel-container .sc-viewport iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Navigation buttons */
#stream-carousel-container .sc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #eaeaea;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

#stream-carousel-container .sc-btn:hover {
    background: rgba(196, 30, 46, 0.3);
    border-color: rgba(196, 30, 46, 0.5);
    box-shadow: 0 0 20px rgba(196, 30, 46, 0.2);
}

#stream-carousel-container .sc-btn-prev {
    left: -56px;
}

#stream-carousel-container .sc-btn-next {
    right: -56px;
}

/* Streamer info bar */
#stream-carousel-container .sc-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0.5rem;
    margin-top: 0.5rem;
}

#stream-carousel-container .sc-info-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

#stream-carousel-container .sc-streamer-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #eaeaea;
}

#stream-carousel-container .sc-streamer-rank {
    font-size: 0.82rem;
    color: #9a9aaa;
    font-weight: 500;
}

/* Platform badge */
#stream-carousel-container .sc-platform-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.03em;
    line-height: 1.4;
    white-space: nowrap;
}

#stream-carousel-container .sc-badge-youtube {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.25);
}

#stream-carousel-container .sc-badge-twitch {
    background: rgba(145, 70, 255, 0.15);
    color: #b9a3e3;
    border: 1px solid rgba(145, 70, 255, 0.25);
}

/* Counter */
#stream-carousel-container .sc-counter {
    text-align: center;
    font-size: 0.75rem;
    color: #5a5a6a;
    margin-top: 0.2rem;
}

/* Dots */
#stream-carousel-container .sc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0.8rem;
}

#stream-carousel-container .sc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s;
}

#stream-carousel-container .sc-dot-active {
    background: #c41e2e;
    box-shadow: 0 0 8px rgba(196, 30, 46, 0.4);
}

#stream-carousel-container .sc-dot:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Empty state */
#stream-carousel-container .sc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #16161a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
}

#stream-carousel-container .sc-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    opacity: 0.4;
}

#stream-carousel-container .sc-empty p {
    color: #5a5a6a;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1060px) {
    #stream-carousel-container .sc-btn-prev {
        left: 8px;
    }
    #stream-carousel-container .sc-btn-next {
        right: 8px;
    }
}

@media (max-width: 640px) {
    #stream-carousel-container .sc-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    #stream-carousel-container .sc-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    #stream-carousel-container .sc-info-left {
        flex-wrap: wrap;
    }
}
