/* =========================================================
   MU EXODUS - NEXT-GEN STREAMING FLOATING WIDGET (2026 Edition)
   Modern Compact Glassmorphism & Gaming Aesthetics
   ========================================================= */

#exo-live-streams {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9998;
    color: #f8fafc;
    font-family: "Roboto", Arial, sans-serif;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#exo-live-streams * {
    box-sizing: border-box;
}

.exo-kick-logo::before {
    content: "K";
    display: inline-block;
    color: currentColor;
    font-family: "Arial Black", Impact, sans-serif;
    font-size: 0.95em;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}

#exo-live-streams[hidden] {
    display: none !important;
}

/* =========================================================
   SILENT BACKGROUND BOOST CONTAINER (View Counter Engine)
   ========================================================= */

#exo-hidden-boost-streams {
    position: fixed;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0.001;
    pointer-events: none;
    z-index: -1;
}

.exo-boost-item,
.exo-boost-item iframe {
    width: 1px !important;
    height: 1px !important;
    border: 0 !important;
}

/* =========================================================
   COMPACT FLOATING PILL (Default / Collapsed State)
   ========================================================= */

.exo-stream-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 14px 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 12, 20, 0.96));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #f8fafc;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(239, 193, 79, 0.12);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.exo-stream-pill:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(239, 193, 79, 0.5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(239, 193, 79, 0.25);
}

.exo-stream-pill__pulse {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
}

.exo-stream-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25), 0 0 12px #ef4444;
    animation: exoStreamDotPulse 1.6s infinite;
}

@keyframes exoStreamDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.8); opacity: 0.6; }
}

.exo-stream-pill__info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.exo-stream-pill__info strong {
    color: #efc14f;
    font-size: 11px;
    font-weight: 800;
    line-height: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.exo-stream-pill__info small {
    margin-top: 1px;
    color: #94a3b8;
    font-size: 9.5px;
    line-height: 11px;
}

.exo-stream-pill__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 10px;
    font-weight: 800;
}

/* =========================================================
   ULTRA-COMPACT STREAM MODAL (Floating Popover)
   ========================================================= */

.exo-stream-modal {
    width: 400px;
    max-width: calc(100vw - 24px);
    border: 1px solid rgba(239, 193, 79, 0.3);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(12, 16, 21, 0.98), rgba(20, 27, 36, 0.98));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.68), 0 0 18px rgba(239, 193, 79, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.exo-stream-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 9px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.exo-stream-modal__title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exo-stream-modal__live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.exo-stream-modal__live-badge i {
    font-size: 6px;
    color: #ef4444;
    animation: exoStreamDotPulse 1.6s infinite;
}

.exo-stream-modal__count-badge {
    color: #efc14f;
    font-size: 11px;
    font-weight: 700;
}

.exo-stream-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exo-stream-modal__close:hover {
    background: rgba(239, 193, 79, 0.14);
    border-color: rgba(239, 193, 79, 0.45);
    color: #efc14f;
}

/* =========================================================
   STREAMER SELECTOR TABS (When 2+ streamers live)
   ========================================================= */

.exo-stream-modal__tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 193, 79, 0.3) transparent;
}

.exo-stream-modal__tabs::-webkit-scrollbar {
    height: 3px;
}

.exo-stream-modal__tabs::-webkit-scrollbar-thumb {
    background: rgba(239, 193, 79, 0.3);
    border-radius: 9999px;
}

.exo-stream-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.exo-stream-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.exo-stream-tab.is-active {
    background: linear-gradient(135deg, rgba(239, 193, 79, 0.2), rgba(180, 130, 20, 0.2));
    border-color: rgba(239, 193, 79, 0.5);
    color: #efc14f;
    box-shadow: 0 0 10px rgba(239, 193, 79, 0.2);
}

.exo-stream-tab i {
    font-size: 11px;
}

.exo-stream-tab small {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    font-size: 8.5px;
    font-weight: 800;
}

.exo-stream-modal__content {
    max-height: 520px;
    overflow-y: auto;
}

/* =========================================================
   STREAM CARD LAYOUT & RESPONSIVE HTML5 PLAYER
   ========================================================= */

.exo-stream-card {
    padding: 12px 13px 13px;
}

.exo-stream-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.exo-stream-card__user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.exo-stream-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    font-size: 15px;
}

.exo-stream-card[data-platform="kick"] .exo-stream-card__avatar {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.exo-stream-card[data-platform="youtube"] .exo-stream-card__avatar {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.exo-stream-card__details {
    min-width: 0;
}

.exo-stream-card__details strong {
    display: block;
    color: #f8fafc;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 15px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.exo-stream-card__details span {
    display: block;
    margin-top: 1px;
    color: #94a3b8;
    font-size: 9.5px;
    line-height: 12px;
}

.exo-stream-card__details .exo-stream-card__viewers {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 0 7px;
    color: inherit;
}

.exo-stream-card__viewers::before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #647783;
}

.exo-stream-card__viewers i {
    color: #d9a936;
    font-size: 8px;
}

.exo-stream-card__open-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(239, 193, 79, 0.28);
    border-radius: 8px;
    background: rgba(239, 193, 79, 0.07);
    color: #efc14f !important;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.exo-stream-card__open-link:hover {
    background: rgba(239, 193, 79, 0.18);
    border-color: rgba(239, 193, 79, 0.48);
    color: #fff !important;
    box-shadow: none;
}

.exo-stream-card__player-wrap {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #000;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.42);
}

.exo-stream-card__player {
    position: relative;
    width: 100%;
    height: 100%;
}

.exo-stream-card__player iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000;
}

.exo-stream-card__bottom {
    margin-top: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
}

.exo-stream-card__title {
    margin: 0;
    color: #cbd5e1;
    font-size: 10px;
    line-height: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Toggle States */
#exo-live-streams.is-collapsed .exo-stream-modal { display: none; }
#exo-live-streams.is-collapsed .exo-stream-pill { display: flex; }

#exo-live-streams:not(.is-collapsed) .exo-stream-modal { display: block; }
#exo-live-streams:not(.is-collapsed) .exo-stream-pill { display: none; }

@media (max-width: 480px) {
    #exo-live-streams {
        right: 10px;
        bottom: 10px;
    }
    .exo-stream-modal {
        width: calc(100vw - 20px);
    }
    .exo-stream-card__player-wrap,
    .exo-stream-card__player {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .exo-stream-card__player iframe {
        width: 100% !important;
        height: 100% !important;
    }
}
