@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
   /* Custom Color Palette */
   --primary: #1565C0;     /* Steel Blue */
   --primary-hover: #0D47A1; 
   --secondary: #0288D1;   /* Light Blue */
   
   /* Layout */
   --sidebar-width: 240px;
   --header-height: 60px;
   --content-padding-top: 80px;
   
   /* Light Theme Colors */
   --light-bg: #FFFFFF;        /* Pure White */
   --light-surface: #F5F5F5;   /* Very Light Gray */
   --light-text: #212121;      /* Near Black */
   --light-text-secondary: #757575;  /* Medium Gray */
   --light-border: #E0E0E0;    /* Light Gray Border */
   --light-hover: #E1E1E1;     /* Slightly Darker Gray */
   --light-sidebar: #F0F0F0;   /* Light Gray */
   --light-icons-default: #616161;  /* Dark Gray */
   
   /* Dark Theme Colors - Navy-Steel-Black */
   --dark-bg: #050C12;         /* Deep Navy-Black */
   --dark-surface: #0B1929;    /* Dark Navy */
   --dark-text: #90CAF9;       /* Soft Blue */
   --dark-text-secondary: #64B5F6;  /* Medium Blue */
   --dark-border: #1A3A5C;     /* Steel Border */
   --dark-hover: #0D2540;      /* Dark Navy Hover */
   --dark-sidebar: #040E1A;    /* Near-Black Navy Sidebar */
   --dark-icons-default: #29B6F6;  /* Sky Blue for icons */
   
   /* Accent Colors */
   --accent-blue: #039BE5;     /* Cerulean */
   --accent-green: #0277BD;    /* Dark Navy */
   --link-color: #4FC3F7;      /* Sky Blue */
}

* {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

html {
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   font-size: 16px;
}

html.light {
   --bg: var(--light-bg);
   --surface: var(--light-surface);
   --text: var(--light-text);
   --text-secondary: var(--light-text-secondary);
   --border: var(--light-border);
   --hover: var(--light-hover);
   --sidebar: var(--light-sidebar);
   --icons-default: var(--light-icons-default);
}

html.dark {
   --bg: var(--dark-bg);
   --surface: var(--dark-surface);
   --text: var(--dark-text);
   --text-secondary: var(--dark-text-secondary);
   --border: var(--dark-border);
   --hover: var(--dark-hover);
   --sidebar: var(--dark-sidebar);
   --icons-default: var(--dark-icons-default);
}

body {
   background-color: var(--bg);
   color: var(--text);
   transition: background-color 0.3s, color 0.3s;
   min-height: 100vh;
   display: flex;
   flex-direction: column;
}

/* Layout Structure */
.page-container {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.content-wrapper {
    padding: 20px;
    width: calc(100% - 100px);
    margin-top: var(--header-height);
	margin-left: auto;
	margin-right: auto;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 35px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container {
    order: 2;
    margin-right: 20px;
    min-width: fit-content;
    padding-left: 10px;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    max-height: 40px;
    width: auto;
    height: auto;
}

/* Navigation Styles */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    order: 3;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    font-size: 14px;
    border: 1px solid transparent;
}

.nav-item:hover {
    background-color: var(--hover);
    border: 1px solid var(--border);
}

.nav-item i {
    font-size: 1rem;
}

/* Section Headers */
.video-page .section-header {
    padding: 0 0 15px 0;
    margin: 0;
}

.video-page .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

/* Video card titles (for the individual videos in grid) */
.video-card .video-title {
    font-size: 1rem;  /* Smaller size for video card titles */
    margin-bottom: 8px;
    color: var(--text);
}

.video-card .video-title a {
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-align: left;
}

/* Keep related section specific styles */
.related-section .related-videos-grid .video-title {
    font-size: 0.9rem;  /* Even smaller for related videos */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.section-more {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 12px;
    line-height: 1;
    transition: all 0.2s ease;
}

.section-more:hover {
    background-color: var(--hover);
    border-color: var(--text-secondary);
}

.section-more i {
    font-size: 0.9rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Menu Toggles */
.menu-toggle,
.search-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.menu-toggle:hover,
.search-toggle:hover {
    background-color: var(--hover);
}

.header-right {
    order: 4;
    margin-left: auto;
}

/* Video Grid & Cards */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.video-card {
    width: 100%;
    background-color: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
	border: 1px solid var(--border);
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    display: block;
    overflow: hidden;
    background-color: var(--surface);
}

.thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
    opacity: 1;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.thumbnail-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

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

.video-card:hover .thumbnail-img {
    opacity: 0;
}

/* Video Card Details */
.video-info {
    padding: 12px;
    text-align: left;
}

.video-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

.video-title a {
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-align: left;
}

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

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0;
}

/* Related section with ad consideration */
.related-section {
    display: flex;
    flex-direction: column;
}

/* Related Videos Grid Specific Styles */
.related-section .videos-grid,
.related-videos-grid {
    display: grid;
    grid-template-columns: 1fr;  /* 1 column by default for desktop */
    gap: 15px;
    padding: 0 15px;
}

.related-section h2.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 20px 15px;
}

/* Video Card Overlays */
.video-thumbnail .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 2;
}

.video-thumbnail .hd-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #FFD700;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.video-thumbnail .likes-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-thumbnail .likes-count i {
    color: #ff4444;
    font-size: 0.9rem;
}

/* Video Page Layout */
.video-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 75% 25%;
    gap: 20px;
}

/* Main Video Player */
.main-video-container {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.video-paused .play-button-overlay {
    opacity: 1;
}

.play-button-overlay i {
    color: white;
    font-size: 40px;
    margin-left: 5px;
}

/* Video Details Section */
.video-details {
    margin-top: 20px;
    padding: 15px;
    background: var(--surface);
    border-radius: 8px;
}

.video-details h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

.video-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.video-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    position: relative;
}

.video-stat-item i {
    color: var(--text-secondary);
}

.video-stat-item:last-child {
    margin-left: auto; /* This pushes the like button to the right */
}

.video-metadata {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.metadata-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.metadata-value {
    color: var(--text);
}

.description-text {
    display: block;
    text-align: left;        /* Make sure it's left aligned */
    font-size: 14px;         /* Adjust to match your design */
    line-height: 1.6;        /* Better readability */
    color: var(--text-secondary);             /* Neutral gray for text */
    margin-top: 6px;
    margin-bottom: 6px;
    word-break: break-word;  /* Prevents long links from breaking layout */
	font-weight: 600;
}

/* Style links inside description */
.description-text a {
    color: #4da6ff;          /* Soft blue for links */
    text-decoration: none;   /* Remove underline */
    font-weight: 500;        /* Slightly bold */
    transition: color 0.2s ease;
}

.description-text a:hover {
    color: #66ccff;          /* Lighter blue on hover */
    text-decoration: underline;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.video-tag {
    background: var(--hover);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.video-tag:hover {
    background: var(--primary);
    color: #fff;
}

/* Sidebar Navigation */
.desktop-sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: 115px;
    height: calc(100vh - var(--header-height));
    background-color: var(--sidebar);
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    font-size: 12px;
}

.sidebar-menu-item:hover {
    background-color: var(--hover);
}

.sidebar-menu-item i {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--icons-default);
}

/* Search Bar */
.search-bar {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background-color: var(--surface);
    display: flex;
    align-items: center;
    padding: 0 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
}

.search-bar.active {
    transform: translateX(0);
}

.search-bar form {
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 300px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background-color: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

.search-bar .close-search {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    margin-left: 10px;
    font-size: 1.5rem;
}

.search-filters .filter-types {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.search-filters .filter-type {
    padding: 8px 15px;
    text-decoration: none;
    color: #555;
    background: #e9e9e9;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.search-filters .filter-type:hover {
    background: #d9d9d9;
}

.search-filters .filter-type.active {
    background: #3498db;
    color: white;
    font-weight: 500;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 30000000000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--surface);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 30019;
    will-change: left;
}

.mobile-menu-overlay.active .mobile-menu {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
}

.mobile-logo {
    height: 17px;
    width: auto;
}

.close-menu {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
}

.mobile-nav {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 6px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.mobile-nav-item:hover {
    background-color: var(--hover);
}

.mobile-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

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

/* Footer */
.main-footer {
    padding: 40px 20px;
    margin-top: auto;
    background-color: var(--surface);
}

.footer-content {
    margin: 0 auto;
    max-width: 1200px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-links a, .footer-copyright a {
    color: var(--primary); /* Using primary color instead of white for better visibility */
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.footer-links a:hover, .footer-copyright a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Hide download button */
video::-internal-media-controls-download-button {
    display: none;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

video::-webkit-media-controls-panel {
    width: calc(100% + 30px);
}

/* Load More Button */
.related-section .load-more-button {
    width: calc(100% - 30px); /* Accounts for the padding */
    margin: 20px 15px;
    padding: 10px;
    background: var(--hover);
    border: none;
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.related-section .load-more-button:hover {
    background: var(--primary);
    color: #fff;
}

.related-section .load-more-button.disabled {
    background: var(--hover);
    cursor: not-allowed;
    opacity: 0.7;
}

.related-section .load-more-button.error {
    background: #ff4444;
    color: white;
    cursor: not-allowed;
}

/* View More Container and Random Refresh Styles */
.view-more-container,
.random-refresh {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding: 0 20px;
    color: var(--text); /* Added explicit text color */
}

/* Refresh Button Styles */
.refresh-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #1565C0; /* Darker red for better contrast with white text */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    min-width: 200px;
    text-align: center;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.refresh-button:hover {
    background-color: #0D47A1; /* Darker hover state */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: white;
}

.refresh-button i {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .refresh-button {
        min-width: 180px;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .view-more-container,
    .random-refresh {
        padding: 0 10px;
    }
    
    .refresh-button {
        min-width: 160px;
        width: 100%;
        max-width: 280px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.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;
}

/* Mobile Menu Footer Styles */
.mobile-menu-footer {
    margin-top: auto;
    padding: 15px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

/* Dark Mode Toggle in Mobile Menu */
.mobile-menu-footer .theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mobile-menu-footer .theme-text {
    color: var(--text);
    font-size: 14px;
}

.mobile-menu-footer .theme-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.mobile-menu-footer .theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mobile-menu-footer .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.mobile-menu-footer .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

.mobile-menu-footer input:checked + .slider {
    background-color: var(--primary);
}

.mobile-menu-footer input:checked + .slider:before {
    transform: translateX(20px);
}

.mobile-menu-footer .slider.round {
    border-radius: 24px;
}

.mobile-menu-footer .slider.round:before {
    border-radius: 50%;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.pagination .page-link:hover {
    background-color: var(--hover);
    border-color: var(--primary);
}

.pagination .page-link.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 576px) {
    .pagination .page-link {
        min-width: 30px;
        height: 30px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* Mobile Menu Footer Links - Keep these separate */
.mobile-menu-footer .mobile-footer-links {
    padding: 15px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-menu-footer .mobile-footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
}

.mobile-menu-footer .mobile-footer-links a:hover {
    color: var(--text);
}

/* Main Footer Styles */
.main-footer {
    background-color: var(--surface);
    padding: 40px 20px;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.main-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Columns */
.main-footer .footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.main-footer .footer-column {
    flex: 1;
    min-width: 200px;
}

.main-footer .footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* Footer Links */
.main-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-footer .footer-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.main-footer .footer-links a:hover {
    color: var(--primary);
}

/* Footer Divider */
.main-footer .footer-divider {
    height: 1px;
    background-color: var(--border);
    margin: 20px 0;
    width: 100%;
}

/* Website Info */
.main-footer .website-info {
    text-align: center;
    margin: 20px 0;
    padding: 0 20px;
}

.main-footer .website-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.main-footer .website-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 1000px;
    margin: 0 auto;
}

/* Footer Bottom with Safety Labels */
.main-footer .footer-bottom {
    position: relative;
    padding-top: 20px;
    min-height: 40px;
}

.main-footer .footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.main-footer .safety-labels {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-footer .safety-labels img {
    height: 28px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.main-footer .safety-labels img:hover {
    opacity: 1;
}

.main-footer .footer-image-wrapper {
    display: inline-block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-footer .footer-columns {
        flex-direction: column;
        gap: 30px;
    }
    
    .main-footer .footer-column {
        width: 100%;
    }
    
    .main-footer .website-title {
        font-size: 1.3rem;
    }
    
    .main-footer .website-description {
        font-size: 0.8rem;
    }
    
    .main-footer .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .main-footer .safety-labels {
        position: static;
        transform: none;
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-footer .safety-labels img {
        height: 24px;
    }
}

/* Desktop sidebar adjustment */
@media (min-width: 1201px) {
    .main-footer {
        width: 100%;
    }
}

/* Updated Mobile Menu Structure */
.mobile-menu {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.mobile-menu .mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Search Filters */
.search-filters {
    background: var(--surface);
    border-radius: 8px;
    padding: 20px;
    margin: 0 20px 20px 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border: 1px solid var(--border);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

.filter-group select {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    min-width: 120px;
}

.filter-group select:hover {
    border-color: var(--primary);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

/* Search Filters */
.search-filters {
    background: var(--surface);
    border-radius: 8px;
    padding: 20px;
    margin: 0 20px 20px 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border: 1px solid var(--border);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

.filter-group select {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    min-width: 120px;
}

.filter-group select:hover {
    border-color: var(--primary);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

.reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s;
    margin-left: auto;
}

.reset-filters:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.reset-filters i {
    font-size: 12px;
}

/* Popular Tags/Recent Searches */
.recent-searches {
    background: var(--surface);
    border-radius: 8px;
    padding: 20px;
    margin: 0 20px 20px 20px;
    border: 1px solid var(--border);
}

.recent-searches h2, .recent-searches h3 {
    color: var(--text);
    font-size: 18px;
    margin-bottom: 15px;
}

.recent-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.search-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-tag i {
    font-size: 12px;
    color: var(--primary);
}

.search-tag:hover i {
    color: white;
}

.tag-count {
    background: var(--hover);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.search-tag:hover .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* No Results */
.no-results {
    background: var(--surface);
    border-radius: 8px;
    padding: 30px;
    margin: 0 20px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.no-results p {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 500;
}

/* Error 404 Page */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 50px 20px;
}

.error-container {
    background: var(--surface);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}

.error-container h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.error-container p {
    color: var(--text);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.error-actions {
    margin-top: 30px;
}

/* Combined styles for both suggestions and search suggestions */
.suggestions,
.search-suggestions {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    background: var(--bg);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.suggestions h2,
.search-suggestions h2 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 600;
}

.suggestions ul,
.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions li,
.search-suggestions li {
    color: var(--text-secondary);
    padding: 8px 0;
    margin-bottom: 5px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.suggestions li:last-child,
.search-suggestions li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.suggestions li:before,
.search-suggestions li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.suggestions a,
.search-suggestions a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
	padding-left: 5px;
}

.suggestions a:hover,
.search-suggestions a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

/* Search Results Count */
.results-count {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: normal;
    margin-left: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-filters {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin: 0 15px 15px 15px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        flex: 1;
    }

    .reset-filters {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }

    .recent-searches,
    .suggestions,
    .search-suggestions {
        padding: 15px;
        margin: 0 15px 15px 15px;
    }

    .no-results {
        margin: 0 15px;
        padding: 20px;
    }

    .no-results p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .search-tag {
        padding: 4px 10px;
        font-size: 13px;
    }

    .tag-count {
        font-size: 11px;
        padding: 2px 5px;
    }
    
    .suggestions, 
    .search-suggestions {
        padding: 12px;
    }
    
    .suggestions li,
    .search-suggestions li {
        font-size: 0.9rem;
        padding: 6px 0;
    }
}

/* Hashtags Page Styles */
.hashtags-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Alphabet Navigation */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    padding: 15px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
    position: sticky;
    top: var(--header-height);
    z-index: 10;
}

.alphabet-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.alphabet-link.available {
    background: var(--surface);
    cursor: pointer;
}

.alphabet-link.unavailable {
    background: var(--bg);
    color: var(--text-secondary);
    opacity: 0.5;
    cursor: default;
}

.alphabet-link.available:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    border-color: var(--primary);
}

/* Hashtags Container */
.hashtags-container {
    margin-top: 30px;
}

.letter-section {
    margin-bottom: 40px;
    padding: 15px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: background-color 0.3s;
}

.letter-section.highlight {
    background-color: rgba(21, 101, 192, 0.1);
}

.letter-heading {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--text);
}

.hashtags-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.hashtag-item {
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
    background: var(--bg);
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.hashtag-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    border-color: var(--primary);
}

.hashtag-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.hashtag-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.hashtag-item:hover .hashtag-count {
    color: rgba(255, 255, 255, 0.8);
}

.no-hashtags {
    text-align: center;
    padding: 30px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px dashed var(--border);
    color: var(--text-secondary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 100;
}

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

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hashtags-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .hashtags-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .alphabet-nav {
        gap: 5px;
        padding: 10px;
    }
    
    .alphabet-link {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hashtags-grid {
        grid-template-columns: 1fr;
    }
    
    .hashtags-page {
        padding: 10px;
    }
    
    .alphabet-nav {
        padding: 8px;
        gap: 4px;
    }
    
    .alphabet-link {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .letter-heading {
        font-size: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
    }
}

/* Universal Carousel Styles */
.universal-carousel {
    position: relative;
    width: 100%;
    margin: 15px 0;
    background: var(--surface);
    border-radius: 8px;
    padding: 15px 40px;
    overflow: hidden;
}

.universal-carousel .carousel-header {
    display: flex;
    align-items: center; /* This was already there */
    justify-content: space-between;
    line-height: 36px;
    margin-bottom: 10px;
    width: 100%;
    min-height: 36px; /* Add this to ensure consistent height */
}

.universal-carousel .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.universal-carousel h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 36px; /* Match the header line-height */
    display: flex;
    align-items: center; /* Center text vertically */
}

.universal-carousel .section-more {
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
    height: 36px; /* Match the header height */
    display: flex;
    align-items: center; /* Center content vertically */
}

.universal-carousel .autoplay-toggle {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
    font-size: 1rem;
    opacity: 0.7;
    transition: all 0.2s;
    line-height: 26px;
    height: 36px;
    display: flex;
    align-items: center;
}

.universal-carousel .autoplay-toggle:hover {
    opacity: 1;
}

.section-more {
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.carousel_track-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel_track {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
}

.carousel_item {
    flex: 0 0 calc((100% - (15px * 3)) / 4);
    min-width: calc((100% - (15px * 3)) / 4);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.carousel_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.carousel_item:hover img {
    transform: scale(1.05);
}

.carousel_timestamp {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 1rem;
    z-index: 1;
}

.carousel_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
}

.carousel_nav:hover {
    background: var(--primary);
    color: white;
}

.carousel_nav.prev {
    left: 5px;
}

.carousel_nav.next {
    right: 5px;
}

.carousel_nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--surface);
    color: var(--text);
}

.carousel_dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 0;
}

.carousel_dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel_dot:hover {
    background: var(--text-secondary);
}

.carousel_dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

@media (max-width: 1200px) {
    .carousel_item {
        flex: 0 0 calc((100% - (15px * 2)) / 3);
        min-width: calc((100% - (15px * 2)) / 3);
    }
}

@media (max-width: 768px) {
    .universal-carousel {
        padding: 10px 35px;
    }

    .universal-carousel .carousel-header {
        padding: 0 5px;
        flex-wrap: nowrap;
    }

    .carousel_item {
        flex: 0 0 calc((100% - 15px) / 2);
        min-width: calc((100% - 15px) / 2);
    }
}

@media (max-width: 480px) {
    .universal-carousel {
        padding: 10px 30px;
    }

    .carousel_item {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

/* Like Button Container */
.video-stats .like-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
}

/* Like Button */
.video-stats .like-button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
    cursor: pointer;
}

.video-stats .like-button i {
    font-size: 35px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

/* Hover States */
.video-stats .like-button-container:hover .like-button {
    border-color: var(--primary);
    transform: scale(1.05);
}

.video-stats .like-button-container:hover .like-button i {
    color: var(--primary);
}

/* Liked State */
.video-stats .like-button-container.liked .like-button {
    border-color: var(--primary);
    background: var(--primary);
}

.video-stats .like-button-container.liked .like-button i {
    color: white;
}

/* Like Count */
.video-stats .likes-count {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 500;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 12px;
    border-radius: 12px;
    pointer-events: auto;
    z-index: 2;
}

.video-stats .likes-text {
    font-size: 12px;
    font-weight: 400;
}

.video-stats .like-button-container.liked .likes-count,
.video-stats .like-button-container.liked .likes-text {
    color: white;
}

/* Like Notifications */
.video-stats .like-notification {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 3;
}

/* Position for like notification */
.video-stats .like-notification:not(.unlike) {
    left: -180px;
}

/* Position for unlike notification */
.video-stats .like-notification.unlike {
    left: -122px; /* Changed from -100px for "Like removed" message */
    background: var(--text-secondary);
}

.video-stats .like-notification.show {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Floating Hearts Animation */
@keyframes floatingHeart {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    20% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-80px) scale(0.8);
        opacity: 0;
    }
}

.video-stats .floating-heart {
    position: absolute;
    pointer-events: none;
    color: var(--primary);
    animation: floatingHeart 0.8s ease-out forwards;
    font-size: 20px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .video-stats .like-button {
        width: 40px;
        height: 40px;
    }
    
    .video-stats .like-button i {
        font-size: 24px;
    }
    
    .video-stats .likes-count {
        font-size: 12px;
    }
    
    .video-stats .likes-text {
        font-size: 11px;
    }
    
    .video-stats .like-notification:not(.unlike) {
        left: -150px;
    }
    
    .video-stats .like-notification.unlike {
        left: -100px;
    }
    
    .video-stats .like-notification {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Largest screens (1401px and above) */
@media (min-width: 1401px) {
    .header-left {
        flex: 0 0 auto;
    }
    
    .logo-container {
        flex: 0 0 auto;
        margin: 0 40px;
    }
    
    .desktop-nav {
        flex: 1;
        justify-content: center;
        gap: 20px;
    }
    
    .header-right {
        flex: 0 0 auto;
    }

    .nav-item {
        font-size: 14px;
        padding: 8px 16px;
    }

    .videos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium-large screens with smaller font/spacing (980px - 1400px) */
@media (max-width: 1400px) and (min-width: 981px) {
    .desktop-nav {
        gap: 8px;
    }

    .nav-item {
        font-size: 12px;
        padding: 6px 8px;
    }

    .nav-item i {
        font-size: 0.9rem;
        margin-right: 4px;
    }

    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .video-page {
        grid-template-columns: 65% 35%;
    }
}

@media (max-width: 1200px) {
    body {
        padding-top: var(--header-height);
    }
	
    .content-wrapper {
		margin-left: auto;
		margin-right: auto;
        width: calc(100% - 100px);
        margin-top: 0;
    }
	
    .desktop-nav {
        display: none;
    }
   
    .desktop-sidebar {
        display: none;
    }
	
    .main-header {
        padding: 0;
    }
    
    .header-left {
        position: absolute;
        left: 35px;
        top: 15px;
        z-index: 999;
        min-width: 60px;
    }
    
    .header-right {
        position: absolute;
        right: 10px;
        top: 15px;
        z-index: 1001;
        min-width: 60px;
    }
    
    .logo-container {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        text-align: center;
        width: 550px;
        margin: 0 auto;
        height: var(--header-height);
        display: flex;
        align-items: center;
        justify-content: center;
    }
	
    .search-bar {
        position: fixed;
        width: 100%;
		height: var(--header-height); /* Match header height */
        padding: 0 40px 0 15px;
    }
	
    .search-bar form {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }
	
    .search-bar input {
        width: 100%;
    }
}

/* Switch to mobile layout (980px and below) */
@media (max-width: 980px) {
    .content-wrapper {
        width: 100%;
        margin-top: 0;
    }
	
    .video-page {
        grid-template-columns: 1fr;
    }
    
    .related-section .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small screens (576px - 768px) */
@media (max-width: 768px) {
    .related-section .videos-grid,
    .related-videos-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 10px;
    }
	
    .related-section h2.section-title {
        margin: 0 0 15px 10px;
    }
    
    .related-section .video-title {
        font-size: 0.9rem;
    }

    .related-section .load-more-button {
        width: calc(100% - 20px);
        margin: 20px 10px;
    }
    
    .footer-links {
        flex-direction: column;
    }

}

/* Extra small screens (480px - 576px) */
@media (max-width: 576px) {
    .logo-container {
        width: 350px;
    }
}

/* Very small screens (400px - 480px) */
@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .section-header {
        padding: 0 10px;
    }
	
    .related-section .videos-grid,
    .related-videos-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 8px;
    }
}

/* Smallest screens (below 400px) */
@media (max-width: 400px) {
    .logo-container {
        width: 250px;
    }
	
	.universal-carousel {
		display: none;
	}
}

/* Print styles */
@media print {
    .main-header,
    .desktop-sidebar,
    .mobile-menu-overlay,
    .footer {
        display: none !important;
    }

    .content-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* Ad styles */
.custom_module_31we21,
.promo_content_wrapper_3e47b,
.custom_module_58f29d {
    display: flex;
    justify-content: center;
    width: 100%;
}

.custom_module_31we21 {
    text-align: center;
    margin-bottom: 10px;
}

.custom_module_58f29d,
.promo_content_wrapper_3e47b {
    flex-wrap: nowrap;
    gap: 15px;
    max-height: 250px;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 20px 0;
}

.custom_module_58f29d::-webkit-scrollbar,
.promo_content_wrapper_3e47b::-webkit-scrollbar {
    display: none;
}

.cus_display_item_7e32a,
.promo_item_card_92c5d {
    width: 300px;
    height: 250px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex: 0 0 300px;
}

/* Show only 1 banner on screens < 650px */
@media (max-width: 749px) {
    .cus_display_item_7e32a:nth-child(n+2),
    .promo_item_card_92c5d:nth-child(n+2) {
        display: none;
    }
}

/* Show only 2 banners on screens 650px–930px */
@media (min-width: 750px) and (max-width: 1400px) {
    .cus_display_item_7e32a:nth-child(n+3),
    .promo_item_card_92c5d:nth-child(n+3) {
        display: none;
    }
}