/*
 * Theme Custom CSS
 * Extracted from inline <style> blocks of the original WordPress theme.
 * Contains theme accent color overrides and custom components.
 */

/* === Accent Color Overrides === */
.logo-word-2,
.header-search #searchsubmit,
.video-block .video-debounce-bar,
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    background-color: #ff9900;
}

a,
a:hover,
ul#menu-footer-menu li a:hover,
.required,
#show-sharing-buttons:hover i,
.tags-letter-block .tag-items .tag-item a:hover,
.post-like a:hover i {
    color: #ff9900;
}

.pagination-lg .page-item:first-child .page-link,
.pagination-lg .page-item:last-child .page-link {
    border-color: #ff9900!important;
    color: #ff9900;
}

.navbar li.active a,
#video-tabs button.tab-link.active,
#video-tabs button.tab-link:hover {
    border-bottom-color: #ff9900!important;
}

.btn,
.btn-primary,
.post-navigation a,
.btn:hover {
    background-color: #ff9900!important;
    color: #000000!important;
    border-color: #ff9900!important;
}

.page-item.active .page-link {
    background-color: #ff9900!important;
    border-color: #ff9900!important;
    color: #000000!important;
}

@keyframes glowing {
    0% { border-color: #ff9900; box-shadow: 0 0 3px #ff9900; }
    50% { box-shadow: 0 0 20px #ff9900; }
    100% { border-color: #ff9900; box-shadow: 0 0 3px #ff9900; }
}

/* === Custom Notice Bar === */
.custom-notice-bar {
    background-color: #ff9900;
    color: #000000;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-notice-bar a {
    color: #000000;
    text-decoration: underline;
    font-weight: 800;
    margin: 0 5px;
}

@media (max-width: 768px) {
    .custom-notice-bar {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* === 404 Page === */
.error-404-content {
    padding: 80px 0;
    text-align: center;
}
.error-404-content .error-code {
    font-size: 120px;
    color: #ff9900;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
}
.error-404-content .error-title {
    color: #ccc;
    font-size: 24px;
    margin-bottom: 20px;
}
.error-404-content .error-desc {
    color: #999;
    font-size: 16px;
    margin-bottom: 30px;
}
.error-404-content .error-home-btn {
    font-size: 16px;
    padding: 12px 30px;
}
.error-search-wrap {
    margin-top: 40px;
}
.error-search-wrap .text-muted {
    margin-bottom: 15px;
}
.error-search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}
.error-search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.error-search-form button {
    border-radius: 0 4px 4px 0;
    padding: 10px 20px;
}

/* === Search Autocomplete === */
.phantom-stream-suggest-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: none;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
}
.phantom-stream-suggest-box a {
    display: block;
    padding: 5px 12px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #222;
}
.phantom-stream-suggest-box a:hover {
    background: #222;
    color: #ff9900;
}

/* Custom scrollbar cho suggest box */
.phantom-stream-suggest-box::-webkit-scrollbar {
    width: 6px;
}
.phantom-stream-suggest-box::-webkit-scrollbar-track {
    background: #1a1a1a;
}
.phantom-stream-suggest-box::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}
.phantom-stream-suggest-box::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* === Mobile Search Toggle === */
.header-search.show-mobile {
    display: block !important;
}

/* === Server Switch Buttons === */
#video-servers {
    margin: 10px 0;
}
#video-servers .server-btn {
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: transparent !important;
    border-color: #6c757d !important;
    color: #ccc !important;
    opacity: 0.6;
    transition: all 0.3s ease;
}
#video-servers .server-btn:hover {
    background-color: #343a40 !important;
    border-color: #6c757d !important;
    color: #fff !important;
    opacity: 0.8;
}
#video-servers .server-btn.active,
#video-servers .server-btn.primary {
    background-color: #ff9900 !important;
    border-color: #ff9900 !important;
    color: #111 !important;
    opacity: 1 !important;
}

/* === Footer Backlinks === */
.footer-backlinks-container {
    margin-bottom: 15px;
}
.footer-backlinks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.footer-backlinks li a {
    color: #999;
    font-size: 13px;
}
.footer-backlinks li a:hover {
    color: #ff9900;
}

/* === Sidebar Backlinks === */
.sidebar-backlinks {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}
.sidebar-backlinks li {
    margin-bottom: 6px;
}
.sidebar-backlinks li a {
    color: #ccc;
    font-size: 13px;
}
.sidebar-backlinks li a:hover {
    color: #ff9900;
}

/* === Logo Text Fallback === */
.logo-text {
    color: #ff9900;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

/* === Like Button === */
.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0;
}
.like-btn.liked,
.like-btn.liked .grey-link {
    color: #ff9900 !important;
}

/* === Dropdown Menu Dark Theme Override === */
.dropdown-menu {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0;
}
.dropdown-menu .dropdown-item {
    color: #ccc;
    font-size: 14px;
    padding: 8px 20px;
    border-bottom: 1px solid #222;
}
.dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item.active {
    background-color: #222;
    color: #ff9900;
}

/* === Ribbon Badge === */
.video-block .ribbon-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #ff9900;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 100;
    text-transform: uppercase;
}
