
html, body {
    /*height: 100%;*/
    overflow-x: hidden;
}

#small-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
}

#mobile-bottom-nav {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
}
#navbar,
#small-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent ;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-navbar);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
}
#navbar{
	height:70px;
}
.navbar-scrolled{
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
}
/* ============================================
   SCROLLED STATE
   Slightly opaque background on scroll
   ============================================ */
.navbar.uk-active {
    background: #111;
}

#navbar.scrolled {
    background: rgba(5, 2, 3, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

/* Container - Equal padding */
#navbar .uk-container-large {
    width: 100%;
    max-width: var(--container-max-width);
    padding: 0 var(--container-padding-lg);
}

/* Navbar layout */
#navbar .uk-navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-wrap: nowrap;
}

#navbar .uk-navbar-left,
#navbar .uk-navbar-right {
    flex-shrink: 0;
}

.uk-navbar-item {
    padding: 0 !important;
}

/* Navbar links - Equal padding */
.uk-navbar-nav > li > a {
    color: #ffffff !important;
    font-weight: var(--font-bold);
    font-size: 15px;
    padding: var(--space-1-5) var(--space-4);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    display: inline-block;
    min-height: 0 !important;
    white-space: nowrap;
}

.uk-navbar-nav > li:not(.search-item):not(.logo):not(.profile-hover) > a:hover {
    background: white !important;
    color: #000000 !important;
}

/* Bookmark icon hover swap */
.uk-navbar-nav > li > a:hover .bookmark-white {
    display: none;
}
.uk-navbar-nav > li > a:hover .bookmark-black {
    display: inline-block !important;
}

.uk-navbar-nav > li.uk-active > a {
    /* background: linear-gradient(180deg, #E50914 0%, #800108 100%) !important; */
    background: radial-gradient(50% 50% at 50% 0, rgba(var(--action-background-color, 255, 255, 255), .8) 0, transparent 100%), hsla(0, 0%, 100%, .2) !important;
    color: #fff !important;
    font-weight: 600;
    /* box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4); */
     box-shadow: 0 -4px 16px 0 rgba(var(--action-background-color, 255, 255, 255), .2);; 
}

/* Logo */
.uk-logo img {
    height: 20px;
    width: auto;
    transition: all 0.3s ease;
}

.uk-logo:hover img {
    filter: drop-shadow(0 0 8px rgba(229, 9, 20, 0.6));
}

/* Remove hover background from logo */
.logo > a:hover {
    background: transparent !important;
}
.uk-navbar-nav > li.search-item > a:hover {
    background: transparent !important;
    color: #ffffff !important;
}
/* Remove hover background from profile icon only */
.uk-navbar-right .uk-navbar-item:has(.uk-border-circle) > a:hover {
    background: transparent !important;
}
/* Remove hover background for profile icon */
.uk-navbar-nav > li:not(.search-item):not(.logo) > a:not(.profile-hover):hover {
    /* background: white !important; */
    color: #000000 !important;
}

/* Remove hover background from mobile logo */
#small-navbar .logo > a:hover {
    background: transparent !important;
}

/* Remove hover background from mobile profile icon only */
#small-navbar .uk-navbar-right .uk-navbar-item:has(.uk-border-circle) > a:hover {
    background: transparent !important;
}

/* Right-side icons */
.uk-navbar-right .uk-navbar-nav > li > a,
.uk-navbar-right .uk-navbar-nav > li > span {
    padding: 6px 12px;
}

.uk-navbar-right span[uk-icon] {

    color: #ffffff;
    transition: 0.3s ease;
}

.uk-navbar-right span[uk-icon]:hover {
    color: #ffffff;
}

/* Subscribe button */
.uk-navbar-nav .uk-button-danger {
    background: linear-gradient(180deg, #E50914 0%, #800108 100%);
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.uk-navbar-nav .uk-button-danger:hover {
    opacity: 0.9;
}

/* =====================================
   RESPONSIVE DESKTOP SCALING
===================================== */

@media (max-width: 1400px) {
    .uk-navbar-nav > li > a {
        font-weight: bold;
        font-size: 16px;
        padding: 4px 14px;
    }
}

@media (max-width: 1200px) {

    #navbar .uk-container-large {
        padding: 0 25px;
    }

    .uk-navbar-nav {
        gap: 6px;
    }

    .uk-navbar-nav > li > a {
        font-weight: 600;
        font-size: 16px;
        padding: 6px 12px;
    }
}

@media (max-width: 992px) {

    #navbar .uk-container-large {
        padding: 0 15px;
    }

    .uk-navbar-nav > li > a {
        font-weight:  600;
        font-size: 13px;
        padding: 5px 10px;
    }
}

@media (max-width: 768px) {

    .uk-navbar-nav > li > a {
        font-weight:  600;
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* =====================================
   MOBILE NAVBAR (ONLY BELOW 740px)
   ===================================== */

#small-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    align-items: center;
    z-index: 1200;
}
@media (max-width: 740px) {

    #small-navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
    }

    body {
        padding-top: 80px; 
    }

}
@media (max-width: 480px) {
    body {
        padding-top: 0px;
    }
}
/* =====================================
   MOBILE NAVBAR (SHOW BELOW 740px)
   ===================================== */

/* Hide mobile by default */
#small-navbar {
    display: none;
}

/* Show on desktop */
@media (min-width: 741px) {
    #mobile-bottom-nav {
        display: none !important;
    }
}

/* Below 740px show mobile */
@media (max-width: 740px) {

    #navbar {
        display: none !important;
    }

    #small-navbar {
        display: block !important;
        height: auto !important;
        min-height: 50px !important;
    }

    /* Show mobile bottom navigation */
    #mobile-bottom-nav {
        display: flex !important;
    }

    /* Hide offcanvas */
    #offcanvas-overlay {
        display: none !important;
    }
}

/* Mobile medium (640px and below) */
@media (max-width: 640px) {
    #small-navbar {
        min-height: 50px !important;
    }
    
    .mobile-header-row1 {
        /* padding: 6px 0; */
    }
    
    .mobile-nav-row2 {
        /* margin-top: 4px;
        padding: 4px 0; */
    }
    
    .mobile-nav-row2 .uk-navbar-left {
        gap: 6px;
        padding-left: 6px;
    }
    
    .mobile-nav-row2 .uk-navbar-left a {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    #small-navbar .uk-container,
    #small-navbar .uk-container-large {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Mobile small (480px and below) */
@media (max-width: 480px) {
    #small-navbar {
        min-height: 48px !important;
    }
    
    .mobile-header-row1 {
        /* padding: 5px 0; */
    }
    
    .mobile-nav-row2 {
        /* margin-top: 3px;
        padding: 3px 0; */
    }
    
    .mobile-nav-row2 .uk-navbar-left {
        gap: 4px;
        padding-left: 4px;
    }
    
    .mobile-nav-row2 .uk-navbar-left a {
        /* padding: 4px 10px; */
        font-size: 11px;
    }
    
    #small-navbar .uk-logo img {
        height: 20px;
        max-width: 130px;
    }
    
    #mobile-bottom-nav {
        height: 55px;
    }
    
    #small-navbar .uk-container,
    #small-navbar .uk-container-large {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Mobile 375px specific */
@media (max-width: 480px) and (min-width: 376px) {
    .mobile-nav-row2 {
        /* margin-top: -20px !important;
        padding: 2px 0 !important; */
    }
}

/* Mobile very small (360px and below) */
@media (max-width: 360px) {
    #small-navbar {
        min-height: 45px !important;
    }
    
    .mobile-header-row1 {
        /* padding: 4px 0; */
    }
    
    .mobile-nav-row2 {
        /* margin-top: -8px !important;
        padding: 2px 0 !important; */
    }
    
    .mobile-nav-row2 .uk-navbar-left {
        gap: 2px;
        padding-left: 2px;
    }
    
    .mobile-nav-row2 .uk-navbar-left a {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    #small-navbar .uk-logo img {
        height: 20px;
        max-width: 100px;
    }
    
    #mobile-bottom-nav {
        height: 50px;
    }
    
    #mobile-bottom-nav a {
        font-size: 8px;
        min-width: 35px;
        padding: 2px 3px;
    }
    
    #mobile-bottom-nav a svg {
        width: 18px;
        height: 18px;
    }
    
    #small-navbar .uk-container,
    #small-navbar .uk-container-large {
        padding-left: 8px;
        padding-right: 8px;
    }
}


.logo > a > img {
    height: 24px;
    width: auto;
}

/* Mobile logo */
#small-navbar .uk-logo img {
    height: 24px;
    width: auto;
    max-width: 180px;
    transition: all 0.3s ease;
}

#small-navbar .uk-logo:hover img {
    filter: drop-shadow(0 0 8px rgba(229, 9, 20, 0.6));
}

/* Remove hover background from mobile logo */
#small-navbar .logo > a:hover {
    background: transparent !important;
}

/* Remove hover background from mobile profile icon */
#small-navbar .uk-navbar-right .uk-navbar-item > a:hover {
    background: transparent !important;
}

/* Mobile nav links */
#small-navbar .uk-navbar-nav > li > a {
    min-height: unset !important;
    padding: 6px 10px !important;
    color: #ffffff !important;
    font-weight: bold;
    border-radius: 6px;
    transition: 0.3s ease;
}

#small-navbar .uk-navbar-nav > li > a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile subscribe button */
#small-navbar .uk-button-danger {
    background: linear-gradient(180deg, #E50914 0%, #800108 100%);
    border: none;
    border-radius: 6px;
    padding: 4px 10px !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-transform: none !important;
}

#small-navbar .uk-navbar-item .uk-button-danger {
    margin: 0;
}

#small-navbar .uk-navbar-item > a {
    padding: 0 !important;
}

#small-navbar .uk-button-danger:hover {
    opacity: 0.9;
}

@media (max-width: 420px) {
    #small-navbar .uk-button-danger {
        padding: 3px 8px !important;
        font-size: 11px !important;
    }
}

/* Prevent icon shrink */
#small-navbar span[uk-icon] {
    display: flex;
    align-items: center;
    justify-content: center;
}

#small-navbar span[uk-icon] svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    flex-shrink: 0 !important;
}

/* =====================================
   DROPDOWN MENU
===================================== */

.uk-navbar-dropdown {
    background: #111;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
}

.uk-navbar-dropdown-nav > li > a {
    color: #fff !important;
    padding: 10px 7px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 17px;
}

.uk-navbar-dropdown-nav > li > a:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* =====================================
   OFFCANVAS MOBILE MENU
===================================== */

.ott-mobile-menu {
    background: #050203;
    padding: 30px 20px;
    width: 260px;
}

.ott-mobile-logo {
    margin-bottom: 30px;
}

.ott-mobile-logo img {
    height: 20px;
}

.ott-mobile-nav {
    list-style: none;
    padding: 0;
}

.ott-mobile-nav li {
    margin-bottom: 12px;
}

.ott-mobile-nav li a {
    display: block;
    padding: 12px 16px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.3s ease;
}

.ott-mobile-nav li a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ott-mobile-nav li.uk-active a {
    background: linear-gradient(180deg, #E50914 0%, #800108 100%);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

.uk-nav-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 20px 0;
}

.uk-offcanvas-close {
    top: 15px;
    right: 15px;
    color: #fff;
}

.uk-offcanvas-bar {
    background: #050203 !important;
    width: 260px !important;
    padding: 15px 20px !important;
    box-shadow: 4px 0 20px rgba(0,0,0,0.6);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.uk-offcanvas-overlay::before {
    background: rgba(0,0,0,0.6) !important;
}

#offcanvas-overlay {
    z-index: 13000 !important;
}

/* =====================================
   MOBILE HEADER - NEW LAYOUT
   Row 1: Logo + Language
   Row 2: Navigation Tabs
   ===================================== */

/* Container for mobile header */
#small-navbar .uk-container-large {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 50px !important;
    
}
#small-navbar{
    padding-top:10px;
    background: black;
    padding-bottom: 10px;
}
.mobile-header-row1 {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    /* padding: 6px 0; */
    flex-shrink: 0;
}

.mobile-header-row1 .uk-navbar-left,
.mobile-header-row1 .uk-navbar-right {
    flex: unset !important;
}

/* Login button in mobile header - white text */
.mobile-header-row1 .uk-navbar-nav li a,
.mobile-header-row1 .uk-navbar-nav li > a {
    color: #ffffff !important;
}

/* Row 2 - Small fixed gap (4px) from Row 1 */
.mobile-nav-row2 {
    width: 100%;
    /* margin-top: 4px;
    padding: 4px 0; */
   
    flex-shrink: 0;
}

.mobile-nav-row2 .uk-navbar-left {
    display: flex !important;
    gap: 8px;
    padding-left: 8px;
}

.mobile-nav-row2 .uk-navbar-left a {
    padding: 6px 16px;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mobile-nav-row2 .uk-navbar-left a:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-row2 .uk-navbar-left a.active {
    color: #000000 !important;
    border-color: #ffffff;
    background: #ffffff;
    /*background: radial-gradient(50% 50% at 50% 0, rgba(var(--action-background-color), .8) 0, transparent 100%), hsla(0, 0%, 100%, .2) !important;*/
}

/* =====================================
   MOBILE BOTTOM NAVIGATION
   Fixed at bottom, visible only on mobile
   ===================================== */

#mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 60px;
    background: #050203;
    border-top: 1px solid rgba(255,255,255,0.1);
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    padding: 0 5px;
    box-sizing: border-box;
}

#mobile-bottom-nav a {
    flex: 1;                 /* distribute icons evenly */
    min-width: 0;            /* prevent overflow */
    padding: 4px 0;
}

#mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    min-width: 50px;
}

#mobile-bottom-nav a svg {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
}

#mobile-bottom-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
}

#mobile-bottom-nav a.active {
    color: #E50914;
}

#mobile-bottom-nav a.active svg {
    filter: drop-shadow(0 0 6px rgba(229, 9, 20, 0.5));
}

/* Adjust main content padding for bottom nav */
body {
    padding-bottom: 0 !important;
}

/* Add bottom padding to main content when bottom nav is visible */
@media (max-width: 740px) {
    .main-content,
    .uk-section,
    .content-wrapper {
        padding-bottom: 70px !important;
    }
    
}
