/*
Theme Name: AnonX
Description: Modern dark video-focused WordPress theme with Bootstrap 5, optimized for performance and user experience. Features 2x2 mobile and 4x4 desktop grid layouts, AnonVip plugin integration, and comprehensive customization options. Enhanced with responsive desktop/mobile settings, extended time periods for Top Movies, improved title display controls, and smart menu highlighting with customizable colors.
Version: 1.4.0
Author: AnonLink.io
Author URI: https://anonlink.io
Text Domain: anonx
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL v2 or later
*/

/* Import Bootstrap 5 and Google Fonts */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Theme Customization */
:root {
    /* Primary Colors */
    --primary-color: #ff6b6b;
    --primary-hover: #ff5252;
    --secondary-color: #6c757d;
    --accent-color: #ffd700;
    
    /* Dark Theme Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-card: #1e1e1e;
    --bg-hover: #2d2d2d;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --text-light: #f8f9fa;
    
    /* Border Colors */
    --border-primary: #333333;
    --border-secondary: #404040;
    --border-light: #555555;
    
    /* Typography */
    --font-family-primary: 'Inter', sans-serif;
    --font-family-secondary: 'Poppins', sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-small: 8px;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    
    /* Video Grid */
    --grid-gap: 20px;
    --grid-gap-mobile: 15px;
    --card-aspect-ratio: 16/9;
    
    /* Single Post Link Colors */
    --single-post-link-color: var(--primary-color);
    --single-post-link-hover-color: var(--primary-hover);
    
    /* Menu Colors */
    --menu-text-color: #ffffff;
    --menu-hover-color: var(--primary-color);
    --menu-active-color: var(--accent-color);
    --menu-hover-bg-color: rgba(255, 107, 107, 0.1);
    --menu-active-bg-color: rgba(255, 107, 107, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding: var(--spacing-sm);
    margin: 0;
}

/* Site Wrapper - Like Single Post Wrapper */
.site {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-primary);
    min-height: calc(100vh - var(--spacing-lg));
    overflow: hidden;
    position: relative;
}

/* Typography - Optimized Sizes */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9rem; }
h6 { font-size: 0.85rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* Container and Layout - Optimized Spacing */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 0.125rem;
}

.container-fluid {
    padding: 0 0.125rem;
}

/* Bootstrap 5.3 Button Enhancements */
.btn {
    font-family: var(--font-family-primary);
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-small);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color), 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
}

.btn-outline-light {
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    border-color: var(--text-light);
    color: var(--bg-primary);
}

/* Load More Button */
.load-more-container {
    padding: var(--spacing-xl) 0;
}

#load-more-posts {
    min-width: 160px;
    position: relative;
}

#load-more-posts.loading .load-more-text {
    opacity: 0.7;
}

#load-more-posts.loading .spinner-border {
    display: inline-block !important;
}

/* Social Sharing Buttons */
.social-sharing-buttons .btn {
    border-radius: var(--border-radius);
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
}

.social-sharing-buttons .btn-primary {
    background-color: #1877f2;
    border-color: #1877f2;
}

.social-sharing-buttons .btn-primary:hover {
    background-color: #166fe5;
    border-color: #166fe5;
}

.social-sharing-buttons .btn-info {
    background-color: #1da1f2;
    border-color: #1da1f2;
}

.social-sharing-buttons .btn-info:hover {
    background-color: #0d8bd9;
    border-color: #0d8bd9;
}

.social-sharing-buttons .btn-danger {
    background-color: #bd081c;
    border-color: #bd081c;
}

.social-sharing-buttons .btn-danger:hover {
    background-color: #a50e1b;
    border-color: #a50e1b;
}

/* Header Styles */
.site-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    min-height: var(--header-height);
    max-width: 100%;
    position: relative;
}

.site-branding {
    flex: 0 0 auto;
    min-width: 150px;
}

.site-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-family-secondary);
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.site-logo:hover {
    color: var(--primary-color);
}

.site-title {
    margin: 0;
    line-height: 1.2;
}

.site-description {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Navigation Menu Styles - Improved Layout */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 1.5rem;
    position: relative;
}

.main-navigation .navbar-nav {
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.main-navigation .nav-item {
    position: relative;
}

.main-navigation .nav-link {
    display: block;
    padding: 0.4rem 0.8rem;
    color: var(--menu-text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
    border-radius: var(--border-radius-small);
    white-space: nowrap;
}

.main-navigation .nav-link:hover,
.main-navigation .nav-link:focus {
    color: var(--menu-hover-color);
    background-color: var(--menu-hover-bg-color);
}

.main-navigation .nav-link.active,
.main-navigation .nav-link.current-menu-item,
.main-navigation .nav-link.current_page_item {
    color: var(--menu-active-color);
    background-color: var(--menu-active-bg-color);
    font-weight: 600;
}

/* Dropdown Menu */
.main-navigation .dropdown {
    position: relative;
}

.main-navigation .dropdown-toggle::after {
    display: none; /* Hide Bootstrap default caret */
}

.main-navigation .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 200px;
    padding: 0.5rem 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-top: 0.25rem;
    margin: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    list-style: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.main-navigation .dropdown:hover .dropdown-menu,
.main-navigation .dropdown.show .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.main-navigation .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    background-color: transparent;
    border: 0;
    transition: all var(--transition-fast);
}

.main-navigation .dropdown-item:hover,
.main-navigation .dropdown-item:focus {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.main-navigation .dropdown-item.active {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color), 0.1);
}

/* Mobile Navigation */
.navbar-toggler {
    display: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-lg);
    line-height: 1;
    background-color: transparent;
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-small);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color), 0.25);
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

/* Header Search - Improved Layout */
.header-search {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 320px;
    justify-content: flex-end;
}

/* Mobile Search in Navbar */
.navbar-collapse .header-search {
    margin-top: 1rem;
    min-width: 100%;
    max-width: 100%;
    order: 999;
}

.navbar-collapse .header-search .form-control {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-small);
    height: auto;
    border: 1px solid var(--border-primary);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.navbar-collapse .header-search .btn {
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-small);
    font-size: 0.85rem;
    height: auto;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Desktop optimization */
@media (min-width: 1200px) {
    .header-content {
        padding: 0.6rem 0;
        gap: 1rem;
    }
    
    .site-branding {
        min-width: 180px;
    }
    
    .site-logo {
        font-size: 1.3rem;
    }
    
    .main-navigation {
        margin: 0 2rem;
    }
    
    .header-search {
        min-width: 320px;
        max-width: 380px;
    }
}

/* Responsive Search - When menu is too big */
@media (min-width: 992px) and (max-width: 1400px) {
    .header-search {
        min-width: 200px;
        max-width: 250px;
    }
    
    .header-search .form-control {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .main-navigation {
        margin: 0 1rem;
    }
}

/* Compact Search - When space is very limited */
@media (min-width: 992px) and (max-width: 1200px) {
    .header-search.compact {
        min-width: 45px;
        max-width: 45px;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .header-search.compact .search-form {
        width: 45px;
        transition: all 0.3s ease;
    }
    
    .header-search.compact .form-control {
        width: 0;
        opacity: 0;
        padding: 0;
        border: none;
        background: transparent;
        transition: all 0.3s ease;
    }
    
    .header-search.compact .btn {
        border-radius: var(--border-radius-small);
        border: 1px solid var(--border-primary);
        background-color: var(--bg-tertiary);
        color: var(--text-primary);
        min-width: 45px;
        width: 45px;
        transition: all 0.3s ease;
    }
    
    .header-search.compact .btn:hover {
        background-color: var(--primary-color);
        color: #ffffff;
        border-color: var(--primary-color);
    }
    
    .header-search.compact.expanded {
        min-width: 280px;
        max-width: 280px;
    }
    
    .header-search.compact.expanded .search-form {
        width: 100%;
    }
    
    .header-search.compact.expanded .form-control {
        width: 100%;
        opacity: 1;
        padding: 0.5rem 1rem;
        border: 1px solid var(--border-primary);
        background-color: var(--bg-tertiary);
        border-radius: var(--border-radius-small) 0 0 var(--border-radius-small);
    }
    
    .header-search.compact.expanded .btn {
        border-radius: 0 var(--border-radius-small) var(--border-radius-small) 0;
        border-left: none;
        background-color: var(--primary-color);
        color: #ffffff;
        border-color: var(--primary-color);
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.1rem;
    }
    
    .header-content {
        padding: 0.25rem 0;
        gap: 0.25rem;
    }
    
    .site-branding {
        min-width: 100px;
    }
    
    .site-logo {
        font-size: 0.85rem;
    }
    
    .header-search {
        margin: 0 0.25rem;
    }
    
    .header-search .form-control {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        height: 30px;
    }
    
    .header-search .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        min-width: 32px;
        height: 30px;
    }
    
    .navbar-toggler {
        width: 32px;
        height: 30px;
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .container,
    .container-fluid {
        padding: 0 0.1rem;
    }
    
    .footer-bottom {
        padding: var(--spacing-sm) 0;
        gap: var(--spacing-sm);
    }
    
    .footer-menu {
        gap: var(--spacing-sm);
    }
    
    .site-info {
        font-size: 0.75rem;
    }
}

.header-search .search-form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.header-search .input-group {
    width: 100%;
    display: flex;
}

.header-search .form-control {
    border-right: none;
    background-color: var(--bg-tertiary);
    border-color: var(--border-primary);
    color: var(--text-primary);
    border-radius: var(--border-radius-small) 0 0 var(--border-radius-small);
    padding: 0.5rem 1rem;
    flex: 1;
}

.header-search .form-control:focus {
    background-color: var(--bg-card);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color), 0.25);
    outline: none;
}

.header-search .btn {
    border-left: none;
    border-color: var(--border-primary);
    border-radius: 0 var(--border-radius-small) var(--border-radius-small) 0;
    padding: 0.5rem 1rem;
    min-width: 45px;
    background-color: var(--primary-color);
    color: #ffffff !important;
}

.header-search .btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff !important;
}



/* Main Content */
.main-content {
    min-height: calc(100vh - var(--header-height) - 100px);
    padding: var(--spacing-lg) 0;
}

@media (max-width: 768px) {
    .main-content {
        padding: var(--spacing-sm) 0;
    }
}

/* Posts Wrapper - Like Sidebar */
.posts-wrapper {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 0;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-primary);
}

@media (max-width: 768px) {
    .posts-wrapper {
        padding: 0;
        margin-bottom: var(--spacing-sm);
    }
    
    .posts-wrapper .single-post,
    .posts-wrapper .social-sharing-section,
    .posts-wrapper .related-posts,
    .posts-wrapper .post-navigation-section,
    .posts-wrapper .comments-section {
        padding: var(--spacing-xs);
        margin-bottom: var(--spacing-xs);
    }
}

.posts-wrapper .load-more-container {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-secondary);
}

/* Single Post Sections - Inside Posts Wrapper */
.posts-wrapper .single-post {
    background-color: var(--bg-card);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.posts-wrapper .social-sharing-section {
    background-color: var(--bg-card);
    border-radius: 0;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-secondary);
}

.posts-wrapper .related-posts {
    background-color: var(--bg-card);
    border-radius: 0;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-secondary);
}

.posts-wrapper .post-navigation-section {
    background-color: var(--bg-card);
    border-radius: 0;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-secondary);
}

.posts-wrapper .comments-section {
    background-color: var(--bg-card);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: var(--spacing-sm);
    margin-bottom: 0;
}

/* Remove default margins for elements inside posts wrapper */
.posts-wrapper .single-post,
.posts-wrapper .social-sharing-section,
.posts-wrapper .related-posts,
.posts-wrapper .post-navigation-section,
.posts-wrapper .comments-section {
    margin-top: 0;
}

.posts-wrapper .related-posts-header {
    margin-bottom: var(--spacing-md);
}

.posts-wrapper .related-posts-grid {
    margin-bottom: 0;
}

/* Video Grid Layout */
.video-grid {
    display: grid;
    gap: var(--grid-gap);
    margin-bottom: 0;
}

/* Mobile: 2x2 Grid - DISABLED, use grid classes instead */
@media (max-width: 767px) {
    .video-grid:not([class*="grid-mobile"]) {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }
}

/* Tablet: 3x3 Grid - DISABLED, use grid classes instead */
@media (min-width: 768px) and (max-width: 1199px) {
    .video-grid:not([class*="grid-tablet"]) {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: 4x4 Grid - DISABLED, use grid classes instead */
@media (min-width: 1200px) {
    .video-grid:not([class*="grid-desktop"]) {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Video Card */
.video-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    height: 100%;
    border: 1px solid var(--border-primary);
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--border-secondary);
}

.video-card-thumbnail {
    position: relative;
    aspect-ratio: var(--card-aspect-ratio);
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

.video-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

/* Grid thumbnail size adjustments */
.video-card-thumbnail img.size-anonx-card-small,
.video-card-thumbnail img.size-anonx-card-medium,
.video-card-thumbnail img.size-anonx-square-400,
.video-card-thumbnail img.size-anonx-square-500,
.video-card-thumbnail img.size-anonx-medium-large {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.video-card:hover .video-card-thumbnail img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.video-card:hover .video-overlay {
    opacity: 1;
}



/* Category badges container */
.video-categories-container {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 3;
    max-width: calc(100% - 16px);
    pointer-events: none;
}

/* Individual category badge */
.video-category {
    background: var(--primary-color, #ff6b6b);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.video-card:hover .video-category {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .video-categories-container {
        top: 6px;
        left: 6px;
        right: 6px;
        gap: 3px;
        max-width: calc(100% - 12px);
    }
    
    .video-category {
        padding: 3px 6px;
        font-size: 10px;
        letter-spacing: 0.3px;
    }
}

/* Video meta on thumbnail */
.video-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.video-meta-left {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.video-meta-right {
    display: flex;
    align-items: flex-end;
}

.video-duration {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.video-date {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(4px);
}

.video-date i {
    font-size: 8px;
}

.video-views {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(4px);
}

.video-views i {
    font-size: 8px;
}

@media (max-width: 768px) {
    .video-meta {
        padding: 6px;
    }
    
    .video-duration,
    .video-date,
    .video-views {
        padding: 2px 4px;
        font-size: 9px;
    }
    
    .video-date i,
    .video-views i {
        font-size: 7px;
    }
}

/* Video Card Content - Optimized Spacing */
.video-card-content {
    padding: 0.3rem;
}

@media (max-width: 768px) {
    .video-card-content {
        padding: 0.2rem;
    }
}

.video-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-title a {
    color: inherit;
    text-decoration: none;
}

.video-card-title a:hover {
    color: var(--primary-color);
}

/* Play Button - Hidden */
.play-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.play-button:hover,
.video-card:hover .play-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.play-button i {
    margin-left: 3px; /* Optical alignment for play icon */
}

/* Video Card Meta */
.video-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* Footer */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-primary);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-lg);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin: 0;
}

.footer-content {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.footer-bottom {
    border-top: 1px solid var(--border-secondary);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
}

.site-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.site-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-info a:hover {
    color: var(--primary-color);
}

.site-info .sep {
    margin: 0 0.5rem;
    color: var(--border-primary);
}

.custom-footer-text,
.default-footer-text {
    line-height: 1.6;
}

.custom-footer-text p {
    margin: 0;
    color: var(--text-secondary);
}

.custom-footer-text a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.custom-footer-text a:hover {
    color: var(--primary-color);
}

.copyright-text {
    display: inline;
    font-weight: 500;
    color: var(--text-primary);
}

.footer-navigation {
    margin: 0;
    text-align: center;
}

.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.footer-menu li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-menu li a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    body {
        padding: 0.125rem;
    }
    
    .site {
        min-height: calc(100vh - 0.25rem);
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) 0;
    }
    
    .site-branding {
        min-width: auto;
        width: 100%;
        text-align: center;
    }
    
    .main-navigation {
        order: 2;
        margin: 0;
        width: 100%;
    }
    
    .header-search {
        order: 1;
        min-width: 100%;
        max-width: 100%;
        margin: var(--spacing-xs) 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer-navigation {
        margin: 0;
        width: 100%;
    }
    
    .footer-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .site-info {
        font-size: 0.8rem;
        text-align: center;
        width: 100%;
    }
}

/* ==========================================================================
   Page Styles (Using Single Post Styling)
   ========================================================================== */

/* Use same styling as single post for pages */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.page-thumbnail {
    margin-bottom: 2rem;
    text-align: center;
}

.page-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 100%;
}

.page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.page-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.page-content h1 { font-size: 1.8rem; }
.page-content h2 { font-size: 1.5rem; }
.page-content h3 { font-size: 1.3rem; }
.page-content h4 { font-size: 1.1rem; }
.page-content h5 { font-size: 1rem; }
.page-content h6 { font-size: 0.9rem; }

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-content blockquote {
    background: var(--bg-card);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    font-style: italic;
    position: relative;
}

.page-content blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    line-height: 1;
}

.page-content blockquote p {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    line-height: 1.7;
}

.page-content li {
    margin-bottom: 0.75rem;
}

.page-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.page-content a:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.page-content table th,
.page-content table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-primary);
}

.page-content table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.page-content code {
    background: var(--bg-card);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.page-content pre {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.page-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.page-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-primary);
    text-align: center;
}

.page-links a,
.page-links .current {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-links a:hover,
.page-links .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(var(--primary-color), 0.3);
}

.entry-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-primary);
    text-align: center;
}

.edit-link a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.edit-link a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--bg-card);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .page-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .page-content p {
        text-align: left;
    }
    
    .page-content h1 { font-size: 1.4rem; }
    .page-content h2 { font-size: 1.25rem; }
    .page-content h3 { font-size: 1.1rem; }
    .page-content h4 { font-size: 1rem; }
    .page-content h5 { font-size: 0.9rem; }
    .page-content h6 { font-size: 0.85rem; }
    
    .page-content ul,
    .page-content ol {
        padding-left: 1.5rem;
    }
    
    .page-content blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .page-content blockquote::before {
        font-size: 2rem;
        top: -0.25rem;
        left: 0.75rem;
    }
    
    .page-content table {
        font-size: 0.9rem;
    }
    
    .page-content table th,
    .page-content table td {
        padding: 0.5rem 0.75rem;
    }
    
    .page-links a,
    .page-links .current {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Category Sections
   ========================================================================== */

.category-section-wrapper {
    background: var(--bg-card);
    border-radius: var(--border-radius);
}

.category-section-wrapper:first-child {
    margin-top: 0;
}

.category-section-wrapper:last-child {
    margin-bottom: 0;
}

.category-section-wrapper .section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* margin-bottom: 1rem; */
    /* padding-bottom: 0.5rem; */
    /* border-bottom: 1px solid var(--border-primary); */
}

.category-section-wrapper .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.category-section-wrapper .section-title a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.category-section-wrapper .section-title a:hover {
    color: var(--primary-color);
}

.category-section-wrapper .section-title i {
    color: var(--primary-color);
    font-size: 1rem;
}

.category-section-wrapper .section-posts {
    /* margin-top: 1.5rem; */
}

/* Main Posts Title Section */
.main-posts-title-section {
    /* margin-bottom: 1.5rem; */
}

.main-posts-title-section .section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* margin-bottom: 1rem; */
    /* padding-bottom: 0.5rem; */
    /* border-bottom: 1px solid var(--border-primary); */
}

.main-posts-title-section .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
}

.main-posts-title-section .section-title i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .category-section-wrapper {
        /* No margin and padding on mobile */
    }
    
    .category-section-wrapper .section-header {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.375rem;
    }
    
    .category-section-wrapper .section-title {
        font-size: 1.1rem;
        flex: 1;
    }
    
    .category-section-wrapper .section-title i {
        font-size: 0.9rem;
    }
    
    .main-posts-title-section .section-title {
        font-size: 1.1rem;
    }
    
    .main-posts-title-section .section-title i {
        font-size: 0.9rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 1000;
    border: none;
    box-shadow: 0 4px 12px rgba(var(--primary-color), 0.3);
    background-color: var(--primary-color);
    color: var(--text-light);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--primary-color), 0.4);
    background-color: var(--primary-hover);
    color: var(--text-light);
}

.back-to-top:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color), 0.25);
    background-color: var(--primary-color);
    color: var(--text-light);
}

.back-to-top i {
    font-size: 18px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top i {
        font-size: 16px;
    }
}

/* Responsive Design */
/* Tablet responsive */
@media (max-width: 991px) and (min-width: 769px) {
    .header-content {
        padding: 0.4rem 0;
        gap: 0.5rem;
    }
    
    .site-branding {
        min-width: 120px;
    }
    
    .site-logo {
        font-size: 1.05rem;
    }
    
    .main-navigation {
        margin: 0 1rem;
    }
    
    .header-search {
        min-width: 240px;
        max-width: 280px;
    }
}

@media (max-width: 991px) {
    .main-navigation .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
        background: var(--bg-card);
        border: 1px solid var(--border-primary);
        border-radius: 12px;
        padding: 0.75rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        justify-content: flex-start;
    }
    
    .main-navigation .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-secondary);
    }
    
    .main-navigation .nav-item:last-child {
        border-bottom: none;
    }
    
    .main-navigation .nav-link {
        padding: 0.6rem 1rem;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: none;
        font-size: 0.85rem;
        transition: all 0.2s ease;
    }
    
    .main-navigation .nav-link:hover {
        background-color: var(--bg-tertiary);
        color: var(--primary-color);
        padding-left: 1.25rem;
    }
    
    .main-navigation .dropdown-toggle::after {
        transition: transform 0.2s ease;
        margin-left: auto;
    }
    
    .main-navigation .dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .main-navigation .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        margin: 0;
        background-color: var(--bg-secondary);
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        transform: none;
        padding: 0;
    }
    
    .main-navigation .dropdown.show .dropdown-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .main-navigation .dropdown-item {
        padding: 0.5rem 1.5rem;
        color: var(--text-secondary);
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-secondary);
        font-size: 0.8rem;
        transition: all 0.2s ease;
    }
    
    .main-navigation .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .main-navigation .dropdown-item:hover {
        background-color: var(--bg-tertiary);
        color: var(--text-primary);
        padding-left: 1.75rem;
    }
    
    .navbar-toggler {
        display: block;
        padding: 0.25rem 0.5rem;
        border: 1px solid var(--border-primary);
        border-radius: var(--border-radius);
        background: var(--bg-card);
        color: var(--text-primary);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }
    
    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
        transition: all 0.2s ease;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border: none;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        margin-top: 0.5rem;
        display: none;
        width: 100%;
    }
    
    .navbar-collapse.show {
        display: block;
        animation: slideDown 0.3s ease;
    }
    

}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* Mobile Header Actions */
.mobile-header-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin-left: auto;
}

.mobile-header-actions .btn {
    padding: 0.35rem;
    border: 1px solid var(--border-primary);
    background: transparent;
    color: var(--text-primary);
    border-radius: var(--border-radius-small);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

.mobile-header-actions .btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.mobile-search-form {
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    animation: slideDown 0.3s ease-out;
}

.mobile-search-form .input-group {
    max-width: 100%;
}

.mobile-search-form .form-control {
    border-radius: var(--border-radius-small) 0 0 var(--border-radius-small);
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.mobile-search-form .btn {
    border-radius: 0;
    border-left: none;
    padding: 0.5rem 0.75rem;
}

.mobile-search-form .mobile-search-close {
    border-radius: 0 var(--border-radius-small) var(--border-radius-small) 0;
    border-left: none;
}

@media (max-width: 768px) {
    .site-header {
        position: relative;
    }
    
    .header-content {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0.5rem 0;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    
    .site-branding {
        flex: 1;
        min-width: 0;
        order: 1;
    }
    
    .mobile-header-actions {
        order: 2;
        flex-shrink: 0;
        margin-left: auto;
        gap: 0.25rem;
    }
    
    .site-branding .site-title {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .site-branding .site-description {
        font-size: 0.7rem;
        margin-bottom: 0;
        opacity: 0.8;
    }
    
    .site-logo {
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    /* Hide desktop search on mobile */
    .header-content > .header-search {
        display: none !important;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .navbar-toggler {
        padding: 0.35rem;
        font-size: 0.85rem;
        border-radius: var(--border-radius-small);
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border-primary);
        background-color: transparent;
        color: var(--text-primary);
    }
    
    .navbar-toggler:hover {
        background: var(--bg-tertiary);
        color: var(--primary-color);
        border-color: var(--primary-color);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.15rem rgba(var(--primary-color), 0.25);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
} 

/* Sidebar Styles - Simplified */
.sidebar {
    padding: var(--spacing-xs);
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.sidebar .widget {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    transition: all var(--transition-fast);
    font-size: 0.8rem;
}

.sidebar .widget:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar .widget-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-primary);
}

/* Widget Lists */
.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget li {
    padding: var(--spacing-xs) 0;
    transition: all var(--transition-fast);
}

.sidebar .widget li:hover {
    padding-left: var(--spacing-xs);
    background-color: var(--bg-tertiary);
}

.sidebar .widget a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sidebar .widget a:hover {
    color: var(--primary-color);
}

/* Search Widget - Simplified */
.sidebar .widget_search .search-form {
    display: flex;
    gap: var(--spacing-xs);
}

.sidebar .widget_search .search-field {
    flex: 1;
    padding: var(--spacing-xs);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-small);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.sidebar .widget_search .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.sidebar .widget_search .search-submit {
    padding: var(--spacing-xs);
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sidebar .widget_search .search-submit:hover {
    background-color: var(--primary-hover);
}

/* Categories Widget */
.sidebar .widget_categories ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .widget_categories .post-count {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

/* Recent Posts Widget - Simplified */
.sidebar .widget_recent_entries ul li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-small);
}

.sidebar .widget_recent_entries .post-date {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-xs);
}

/* Tags Widget */
.sidebar .widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.sidebar .widget_tag_cloud .tag-cloud-link {
    display: inline-block;
    padding: var(--spacing-xs);
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--border-radius-small);
    font-size: var(--font-size-xs) !important;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.sidebar .widget_tag_cloud .tag-cloud-link:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Archive Widget - Simplified */
.sidebar .widget_archive select {
    width: 100%;
    padding: var(--spacing-xs);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-small);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

/* Calendar Widget */
.sidebar .widget_calendar table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.sidebar .widget_calendar th,
.sidebar .widget_calendar td {
    padding: var(--spacing-xs);
    text-align: center;
    border: 1px solid var(--border-secondary);
    font-size: var(--font-size-sm);
}

.sidebar .widget_calendar th {
    background-color: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar .widget_calendar td a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Top Movies Section - Hamburger Menu Style */
.top-movies-section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    padding: 0;
    margin-bottom: 2rem;
    position: relative;
    transition: all var(--transition-fast);
}

.top-movies-section.loading {
    opacity: 0.7;
    pointer-events: none;
}

.top-movies-section.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    z-index: 1;
}

.top-movies-section.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

.top-movies-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-primary);
    position: relative;
}

.top-movies-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    order: 2;
    flex: 1;
    margin-left: 1rem;
}

.top-movies-title i {
    color: var(--primary-color);
}

/* Hide original nav tabs */
.top-movies-filters {
    display: none !important;
}

/* Hamburger Menu Button */
.top-movies-hamburger {
    position: relative;
    display: inline-block;
    order: 1;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background-color: var(--primary-color);
}

.hamburger-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover span {
    background-color: white;
}

/* Dropdown Menu */
.hamburger-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.hamburger-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hamburger-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-secondary);
    cursor: pointer;
    font-size: 0.875rem;
}

.hamburger-dropdown-item:last-child {
    border-bottom: none;
}

.hamburger-dropdown-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
}

.hamburger-dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

.hamburger-dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Hamburger button active/disabled states */
.hamburger-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hamburger-dropdown-item:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Animation for hamburger button when dropdown is open */
.hamburger-dropdown.show + .hamburger-btn span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-dropdown.show + .hamburger-btn span:nth-child(2) {
    opacity: 0;
}

.hamburger-dropdown.show + .hamburger-btn span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .top-movies-header {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .top-movies-title {
        font-size: 1.1rem;
        margin-left: 0.5rem;
    }
    
    .hamburger-dropdown {
        left: 0;
        right: auto;
        min-width: 180px;
        max-width: 220px;
    }
    
    .hamburger-dropdown-item {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Original filters styles kept for compatibility but hidden */
.top-movies-filters .btn-group {
    display: none;
}

.top-movies-filters .btn {
    display: none;
}

.top-movies-filters .btn.active {
    display: none;
}

.top-movies-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.top-movie-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: none;
    border-bottom: 1px solid var(--border-primary);
    border-radius: 0;
    transition: all var(--transition-fast);
}

.top-movie-item:last-child {
    border-bottom: 1px solid var(--border-primary);
}

.top-movie-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.movie-thumbnail {
    width: 80px;
    height: 45px; /* 16:9 ratio */
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.movie-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.movie-thumbnail .no-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.top-movie-item:hover .movie-thumbnail img {
    transform: scale(1.05);
}

.movie-info {
    flex: 1;
    min-width: 0;
}

.movie-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.movie-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-title a:hover {
    color: var(--primary-color);
}

.movie-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.movie-views i {
    color: var(--primary-color);
}

.top-movies-footer {
    margin-top: 0;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-primary);
}

.filter-info {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-info i {
    color: var(--primary-color);
}

.no-movies {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.no-movies-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.no-movies-text {
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .top-movies-section {
        margin-bottom: var(--spacing-sm);
    }
    
    .top-movies-header {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-xs);
    }
    
    .top-movies-filters .btn-group {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    .top-movies-filters .btn {
        flex: 1;
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        margin: 0 0.1rem;
        min-width: 0;
    }
    
    .top-movies-filters .btn:first-child {
        margin-left: 0;
    }
    
    .top-movies-filters .btn:last-child {
        margin-right: 0;
    }
}


    
    .top-movie-item {
        padding: var(--spacing-xs);
        gap: var(--spacing-xs);
    }
    
    .movie-thumbnail {
        width: 64px;
        height: 36px; /* 16:9 ratio */
    }
    
    .movie-title {
        font-size: 0.8rem;
    }
    
    .movie-views {
        font-size: 0.7rem;
    }
    
    .top-movies-footer {
        padding: var(--spacing-xs);
    }
}

/* Top Movies Hamburger Menu - Fixed Layout */
.top-movies-header {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 1rem !important;
}

.top-movies-hamburger {
    order: 1 !important;
}

.top-movies-title {
    order: 2 !important;
    margin-left: 1rem !important;
}

.hamburger-dropdown {
    left: 0 !important;
    right: auto !important;
    z-index: 9999 !important;
}

/* Mobile fixes */
@media (max-width: 768px) {
    .top-movies-header {
        justify-content: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .top-movies-title {
        margin-left: 0.5rem !important;
        font-size: 1.1rem !important;
    }
    
    .hamburger-dropdown {
        left: 0 !important;
        right: auto !important;
        min-width: 200px !important;
        max-width: 250px !important;
    }
}

/* Popular Keywords Widget */
.popular-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-secondary);
}

.keyword-tag:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.keyword-tag .count {
    margin-left: 0.25rem;
    font-size: 0.65rem;
    opacity: 0.8;
}

/* Tag sizes */
.keyword-tag.tag-xl {
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem;
    font-weight: 600;
}

.keyword-tag.tag-lg {
    font-size: 0.85rem;
    padding: 0.3rem 0.65rem;
    font-weight: 600;
}

.keyword-tag.tag-md {
    font-size: 0.8rem;
    padding: 0.275rem 0.6rem;
}

.keyword-tag.tag-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.keyword-tag.tag-xs {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

.no-keywords {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 1rem 0;
}

/* Secondary Sidebar */
.sidebar-secondary {
    background-color: var(--bg-tertiary);
}

.sidebar-secondary .widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-secondary);
}

/* Responsive Design */
@media (max-width: 991px) {
    .sidebar {
        margin-top: var(--spacing-lg);
    }
    
    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .sidebar {
        padding: 0;
        margin-bottom: var(--spacing-sm);
    }
    
    .sidebar .widget {
        padding: var(--spacing-xs);
        margin-bottom: var(--spacing-xs);
        border-radius: var(--border-radius-small);
    }
    
    .sidebar .widget-title {
        margin-bottom: var(--spacing-xs);
        padding-bottom: var(--spacing-xs);
        font-size: 0.85rem;
    }
    
    .sidebar .widget li {
        padding: 0.25rem 0;
    }
    
    .sidebar .widget_search .search-field,
    .sidebar .widget_search .search-submit {
        padding: var(--spacing-xs);
        font-size: 0.8rem;
    }
    
    .sidebar .widget_tag_cloud .tag-cloud-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem !important;
    }
    
    .sidebar .widget_recent_entries ul li {
        padding: var(--spacing-xs);
    }
    
    .sidebar .widget_categories .post-count {
        padding: 1px 6px;
        font-size: 0.65rem;
    }
} 

/* Layout Options */
.layout-full-width {
    width: 100%;
    max-width: none;
}

.layout-boxed {
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.layout-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header Types */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bg-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-fixed + .site-content {
    padding-top: 80px; /* Adjust based on header height */
}

.header-scrolled {
    background-color: rgba(var(--bg-primary), 0.95);
    backdrop-filter: blur(10px);
}

/* Footer Types */
.footer-sticky {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background-color: var(--bg-secondary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--bg-secondary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-fixed ~ .site-content {
    padding-bottom: 100px; /* Adjust based on footer height */
}

/* Pagination Styles */
/* Bootstrap 5.3 Pagination */
.pagination-numbered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 0;
}

.pagination-numbered ul {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0.125rem;
}

.pagination-numbered .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.6rem;
    color: var(--primary-color);
    text-decoration: none;
    background-color: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.5;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    position: relative;
    z-index: 1;
}

.pagination-numbered .page-numbers:hover {
    color: var(--primary-color);
    background-color: var(--bg-secondary);
    border-color: var(--border-secondary);
    z-index: 2;
}

.pagination-numbered .page-numbers:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    z-index: 3;
}

.pagination-numbered .page-numbers.current {
    color: var(--text-light);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    z-index: 3;
}

.pagination-numbered .page-numbers.dots {
    color: var(--text-secondary);
    background-color: transparent;
    border: 1px solid transparent;
    cursor: default;
}

.pagination-numbered .page-numbers.dots:hover {
    color: var(--text-secondary);
    background-color: transparent;
    border-color: transparent;
}

.pagination-numbered .page-numbers.prev,
.pagination-numbered .page-numbers.next {
    padding: 0.375rem 0.75rem;
}

.pagination-numbered .page-numbers.prev:hover,
.pagination-numbered .page-numbers.next:hover {
    color: var(--primary-color);
    background-color: var(--bg-secondary);
    border-color: var(--border-secondary);
}

/* Pagination Size Variants */
.pagination-sm .page-numbers {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

.pagination-lg .page-numbers {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

/* Pagination Disabled State */
.pagination-numbered .page-numbers.disabled {
    color: var(--text-muted);
    background-color: var(--bg-card);
    border-color: var(--border-primary);
    cursor: default;
    pointer-events: none;
}

.pagination-numbered .page-numbers.disabled:hover {
    color: var(--text-muted);
    background-color: var(--bg-card);
    border-color: var(--border-primary);
}

/* Infinite Scroll */
.infinite-scroll-loading {
    text-align: center;
    padding: var(--spacing-xl);
}

.infinite-scroll-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-primary);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Pagination Animation */
.pagination-animation .video-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.pagination-animation .video-card:nth-child(1) { animation-delay: 0.1s; }
.pagination-animation .video-card:nth-child(2) { animation-delay: 0.2s; }
.pagination-animation .video-card:nth-child(3) { animation-delay: 0.3s; }
.pagination-animation .video-card:nth-child(4) { animation-delay: 0.4s; }
.pagination-animation .video-card:nth-child(5) { animation-delay: 0.5s; }
.pagination-animation .video-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid Responsive System - Optimized Spacing */
.video-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0;
}

/* Mobile Grid - HIGH PRIORITY */
.video-grid.grid-mobile-1 { grid-template-columns: 1fr !important; }
.video-grid.grid-mobile-2 { grid-template-columns: repeat(2, 1fr) !important; }
.video-grid.grid-mobile-3 { grid-template-columns: repeat(3, 1fr) !important; }

/* Tablet Grid - HIGH PRIORITY */
@media (min-width: 768px) {
    .video-grid.grid-tablet-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .video-grid.grid-tablet-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .video-grid.grid-tablet-4 { grid-template-columns: repeat(4, 1fr) !important; }
}

/* Desktop Grid - HIGH PRIORITY */
@media (min-width: 1024px) {
    .video-grid.grid-desktop-3 { 
        grid-template-columns: repeat(3, 1fr) !important; 
    }
    .video-grid.grid-desktop-4 { 
        grid-template-columns: repeat(4, 1fr) !important; 
    }
    .video-grid.grid-desktop-5 { grid-template-columns: repeat(5, 1fr) !important; }
    .video-grid.grid-desktop-6 { grid-template-columns: repeat(6, 1fr) !important; }
}

/* Responsive adjustments for layout types */
@media (max-width: 768px) {
    .layout-boxed {
        box-shadow: none;
    }
    
    .layout-container {
        padding: 0;
    }
    
    .header-fixed + .site-content {
        padding-top: 60px;
    }
    
    .footer-fixed ~ .site-content {
        padding-bottom: 80px;
    }
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-primary);
}

.related-posts-header {
    margin-bottom: 2rem;
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.related-posts-grid {
    display: grid;
    gap: 1.5rem;
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.related-post-item {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.related-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.related-post-thumbnail {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.related-post-item:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1rem;
    flex: 1;
}

.related-post-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.related-post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.related-post-title a:hover {
    color: var(--primary-color);
}

.related-post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.related-post-meta i {
    margin-right: 0.25rem;
}

/* Related Posts Carousel */
.related-posts-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform var(--transition-normal);
    gap: 1rem;
}

.carousel-item {
    flex: 0 0 auto;
    width: 280px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-primary);
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.breadcrumb-item:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid var(--text-muted);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    margin-left: 0.5rem;
    opacity: 0.6;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-small);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

.breadcrumb-item.active,
.breadcrumb-item .current {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.5rem 0;
        font-size: 0.75rem;
    }
    
    .breadcrumb-list {
        gap: 0.25rem;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 0.25rem;
        border-left-width: 3px;
        border-top-width: 3px;
        border-bottom-width: 3px;
    }
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    text-align: center;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.page-meta {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.page-meta .post-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.page-meta i {
    color: var(--primary-color);
}

.archive-description {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results .page-header {
    border-bottom: none;
}

.no-results .page-content {
    margin-top: 2rem;
}

.no-results .page-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Single Post Styles */
.single-post {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: visible;
    margin-bottom: 2rem;
}

.single-post-header {
    padding: 0.5rem;
}

.single-post-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.single-post-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post-meta i {
    color: var(--primary-color);
}

.single-post-meta a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.single-post-meta a:hover {
    color: var(--primary-color);
}

.single-post-thumbnail {
    margin-bottom: 2rem;
    text-align: center;
}

.single-post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
    margin: 0 auto;
}

/* Specific thumbnail size styles */
.single-post-thumbnail img.size-thumbnail {
    max-width: 150px;
    width: auto;
}

.single-post-thumbnail img.size-medium {
    max-width: 300px;
    width: auto;
}

.single-post-thumbnail img.size-anonx-square-400 {
    max-width: 400px;
    width: auto;
}

.single-post-thumbnail img.size-anonx-square-500 {
    max-width: 500px;
    width: auto;
}

.single-post-thumbnail img.size-anonx-medium-large {
    max-width: 768px;
    width: auto;
}

.single-post-thumbnail img.size-anonx-hd-720 {
    max-width: 1280px;
    width: auto;
}

.single-post-thumbnail img.size-medium_large {
    max-width: 768px;
    width: auto;
}

.single-post-thumbnail img.size-large {
    max-width: 1024px;
    width: auto;
}

.single-post-thumbnail img.size-full {
    max-width: 100%;
    width: auto;
}

/* Responsive adjustments for thumbnail sizes */
@media (max-width: 768px) {
    .single-post-thumbnail img.size-large,
    .single-post-thumbnail img.size-medium_large,
    .single-post-thumbnail img.size-anonx-hd-720,
    .single-post-thumbnail img.size-anonx-medium-large {
        max-width: 100%;
    }
    
    .single-post-thumbnail img.size-medium {
        max-width: 280px;
    }
    
    .single-post-thumbnail img.size-anonx-square-400 {
        max-width: 350px;
    }
    
    .single-post-thumbnail img.size-anonx-square-500 {
        max-width: 400px;
    }
    
    .single-post-thumbnail img.size-thumbnail {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .single-post-thumbnail img.size-medium {
        max-width: 250px;
    }
    
    .single-post-thumbnail img.size-anonx-square-400 {
        max-width: 280px;
    }
    
    .single-post-thumbnail img.size-anonx-square-500 {
        max-width: 300px;
    }
    
    .single-post-thumbnail img.size-thumbnail {
        max-width: 100px;
    }
    
    /* Extra small mobile iframe fixes */
    .single-post-content iframe,
    .single-post-content embed,
    .single-post-content object,
    .single-post-content video {
        width: 100% !important;
        height: auto !important;
        min-height: 200px;
        max-width: 100%;
        margin: 0.5rem 0;
    }
    
    .single-post-content .iframe-container,
    .single-post-content .embed-container,
    .single-post-content .video-container {
        padding-bottom: 65%; /* Even taller for small mobile */
        margin: 0.5rem 0;
    }
    
    .single-post-content .wp-block-embed iframe {
        min-height: 200px;
    }
    
    .single-post-content > iframe:not([style*="position"]) {
        width: 100% !important;
        height: auto !important;
        min-height: 200px;
        margin: 0.5rem 0;
    }
}

.single-post-content {
    padding: 0.5rem;
    font-size: 13px;
    line-height: 1.8;
    overflow: visible;
    max-height: none;
    height: auto;
}

/* Responsive iframe and embedded content */
.single-post-content iframe,
.single-post-content embed,
.single-post-content object,
.single-post-content video {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

/* Responsive iframe container */
.single-post-content .iframe-container,
.single-post-content .embed-container,
.single-post-content .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1rem 0;
    border-radius: var(--border-radius);
}

.single-post-content .iframe-container iframe,
.single-post-content .embed-container iframe,
.single-post-content .video-container iframe,
.single-post-content .iframe-container embed,
.single-post-content .embed-container embed,
.single-post-content .video-container embed,
.single-post-content .iframe-container object,
.single-post-content .embed-container object,
.single-post-content .video-container object,
.single-post-content .iframe-container video,
.single-post-content .embed-container video,
.single-post-content .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--border-radius);
}

/* WordPress embedded content */
.single-post-content .wp-block-embed,
.single-post-content .wp-block-embed__wrapper {
    position: relative;
    max-width: 100%;
    margin: 1rem 0;
}

.single-post-content .wp-block-embed iframe {
    width: 100%;
    height: auto;
    min-height: 315px;
    border-radius: var(--border-radius);
}

/* Auto-wrap standalone iframes */
.single-post-content > iframe:not([style*="position"]) {
    width: 100% !important;
    height: auto !important;
    min-height: 315px;
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

/* Single post content link styling */
.single-post-content a {
    color: var(--single-post-link-color, var(--primary-color));
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.3s ease;
}

.single-post-content a:hover {
    color: var(--single-post-link-hover-color, var(--primary-hover));
    text-decoration-color: var(--single-post-link-hover-color, var(--primary-hover));
}

/* Specific styling for different link types in single post content */
.single-post-content p a,
.single-post-content li a,
.single-post-content blockquote a,
.single-post-content table a,
.single-post-content h1 a,
.single-post-content h2 a,
.single-post-content h3 a,
.single-post-content h4 a,
.single-post-content h5 a,
.single-post-content h6 a {
    color: var(--single-post-link-color, var(--primary-color));
    font-weight: inherit;
}

.single-post-content p a:hover,
.single-post-content li a:hover,
.single-post-content blockquote a:hover,
.single-post-content table a:hover,
.single-post-content h1 a:hover,
.single-post-content h2 a:hover,
.single-post-content h3 a:hover,
.single-post-content h4 a:hover,
.single-post-content h5 a:hover,
.single-post-content h6 a:hover {
    color: var(--single-post-link-hover-color, var(--primary-hover));
}

.single-post-footer {
    padding: 0.5rem;
}

.post-tags h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list a {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.tag-list a:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Post Navigation */
.post-navigation {
    margin: 2rem 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-links a {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.nav-links a:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: 500;
}

/* Auto Fixed Elements */
.auto-fixed-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transition: transform var(--transition-normal);
    background: var(--bg-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auto-fixed-footer {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    transition: transform var(--transition-normal);
    background: var(--bg-primary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.auto-fixed-sidebar {
    position: sticky !important;
    top: 20px;
    height: fit-content;
}

body.auto-fixed-active {
    padding-top: 80px;
    padding-bottom: 60px;
}

/* Ensure proper scrolling */
html {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

.site-content {
    overflow: visible;
    min-height: calc(100vh - 200px);
    background-color: var(--bg-secondary);
}

.content-area {
    overflow: visible;
    height: auto;
}

.site-main {
    overflow: visible;
    height: auto;
    min-height: 400px;
}

/* Fix single post scroll */
.single .site-main {
    overflow-y: visible;
    max-height: none;
    height: auto;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .related-post-item {
        flex-direction: column;
    }
    
    .related-post-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .carousel-item {
        width: 250px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .carousel-prev {
        left: -15px;
    }
    
    .carousel-next {
        right: -15px;
    }
    
    .auto-fixed-header,
    .auto-fixed-footer {
        position: relative !important;
    }
    
    body.auto-fixed-active {
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .single-post-title {
        font-size: 1.5rem;
    }
    
    .single-post-content {
        font-size: 13px;
    }
    
    .single-post-content h1,
    .single-post-content h2,
    .single-post-content h3,
    .single-post-content h4,
    .single-post-content h5,
    .single-post-content h6 {
        font-size: 16px;
    }
    
    /* Mobile responsive iframe fixes */
    .single-post-content iframe,
    .single-post-content embed,
    .single-post-content object,
    .single-post-content video {
        width: 100% !important;
        height: auto !important;
        min-height: 250px;
        max-width: 100%;
        margin: 0.5rem 0;
    }
    
    .single-post-content .iframe-container,
    .single-post-content .embed-container,
    .single-post-content .video-container {
        padding-bottom: 60%; /* Slightly taller for mobile */
        margin: 0.5rem 0;
    }
    
    .single-post-content .wp-block-embed iframe {
        min-height: 250px;
    }
    
    .single-post-content > iframe:not([style*="position"]) {
        width: 100% !important;
        height: auto !important;
        min-height: 250px;
        margin: 0.5rem 0;
    }
    
    .single-post-meta {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
        font-size: 0.8rem;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .single-post-meta > div {
        flex-shrink: 0;
        gap: 0.25rem;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .posts-wrapper .single-post .single-post-header,
    .posts-wrapper .single-post .single-post-content,
    .posts-wrapper .single-post .single-post-footer {
        padding: 0.5rem;
    }
}

/* FontAwesome Icon Colors & Styling */
.fas, .far, .fab {
    color: var(--primary-color);
    transition: color 0.15s ease-in-out;
}

/* Specific icon colors for different contexts */
.video-card-meta .fas,
.single-post-meta .fas,
.page-meta .fas {
    color: var(--primary-color);
}

.social-sharing-buttons .fab {
    color: #ffffff !important;
}

.social-sharing-buttons .btn-primary .fab,
.social-sharing-buttons .btn-info .fab,
.social-sharing-buttons .btn-danger .fab {
    color: #ffffff !important;
}

.back-to-top .fas {
    color: #ffffff !important;
}

.play-button .fas {
    color: #ffffff !important;
    font-size: 1.5em;
}

.nav-links .fas {
    color: var(--primary-color);
}

.post-tags .fas {
    color: var(--primary-color);
}

.sidebar .widget .fas {
    color: var(--primary-color);
}

.navbar-toggler .fas {
    color: var(--text-primary);
}

.dropdown-toggle .fas {
    color: var(--text-secondary);
    font-size: 0.8em;
    margin-left: 0.5rem;
}

.search-form .fas {
    color: #ffffff !important;
}

.carousel-btn .fas {
    color: #ffffff !important;
}

.related-post-meta .fas {
    color: var(--primary-color);
}

/* Icon hover effects */
.video-card:hover .fas,
.single-post-meta a:hover .fas,
.sidebar .widget a:hover .fas,
.nav-links a:hover .fas {
    color: var(--accent-color);
}

/* Icon sizes */
.fas.fa-sm, .far.fa-sm, .fab.fa-sm {
    font-size: 0.875em;
}

.fas.fa-lg, .far.fa-lg, .fab.fa-lg {
    font-size: 1.25em;
}

.fas.fa-xl, .far.fa-xl, .fab.fa-xl {
    font-size: 1.5em;
}

.fas.fa-2x, .far.fa-2x, .fab.fa-2x {
    font-size: 2em;
}

/* Icon animations */
.fas.fa-spin, .far.fa-spin, .fab.fa-spin {
    animation: fa-spin 2s infinite linear;
}

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

/* Icon positioning */
.fas.me-1, .far.me-1, .fab.me-1 {
    margin-right: 0.25rem;
}

.fas.me-2, .far.me-2, .fab.me-2 {
    margin-right: 0.5rem;
}

.fas.ms-1, .far.ms-1, .fab.ms-1 {
    margin-left: 0.25rem;
}

.fas.ms-2, .far.ms-2, .fab.ms-2 {
    margin-left: 0.5rem;
}

/* Dark theme icon adjustments */
@media (prefers-color-scheme: dark) {
    .fas, .far, .fab {
        color: var(--primary-color);
    }
    
    .navbar-toggler .fas {
        color: var(--text-light);
    }
    
    .dropdown-toggle .fas {
        color: var(--text-light);
    }
}

/* Top Movies Enhanced Styles */
.top-movies-section {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-movies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.top-movies-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.top-movies-filters .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.top-movies-filters .btn {
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #555555;
    background: #2a2a2a;
    color: #b0b0b0;
    flex: 1;
    min-width: fit-content;
    white-space: nowrap;
}

.top-movies-filters .btn:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    transform: translateY(-1px);
}

.top-movies-filters .btn.active {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.top-movies-filters .btn i {
    margin-right: 5px;
}

.top-movies-category-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.category-filter-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.category-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-filter-buttons .btn {
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.category-filter-buttons .btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

.category-filter-buttons .btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.category-filter-buttons .btn i {
    margin-right: 4px;
}

.top-movies-list {
    display: grid;
    gap: 15px;
}

.top-movie-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.top-movie-item:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.movie-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.movie-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-thumbnail:hover img {
    transform: scale(1.05);
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
    background: var(--bg-tertiary);
}

.movie-info {
    flex: 1;
    min-width: 0;
}

.movie-title {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.movie-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.movie-title a:hover {
    color: var(--primary-color);
}

.movie-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.movie-views {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.movie-views i {
    color: var(--primary-color);
}

.movie-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.no-movies {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-movies-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.no-movies-text {
    margin: 0;
    font-size: 1rem;
}

.loading-movies,
.error-movies {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.loading-movies i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

.error-movies i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: #dc3545;
}

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

.top-movies-filters .btn:disabled,
.category-filter-buttons .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.top-movies-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.filter-info {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.filter-info i {
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .top-movies-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .top-movies-filters .btn-group {
        width: 100%;
        justify-content: center;
    }
    
    .top-movies-filters .btn {
        flex: 1;
        min-width: 0;
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    
    .top-movie-item {
        padding: 12px;
        gap: 12px;
    }
    
    .movie-thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .movie-title {
        font-size: 0.9rem;
    }
    
    .movie-views {
        font-size: 0.8rem;
    }
    
    .top-movies-category-filters {
        padding: 12px;
    }
    
    .category-filter-buttons .btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .category-badge {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
    
    .movie-meta {
        gap: 3px;
    }
    
    .loading-movies,
    .error-movies {
        padding: 30px 15px;
        font-size: 0.9rem;
    }
    
    .loading-movies i,
    .error-movies i {
        font-size: 1.2rem;
    }
} 

/* ============================================
   AJAX Search Styling
   ============================================ */

/* Search Results Container */
.ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
    display: none;
    animation: slideDown 0.3s ease-out;
}

/* Header search specific positioning */
.header-search {
    position: relative;
}

.header-search .ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 400px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Results Header */
.search-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    font-size: 13px;
    color: #ccc;
}

.search-results-header i {
    margin-right: 6px;
    color: #007bff;
}

.view-all-results {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.view-all-results:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateX(2px);
}

.view-all-results i {
    margin-left: 4px;
    font-size: 10px;
}

/* Search Results List */
.search-results-list,
.search-results-grid {
    max-height: 450px;
    overflow-y: auto;
}

/* Grid layout for search results - must match main grid */
.search-results-grid {
    display: grid;
    gap: 1.5rem;
    padding: 0;
    margin-bottom: 1.5rem;
}

/* Remove AJAX dropdown specific styling when used as main results */
.search-results-grid {
    max-height: none;
    overflow-y: visible;
    position: static;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* Video cards in search results should match main theme cards exactly */
.search-results-grid .video-card {
    /* Use all default video-card styles from theme */
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    height: 100%;
    border: 1px solid var(--border-primary);
    display: block;
}

.search-results-grid .video-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

/* Ensure all text in search results is white/gray */
.search-results-grid .video-card .video-title,
.search-results-grid .video-card .video-title a {
    color: #fff !important;
}

.search-results-grid .video-card .video-meta,
.search-results-grid .video-card .video-meta span {
    color: #bbb !important;
}

.search-results-grid .video-card .video-category {
    background: #007bff !important;
    color: #fff !important;
}

.search-results-grid .video-card .video-views {
    background: rgba(0,0,0,0.7) !important;
    color: #fff !important;
}

/* Apply theme's grid classes to search results */
.search-results-grid.grid-mobile-1 { grid-template-columns: 1fr; }
.search-results-grid.grid-mobile-2 { grid-template-columns: repeat(2, 1fr); }
.search-results-grid.grid-mobile-3 { grid-template-columns: repeat(3, 1fr); }

@media (min-width: 768px) {
    .search-results-grid.grid-tablet-2 { grid-template-columns: repeat(2, 1fr); }
    .search-results-grid.grid-tablet-3 { grid-template-columns: repeat(3, 1fr); }
    .search-results-grid.grid-tablet-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .search-results-grid.grid-desktop-3 { grid-template-columns: repeat(3, 1fr); }
    .search-results-grid.grid-desktop-4 { grid-template-columns: repeat(4, 1fr); }
    .search-results-grid.grid-desktop-5 { grid-template-columns: repeat(5, 1fr); }
    .search-results-grid.grid-desktop-6 { grid-template-columns: repeat(6, 1fr); }
}

.search-result-item {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
}

.search-result-item:hover {
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
    transform: translateX(4px);
    border-left: 3px solid #007bff;
    color: #fff;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Search Result Thumbnail */
.search-result-thumbnail {
    width: 80px;
    height: 60px;
    margin-right: 14px;
    flex-shrink: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-item:hover .search-result-thumbnail img {
    transform: scale(1.05);
}

.search-result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-result-item:hover .search-result-overlay {
    opacity: 1;
}

.search-result-overlay i {
    color: #fff;
    font-size: 18px;
}

/* Search Result Content */
.search-result-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.search-result-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-excerpt {
    font-size: 13px;
    color: #bbb;
    margin: 0 0 8px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    color: #888;
}

.search-result-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-result-meta i {
    font-size: 10px;
    opacity: 0.7;
}

.search-result-date {
    color: #28a745;
}

.search-result-views {
    color: #dc3545;
}

.search-result-categories {
    color: #007bff;
}

/* Search States */
.search-loading,
.search-error,
.search-no-results {
    padding: 24px;
    text-align: center;
    color: #bbb;
    font-size: 14px;
}

.search-loading i {
    margin-right: 8px;
    color: #007bff;
    font-size: 16px;
}

.search-error {
    color: #ff6b6b;
}

.search-error i {
    margin-right: 8px;
    font-size: 16px;
}

.search-no-results {
    color: #bbb;
}

.search-no-results i {
    font-size: 32px;
    color: #555;
    margin-bottom: 12px;
    display: block;
}

.search-no-results p {
    margin: 8px 0 4px 0;
    font-weight: 500;
    color: #ccc;
}

.search-no-results small {
    color: #888;
}

/* Highlight Search Terms */
mark {
    background: linear-gradient(120deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ============================================
   Search Modal Styling
   ============================================ */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.search-modal-content {
    position: relative;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
}

.search-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.search-modal-header i {
    margin-right: 8px;
}

.search-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.search-modal-body {
    padding: 24px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
    background: #1a1a1a;
}

/* Modal Search Form */
.modal-search-form {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-modal {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #333;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    padding-right: 60px;
    background: #2a2a2a;
    color: #fff;
}

.search-input-modal:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
    background: #333;
}

.search-input-modal::placeholder {
    color: #888;
}

.search-submit-btn {
    position: absolute;
    right: 8px;
    background: #007bff;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Modal Search Results */
.modal-search-results {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-search-results .ajax-search-results {
    position: static;
    border: none;
    border-radius: 12px;
    box-shadow: none;
    display: block;
}

.modal-search-results .search-results-grid {
    max-height: 400px;
    padding: 12px;
}

.modal-search-results .video-card {
    background: #333;
    border: 1px solid #444;
}

.modal-search-results .video-card:hover {
    border-color: #007bff;
    background: #3a3a3a;
}

/* Search Suggestions */
.search-suggestions {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
}

.search-suggestions h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-tag {
    background: #333;
    color: #ccc;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: translateY(-2px);
}

/* Search Icon Mode */
.header-search.search-icon-mode {
    width: auto;
    min-width: auto;
}

.search-icon-trigger {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-icon-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Body class when modal is open */
body.search-modal-open {
    overflow: hidden;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .ajax-search-results {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        max-height: 60vh;
        border-radius: 12px;
        border: 1px solid #e0e0e0;
    }
    
    .search-result-item {
        padding: 10px 12px;
    }
    
    .search-result-thumbnail {
        width: 60px;
        height: 45px;
        margin-right: 10px;
    }
    
    .search-result-title {
        font-size: 14px;
    }
    
    .search-result-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
    
    .search-result-meta {
        gap: 8px;
        font-size: 10px;
    }
    
    .search-modal-content {
        width: 95%;
        margin: 10px;
        border-radius: 12px;
    }
    
    .search-modal-header {
        padding: 16px 20px;
    }
    
    .search-modal-body {
        padding: 20px;
    }
    
    .search-input-modal {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .search-results-header {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .search-result-item {
        padding: 8px 10px;
    }
    
    .search-result-thumbnail {
        width: 50px;
        height: 38px;
        margin-right: 8px;
    }
    
    .search-result-title {
        font-size: 13px;
    }
    
    .search-result-excerpt {
        font-size: 11px;
    }
    
    .search-result-meta {
        font-size: 9px;
        gap: 6px;
    }
    
    .search-modal {
        padding-top: 20px;
    }
    
    .search-modal-content {
        width: 98%;
        margin: 5px;
    }
    
    .search-modal-header {
        padding: 12px 16px;
    }
    
    .search-modal-header h3 {
        font-size: 16px;
    }
    
    .search-modal-body {
        padding: 16px;
    }
    
    .suggestion-tags {
        gap: 6px;
    }
    
    .suggestion-tag {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ============================================
   Search Form Enhancements
   ============================================ */

.search-form {
    position: relative;
}

.search-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-form .btn:hover {
    transform: scale(1.05);
}

/* Search Form Input Styling */
.search-form .form-control {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    transition: all 0.3s ease;
}

.search-form .form-control::placeholder {
    color: #888;
}

.search-form .form-control:focus {
    background: #333;
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Dark theme for all search inputs */
input[type="search"] {
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
    color: #fff !important;
}

input[type="search"]:focus {
    background: #333 !important;
    border-color: #007bff !important;
    color: #fff !important;
}

input[type="search"]::placeholder {
    color: #888 !important;
}

/* Search form loading state */
.search-form.searching .btn {
    pointer-events: none;
}

.search-form.searching .btn i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Search Page Specific Styles
   ============================================ */

/* Page Header Dark Theme */
.search .page-header,
.page-header {
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* No Results Grid - Override grid layout to center content */
.no-results-grid {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    grid-template-columns: none !important;
    min-height: 300px;
    padding: 2rem 0;
}

/* No Results Content - Center layout */
.no-results-grid .no-results-content {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 600px;
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
}

.search .no-results-content .no-results-icon {
    font-size: 4rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.search .no-results-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.search .no-results-content p {
    color: #bbb;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Search Form in No Results */
.search .no-results-content .search-form-container {
    margin-bottom: 3rem;
}

.search .no-results-content .search-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Search Suggestions in No Results */
.search .search-suggestions {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.search .search-suggestions h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.search .search-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search .search-tips li {
    color: #bbb;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.search .search-tips li i {
    color: #007bff;
    margin-right: 0.75rem;
    width: 16px;
}

.search .page-header .page-title,
.page-header .page-title {
    color: #fff !important;
    margin-bottom: 0.5rem !important;
}

.search .page-header .page-title i,
.page-header .page-title i {
    color: #007bff !important;
}

.search .page-header .page-meta,
.page-header .page-meta {
    color: #bbb !important;
    font-size: 0.9rem !important;
}

.search .page-header .page-meta i,
.page-header .page-meta i {
    color: #888 !important;
}

.search .page-header .page-meta span,
.page-header .page-meta span {
    color: #bbb !important;
}

.search-query {
    color: #007bff;
    font-weight: bold;
}

.search-refinement {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #444;
    margin-bottom: 1.5rem;
}

.search-form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* No Results Styling */
.no-results.not-found {
    text-align: center;
    padding: 2rem 1rem;
}

.no-results-content {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.no-results-content h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.no-results-content p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.search-suggestions {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #007bff;
    margin-bottom: 2rem;
    text-align: left;
}

.search-suggestions h4,
.popular-categories h4,
.recent-posts h4 {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.search-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-tips li {
    margin-bottom: 0.5rem;
    color: #bbb;
    font-size: 0.95rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.category-tag {
    background: #333;
    color: #ccc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #444;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.category-tag:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: translateY(-2px);
    text-decoration: none;
}

.category-count {
    opacity: 0.7;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* Recent Posts Grid - Match theme grid system */
.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.recent-post-item {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    border-color: #007bff;
}

.recent-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.recent-post-link:hover {
    text-decoration: none;
    color: inherit;
}

.recent-post-thumbnail {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-thumbnail img {
    transform: scale(1.05);
}

.recent-post-content {
    padding: 1rem;
}

.recent-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
}

.recent-post-meta {
    font-size: 0.8rem;
    color: #bbb;
}

.recent-post-date {
    display: flex;
    align-items: center;
}

/* Search Results Integration with Theme Grid */
.search .posts-wrapper .video-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.search .video-grid.grid-desktop-4 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.search .video-grid.grid-desktop-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.search .video-grid.grid-desktop-2 {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

/* Page Header Improvements */
.search .page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
}

.search .page-title {
    margin-bottom: 0.75rem;
    color: #212529;
    font-size: 1.75rem;
    font-weight: 700;
}

.search .page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.search .page-meta span {
    display: flex;
    align-items: center;
}

.search .page-meta i {
    margin-right: 0.5rem;
}

.search .post-count {
    color: #28a745;
    font-weight: 600;
}

.search .search-time {
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .search .video-grid.grid-desktop-4,
    .search .video-grid.grid-desktop-3,
    .search .video-grid.grid-desktop-2 {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .search-refinement {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .no-results-content {
        padding: 1.5rem 1rem;
    }
    
    .no-results-icon {
        font-size: 2.5rem;
    }
    
    .no-results-content h3 {
        font-size: 1.25rem;
    }
    
    .search .page-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .search .page-title {
        font-size: 1.5rem;
    }
    
    .search .page-meta {
        gap: 0.75rem;
        font-size: 0.85rem;
    }
    
    .recent-posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-tags {
        gap: 0.5rem;
    }
    
    .category-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .search .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .search .page-header {
        padding: 1rem;
    }
    
    .search .page-title {
        font-size: 1.25rem;
    }
    
    .no-results-content h3 {
        font-size: 1.1rem;
    }
    
    .search .video-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-posts-grid {
        grid-template-columns: 1fr;
    }
}

