
    /* --- Animations --- */
    @keyframes fadeInUpFloating { from { opacity: 0; transform: translate(-50%, 100px); } to { opacity: 1; transform: translate(-50%, 0); } }
    @keyframes pulse-live { 0% { box-shadow: 0 0 0 0 rgba(255, 0, 60, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(255, 0, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 0, 60, 0); } }
    @keyframes spin-loader { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    @keyframes pulse-logo { 0% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 0.8; } }

    /* --- BIG PLAYER STYLES (החלק שהיה חסר) --- */
    .big-player-wrapper {
        position: fixed; /* שינוי ל-fixed כדי שיהיה מעל הכל */
        top: 140px;
        left: 50%;
        transform: translateX(-50%) scale(0.9);
        width: 78%; 
        max-width: 1200px;
        height: calc(100vh - 350px);
        min-height: 400px;
        background: #000;
        border: 1px solid var(--live-comp-primary);
        box-shadow: 0 0 50px rgba(0, 243, 255, 0.15);
        border-radius: 16px;
        z-index: 9999; /* Z-index גבוה מאוד */
       /* התיקון כאן: הוספת visibility */
        opacity: 0;
        visibility: hidden; 
        pointer-events: none;
        
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex; flex-direction: column; overflow: hidden;
    }

    .big-player-wrapper.active {
        /* התיקון כאן: החזרת visibility */
        opacity: 1; 
        visibility: visible; 
        pointer-events: all;
        
        transform: translateX(-50%) scale(1);
        top: 13vh;
    }

    .close-player-btn {
        position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.7); color: white; border: 1px solid rgba(255,255,255,0.2); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center; font-weight: bold; transition: 0.2s;
    }
    .close-player-btn:hover { background: #ff003c; border-color: #ff003c; }

  /* --- Loader Animation Styles --- */
    .player-loading-overlay {
        position: absolute; inset: 0; background: #000; z-index: 50; 
        display: flex; align-items: center; justify-content: center;
        transition: all 0.5s ease; /* שיניתי ל-all כדי שיתפוס גם את ה-visibility */
        
        /* התיקון כאן */
        opacity: 0; 
        visibility: hidden; 
        pointer-events: none;
    }
    
    .player-loading-overlay.visible { 
        /* התיקון כאן */
        opacity: 1; 
        visibility: visible; 
        pointer-events: all; 
    }
    .loader-content { position: relative; display: flex; align-items: center; justify-content: center; width: 120px; height: 120px; }
    .loader-spinner {
        position: absolute; width: 100%; height: 100%;
        border: 3px solid rgba(255, 255, 255, 0.1); border-top: 3px solid var(--live-comp-primary); border-right: 3px solid var(--live-comp-primary);
        border-radius: 50%; animation: spin-loader 1s linear infinite; box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    }
    .loader-logo-img { width: 60px; height: auto; z-index: 2; animation: pulse-logo 2s infinite ease-in-out; }


    /* --- Floating Bar Styles --- */
    .floating-bar-container {
        position: absolute;
        bottom: 4vh; 
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 1600px;
        height: 246px; 
        z-index: 50;
        background: var(--live-comp-glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--live-comp-glass-border);
        border-top: 1px solid rgba(0, 243, 255, 0.3);
        border-radius: 24px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.6);
        display: flex; flex-direction: column; justify-content: center; padding: 15px 25px;
        opacity: 0;
        animation: fadeInUpFloating 1.5s ease-out 7s forwards;
        transform-origin: bottom center; 
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* כיווץ הבר כשהנגן פעיל */
    body.player-active .floating-bar-container {
        height: 140px; 
        bottom: 2vh; /* הורדנו קצת למטה */
        background: rgba(0, 0, 0, 0.9);
        border-color: rgba(255,255,255,0.1);
        width: 85%;
    }

    .bar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #fff; transition: all 0.3s; }
    body.player-active .bar-header { display: none; }

    .live-indicator { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }
    .live-dot { width: 8px; height: 8px; background: #ff003c; border-radius: 50%; box-shadow: 0 0 10px #ff003c; animation: pulse-live 2s infinite; }

    .cards-scroller { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 5px; padding-top: 5px; scroll-behavior: smooth; scrollbar-width: none; height: 100%; align-items: center; }
    .cards-scroller::-webkit-scrollbar { display: none; }

    /* --- Streamer Cards --- */
    .streamer-card {
        flex: 0 0 auto;
        width: 280px; height: 200px; 
        background: rgba(20, 20, 30, 0.6);
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 16px;
        display: flex; flex-direction: column; overflow: hidden; 
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        text-decoration: none; position: relative;
    }
    .streamer-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 243, 255, 0.15); border-color: rgba(0, 243, 255, 0.4); }
    
    .card-thumbnail-container { width: 100%; height: 120px; position: relative; background: #000; transition: all 0.5s ease; }
    .live-preview-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: 0.3s; }
    
    .card-bottom-info { flex: 1; flex-direction: row-reverse; display: flex; align-items: center; padding: 10px 15px; gap: 12px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); justify-content: right; transition: all 0.3s ease; opacity: 1; }
    .s-avatar-small { width: 45px; height: 45px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.1); }
    .s-info { display: flex; flex-direction: column; line-height: 1.2; text-align: right; } 
    .s-name { color: #fff; font-weight: 600; font-size: 0.95rem; }
    .s-game { color: #888; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px;}
    .s-viewers { color: var(--live-comp-primary); font-size: 0.75rem; margin-top: 2px; font-weight: 500;}

    /* --- Player Active Card Styles --- */
    body.player-active .streamer-card { width: 160px; height: 90px; border-radius: 8px; margin-top: 0; }
    body.player-active .streamer-card:hover { transform: scale(1.05); }
    body.player-active .card-thumbnail-container { height: 100%; }
    body.player-active .card-bottom-info { opacity: 0; height: 0; padding: 0; overflow: hidden; }
    
    body.player-active .streamer-card::after {
        content: attr(data-name);
        position: absolute; bottom: 0; left: 0; right: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
        color: white; font-size: 0.8rem; font-weight: bold; text-align: center; padding: 5px 2px; pointer-events: none;
    }

    body.player-active .streamer-card.active-stream { border: 2px solid #ff003c; filter: brightness(0.6); cursor: default; }
    body.player-active .streamer-card.active-stream::before {
        content: 'PLAYING'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
        font-size: 0.7rem; background: #ff003c; padding: 2px 6px; border-radius: 4px; z-index: 10; font-weight: bold;
    }