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

body.tv-legacy #movieSlider,
body.tv-legacy #serieSlider,
body.tv-legacy .movies-content ul,
body.tv-legacy .series-content ul {
    gap: 6px !important;
}

body.tv-legacy #movieSlider>li,
body.tv-legacy #serieSlider>li,
body.tv-legacy .movies-content ul>li,
body.tv-legacy .series-content ul>li {
    min-width: 96px !important;
    width: 96px !important;
    max-width: 96px !important;
    flex: 0 0 96px !important;
    margin-right: 6px;
}

body.tv-legacy .movies-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
    gap: 8px !important;
}

body.tv-legacy .movies-content>.movie-item,
body.tv-legacy .movie-details .grid>.movie-item,
body.tv-legacy .series-grid .grid>div,
body.tv-legacy .lives-grid .grid>div {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: initial !important;
    margin-right: 0 !important;
}

body.tv-legacy .series-grid .grid,
body.tv-legacy .lives-grid .grid,
body.tv-legacy .movie-details .grid,
body.tv-legacy .serie-details .grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
    gap: 8px !important;
}

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;
    inset: 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);
    }
}
