html,
body {
    min-height: 100%;
    background: #0b0f17;
    color: #e5e7eb;
}

/* O layout de TV fica no public/css/tv.css (html.tv-mode). As regras antigas
   de body.tv-legacy transformavam .movies-content em grade de 110px, e o
   cartaz de filme encolhia pra 1px nas TVs Samsung -- removidas. */
body.tv-legacy .menu-item a[data-fullscreen-toggle="true"] {
    border: 1px solid rgba(14, 165, 233, 0.65);
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.25);
}

#global-nav-loading {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(2, 6, 23, 0.72);
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #e2e8f0;
    font-size: 15px;
}

#global-nav-loading.active {
    display: flex;
}

#global-nav-loading .spinner {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 4px solid rgba(148, 163, 184, 0.35);
    border-top-color: #38bdf8;
    animation: global-nav-spin 0.9s linear infinite;
}

@keyframes global-nav-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Versão publicada (arquivo VERSION gravado pelo deploy) no pé do menu. */
#sidebar .app-version {
    margin: 0.5rem 0 0.25rem;
    padding: 0 1rem;
    font-size: 0.7rem;
    color: #6b7280;
    letter-spacing: 0.02em;
}

#view-container.collapsed #sidebar .app-version {
    display: none;
}

