/* === CSS original mantido === */
body { background:#111; color:#eee; font-family:Arial; margin:0; }
nav { display:flex; flex-wrap:wrap; background:#222; padding:12px; align-items:center; justify-content:space-between; gap:10px; position:sticky; top:0; z-index:10; }
nav button { background:#333; color:#fff; border:none; padding:10px 14px; border-radius:5px; font-size:14px; cursor:pointer; white-space:nowrap; }
nav button:hover { background:#555; }
nav .categories { display:flex; gap:5px; overflow-x:auto; flex-wrap:nowrap; }
nav .actions { display:flex; gap:5px; align-items:center; }
nav .top-ad { display:flex; justify-content:center; align-items:center; flex:1; }

.event { background:#1a1a1a; border:1px solid #444; margin:12px; padding:15px; border-radius:6px; }
.event-header { display:flex; justify-content:space-between; align-items:center; }
.event-title { font-size:20px; font-weight:bold; cursor:pointer; }
.streams { display:none; flex-direction:column; gap:10px; margin-top:10px; }
.streams.show { display:flex; }

button.stream-api { background: linear-gradient(135deg, #FFD700, #FFC107); color:#111; font-weight:bold; border-radius:12px; padding:10px 16px; border:none; cursor:pointer; box-shadow:0 4px 8px rgba(255,215,0,0.3); transition:transform 0.2s, box-shadow 0.2s; font-size:16px; width:100%; text-align:left; }
button.stream-api:hover { background: linear-gradient(135deg, #FFB700, #FFA500); transform:translateY(-2px); box-shadow:0 6px 12px rgba(255,215,0,0.4); }
button.manual-stream { background: linear-gradient(135deg, #007bff, #3399ff); color:#fff; font-weight:bold; border-radius:12px; padding:10px 16px; border:none; cursor:pointer; box-shadow:0 4px 8px rgba(0,123,255,0.3); transition:transform 0.2s, box-shadow 0.2s; font-size:16px; width:100%; text-align:left; }
button.manual-stream:hover { background: linear-gradient(135deg, #3399ff, #66b2ff); transform:translateY(-2px); box-shadow:0 6px 12px rgba(0,86,179,0.4); }
.live-indicator { width: 12px; height: 12px; background:red; border-radius:50%; display:inline-block; animation: blink 1s infinite; }
@keyframes blink { 0%,50%,100%{opacity:1;} 25%,75%{opacity:0;} }

#modal {
    display:none;
    position:fixed;
    width:50%;
    height:50%;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    background:rgba(0,0,0,.95);
    z-index:9999;
}
#modal iframe { width:100%; height:100%; border:none; }
#modal .close {
    position:absolute;
    top:-15px;
    right:-15px;
    font-size:28px;
    color:#fff;
    background:red;
    border-radius:50%;
    width:35px;
    height:35px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:10000;
    box-shadow:0 2px 6px rgba(0,0,0,0.5);
}
#modal .close:hover { filter:brightness(0.9); }

#embedModal, #modalAddStream { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,.95); justify-content:center; align-items:center; z-index:9999; }

.card-content { background:#222; padding:20px; border-radius:6px; width:500px; display:flex; flex-direction:column; gap:10px; }
.card-content textarea, .card-content input, .card-content select { width:100%; background:#111; color:#fff; border:1px solid #444; border-radius:5px; padding:8px; font-family:monospace; }
.card-actions { display:flex; justify-content:flex-end; gap:10px; }
.card-actions button { padding:10px 16px; border:none; border-radius:6px; cursor:pointer; }
.embed-btn { background:#4CAF50; color:black; font-weight:bold; border:none; border-radius:12px; padding:12px 16px; cursor:pointer; }
.embed-btn:hover { filter:brightness(1.05); }

#siteMessages { position:fixed; top:80px; right:20px; width:300px; z-index:10000; }
.message-card { background: #222; border: 1px solid #444; border-left: 6px solid; border-radius: 6px; padding: 12px 16px; margin-bottom: 10px; color: #eee; box-shadow: 0 4px 8px rgba(0,0,0,0.3); animation: slideIn 0.5s ease-out; display: flex; justify-content: space-between; align-items: center; gap:10px; font-family: Arial, sans-serif; }
.message-card.success { border-left-color: #4CAF50; }
.message-card.info    { border-left-color: #2196F3; }
.message-card.warning { border-left-color: #FFC107; color:#111; background:#333; }
.message-card.error   { border-left-color: #f44336; }
.message-card button.close-msg { background: transparent; border: none; color: inherit; font-size: 16px; cursor: pointer; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* === BANNER INFERIOR DA MODAL === */
#modalBottomBanner {
    width: 100%;
    max-width: 50%;
    height: 50%;
    position: fixed;
    left: 50%;
    bottom: -100px; /* 5px acima do fundo da tela */
    transform: translateX(-50%);
    display: none;
    z-index: 9998;
    cursor: pointer;
}
#modalBottomBanner img { width: 100%; height: 100%; object-fit: contain; }
