/**
 * BGS Watch Party — Styles v2
 */

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; }

.bgs-party-body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
}

.bgs-party-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

/* ==================== HEADER ==================== */
.bgs-party-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(180deg, #1a1a1a, #0f0f0f);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 50px;
}

.bgs-party-logo a {
    font-size: 16px;
    font-weight: bold;
    color: #e50914;
    text-decoration: none;
    white-space: nowrap;
}

.bgs-party-info {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.bgs-party-info h1 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bgs-party-host {
    font-size: 12px;
    color: #888;
}

.bgs-party-status-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(229,9,20,0.2);
    border: 1px solid rgba(229,9,20,0.4);
    border-radius: 20px;
    font-size: 11px;
    color: #ff6b6b;
    margin-left: 8px;
}

.bgs-party-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ==================== BUTTONS ==================== */
.bgs-party-btn {
    padding: 7px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bgs-party-btn:hover { transform: translateY(-1px); }

.bgs-btn-share  { background: linear-gradient(135deg,#2196f3,#1565c0); color:#fff; }
.bgs-btn-end    { background: linear-gradient(135deg,#f44336,#c62828); color:#fff; }
.bgs-btn-copy   { background: linear-gradient(135deg,#4caf50,#2e7d32); color:#fff; }

/* ==================== MAIN LAYOUT ==================== */
.bgs-party-main {
    display: flex;
    flex: 1;
    min-height: 0;          /* flex child can shrink */
    overflow: hidden;
}

/* ==================== PLAYER (70%) ==================== */
.bgs-party-player {
    flex: 7;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-width: 0;
}

.bgs-player-wrapper {
    position: relative;
    background: #000;
    flex-shrink: 0;
}

.bgs-player-tabs {
    display: flex;
    gap: 4px;
    background: #1a1a1a;
    padding: 6px 8px;
    overflow-x: auto;
    flex-shrink: 0;
}

.bgs-player-tab {
    padding: 6px 14px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #aaa;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.2s;
}
.bgs-player-tab:hover   { background: rgba(255,255,255,0.12); color:#fff; }
.bgs-player-tab.active  { background: rgba(76,175,80,0.2); border-color:#4caf50; color:#fff; }

.bgs-player-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.bgs-player-iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

.bgs-no-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: #111;
    color: #888;
}

/* Guest overlay — KALDIRILDI (guest'ler artık doğrudan video izleyebilir) */
.bgs-guest-overlay {
    display: none !important;
}

/* Content info */
.bgs-content-info {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.bgs-content-poster         { flex-shrink:0; width:120px; }
.bgs-content-poster img     { width:100%; border-radius:8px; }
.bgs-content-details        { flex:1; min-width:0; }
.bgs-content-details h2     { margin:0 0 8px; color:#fff; font-size:18px; }
.bgs-meta-year, .bgs-meta-rating, .bgs-meta-genre { display:inline-block; margin-right:12px; font-size:12px; color:#aaa; }
.bgs-content-description    { margin-top:10px; color:#999; font-size:13px; line-height:1.6; }

/* Episode bar */
.bgs-episode-bar        { padding:12px 16px; background:#1a1a2e; border-top:1px solid #333; flex-shrink:0; }
.bgs-episode-bar-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.bgs-episode-bar-header h3 { color:#fff; margin:0; font-size:15px; }
.bgs-host-only-note     { color:#888; font-size:12px; font-style:italic; }
.bgs-episode-buttons    { display:flex; flex-wrap:wrap; gap:7px; }

.bgs-episode-btn {
    background: #2a2a3e;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 7px 12px;
    cursor: pointer;
    color: #ddd;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    transition: all 0.2s;
    min-width: 110px;
    text-decoration: none;
}
.bgs-episode-btn:hover:not(:disabled) { background:#3a3a5e; border-color:#4caf50; color:#fff; }
.bgs-episode-btn.active   { background:#1b5e20; border-color:#4caf50; color:#fff; }
.bgs-episode-btn:disabled { opacity:0.5; cursor:not-allowed; }
.bgs-ep-label { font-size:10px; font-weight:700; color:#4caf50; text-transform:uppercase; }
.bgs-ep-title { font-size:11px; color:inherit; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:160px; }

/* ==================== DESKTOP CHAT (30%) ==================== */
.bgs-party-chat {
    flex: 0 0 340px;        /* sabit genişlik */
    width: 340px;
    display: flex;
    flex-direction: column;
    background: #141414;
    border-left: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;       /* critical: içerik taşmasın */
    min-height: 0;          /* CRITICAL: flex child shrink için */
    height: 100%;           /* parent yüksekliğini al */
}

.bgs-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #1c1c1c;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.bgs-chat-header h3 {
    margin: 0;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bgs-chat-unread-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: #e50a4a;
    color: #fff;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
}
.bgs-chat-unread-badge.visible { display: inline-flex; }

.bgs-chat-participants {
    font-size: 11px;
    color: #888;
    cursor: default;
}

/* Katılımcı avatarları — header'da satır */
.bgs-chat-participants-avatars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bgs-avatar-pill {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg,#e50a4a,#b20710);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border: 2px solid #1c1c1c;
    cursor: default;
    flex-shrink: 0;
}
.bgs-avatar-pill:not(:first-child) { margin-left: -6px; }
.bgs-avatar-pill[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 4px;
    white-space: nowrap;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1000;
}

/* Mesaj alanı — bu CRITICAL: flex:1 + min-height:0 */
.bgs-chat-messages {
    flex: 1;
    min-height: 0;          /* flex child must have this to shrink */
    overflow-y: auto;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
}

/* Input alanı — CRITICAL: flex-shrink:0 — asla küçülmesin */
.bgs-chat-input-area {
    display: flex;
    gap: 7px;
    padding: 10px 12px;
    background: #1c1c1c;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;         /* her zaman görünür */
    align-items: center;
    z-index: 10;            /* her zaman üstte */
    min-height: 56px;       /* minimum yükseklik garanti */
}

.bgs-chat-input {
    flex: 1;
    min-width: 0;
    padding: 9px 13px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
.bgs-chat-input:focus        { border-color: #e50a4a; background: rgba(255,255,255,0.09); }
.bgs-chat-input::placeholder { color: #555; }

.bgs-btn-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg,#e50914,#b20710);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.bgs-btn-send:hover { transform:scale(1.1); box-shadow:0 4px 12px rgba(229,9,20,0.4); }

/* Chat bubbles */
.bgs-chat-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.07);
    align-self: flex-start;
    word-break: break-word;
}
.bgs-chat-message.bgs-msg-self {
    background: linear-gradient(135deg,rgba(229,9,20,0.3),rgba(229,9,20,0.12));
    align-self: flex-end;
    border: 1px solid rgba(229,9,20,0.25);
}
.bgs-msg-header   { display:flex; justify-content:space-between; gap:8px; margin-bottom:3px; }
.bgs-msg-name     { font-size:11px; font-weight:700; color:#e50914; }
.bgs-msg-self .bgs-msg-name { color:#ff6b6b; }
.bgs-msg-time     { font-size:10px; color:#555; }
.bgs-msg-content  { font-size:13px; color:#ddd; line-height:1.4; }

.bgs-chat-system-message {
    text-align: center;
    padding: 6px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    color: #555;
    font-size: 11px;
    font-style: italic;
    align-self: center;
}

/* ==================== SCROLLBAR ==================== */
.bgs-chat-messages::-webkit-scrollbar,
.bgs-party-player::-webkit-scrollbar,
.bgs-episode-buttons::-webkit-scrollbar { width:4px; }
.bgs-chat-messages::-webkit-scrollbar-track,
.bgs-party-player::-webkit-scrollbar-track,
.bgs-episode-buttons::-webkit-scrollbar-track { background:transparent; }
.bgs-chat-messages::-webkit-scrollbar-thumb,
.bgs-party-player::-webkit-scrollbar-thumb,
.bgs-episode-buttons::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.12); border-radius:2px; }

/* ==================== CREATE PARTY BUTTON ==================== */
.bgs-create-party-container { text-align:center; padding:14px; margin:14px 0; }
.bgs-create-party-btn {
    padding: 11px 28px;
    background: linear-gradient(135deg,#e50914,#b20710);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.bgs-create-party-btn:hover    { transform:translateY(-2px); box-shadow:0 8px 24px rgba(229,9,20,0.4); }
.bgs-create-party-btn:disabled { background:#333; cursor:not-allowed; transform:none; box-shadow:none; }

/* ==================== SHARE MODAL ==================== */
.bgs-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.bgs-modal-content.bgs-share-modal {
    background: linear-gradient(145deg,#1e1e2e,#16162a);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    max-width: 480px;
    width: 92%;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn { from{opacity:0;transform:scale(0.94)} to{opacity:1;transform:scale(1)} }

.bgs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.bgs-modal-header h3 { margin:0; color:#fff; font-size:16px; }
.bgs-modal-close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.bgs-modal-close:hover { background:rgba(255,255,255,0.15); color:#fff; }

.bgs-share-link-area { display:flex; gap:8px; }
.bgs-share-link-input {
    flex:1;
    padding: 9px 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #ccc;
    font-size: 13px;
    outline: none;
}
.bgs-share-social { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.bgs-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
}
.bgs-share-btn:hover { transform:translateY(-2px); opacity:0.9; }
.bgs-share-whatsapp { background:linear-gradient(135deg,#25D366,#128C7E); }
.bgs-share-twitter  { background:linear-gradient(135deg,#1a1a1a,#333); }
.bgs-share-telegram { background:linear-gradient(135deg,#0088cc,#005fa3); }
.bgs-share-facebook { background:linear-gradient(135deg,#1877F2,#0d5ecf); }

/* ==================== PARTICIPANTS PANEL (desktop) ==================== */
.bgs-participants-panel {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: linear-gradient(145deg,#1e1e2e,#16162a);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 160px;
    max-width: 220px;
    z-index: 200;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.bgs-participants-panel h4 {
    margin: 0 0 8px;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bgs-participants-panel ul  { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:5px; }
.bgs-participant-item       { display:flex; align-items:center; gap:7px; }
.bgs-participant-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg,#e50a4a,#b20710);
    display: flex; align-items:center; justify-content:center;
    font-size: 11px; font-weight:700; color:#fff; flex-shrink:0;
}
.bgs-participant-name { font-size:12px; color:#ccc; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ==================== CUSTOM CONFIRM MODAL ==================== */
.bgs-confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bgs-confirm-box {
    background: linear-gradient(145deg,#1e1e2e,#16162a);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 28px 26px 22px;
    max-width: 360px;
    width: 88%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: confirmPop 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes confirmPop { from{opacity:0;transform:scale(0.78)} to{opacity:1;transform:scale(1)} }
.bgs-confirm-icon   { font-size:40px; margin-bottom:10px; display:block; }
.bgs-confirm-box h3 { color:#fff; font-size:17px; margin:0 0 8px; }
.bgs-confirm-box p  { color:#aaa; font-size:13px; margin:0 0 20px; line-height:1.5; }
.bgs-confirm-actions { display:flex; gap:10px; justify-content:center; }
.bgs-confirm-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
}
.bgs-confirm-btn:hover { transform:translateY(-1px); }
.bgs-confirm-cancel  { background:rgba(255,255,255,0.08); color:#ccc; border:1px solid rgba(255,255,255,0.1); }
.bgs-confirm-cancel:hover { background:rgba(255,255,255,0.14); color:#fff; }
.bgs-confirm-ok      { background:linear-gradient(135deg,#f44336,#c62828); color:#fff; }
.bgs-confirm-ok:hover { box-shadow:0 4px 14px rgba(244,67,54,0.4); }

/* ==================== MOBILE — FLOATING CHAT ==================== */
/* Desktop'ta mobile chat gizle */
.bgs-mobile-chat { display: none; }

@media (max-width: 900px) {

    .bgs-party-body { overflow: auto; height: auto; }
    .bgs-party-container { height: auto; overflow: visible; }

    .bgs-party-main {
        flex-direction: column;
        overflow: visible;
        min-height: 0;
    }

    .bgs-party-player {
        height: auto;
        overflow: visible;
    }

    /* Desktop chat → gizle */
    .bgs-party-chat { display: none !important; }

    /* Mobile floating chat → göster, ORTADA */
    .bgs-mobile-chat {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        align-items: center;
        z-index: 9000;
    }

    /* Participants panel mobilde gizle (chat içinde gösterilecek) */
    .bgs-participants-panel { display: none; }

    /* Content info mobilde dikey */
    .bgs-content-info { flex-direction: column; }
    .bgs-content-poster { width: 80px; }

    /* Episode list scroll */
    .bgs-episode-buttons { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }

    /* Header küçük ekranda */
    .bgs-party-header { flex-wrap: wrap; gap: 6px; }
}

/* Bubble butonu */
.bgs-chat-bubble-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg,#e50914,#b20710);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(229,9,20,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.bgs-chat-bubble-btn:hover { transform: scale(1.08); }

.bgs-chat-bubble-badge {
    position: absolute;
    top: -3px; right: -3px;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    background: #ff9800;
    color: #fff;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #0a0a0a;
}
.bgs-chat-bubble-badge.visible { display: flex; }

/* Mobile chat panel */
.bgs-mobile-chat-panel {
    position: fixed;
    bottom: 82px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    width: min(360px, calc(100vw - 24px));
    height: min(500px, calc(100vh - 110px));
    background: #141414;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    transform-origin: bottom center;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s;
    z-index: 8999;
}
.bgs-mobile-chat-panel.hidden {
    transform: translateX(-50%) scale(0.6);
    opacity: 0;
    pointer-events: none;
}

.bgs-mobile-chat-panel .bgs-chat-header {
    padding: 10px 14px;
    background: #1a1a1a;
    border-radius: 18px 18px 0 0;
    flex-shrink: 0;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.bgs-mobile-chat-panel .bgs-chat-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Katılımcı satırı (mobile panel içinde) */
.bgs-mobile-participants-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.bgs-mobile-participants-row .bgs-avatar-pill {
    width: 22px; height: 22px; font-size: 10px;
    border-color: #1a1a1a;
}
.bgs-mobile-participant-name-label {
    font-size: 11px;
    color: #666;
}

.bgs-mobile-chat-panel .bgs-chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 12px;
    gap: 6px;
    display: flex;
    flex-direction: column;
}

.bgs-mobile-chat-panel .bgs-chat-input-area {
    flex-shrink: 0;
    padding: 10px 12px;
    background: #1a1a1a;
    border-top: 1px solid rgba(255,255,255,0.07);
}

/* ==================== RESPONSIVE TABLET ==================== */
@media (max-width: 480px) {
    .bgs-party-info h1 { font-size: 13px; }
    .bgs-player-tab    { padding: 5px 10px; font-size: 11px; }
    .bgs-party-header  { padding: 8px 12px; }
}

/* ==================== CONNECTION STATUS ==================== */
.bgs-connection-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(76,175,80,0.15);
    border: 1px solid rgba(76,175,80,0.3);
    color: #4caf50;
    transition: all 0.3s;
}
.bgs-connection-status.error {
    background: rgba(244,67,54,0.15);
    border-color: rgba(244,67,54,0.3);
    color: #f44336;
}
.bgs-connection-status.syncing {
    background: rgba(255,152,0,0.15);
    border-color: rgba(255,152,0,0.3);
    color: #ff9800;
}

/* ==================== TYPING INDICATOR ==================== */
.bgs-typing-indicator {
    padding: 4px 12px;
    font-size: 11px;
    color: #666;
    font-style: italic;
    min-height: 20px;
    flex-shrink: 0;
}

/* ==================== EMOJI QUICK REACTIONS ==================== */
.bgs-emoji-bar {
    display: flex;
    gap: 4px;
    padding: 4px 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
    background: #181818;
}
.bgs-emoji-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 4px 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}
.bgs-emoji-btn:hover {
    background: rgba(255,255,255,0.12);
    transform: scale(1.2);
}

/* ==================== FLOATING EMOJI REACTIONS ==================== */
.bgs-floating-emoji {
    position: fixed;
    font-size: 32px;
    pointer-events: none;
    z-index: 99999;
    animation: floatUp 2s ease-out forwards;
    opacity: 0.9;
}
@keyframes floatUp {
    0%   { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-200px) scale(0.5); opacity: 0; }
}

/* ==================== PARTY ENDED OVERLAY ==================== */
.bgs-party-ended-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    backdrop-filter: blur(8px);
}
.bgs-party-ended-box {
    text-align: center;
    color: #fff;
    animation: confirmPop 0.3s ease;
}
.bgs-party-ended-box h2 {
    font-size: 28px;
    margin: 0 0 12px;
}
.bgs-party-ended-box p {
    color: #aaa;
    font-size: 15px;
    margin: 0 0 20px;
}
.bgs-party-ended-box a {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg,#e50914,#b20710);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.bgs-party-ended-box a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229,9,20,0.4);
}
