/* menu.css */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    background-image: linear-gradient( 85.2deg, rgba(33,3,40,1) 7.5%, rgba(65,5,72,1) 88.7% ), ;
    color: white;
}

@-webkit-keyframes grapeground {
    0% {
        background-position: 94% 0%
    }

    50% {
        background-position: 7% 100%
    }

    100% {
        background-position: 94% 0%
    }
}

@-moz-keyframes grapeground {
    0% {
        background-position: 94% 0%
    }

    50% {
        background-position: 7% 100%
    }

    100% {
        background-position: 94% 0%
    }
}

@keyframes grapeground {
    0% {
        background-position: 94% 0%
    }

    50% {
        background-position: 7% 100%
    }

    100% {
        background-position: 94% 0%
    }
}

.sidebar-icon {
    display: block;
    height: 30px;
    opacity: 0.7;
    position: relative;
    text-align: center;
    margin: 15px 0 0;
    line-height: 30px;
}

.sidebar-icon a {
    display: block;
    width: 100%;
    height: 40px;
    padding: 7px 0 0 0;
}

.sidebar-icon a:hover {
    background: linear-gradient(#ffffff94, #6d6d6d54 40%, #000000c7 3%, #002f613b);
}

.sidebar-icon:hover {
    opacity: 1;
}

.sidebar.fixed .hamburger {
    opacity: 1;
}

.hamburger a.main-nav-toggle {
    min-width: 30px;
    text-align: center;
    margin-top: -10px;
}

.hamburger a.main-nav-toggle:after, .hamburger a.main-nav-toggle:before {
    content: "";
    position: absolute;
    top: 9px;
    height: 0;
    border-bottom: 2px solid #fff;
    width: 30px;
    left: calc(50% - 15px);
    transition: all ease-out 0.3s;
}

.hamburger a.main-nav-toggle:after {
    top: 21px;
}

.hamburger a.main-nav-toggle i {
    display: block;
    text-indent: 100%;
    overflow: hidden;
    white-space: nowrap;
    height: 2px;
    background-color: #fff;
    width: 30px;
    position: absolute;
    top: 50%;
    transition: all ease-out 0.1s;
    left: calc(50% - 15px);
}

.sidebar.fixed .hamburger a.main-nav-toggle:after {
    transform: rotate(-45deg);
    transform-origin: center;
    top: 50%;
}

.sidebar.fixed .hamburger a.main-nav-toggle:before {
    transform: rotate(45deg);
    transform-origin: center;
    top: 50%;
}

.sidebar.fixed .hamburger a.main-nav-toggle i {
    opacity: 0;
}

.fullscreen a.main-nav-toggle {
}

.fullscreen a.main-nav-toggle img {
    width: 30px;
}

.sidebar * {
    list-style: none;
    font-size: 20px;
}

.animated-background {
    background: #0d1d31;
    background: linear-gradient(#0000004a, #2b2f61aa, #0d1d31d1, #000818), radial-gradient(ellipse at bottom, #00387f 0%, #000000 20%, #001483 40%, #001179 70%, #000000 100%);
    background-position: -60vw 100%;
    background-size: 130%;
}

.DISABLED__animated-background {
    background: #0d1d31;
    background: radial-gradient(ellipse at bottom, #0d1d31 0%, #0c0d13 100%);
    background-size: 600% 600%;
    -webkit-animation: grapeground 1s ease infinite;
    -moz-animation: grapeground 1s ease infinite;
    animation: grapeground 10s ease infinite;
}

body .sidebar {
    width: 90px;
    height: 100%;
    background-color: #333;
    color: #fff;
    position: fixed;
    left: 0%;
    top: 0%;
    overflow: hidden;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, opacity 0.3s ease;
    border-radius: 0;
    border: 0 transparent;
    opacity: 1;
}

body:hover .sidebar {
    opacity: 0.4;
}

/*body.page_home .sidebar,*/
body .sidebar.fixed, body .sidebar.expanded {
    width: 550px;
    box-shadow: 0 8px 32px 0 #000000;
    border-right: 1px solid rgba( 255, 255, 255, 0.18 );
    background: rgb(0 0 0 / 72%);
    overflow: hidden;
    overflow-x: hidden;
    opacity: 1 !important;
}

body.page_home .sidebar {
    opacity: 01.5 !important;
}

body.page_home .sidebar {
    opacity: 01.5 !important;
}

body.page_home .datetime {
    opacity: 1 !important;
}

body.page_home .sidebar.expanded:hover, body.page_home .sidebar.fixed {
    opacity: 1 !important;
}

@media only screen and (max-width: 600px) {
    body.page_home div#sidebar.sidebar,
    body div#sidebar.sidebar {
        width: 100% !important;
        box-shadow: 0 8px 32px 0 #000000;
        border-right: 1px solid rgba(255, 255, 255, 0.18);
        background: rgb(0 0 0 / 72%);
        overflow: hidden;
        overflow-x: hidden;
        opacity: 1 !important;
        height: calc(100% - 73vw);
        top: 72vw;
    }
    .nav-link .text {
        display: block !important;!i;!;
    }
    .currentPlaying {
        top: 10px;
        font-size: 18px !important;!i;!;
        width: 100% !important;!i;!;!i;!;
        height: fit-content !important;!i;!;
        left: 0 !important;!i;!;
        text-align: center !important;!i;!;
    }
    .search-container {
        width: 85% !important;
    }
}

.sidebar.collapsed {
    width: 66px;
    background: #0000002b;
    /* filter: invert(1); */
    /* border-right: 1px solid #ffffff14; */
}

button#search-btn {
    top: 40px;
    position: relative;
}

button#search-btn img {
    width: 30px;
    filter: invert(1);
    opacity: 0.4;
}

.toggle-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 26px;
    text-align: center;
    width: 100%;
    transition: background-color 0.3s ease;
}

.toggle-btn.active {
    background-color: #555;
}

.nav {
    display: flex;
    flex-direction: column;
    top: 40px;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    max-height: calc(100% - 110px);
    padding-top: 30px;
    opacity: 0.;
    flex: 1;
}

.nav-item {
    position: relative;
    margin-bottom: 20px;
}

.nav-item-management {
    margin-top: auto;
    margin-bottom: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 0px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(#ffffffaa, #6d6d6daa 40%, #000000c7 3%, #002f61aa);
}

.nav-link .icon {
    margin-right: 10px;
}

.nav-link .icon img {
    max-width: 24px;
}

.nav-item-management .nav-link .icon img {
    width: 30px;
}
.nav-link .text {
    display: none;
}

.submenu {
    display: none;
    flex-direction: column;
}

.submenu .submenu {
    display: none;
}

.nav-item > .submenu {
    margin-left: 25px;
    list-style: none;
}

li.channel, .submenu-item {
    /* border-left: 1px solid #666; */
    margin-bottom: 7px;
}

.submenu-link {
    padding: 20px 5px 20px 25px;
    text-decoration: none;
    color: #ccc;
    /* background-color: #555; */
    /* border-bottom: 1px solid #666; */
    display: block;
    transition: background-color 0.3s ease;
    color: #eee;
}

.nav-item.expanded > .submenu, .submenu.expanded {
    display: flex;
}

.nav-item > .expanded {
    padding-left: 0 !important;
}

.channel-list {
    width: 22vw;
    background: #0007;
    position: absolute;
    z-index: 999;
    height: 23vh;
    overflow: scroll;
    bottom: 0;
    padding-left: 3vw;
    padding-top: 2px;
    transition: all ease-out 0.3s;
    display: none;
}

.channel-list::-webkit-scrollbar {
    display: none;
}

.channel-list a.channel-link {
    display: block;
    background: transparent;
    color: white;
    text-decoration: none;
    font-size: 28px;
    padding: 10px 0;
    height: 100%;
}


/*body.page_home .sidebar .text,*/
body .sidebar.fixed .text , .sidebar.expanded .text {
    display: inline;
}

.sidebar.collapsed .text {
    display: none;
}

.sidebar.collapsed .submenu {
    display: none;
}

.sidebar.collapsed .submenu.expanded {
    display: none;
}

body.loading .content {
    display: none;
}

.content {
    margin-left: 0;
    flex: 1;
}

.sidebar.collapsed a.nav-link {
    background: transparent;
    /* opacity: 0.2; */
    /* filter: invert(1); */
}

.sidebar.collapsed button {
    background: transparent;
    opacity: 0.3;
    filter: saturate(0);
}

body .sidebar.fixed a.submenu-link, .submenu.expanded a.submenu-link {
    padding-left: 28px !important;
}

li.channel a {
    color: white;
    text-decoration: none;
    padding: 15px;
    display: block;
}

li.channel {
    display: block !important;
    list-style: none;
    /* Reduz layout/paint fora da área visível em listas enormes */
    content-visibility: auto;
    contain-intrinsic-size: auto 3.5rem;
}

ul.cat-list {
    padding: 0 0 0 10px;
}

li.channel:hover {
    /* background: #3333338c; */
}

h2.cat-link {
    padding: 10px;
}

.filter {
    margin: 10px;
}

a.cat-link {
    color: white;
    text-decoration: none;
    padding: 20px 10px;
    display: block;
    text-transform: capitalize;
}

a.cat-link[data-cat=sbt] {
    text-transform: uppercase;
}

li.submenu-item.cat-selected > .submenu {
    display: block;
}

h2.cat-link, a.mp-back, .filter {
    display: none;
}

a.channel-link:active {
}

li.cat-link a.cat-link {
    margin-left: -40px;
    padding-left: 70px !important;
    font-weight: bold;
}

.submenu-link:hover, li.cat-link a.cat-link:active, li.channel a.channel-link:active, li.cat-link a.cat-link:hover, li.channel a.channel-link:hover {
    background: linear-gradient(#ffffffaa, #6d6d6daa 40%, #000000c7 3%, #002f61aa);
    color: #ffffffbf;
    /* padding: 20px; */
    /* transition: 0.5s all; */
}
.nav-item > ul.submenu.categoriesList.cat-list.expanded > li.cat-link > a.cat-link {
    font-weight: 400 !important;
    padding: 15px 5px 20px 50px !important;
    margin-left: -40px;
}

a.channel-link {
    padding-left: 75px !important;
    margin-left: -46px;
}

/*****************************************/
body.xmb .sidebar.expanded {
    width: 100vw;
    max-width: 100vw;
}

body.xmb .sidebar.expanded nav.nav {
    flex-direction: row;
}

body.xmb .sidebar.expanded nav.nav .nav-item {
    width: 200px;
    text-align: center;
    transition: 1s all;
    margin-left: 20px;
}

body.xmb .sidebar.expanded nav.nav .nav-item > .expanded {
    max-height: calc(100vh - 250px);
    width: fit-content;
    min-width: 600px;
    overflow-x: hidden;
    overflow-y: scroll;
    margin-left: -10px
}

body.xmb .sidebar.expanded nav.nav a.nav-link {
}

body.xmb .sidebar.expanded nav.nav a.nav-link.toggle-btn {
    width: calc(100% - 40px);
}

body.xmb .sidebar.expanded nav.nav .nav-item a {
    text-align: left;
    width: fit-content;
    white-space: nowrap;
    border-radius: 6px;
    padding: 15px 30px !important;
    /* margin-left: -15px; */
    min-width: 100px;
}

body.xmb .sidebar.expanded nav.nav .nav-item li {
    padding-left: 15px !important;
    width: fit-content;
    overflow: visible;
}
