/* Mobile Navbar */


#uptv-mobile-navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(180deg, rgba(21, 21, 21, 0) 0%, rgba(21, 21, 21, 0.45) 27.21%, rgba(21, 21, 21, 0.74) 58.21%, rgba(21, 21, 21, 0.94) 78.89%, #151515 100%);
    /*box-shadow: 0 -2px 10px rgba(0,0,0,0.3);*/
    z-index: 9999;
    padding-top: 15px;
    padding-bottom: 15px;
}

@media (min-width:600px) {
#uptv-mobile-navbar {
    display: none;
} 
    } 


#uptv-mobile-navbar .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    flex-grow: 1;
    height: 100%;
}

#uptv-mobile-navbar .nav-item .nav-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

#uptv-mobile-navbar .nav-item .nav-text {
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    height: 0;
    overflow: hidden;
}

#uptv-mobile-navbar .nav-item.current-item .nav-text {
    opacity: 1;
    height: auto;
}

#uptv-mobile-navbar .nav-item.current-item .nav-icon {
    transform: scale(1.2);
}

/* Category List Page */
.uptv-categories-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    color: #f1f1f1;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.uptv-categories-modal.visible {
    opacity: 1;
    visibility: visible;
}

.uptv-categories-modal__close {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.uptv-categories-modal__close svg {
    width: 100%;
    height: 100%;
    stroke: #f1f1f1;
}

.uptv-categories-modal__content {
    padding: 60px 10px 10px;
}

.uptv-categories-modal__content__wrapper {
    padding: 10px;
}

.uptv-categories-modal__content__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.uptv-categories-modal__content__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none !important;
    color: #fff;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s !important;
    overflow: hidden;
    min-height: 80px;
}

.uptv-categories-modal__content__item:hover {
    transform: translateY(-5px);
}

.uptv-categories-modal__content__item--name {
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.uptv-categories-modal__content__item.has-background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.body.no-scroll {
    overflow: hidden;
}

/* Loader Styles */
.uptv-navbar-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.uptv-navbar-loader-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}