/*
Theme Name: Professional Video Theme
Description: Một chủ đề video chuyên nghiệp sang trọng và hiện đại, tập trung vào trải nghiệm nội dung
Version: 2.0
Author: Professional Theme Studio
*/

:root {
    --primary-bg: #0f1419;
    --secondary-bg: #1c2128;
    --tertiary-bg: #262c36;
    --card-bg: #21262d;
    --accent-color: #1f6feb;
    --accent-hover: #2f81fc;
    --accent-light: rgba(31, 111, 235, 0.1);
    --gold-accent: #d4af37;
    --text-primary: #f0f6fc;
    --text-secondary: #b1bac4;
    --text-muted: #7d8590;
    --border-color: #30363d;
    --border-light: rgba(240, 246, 252, 0.1);
    --hover-bg: #262c36;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-heavy: rgba(0, 0, 0, 0.7);
    --sidebar-width: 320px;
    --header-height: 85px;
    --border-radius: 12px;
    --border-radius-small: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'SF Pro Display', sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #0d1117 100%);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: rgba(28, 33, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px var(--shadow-light);
    transition: var(--transition-smooth);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

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

/* Kiểu nút xác thực */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-btn,
.register-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.login-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.login-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px var(--shadow-light);
    transform: translateY(-1px);
}

.register-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(31, 111, 235, 0.2);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 111, 235, 0.4);
    background: linear-gradient(135deg, var(--accent-hover), #4b8fff);
}

.login-btn i,
.register-btn i {
    font-size: 12px;
}

.search-toggle {
    width: 42px;
    height: 42px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.search-toggle:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 111, 235, 0.3);
}

.site-logo {
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color), var(--gold-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.site-logo img {
    max-width: 170px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-logo:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 8px 16px;
    border-radius: var(--border-radius-small);
    position: relative;
}

.main-nav a:hover {
    color: var(--accent-color);
    background: var(--accent-light);
}

.main-nav a.active,
.main-nav .current-menu-item > a {
    color: var(--accent-color);
    background: var(--accent-light);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* Main Content */
.site-main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

.content-wrapper {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}
.company-introduction .content-wrapper{
    display:unset;
}
.main-content {
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--border-radius);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 30px);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-light);
    backdrop-filter: blur(10px);
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 8px;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-color), var(--gold-accent));
    border-radius: 2px;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

.video-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px var(--shadow-light);
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border-color: var(--accent-color);
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.05), rgba(212, 175, 55, 0.05));
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

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

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background: rgba(31, 111, 235, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    opacity: 0;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(31, 111, 235, 0.4);
}

.video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button:hover {
    background: var(--accent-hover);
    transform: translate(-50%, -50%) scale(1.15);
}

.video-info {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.video-meta {
    color: var(--text-muted);
    font-size: 14px;
}

/* Video Player Page */
.video-player-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px var(--shadow-light);
}

.video-title-page {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-player {
    width: 100%;
    height: 520px;
    background: #000;
    border-radius: var(--border-radius);
    margin-bottom: 35px;
    box-shadow: 0 8px 25px var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.video-episodes {
    margin-top: 30px;
}

.episodes-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
}

.episodes-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-color), var(--gold-accent));
    border-radius: 2px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.episode-item {
    background: var(--card-bg);
    padding: 18px;
    border-radius: var(--border-radius-small);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.episode-item:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 111, 235, 0.3);
}

.episode-item.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 6px 15px rgba(31, 111, 235, 0.4);
}

/* Article Styles */
.article-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    line-height: 1.75;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-light);
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: var(--text-primary);
    margin: 20px 0 15px;
}

.article-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

/* Footer */
.site-footer {
    background: var(--card-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 18px;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 4px 0;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -150%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--secondary-bg);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Tối ưu header di động */
    .header-content {
        flex-wrap: wrap;
        position: relative;
    }
    
    .site-branding {
        order: 1;
        flex: 1;
    }
    
    .main-navigation {
        order: 2;
    }
    
    .header-actions {
        order: 3;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .auth-buttons {
        order: 4;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
        gap: 12px;
    }
    
    .login-btn,
    .register-btn {
        padding: 8px 16px;
        font-size: 14px;
        gap: 6px;
        min-width: 100px;
    }
    
    .login-btn span,
    .register-btn span {
        display: inline;
    }
    
    .search-toggle {
        width: 35px;
        height: 35px;
    }
    
    .search-toggle {
        width: 35px;
        height: 35px;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        margin-top: 20px;
        padding: 5px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .video-player {
        height: 250px;
    }
    
    .video-title-page {
        font-size: 24px;
    }
    
    .episodes-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .container,
    .header-content {
        padding: 0 15px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-player-container,
    .article-content {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-radius: 5px;
    border: 2px solid var(--secondary-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--gold-accent));
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none; }

/* Search Bar */
.search-form {
    display: flex;
    margin: 24px 0;
    box-shadow: 0 4px 15px var(--shadow-light);
    border-radius: var(--border-radius-small);
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 14px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius-small) 0 0 var(--border-radius-small);
    outline: none;
    transition: var(--transition-smooth);
    font-size: 15px;
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.1);
}

.search-button {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border: none;
    color: white;
    border-radius: 0 var(--border-radius-small) var(--border-radius-small) 0;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.search-button:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--gold-accent));
    transform: translateX(-2px);
}

/* Mobile Search Enhancement */
.mobile-search {
    display: none;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.mobile-search.active {
    display: block;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(31, 111, 235, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1000;
    font-size: 18px;
}

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

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(31, 111, 235, 0.5);
    background: linear-gradient(135deg, var(--accent-hover), var(--gold-accent));
}

/* Enhanced Card Animations */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.video-card:nth-child(even) {
    animation: cardFloat 6s ease-in-out infinite;
    animation-delay: 1s;
}

.video-card:nth-child(odd) {
    animation: cardFloat 6s ease-in-out infinite;
    animation-delay: 3s;
}

/* Gradient Text Effects */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-color), var(--gold-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Card Styles */
.premium-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-accent), var(--accent-color));
}

/* Enhanced Focus States */
.search-input:focus,
.login-btn:focus,
.register-btn:focus,
.search-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.1);
}

/* Sophisticated Hover Effects */
.video-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(31, 111, 235, 0.05), transparent);
    transform: rotate(45deg);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.video-card:hover::after {
    opacity: 1;
    animation: shimmer 2s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Additional Mobile Header Adjustments */
@media (max-width: 768px) {
    /* Điều chỉnh chiều cao header di động để chứa nút xác thực */
    .site-header {
        height: auto !important;
        min-height: var(--header-height);
    }
    
    .header-content {
        padding: 15px 20px !important;
    }
}

/* Custom Logo Styling */
.custom-logo {
    max-width: 170px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===== SIDEBAR VIDEO WIDGETS ===== */

/* Latest Videos Widget */
.latest-videos-widget {
    margin-bottom: 35px;
}

.latest-videos-widget .widget-title {
    color: var(--accent-color);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.latest-videos-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-video-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--tertiary-bg);
    border-radius: var(--border-radius-small);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.sidebar-video-item:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.sidebar-video-thumbnail {
    position: relative;
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.sidebar-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumbnail {
    width: 100%;
    height: 100%;
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 20px;
}

.sidebar-video-thumbnail .video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 111, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.sidebar-video-thumbnail:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    color: white;
    font-size: 16px;
}

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

.sidebar-video-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

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

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

.sidebar-video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-video-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.widget-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--border-radius-small);
    border: 1px solid var(--accent-color);
    transition: var(--transition-smooth);
}

.view-all-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

/* Popular Videos Widget */
.popular-videos-widget {
    margin-bottom: 35px;
}

.popular-videos-widget .widget-title {
    color: #ff6b35;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.popular-videos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--tertiary-bg);
    border-radius: var(--border-radius-small);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.sidebar-popular-item:hover {
    background: var(--hover-bg);
    border-color: var(--accent-color);
}

.popular-rank {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ff6b35, #ff8659);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-number {
    color: white;
    font-weight: 700;
    font-size: 12px;
}

.popular-content {
    flex: 1;
    min-width: 0;
}

.popular-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

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

.popular-title a:hover {
    color: var(--accent-color);
}

.popular-stats {
    font-size: 11px;
    color: var(--text-muted);
}

.popular-views {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Video Categories Widget */
.video-categories-widget {
    margin-bottom: 35px;
}

.video-categories-widget .widget-title {
    color: var(--gold-accent);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.video-categories-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--tertiary-bg);
    border-radius: var(--border-radius-small);
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.category-item:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(4px);
    border-color: var(--accent-color);
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.category-count {
    color: var(--text-muted);
    font-size: 11px;
    transition: var(--transition-smooth);
}

.category-item:hover .category-name,
.category-item:hover .category-count {
    color: white;
}

.category-item i {
    color: var(--accent-color);
    font-size: 12px;
    transition: var(--transition-smooth);
}

.category-item:hover i {
    color: white;
    transform: translateX(2px);
}

/* Mobile responsive for sidebar */
@media (max-width: 768px) {
    .sidebar-video-item {
        padding: 10px;
        gap: 10px;
    }
    
    .sidebar-video-thumbnail {
        width: 70px;
        height: 50px;
    }
    
    .sidebar-video-title {
        font-size: 13px;
    }
    
    .sidebar-video-meta {
        font-size: 10px;
        gap: 8px;
    }
    
    .popular-title {
        font-size: 12px;
    }
    
    .category-item {
        padding: 8px 10px;
    }
    
    .category-name {
        font-size: 12px;
    }
}

/* Enhanced Mobile Menu Toggle */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
        position: relative;
        z-index: 1001;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 6px;
        padding: 8px;
        width: 40px;
        height: 40px;
        transition: var(--transition-smooth);
    }
    
    .mobile-menu-toggle:hover {
        background: var(--accent-color);
        color: white;
        border-color: var(--accent-color);
    }
    
    .mobile-menu-toggle.active {
        background: var(--accent-color);
        color: white;
        border-color: var(--accent-color);
    }
    
    .mobile-menu-toggle i {
        transition: var(--transition-smooth);
    }
}
