/* ==============================================
   Theme Custom CSS - UltimatubE Clean
   Extracted from inline styles of original site
   ============================================== */

/* --- Thumbnail ratio --- */
.post-thumbnail {
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
		height: auto !important;
}
.post-thumbnail video,
.post-thumbnail img {
    object-fit: cover;
}

/* --- Site background --- */
body {
    background: #0a0a0a;
}
body.custom-background {
    background-color: #0a0a0a !important;
    background-repeat: repeat;
    background-attachment: fixed;
}

/* --- Logo --- */
.site-title a {
    font-family: 'Roboto', sans-serif;
    font-size: 36px;
}
.site-branding .logo img {
    max-width: 350px;
    max-height: 120px;
    margin-top: 0px;
    margin-left: 0px;
}

/* --- Accent color: #EA6CE0 --- */
a,
.site-title a i,
.thumb-block:hover span.title,
.categories-list .thumb-block:hover .entry-header .cat-title:before,
.required,
.post-like a:hover i,
.top-bar i:hover,
.menu-toggle i,
.main-navigation.toggled li:hover > a,
.main-navigation.toggled li.focus > a,
.main-navigation.toggled li.current_page_item > a,
.main-navigation.toggled li.current-menu-item > a,
#filters .filters-select:after,
.top-bar .membership a i,
.thumb-block:hover .photos-count i,
.aside-filters span:hover a,
.aside-filters span:hover a i,
.filters a.active,
.filters a:hover,
.archive-aside a:hover,
#video-links a:hover,
#video-links a:hover i,
.video-share .video-share-url a#clickme:hover,
a#show-sharing-buttons.active,
a#show-sharing-buttons.active i,
.morelink:hover,
.morelink:hover i,
.footer-menu-container a:hover,
.categories-list .thumb-block:hover .entry-header span,
.tags-letter-block .tag-items .tag-item a:hover,
.menu-toggle-open,
.search-open {
    color: #EA6CE0;
}

button,
.button,
.btn,
input[type="button"],
input[type="reset"],
input[type="submit"],
.pagination ul li a.current,
.pagination ul li a:hover,
body #filters .label.secondary.active,
.label.secondary:hover,
.widget_categories ul li a:hover,
a.tag-cloud-link:hover,
.template-actors li a:hover,
.rating-bar-meter,
.vjs-play-progress,
#filters .filters-options span:hover,
.top-bar .social-share a:hover,
.thumb-block:hover span.hd-video,
.label:hover,
.label:focus,
.label:active,
.mobile-pagination .pagination-nav span,
.mobile-pagination .pagination-nav a {
    background-color: #EA6CE0 !important;
}

#video-tabs button.tab-link.active,
.page-title,
.page .entry-title,
.comments-title,
.comment-reply-title,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
.filters a.active {
    border-color: #EA6CE0 !important;
}

ul li.current-menu-item > a {
    border-bottom-color: #EA6CE0 !important;
}

@media (max-width: 767.98px) {
    ul li.current-menu-item > a {
        color: #EA6CE0 !important;
    }
}

.video-js .vjs-big-play-button {
    background-color: #EA6CE0 !important;
    border-color: #EA6CE0 !important;
}

/* --- Dark theme colors --- */
.thumb-block .entry-header {
    color: #dadada;
}
.site-branding,
.archive-content,
.entry-content,
.under-video-block,
.footer-widget-zone {
    background-color: #0a0a0a;
}
.widget-title,
.page-title,
.page .entry-title,
.comments-title,
.comment-reply-title {
    color: #dadada !important;
}
.archive-aside {
    color: #0a0a0a;
}
.site-branding,
.site-content {
    background-color: #0a0a0a;
}
.aside-filters span a {
    color: #dadada;
}
.filters a {
    color: #dadada;
}
.video-player-area {
    background: #0a0a0a;
}
.video-player-area .video-infos h1 {
    color: #dadada;
}
.video-description p {
    color: #dadada;
}
.video-tags a {
    color: #dadada;
}
.label {
    background: #2b2b2b;
}
.site-footer {
    background: #0a0a0a;
    color: #dadada;
}
h1.homepage-title {
    color: #dadada;
}
.aside-block {
    color: #dadada !important;
}
.aside-block a {
    color: #dadada !important;
}
p.site-description {
    color: #dadada;
}
* {
    color: #dadada;
}
.video-actions {
    background: #2b2b2b;
}
.post-like a {
    background: #2b2b2b;
}
.archive-aside a.active,
.archive-aside a:hover {
    background: #D87D33;
}
.site-branding .logo a {
    display: inline-block;
    color: #dadada;
    outline: none;
}

/* --- Cookie bar --- */
#cookie-bar {
    background-color: rgba(0, 0, 0, 0.9) !important;
}
#cookie-bar p {
    color: #FFFFFF !important;
}
#cookie-bar .cookie-bar__btn {
    background-color: #ffcc00 !important;
    color: #000000 !important;
}

/* --- Tag list --- */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    justify-content: center;
}
.tag-item {
    background: #f0f0f0;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.tag-item:hover {
    background: #333;
    color: #fff;
}

/* --- Backlinks Customization --- */
.aside-backlinks ul,
.site-backlinks ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.aside-backlinks ul li,
.site-backlinks ul li {
    list-style-type: none !important;
}

/* --- Custom Text Logo --- */
.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #EA6CE0;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 0;
    text-shadow: 0 0 10px rgba(234, 108, 224, 0.4);
}
.logo-text span {
    color: #dadada;
}


/* --- Desktop Navigation Auto Height --- */
@media (min-width: 992px) {
    .menu-item.desktop-hidden {
        display: block !important;
    }
    #site-navigation {
        height: auto !important;
        min-height: 45px;
    }
    #site-navigation ul {
        display: flex;
        flex-wrap: wrap;
        height: auto !important;
    }
    #site-navigation>ul>li {
        float: none !important;
    }
}


/* --- Autocomplete Dropdown --- */
.header-search {
    z-index: 999;
}
.search-autocomplete {
    position: relative;
}
.search-autocomplete::after {
    content: "";
    display: table;
    clear: both;
}
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 85%; /* Match the 85% mobile input width */
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: none;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
}
.autocomplete-dropdown ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.autocomplete-dropdown ul li {
    list-style-type: none !important;
    border-bottom: 1px solid #333;
    margin: 0 !important;
}
.autocomplete-dropdown ul li:last-child {
    border-bottom: none;
}
.autocomplete-dropdown ul li a {
    display: block;
    padding: 10px 15px;
    color: #dadada;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
    text-align: left;
}
.autocomplete-dropdown ul li a:hover {
    background: #EA6CE0;
    color: #fff;
}

@media (min-width: 992px) {
    .autocomplete-dropdown {
        width: 80%; /* Match the 80% desktop input width */
    }
}

/* --- Fluid Thumbnails --- */
.thumb-block .post-thumbnail {
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
		height: auto !important;
    height: auto !important;
}
.thumb-block .post-thumbnail img,
.thumb-block .post-thumbnail .wpst-trailer {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
		height: auto !important;
}

/* --- Server Buttons --- */
.video-servers {
    margin-top: 15px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}
.video-servers-label {
    color: #dadada;
    font-weight: bold;
}
.server-btn {
    background: #2a2a2a;
    color: #dadada;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    text-decoration: none;
}
.server-btn.active,
.server-btn:hover {
    background: #EA6CE0 !important;
    color: #fff !important;
}

/* --- Pagination single-page state --- */
.pagination-single {
    clear: both;
    display: table;
    margin: 0 auto;
    padding: 2em 0 0 0;
}
.pagination-single span {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 5px;
    background: #2a2a2a;
    color: #dadada;
    font-size: 0.9em;
    opacity: 0.6;
}

/* --- Mobile Filters Dropdown Fix --- */
@media (max-width: 767.98px) {
    .filters.active .filters-list {
        display: block !important;
    }
    
    .filter-title:after {
        transition: transform 0.3s;
        display: inline-block;
    }
    
    .filters.active .filter-title:after {
        transform: rotate(180deg);
    }
}
