/* =========================================
   RESET E ESTILOS GLOBAIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to bottom, #0b1320 0%, #172a45 50%, #0b1320 100%);
    color: #ffffff;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* =========================================
   BARRA SUPERIOR (Top Bar)
   ========================================= */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    position: relative;
    z-index: 10;
    flex-shrink: 0; /* Impede que o header seja esmagado */
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ffeb3b;
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.2rem;
}

.top-icons a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.top-icons a:hover { color: white; transform: scale(1.1); }

.notification-dot {
    position: absolute; top: -2px; right: -2px;
    width: 8px; height: 8px; background: #f59e0b; border-radius: 50%;
}

.clock { font-size: 1.1rem; font-weight: 500; margin-left: 10px; }

/* =========================================
   MENU DE CATEGORIAS (Ajustado para caber todos)
   ========================================= */
.category-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem; /* Ajustado para caber TV, Jogos, AV1, Destaques, Filmes, Séries, Kids, Anime, Explorar, Navegador, Arquivos, Música, Galeria */
    padding: 0.5rem 3rem 1.5rem 3rem;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 10;
    overflow-x: auto;
    white-space: nowrap;
    flex-shrink: 0; /* Impede que o menu seja esmagado */
}

.category-menu::-webkit-scrollbar { display: none; }

.category-menu a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 12px;
    border-radius: 20px;
}

.category-menu a:hover { color: white; }

/* Classe Active (Borda Ciano para o botão ativo) */
.category-menu a.active {
    color: white;
    border: 2px solid #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

/* Botão AV1 */
.category-menu a.ava-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.category-menu .ava-triangle {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-left: 2px;
}

/* Botão KIDS Colorido */
.category-menu a.kids-text {
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 1400px) {
    .category-menu {
        gap: 1rem;
        font-size: 0.9rem;
        padding: 0.5rem 1rem 1rem 1rem;
    }
}

@media (max-width: 1024px) {
    .top-bar {
        padding: 1rem;
    }
    .category-menu {
        justify-content: flex-start;
        padding: 1rem;
        gap: 0.8rem;
        font-size: 0.85rem;
    }
    .top-icons {
        gap: 1rem;
        font-size: 1.1rem;
    }
    .clock {
        font-size: 1rem;
    }
}