/* =========================================
   1. IMPORTS E VARIÁVEIS
   ========================================= */
   
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bangers&family=Black+Ops+One&family=Cinzel:wght@700&family=Courier+Prime:wght@700&family=Creepster&family=DotGothic16&family=Faster+One&family=Fredoka+One&family=Glitch+Goblin&family=Lobster&family=MedievalSharp&family=Monoton&family=Orbitron:wght@700&family=Oswald:wght@700&family=Pacifico&family=Permanent+Marker&family=Press+Start+2P&family=Righteous&family=Russo+One&family=Share+Tech+Mono&family=Special+Elite&family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    /* Cores (Modo Escuro Padrão) */
    --primary-color: #1A1A2E;
    --primary-color-dark: #0f0f1b;
    --secondary-color: #E94560;
    --bg-color: #161625;
    --alternate-bg-color: #1A1A2E;
    --card-bg-color: #1A1A2E;
    --header-bg-color: #1A1A2E;
    --text-color: #FFFFFF;
    --text-color-light: rgba(255, 255, 255, 0.7);
    --border-color: #E94560;
    --header-shadow: none;
    --sidebar-bg: #1a1a2e;
    

    /* Tipografia */
    --body-font: 'Poppins', sans-serif;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
}

html[data-theme='light'] {
    --bg-color: #F0F0F0;
    --alternate-bg-color: #FFFFFF;
    --card-bg-color: #FFFFFF;
    --header-bg-color: #FFFFFF;
    --primary-color-dark: #e0e0e0;
    --text-color: #1A1A2E;
    --text-color-light: #555555;
    --border-color: #dddddd;
    --header-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* =========================================
   2. RESET E UTILITÁRIOS GLOBAIS
   ========================================= */
* { box-sizing: border-box; padding: 0; margin: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    width: 100%; height: 100%;
    padding-top: 0px;
}

main {
    margin-top: 100px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { max-width: 100%; height: auto; }

/* Classes Utilitárias */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.hidden, .hidden-section { display: none !important; }
.active-section { display: block; animation: fadeIn 0.5s; }
.alternate-bg { background-color: var(--alternate-bg-color); }
.main-content { padding-top: 8rem; padding-bottom: 4rem; }

.page-title { font-size: var(--h1-font-size); color: var(--secondary-color); text-align: center; margin-bottom: 1rem; }
.page-subtitle { text-align: center; max-width: 600px; margin: 0 auto 3rem auto; opacity: 0.8; }
.error-message { background-color: rgba(255, 79, 79, 0.2); color: #ff4f4f; border: 1px solid #ff4f4f; border-radius: 8px; padding: 0.75rem; margin-bottom: 1rem; text-align: center; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); } }

/* =========================================
   3. COMPONENTES UI (BOTÕES, FORMS, MODAIS)
   ========================================= */

/* --- Botões --- */
.upload-btn, .submit-btn {
    background-color: var(--secondary-color); color: white;
    padding: 0.8rem 2rem; border: none; border-radius: 5px;
    font-weight: 600; cursor: pointer; transition: 0.3s;
    display: inline-flex; align-items: center; justify-content: center;
}
.submit-btn:hover { background-color: #d8304d; transform: translateY(-2px); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.submit-btn ion-icon { margin-right: 5px; font-size: 1.1em; }

.submit-btn.secondary-btn { background-color: transparent; border: 1px solid var(--text-color-light); color: var(--text-color-light); }
.submit-btn.secondary-btn:hover { background-color: rgba(255, 255, 255, 0.1); color: var(--text-color); }
.submit-btn.danger-btn { background-color: rgba(255, 59, 59, 0.1); border: 1px solid #ff3b3b; color: #ff3b3b; }
.submit-btn.danger-btn:hover { background-color: #ff3b3b; color: white; }
.small-btn { padding: 0.5rem 1rem !important; font-size: 0.9rem; }


.secondary-horizontal-menu {
            width: 100%;
            background: #0a0a0a;
            border-bottom: 1px solid #222;
        }
        #dynamic-horizontal-menu {
            display: flex;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0;
        }
        .horizontal-link {
            display: block;
            width: 100%;
            padding: 15px 0;
            text-align: center;
            text-decoration: none;
            color: #888; /* Cor inativa */
            font-weight: bold;
            font-size: 1.1rem;
            font-family: 'Orbitron', sans-serif;
            text-transform: uppercase;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
        }
        
        /* HOVER: INÍCIO (Branco) */
        .horizontal-link.menu-inicio:hover, .horizontal-link.menu-inicio.active {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
            border-bottom-color: #fff;
        }
        
        /* HOVER: CURSOS (Verde PlayU) */
        .horizontal-link.menu-cursos:hover, .horizontal-link.menu-cursos.active {
            background: rgba(0, 255, 136, 0.1);
            color: #00ff88;
            border-bottom-color: #00ff88;
        }
        
        /* HOVER: PARCEIROS (Roxo) */
        .horizontal-link.menu-parceiros:hover, .horizontal-link.menu-parceiros.active {
            background: rgba(179, 0, 255, 0.1);
            color: #b300ff;
            border-bottom-color: #b300ff;
        }

/* Botões de Ação Específicos */
.close-overlay-btn {
    position: absolute; top: 15px; right: 15px;
    width: 36px; height: 36px; background: transparent;
    border: none; border-radius: 50%; color: var(--text-color-light);
    font-size: 1.8rem; display: flex; align-items: center; justify-content: right;
    cursor: pointer; transition: all 0.2s ease; z-index: 10;
}
.close-overlay-btn:hover { color: #ff3b3b; }

.back-to-top {
    position: fixed; right: 1.5rem; bottom: -30%;
    background-color: var(--secondary-color); padding: 0.5rem; border-radius: 50%;
    display: inline-flex; justify-content: center; align-items: center;
    font-size: 1.5rem; color: white; transition: bottom 0.4s, transform 0.3s; z-index: 500;
}
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top.visible { bottom: 2rem; }

/* --- Formulários --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.8rem 1rem;
    border-radius: 5px; border: 1px solid var(--border-color);
    background-color: var(--bg-color); color: var(--text-color);
    font-family: var(--body-font); outline: none;
}
.form-group small { display: block; margin-top: 0.25rem; font-size: 0.8rem; color: var(--text-color-light); }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }

.search-box { position: relative; width: 100%; max-width: 300px; }
.search-box input {
    width: 100%; padding: 10px 10px 10px 40px;
    border-radius: 20px; border: 1px solid var(--border-color);
    background-color: var(--primary-color-dark); color: var(--text-color);
}
.search-box input:focus { border-color: var(--secondary-color); box-shadow: 0 0 5px rgba(255, 187, 0, 0.3); }
.search-box ion-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-color-light); font-size: 1.2rem; pointer-events: none; }

/* Tags Input */
.tags-input-container {
    display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem;
    border: 1px solid var(--border-color); border-radius: 5px;
    background-color: var(--bg-color); cursor: text; position: relative;
}
.tags-input-container:focus-within { border-color: var(--secondary-color); box-shadow: 0 0 5px rgba(233, 69, 96, 0.3); }
.tag-capsule {
    background-color: var(--secondary-color); color: white;
    padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem;
    display: flex; align-items: center; gap: 0.5rem; animation: fadeIn 0.2s;
}
.tag-capsule .close-tag { cursor: pointer; font-weight: bold; opacity: 0.8; }
.tag-input-field { flex-grow: 1; border: none; background: transparent; color: var(--text-color); outline: none; min-width: 100px; padding: 0.3rem; }
.tags-suggestions-list {
    position: absolute; top: 100%; left: 0; width: 100%;
    background-color: var(--card-bg-color); border: 1px solid var(--border-color);
    max-height: 150px; overflow-y: auto; z-index: 50; display: none;
}
.tags-suggestions-list.active { display: block; }
.tags-suggestions-list li { padding: 0.6rem 1rem; cursor: pointer; transition: background 0.2s; }
.tags-suggestions-list li:hover { background-color: rgba(233, 69, 96, 0.1); }

/* --- Modais (Geral) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px);
    display: flex; justify-content: center; align-items: center; z-index: 3000;
    padding: 10px;
}
/* 1. Container do Modal */
.modal-content {
    background: var(--card-bg, #151515);
    padding: 32px; 
    border-radius: 16px; 
    border: 1px solid #333;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    
    width: 90%;
    max-width: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 2. Títulos dentro do Modal */
.modal-content h2, 
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 24px; 
    font-family: var(--font-display);
    color: #fff;
}

/* 3. Textos e Parágrafos */
.modal-content p {
    margin-bottom: 16px;
    color: var(--text-muted, #aaa);
    line-height: 1.5;
}

/* 4. Padronização de Caixas de Texto (Inputs, Selects, Textareas) */
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content input[type="number"],
.modal-content input[type="date"],
.modal-content input[type="time"],
.modal-content input[type="datetime-local"],
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 16px; 
    margin-bottom: 16px; 
    
    background: #222;
    border: 1px solid #333;
    border-radius: 8px; 
    
    color: #fff;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

/* =========================================================
           ESTILOS DINÂMICOS DE LAYOUT (RPG / MÚSICA / LIVE)
           ========================================================= */
        body.layout-rpg #player-local-video {
            position: relative;
            bottom: auto; right: auto;
            width: 100%; height: 160px;
            margin-bottom: 15px; border-radius: 8px;
            box-shadow: none; z-index: 10;
        }
        /* =========================================================
           LAYOUT RPG (GRID DE CÂMERAS COM OVERLAYS)
           ========================================================= */
        body.layout-rpg .player-video-area {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 15px;
            padding: 20px;
            background: url('assets/images/rpg-table-bg.jpg') center/cover; /* Pode trocar pelo bg que quiser */
            overflow-y: auto;
            align-content: center;
        }

        /* Omissão do vídeo de destaque do Host, já que tudo vira Grid */
        body.layout-rpg #player-remote-video-host,
        body.layout-rpg .bg-gif-layer {
            display: none !important; 
        }

        .rpg-char-card {
            position: relative;
            width: 100%;
            aspect-ratio: 16/9;
            background: #000;
            border-radius: 12px;
            border: 3px solid #333;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0,0,0,0.8);
            transition: 0.3s;
        }

        .rpg-char-card.speaking {
            border-color: var(--secondary-color);
            box-shadow: 0 0 20px rgba(0,255,136,0.5);
        }

        /* Camada 1: O Vídeo do Agora */
        .rpg-video-layer {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
        }

        /* Camada 2: A moldura PNG transparente enviada pelo Host */
        .rpg-overlay-layer {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
            background-size: cover; pointer-events: none;
        }

        /* Camada 3: A barra de informações inferior */
        .rpg-info-bar {
            position: absolute; bottom: 0; left: 0; width: 100%; height: 60px;
            background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
            z-index: 3; display: flex; align-items: flex-end; padding: 10px; box-sizing: border-box;
            gap: 10px;
        }

        .rpg-char-portrait {
            width: 45px; height: 45px; border-radius: 50%; border: 2px solid #ffbb00;
            object-fit: cover; background: #222;
        }

        .rpg-char-text {
            display: flex; flex-direction: column;
        }

        .rpg-char-name { color: #ffbb00; font-family: 'Orbitron', sans-serif; font-size: 1.1rem; font-weight: bold; line-height: 1; text-shadow: 1px 1px 3px #000;}
        .rpg-player-name { color: #ccc; font-size: 0.75rem; text-shadow: 1px 1px 2px #000;}
        body.layout-rpg .player-sidebar {
            width: clamp(300px, 35vw, 450px);
            padding: 15px;
        }

        .chat-message-box {
            background: #222; border: 1px solid #444; padding: 8px; border-radius: 6px; 
            margin-bottom: 8px; font-size: 0.85rem; width: max-content; max-width: 90%;
        }
        .chat-message-box.me {
            background: rgba(0,255,136,0.1); border-color: var(--secondary-color); align-self: flex-end;
        }
        .chat-sender-name { font-size: 0.65rem; color: #888; font-weight: bold; margin-bottom: 3px; }

/* Foco nos inputs */
.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    border-color: var(--primary-color, #00ff88);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.1);
}

/* 5. Labels (Rótulos) */
.modal-content label {
    display: block;
    margin-bottom: 8px; 
    font-size: 0.9rem;
    font-weight: bold;
}

/* 6. Grupos de Formulário (.form-group) */
.modal-content .form-group {
    margin-bottom: 16px; 
}




/* --- DECISION RESULT OVERLAY --- */
.decision-result-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    z-index: 3000;
    animation: fadeIn 0.5s ease;
}

.winner-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 3px solid var(--primary-color);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.3);
    transform: scale(0.8);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.winner-label {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.winner-text {
    font-family: var(--font-display);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--primary-color);
}

.winner-stats {
    display: flex; gap: 20px; justify-content: center;
    font-size: 1rem; color: #ccc;
}

@keyframes popIn { to { transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Loading */
.loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #0f0f13; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
.loader { border: 4px solid #333; border-top: 4px solid var(--secondary-color); border-radius: 50%; width: 40px; height: 40px; animation: rotate 1s linear infinite; }
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   4. LAYOUT: HEADER & NAV (SITE PRINCIPAL)
   ========================================= */
.header {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: var(--header-bg-color); z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.nav { height: 6rem; display: flex; justify-content: space-between; align-items: center; }
.nav__logo img { width: 200px; transition: transform 0.3s; }
.nav__logo:hover img { transform: scale(1.05); }
.nav__right-group, .nav__controls { display: flex; align-items: center; gap: 1rem; }
.nav__link { font-weight: 600; position: relative; padding-bottom: 0.5rem; }
.nav__link:hover::after { width: 100%; }
.nav__link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--secondary-color); transition: width 0.3s; }

/* Mobile Nav */
.mobile-menu-dropdown { display: none; }
.dropdown-toggle { background-color: var(--secondary-color); color: white; padding: 0.8rem; border-radius: 5px; font-size: 1.5rem; cursor: pointer; border: none; }
.dropdown-content { display: none; position: absolute; top: 100%; right: 0; background: var(--card-bg-color); min-width: 200px; padding: 1rem; border: 1px solid var(--border-color); }
.dropdown-content.show { display: block; }

/* =========================================
   5. PÁGINAS: LOGIN & HOME
   ========================================= */
/* Login */
.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: var(--bg-color); }
.login-container { width: 100%; max-width: 420px; padding: 2rem; background-color: var(--primary-color); border-radius: 12px; border: 1px solid var(--border-color); }
.form-separator { display: flex; align-items: center; margin: 1.5rem 0; color: var(--text-color-light); }
.form-separator::before, .form-separator::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-color); }
.social-login { display: flex; flex-direction: column; gap: 0.75rem; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.75rem; border-radius: 8px; font-weight: 600; cursor: pointer; }
.social-btn.google { background: #fff; color: #333; }
.social-btn.apple { background: #000; color: #fff; }
.toggle-form { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; }
.toggle-form a { color: var(--secondary-color); }

/* Home */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1542779283-429940ce8336');
    background-size: cover; height: 70vh; display: flex; justify-content: center; align-items: center; text-align: center; color: #fff;
}
.home-carousel { padding-top: 8rem; position: relative; }
.carousel-viewport { overflow: hidden; width: 100%; }
.carousel-container { display: flex; transition: transform 0.4s ease; }
.carousel-slide { min-width: 65%; margin: 0 1rem; height: 450px; border-radius: 10px; overflow: hidden; position: relative; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
/* =========================================
   6. ADMIN & DASHBOARD
   ========================================= */
.dashboard-main { max-width: 1200px; margin: 2rem auto; padding: 0 2rem; }
.main-header { background: var(--primary-color); border-bottom: 1px solid var(--border-color); padding: 1rem 2rem; position: sticky; top: 0; z-index: 100; }
.header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.user-menu { display: flex; gap: 1rem; align-items: center; }

.dashboard-tabs { display: flex; gap: 10px; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.tab-btn { background: transparent; border: none; color: var(--text-color-light); padding: 10px 20px; cursor: pointer; border-bottom: 2px solid transparent; }
.tab-btn.active { color: var(--secondary-color); border-bottom: 2px solid var(--secondary-color); }

/* Tabelas e Listas */
.table-container { overflow-x: auto; background: var(--primary-color); border: 1px solid var(--border-color); border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.admin-table th { background: var(--primary-color-dark); color: var(--text-color-light); }


/* ========================================= */
/* GRID DE JOGOS & CARD VISUAL (RED THEME)   */
/* ========================================= */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsivo automático */
    gap: 25px;
    padding: 10px;
}

.game-card {
    background: #0f0f0f;            /* Fundo quase preto */
    border: 1px solid #990000;      /* Borda Vermelho Escuro (Padrão) */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

/* Efeito Hover: A borda fica vermelha viva e o card sobe */
.game-card:hover {
    transform: translateY(-8px);
    border-color: #ff0000;          /* Vermelho Vivo */
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.15); /* Brilho vermelho suave */
}

/* Imagem do Card */
.game-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #330000;
    transition: transform 0.3s;
}

.game-card-img, 
.game-carousel-img,
.game-logo-box,
.gallery-item img,
#game-cover-image {
    object-position: top center !important; 
}

.partner-hero {
    background-position: top center !important;
}

.game-card:hover .game-card-img {
    filter: brightness(1.1);
}

/* Conteúdo interno */
.game-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Título */
.game-card h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Texto */
.game-card p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
    
    /* Limita texto a 3 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rodapé do Card (Ícones) */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 15px;
    margin-top: auto;
    color: #888;
    font-size: 0.85rem;
}

.card-footer ion-icon {
    color: #ff4444; /* Ícones vermelhos */
    font-size: 1rem;
    vertical-align: middle;
}

/* Booking Cards */
.bookings-list { display: flex; flex-direction: column; gap: 1rem; }
.booking-item { background: var(--primary-color); border: 1px solid var(--border-color); border-radius: 8px; padding: 1rem; display: flex; justify-content: space-between; align-items: center; }

/* Calendário Admin */
.calendar-container { background: rgba(0,0,0,0.2); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border-color); }
.calendar-header { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.calendar-grid, .calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
.calendar-day { aspect-ratio: 1; background: #252525; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.calendar-day.available:hover { background: #4a4a4a; }
.calendar-day.selected { background: var(--secondary-color); color: white; }
.calendar-day.has-schedule { border: 1px solid var(--secondary-color); color: var(--secondary-color); }


/* Calendário Página do Jogo */
.calendar-header {display: flex;justify-content: space-between;align-items: center;margin-bottom: 1.5rem;padding-bottom: 1rem;border-bottom: 1px solid rgba(255, 255, 255, 0.1);}
.nav-btn {background: transparent;border: 1px solid var(--text-color-light);color: var(--text-color);width: 36px;height: 36px;border-radius: 50%;cursor: pointer;display: flex;align-items: center;justify-content: center;transition: all 0.2s ease;font-size: 1.2rem;z-index:10;}
.nav-btn:hover {background-color: var(--secondary-color);border-color: var(--secondary-color);color: white;}


/* =========================================
        RODAPÉ DO MODAL
========================================= */

.modal-footer {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); 
    gap: 15px;
    
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.modal-footer .right-buttons {
    display: contents;
}

.modal-footer button {
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px; /* Altura padronizada */
}

.modal-footer .hidden {
    display: none !important;
}


/* CRUD Assets (Admin) */
.upload-type-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.type-btn { display: flex; flex-direction: column; align-items: center; padding: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); border-radius: 6px; cursor: pointer; }
.type-btn:hover { border-color: var(--secondary-color); color: var(--secondary-color); }
.crud-list .crud-item { display: flex; align-items: center; padding: 10px; border-bottom: 1px solid var(--border-color); }
.crud-item-thumb { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; margin-right: 10px; background: #000; display: flex; align-items: center; justify-content: center; }
.crud-item-info { flex: 1; overflow: hidden; }

/* ========================================= */
/* LAYOUT IMERSIVO DO HOST                   */
/* ========================================= */

/* 1. Trava a página inteira para não rolar */
.host-room-body {
    overflow: hidden !important; 
    height: 100vh;
    width: 100vw;
    margin: 0;
    background-color: #0f0f13;
    color: #fff;
    height: 100vh;
    font-family: 'Poppins', sans-serif;
}

/* 2. Mantém os botões da câmera sempre fixos na tela (por cima do vídeo) */
.host-controls-bar {
    position: fixed !important; 
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
}

/* 3. A Barra Lateral não pode passar de 100vh */
.host-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh !important; /* Limite cravado na altura da tela */
    width: 320px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 20;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.sidebar-content {
    flex: 1; /* Ocupa todo o espaço restante abaixo do título da aba */
    overflow-y: auto !important; /* Cria a barra de rolagem AQUI */
    padding: 15px;
    padding-bottom: 80px; /* Dá um respiro no final para o último item */
}

#host-video-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    background: #000 url('../images/GIF Play.U.gif') no-repeat center center;
    background-size: cover;
}

#host-local-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: contain;
    z-index: 1;
}

#host-video-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5; 
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#host-video-layer video, 
#host-video-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta sem cortar */
}

/* ========================================= */
/* CARDS DE MÍDIA COM VOLUME                 */
/* ========================================= */

.media-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.media-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.media-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.9rem;
}

/* Slider de Volume Estilizado */
.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 5px;
    border-top: 1px solid #2a2a2a;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.delete-corner-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ff4f4f;
    border: 1px solid #ff4f4f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
}

.delete-corner-btn:hover {
    background-color: #ff4f4f;
    color: white;
    transform: scale(1.1);
}

/* Abas Pequenas (Dentro de cards/modais) */
.small-tabs .tab-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    flex: 1;
}
.small-tabs .tab-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Lista da Biblioteca de Mídia */
.media-library-scroll {
    max-height: 150px;
    overflow-y: auto;
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
}

.library-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #222;
    cursor: pointer;
    transition: background 0.2s;
}

.library-item:hover {
    background: #1a1a1a;
}

.library-item.selected {
    background: rgba(233, 69, 96, 0.2);
    border-left: 3px solid var(--secondary-color);
}

.library-item-icon {
    font-size: 1.2rem;
    color: #aaa;
}

.library-item-name {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.library-item-select-btn {
    background: none;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    cursor: pointer;
}
.library-item:hover .library-item-select-btn {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ========================================= */
/* CORREÇÃO MODAL DE CURSOS (SCROLL)         */
/* ========================================= */

.large-modal {
    width: 90%;
    max-width: 700px;      /* Mais largo que o padrão */
    max-height: 90vh;      /* Ocupa no máximo 90% da altura da tela */
    display: flex;
    flex-direction: column; /* Organiza em coluna */
    overflow: hidden;       /* Esconde o que vazar do container principal */
}

.scrollable-form {
    overflow-y: auto;      /* Habilita rolagem vertical */
    flex: 1;               /* Ocupa todo espaço disponível */
    padding-right: 10px;   /* Espaço para não colar na barra de rolagem */
    margin-bottom: 10px;
}

/* Ajuste no preview da capa do curso */
#course-cover-preview {
    border: 1px solid var(--border-color);
    background-color: #000;
}

/* Classe para esconder o vídeo e mostrar o GIF */
#host-local-video.camera-off {
    opacity: 0; /* Torna o vídeo invisível, revelando o GIF atrás */
}

/* Remove layouts antigos que possam interferir */
.host-container {
    display: block; /* Remove grid se houver */
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 1. VÍDEO DO HOST (BACKGROUND TOTAL) */
#host-local-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que preencha tudo sem distorcer */
    z-index: 0; /* Fica atrás de tudo */
}

/* 2. VÍDEO DO JOGADOR (PICTURE-IN-PICTURE) */
#remote-video-container {
    position: fixed;
    bottom: 100px; /* Acima da barra de controles */
    right: 320px;  /* À esquerda da Sidebar (assumindo sidebar ~300px) */
    width: 240px;
    height: 135px; /* Proporção 16:9 */
    background: #000;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    z-index: 10; /* Acima do vídeo do host */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: all 0.3s ease;
}

#remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-label {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
}

/* Efeito Hover no vídeo do jogador (opcional: aumenta um pouco) */
#remote-video-container:hover {
    width: 320px;
    height: 180px;
}

/* 4. GARANTIR QUE OS CONTROLES FIQUEM VISÍVEIS */
.host-controls {
    z-index: 30; /* Prioridade máxima */
    bottom: 30px; /* Ajuste a altura */
}

/* =========================================
   ESTILO DO TIMER PREVIEW
   ========================================= */

.timer-config-wrapper {
    background: #111;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.timer-controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr 80px;
    gap: 10px;
    margin-bottom: 15px;
}

.timer-preview-box {
    background-color: #000000;
    border: 4px solid #222;
    border-radius: 12px;
    padding: 20px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.9); /* Sombra interna para profundidade */
    overflow: hidden;
}

/* Efeito de "Vidro/Brilho" no topo da caixa */
.timer-preview-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
}

.timer-preview-text {
    font-size: 3.5rem; /* Fonte bem grande */
    line-height: 1;
    transition: all 0.3s ease;
    text-shadow: 0 0 15px currentColor; /* Efeito de brilho neon na cor do texto */
    z-index: 1;
}

/* Responsividade para telas pequenas */
@media (max-width: 600px) {
    .timer-controls-row {
        grid-template-columns: 1fr;
    }
    .timer-preview-text {
        font-size: 2.5rem;
    }
}

/* 5. PAINEL DO TIMER (Se precisar flutuar) */
.timer-panel {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px);
}


#timer-label { font-size: 0.7rem; color: #aaa; margin-bottom: 5px; }
#player-timer-display { font-family: 'Orbitron', sans-serif; font-size: 2rem; font-weight: bold; line-height: 1; }

/* Player: Media Overlay (Vídeos/Imagens enviados) */
#media-overlay, .player-media-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000; z-index: 1000; display: flex; justify-content: center; align-items: center;
}
#media-overlay video, #media-overlay img {
    max-width: 100%; max-height: 100%; width: 100%; height: 100%;
    object-fit: contain; pointer-events: none;
}
.close-media-btn { position: absolute; top: 20px; right: 20px; z-index: 1001; }

/* Barras de Controle (Botões Flutuantes) */
.host-controls-bar, .player-controls {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 20px; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px);
    padding: 15px 30px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1);
    z-index: 2000; box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.control-btn {
    width: 45px; height: 45px; border-radius: 50%; border: none;
    background: #333; color: #fff; font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.control-btn:hover { background: #555; }
.control-btn.active { background: #ff4444; border: 1px solid red; }
.control-btn.danger { background: #ff4444; }

.sidebar-header { padding: 15px; border-bottom: 1px solid #333; background: #16213e; }
.sidebar-tabs { display: flex; background: #111; }
.sidebar-content { flex: 1; padding: 15px; overflow-y: auto; display: none; }
.sidebar-content.active { display: block; }

/* Feedback de Decisão (Host) */
#host-decision-feedback {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    z-index: 1500; background: rgba(0,0,0,0.85); border: 2px solid var(--secondary-color);
    border-radius: 10px; padding: 15px 25px; text-align: center; min-width: 300px;
}
#feedback-timer { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; color: var(--secondary-color); }



/* ========================================= */
/* ESTILO DO FAQ (ACORDEÃO MODERNO)          */
/* ========================================= */

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--card-bg); /* Usa variável para funcionar no tema claro/escuro */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color); /* Borda vermelha ao passar o mouse */
}

/* O Cabeçalho da Pergunta */
.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-color);
    list-style: none; /* Remove seta padrão */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Remove seta padrão no Chrome/Safari */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* O Ícone de + (Plus) */
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    transition: transform 0.3s;
}

/* Quando aberto, gira o ícone */
.faq-item[open] summary::after {
    transform: rotate(45deg); /* Vira um X */
}

/* A Resposta */
.faq-content {
    padding: 0 20px 20px 20px;
    color: #aaa; /* Cor do texto da resposta */
    line-height: 1.6;
    animation: fadeIn 0.3s ease-in-out;
}

/* Pequena animação ao abrir */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Game Cover Image */
.game-hero-container {width: 100%;height: 400px;position: relative;margin-bottom: 2rem;border-radius: 0 0 12px 12px;overflow: hidden;}
.game-hero-img {width: 100%;height: 100%;object-fit: cover;mask-image: linear-gradient(to bottom, black 70%, transparent 100%); }

/* Agenda Página do Jogo */
.booking-section { margin-top: 4rem; display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem;}

/* Camada de Bloqueio (Pausado) */
.booking-blocked-overlay {
    position: absolute;
    top: -10px; left: -10px; 
    width: calc(100% + 20px); 
    height: calc(100% + 20px);
    background-color: rgba(22, 22, 37, 0.85); 
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    padding: 2rem;
}

.booking-blocked-overlay h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.booking-blocked-overlay p {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 600px;
}

/* Aviso de Arquivo Muito Grande */
.compression-alert {
    background-color: rgba(255, 187, 0, 0.15);
    border: 1px solid #ffbb00;
    color: #ffbb00;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeIn 0.3s;
}

.compression-alert strong {
    display: flex;
    align-items: center;
    gap: 5px;
}

.compression-link {
    color: white;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}
.compression-link:hover {
    color: var(--secondary-color);
}


/* ========================================= */
/* CARROSSEL - CORREÇÃO DE CAMADAS (Z-INDEX) */
/* ========================================= */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* ESTADO PADRÃO (ESCONDIDO) */
    opacity: 0;
    z-index: 1; 
    pointer-events: none; /* Ignora cliques quando escondido */
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    /* ESTADO ATIVO (VISÍVEL) */
    opacity: 1 !important; /* !important garante que sobrescreva tudo */
    z-index: 10;
    pointer-events: auto; /* Aceita cliques */
}

/* A Sombra Preta */
.carousel-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.9)); 
    z-index: 2; /* Fica acima da imagem */
}

/* O Texto e o Botão */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    
    z-index: 999; /* Z-INDEX ALTÍSSIMO PARA GARANTIR O CLIQUE */
}

/* O Botão (Link) */
.carousel-btn-action {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color, #ff0000); /* Cor de fundo */
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1000; /* Mais alto ainda */
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.carousel-btn-action:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Overlay de Decisão (Player) */
.player-decision-overlay, #decision-container {
    position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 500px; z-index: 2500;
}
.decision-box, #decision-container > div {
    background: rgba(15,15,25,0.95); border: 2px solid var(--secondary-color);
    padding: 20px; border-radius: 12px; text-align: center; box-shadow: 0 0 30px rgba(233,69,96,0.4);
}
.decision-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; color: #fff; }
.decision-options { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Seções de Assets (Sidebar) */
.assets-section { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 10px; margin-bottom: 15px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }
.section-title { font-size: 0.9rem; font-weight: bold; display: flex; gap: 5px; }
.volume-slider { width: 80px; height: 4px; background: #444; border-radius: 2px; outline: none; -appearance: none; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--secondary-color); cursor: pointer; }

/* Link Flutuante */
.invite-floating-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(15,15,20,0.95); border: 1px solid var(--secondary-color);
    padding: 25px; border-radius: 12px; z-index: 2000; width: 90%; max-width: 450px; text-align: center;
}
.invite-input-group { background: rgba(255,255,255,0.1); padding: 5px; border-radius: 6px; display: flex; align-items: center; }
.invite-link-input { background: transparent; border: none; color: white; width: 100%; outline: none; }
.sidebar-icon-btn { background: transparent; border: 1px solid #444; color: #888; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* =========================================
   8. RESPONSIVIDADE FINAL
   ========================================= */
@media (max-width: 500px) {
    /* Host Mobile: Vídeos empilhados, sidebar embaixo ou overlay */
    .host-grid-container { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
    .host-video-area { flex-direction: column; }
    .host-sidebar { height: auto; max-height: 40vh; border-left: none; border-top: 2px solid var(--secondary-color); }
    .video-wrapper { width: 100%; height: 50%; border-right: none; border-bottom: 1px solid #333; }
    
    /* Nav */
    .nav__links, .nav__controls { display: none; }
    .mobile-menu-dropdown { display: block; }
    
    /* Grids */
    .games-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .modal-content { width: 100%; height: 100%; border-radius: 0; }
    .games-grid { grid-template-columns: 1fr; }
    
    /* Timer Mobile */
    #player-timer-container { top: 10px; right: 50%; transform: translateX(50%); padding: 5px 15px; width: auto; }
    #player-timer-display { font-size: 1.5rem; }
}

/* =========================================================================
   MENU RESPONSIVO (MOBILE)
   ========================================================================= */

/* Oculta o botão hamburguer no computador */
#mobile-hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
}

/* Estilo da gaveta lateral escondida */
#mobile-side-menu {
    position: fixed;
    top: 0;
    left: -300px; /* Começa escondido fora da tela */
    width: 260px;
    height: 100vh;
    background: #0a0a0a;
    z-index: 100000;
    border-right: 2px solid #333;
    transition: left 0.3s ease-in-out;
    padding: 20px;
    box-shadow: 10px 0 20px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

/* Classe que faz o menu deslizar para dentro da tela */
#mobile-side-menu.open {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.mobile-link {
    display: block;
    padding: 15px;
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

/* Efeitos de cor idênticos aos da barra horizontal */
.mobile-link.menu-inicio.active, .mobile-link.menu-inicio:hover { background: rgba(255,255,255,0.05); color: #fff; border-left-color: #fff; }
.mobile-link.menu-cursos.active, .mobile-link.menu-cursos:hover { background: rgba(0,255,136,0.1); color: #00ff88; border-left-color: #00ff88; }
.mobile-link.menu-parceiros.active, .mobile-link.menu-parceiros:hover { background: rgba(179,0,255,0.1); color: #b300ff; border-left-color: #b300ff; }

/* MEDIA QUERY: Quando a tela for menor que 768px (Telemóveis e Tablets) */
@media (max-width: 768px) {

    /* Formulários lado a lado (form-row) quebram para linhas únicas */
    .form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Ajuste fino dos Modais para não tocarem nas bordas da tela */
    .modal-content {
        width: 95% !important;
        padding: 15px !important;
        max-height: 90vh;
        overflow-y: auto; /* Permite rolar se o modal for muito grande */
    }

    /* Tabelas do Admin ganham scroll horizontal para não quebrar a tela */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap; /* Evita que o texto da tabela esprema demais */
    }

    /* Carrossel de jogos e layout dos cards de RPG/Custom no modal */
    #layout-selection-modal .modal-content > div:last-child {
        flex-direction: column !important;
    }
    
    /* O "Preview Visual" do layout desce e reduz a altura */
    #layout-preview-display {
        aspect-ratio: auto !important;
        height: 200px !important;
    }

    /* Títulos do Admin ficam menores */
    h3 {
        font-size: 1.1rem !important;
    }
    
    .secondary-horizontal-menu {
        display: none !important; /* Esconde a barra horizontal espaçosa */
    }
    #mobile-hamburger-btn {
        display: flex !important; /* Mostra o ícone do hamburguer */
        align-items: center;
    }
    .nav__logo {
        margin-right: auto; /* Empurra os ícones de login para o canto direito */
    }
}

/* =========================================================
   TELAS ULTRA WIDE E GRANDES MONITORES (> 1440px)
   ========================================================= */
@media (min-width: 1440px) {
    /* Segura o conteúdo do site para não esticar infinitamente */
    .container, 
    .dashboard-container, 
    .header-container {
        max-width: 1200px !important;
        margin: 0 auto !important;
    }

   

    /* Modais do Admin muito largos ficam ruins de ler */
    #layout-selection-modal .modal-content {
        max-width: 1000px !important;
    }
}



/* =========================================================
   SALAS DE JOGO E REUNIÃO NO MOBILE (< 800px)
   ========================================================= */
@media (max-width: 800px) {
    /* Força o layout a empilhar verticalmente */
    #meeting-screen, 
    body.player-room-body,
    .host-room-body { /* Adapte para a classe que envolve a sala do Host */
        flex-direction: column !important;
    }

    /* Área de vídeo fica em cima, ocupando pelo menos 50% da tela */
    #video-area, 
    .player-video-area {
        flex: none !important;
        height: 50vh !important;
        width: 100% !important;
    }

    /* A barra lateral (Chat/Dicas) vai para baixo */
    .meet-sidebar, 
    .player-sidebar {
        width: 100% !important;
        height: 50vh !important;
        border-left: none !important;
        border-top: 2px solid var(--secondary-color);
        flex: none !important;
    }

    .meet-sidebar.hidden {
        height: 0 !important; /* SOME do caminho para você ver a câmera */
    }
    
    /* Para conseguir digitar no chat no celular */
    .chat-input-area {
        padding-bottom: 20px; /* Evita que o teclado cubra o campo de texto */
    }

    /* O painel do Host (caso ele abra no celular/tablet) */
    .host-main-area {
        flex-direction: column !important;
    }
    
    .host-sidebar {
        width: 100% !important;
        height: auto !important;
        border-left: none !important;
        border-bottom: 2px solid #333;
    }

    /* Reduz botões de controle para caberem todos na tela */
    .meet-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }
    .meet-controls-bar {
        padding: 0 10px !important;
        gap: 8px !important;
    }
}