/* =================================================
   Alzafaaf Modern Theme - RTL Professional Design
   ================================================= */

:root {
    --primary-color: #d18d21;
    --primary-dark: #b87818;
    --primary-light: #e5a84a;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #ecf0f1;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2c2c2c;
    --bg-tertiary: #3a3a3a;
    --border-color: #404040;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    transform-origin: 0%;
    transform: scaleX(0);
    z-index: 9999;
    transition: transform 0.1s ease-out;
}

/* Header Styles */
.modern-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.modern-header.scrolled {
    box-shadow: var(--shadow-lg);
}

.top-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.top-bar a:hover {
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-icons a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Main Navigation */
.main-nav {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    height: 50px;
    transition: var(--transition);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-menu a::after,
.mega-menu-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after,
.mega-menu-toggle:hover::after {
    width: 100%;
}

/* Search Bar */
.search-container {
    position: relative;
}

.search-toggle {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.search-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.search-expanded.active {
    display: flex;
}

.search-box-expanded {
    width: 90%;
    max-width: 800px;
    position: relative;
}

.search-input-main {
    width: 100%;
    padding: 20px 60px 20px 20px;
    font-size: 1.5rem;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    background: white;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.search-input-main:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 30px rgba(209, 141, 33, 0.3);
}

.search-close {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
}

.search-close:hover {
    transform: translateY(-50%) rotate(90deg);
    background: #c0392b;
}

/* Instant Search Results */
.instant-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    margin-top: 10px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: none;
}

.instant-results.active {
    display: block;
}

.instant-result-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.instant-result-item:hover {
    background: var(--bg-secondary);
}

.instant-result-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.instant-result-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.instant-result-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Dark Mode Toggle */
.theme-toggle {
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 20px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 20px auto;
    max-width: 1400px;
}

.slider-wrapper {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.slide-content h2 {
    color: white;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    animation: slideUp 0.8s ease;
}

.slide-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin: 0;
    animation: slideUp 1s ease;
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Music Cards */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 30px 0;
}

.music-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.music-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.music-card-image {
    position: relative;
    width: 100%;
    /* padding-top: 100%; */
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.music-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.music-card:hover .music-card-image img {
    transform: scale(1.1);
}

.music-code-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.music-card-content-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a {
    text-decoration: none;
}

.music-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.music-card-content {
    padding: 20px;
}

.music-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.music-card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.music-card-artist,
.music-card-duration {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 12px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.music-card-duration{
    background: #f8f9fa;
    padding: 0px 10px;
    border-radius: 5px;
    color: var(--text-secondary);
}

.music-card-artist i, .music-card-duration i {
    margin-left: 5px;
    color: var(--primary-color);
}

.music-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.music-card-orders {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.music-card-orders i {
    margin-left: 5px;
    color: var(--primary-color);
}

/* Floating Player */
.floating-player {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 900px;
    background: var(--bg-primary);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s ease;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.floating-player.active {
    bottom: 0;
}

.floating-player.expanded {
    bottom: 0;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
}

.player-mini {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

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

.player-title {
    font-weight: bold;
    color: var(--text-primary);
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.player-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.player-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.player-btn.play-pause {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    font-size: 28px;
}

.player-btn.play-pause:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.player-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-tertiary);
    cursor: pointer;
}

.player-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    width: 0;
    transition: width 0.1s linear;
}

.player-expanded {
    padding: 30px;
    display: none;
    text-align: center;
}

.floating-player.expanded .player-expanded {
    display: block;
}

.floating-player.expanded .player-mini {
    display: none;
}

.player-expanded-thumbnail {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    margin: 0 auto 20px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    /* animation: rotate 20s linear infinite; */
}

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

/* Player Action Buttons */
.player-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.player-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.player-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.player-action-btn i {
    font-size: 20px;
}

.player-secondary-actions {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.player-share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.player-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.player-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.player-share-btn i {
    font-size: 16px;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary);
    margin: 40px 0 25px;
    position: relative;
    padding-right: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

/* Sidebar */
.sidebar {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    margin-bottom: 30px;
}

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

.sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

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

.sidebar-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.sidebar-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.sidebar-list a:hover {
    color: var(--primary-color);
    padding-right: 10px;
}

/* Footer */
.modern-footer {
    background: var(--secondary-color);
    color: white;
    margin-top: 60px;
    padding: 40px 0 20px;
}

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

.footer-section h3 {
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-up {
    animation: slideUp 0.6s ease;
}

.slide-down {
    animation: slideDown 0.6s ease;
}

.scale-in {
    animation: scaleIn 0.6s ease;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 9998;
    }

    .nav-menu.active {
        right: 0;
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-slider {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .music-grid {
        /* grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); */
        gap: 15px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    /* Floating Player Mobile */
    .floating-player {
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
    }

    .floating-player.expanded {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .player-mini {
        padding: 10px 15px;
    }

    .player-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .player-expanded {
        padding: 20px;
    }
    
    .player-primary-actions {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 20px 0;
    }
    
    .player-action-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .player-secondary-actions {
        padding: 20px 15px;
        margin-top: 25px;
    }
    
    .player-share-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .player-share-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .modern-header,
    .floating-player,
    .theme-toggle,
    .search-container {
        display: none;
    }
}

/* 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-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Default SVG Music Icon */
.default-music-svg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-music-svg svg {
    width: 60%;
    height: 60%;
    fill: var(--primary-color);
    opacity: 0.5;
}

/* Share Popup Styles */
.share-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.share-popup {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 0;
    max-width: 320px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    animation: scaleIn 0.3s ease-out forwards;
    overflow: hidden;
}

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

.share-popup-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.share-popup-content {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    font-weight: 500;
    text-align: right;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
}

.twitter {
    background: linear-gradient(135deg, #1da1f2, #42a5f5);
    color: white;
}

.whatsapp {
    background: linear-gradient(135deg, #25d366, #4caf50);
    color: white;
}

.copy {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.copy:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Mega Menu Styles */
.mega-menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.mega-menu-toggle:hover {
    color: var(--primary-color);
}


.mega-menu-toggle i.fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.mega-menu-toggle.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.mega-menu-overlay {
    position: absolute;
    top: 128px;
    left: 0;
    width: 100%;
    display: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mega-menu-overlay.visible {
    opacity: 1;
}

.mega-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-10px);
    transition: transform 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
    border-top: 4px solid var(--primary-color);
}

[data-theme="dark"] .mega-menu-container {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.mega-menu-overlay.visible .mega-menu-container {
    transform: translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 10px;
}

.mega-menu-column {
    min-width: 200px;
}

.mega-menu-column-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.mega-menu-column-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-dark);
    transition: width 0.3s ease;
}

.mega-menu-column:hover .mega-menu-column-header::after {
    width: 100%;
}

.main-category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
}

.main-category-link i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.main-category-link:hover {
    color: var(--primary-dark);
}

.main-category-link:hover i {
    transform: scale(1.1) rotate(5deg);
}

.mobile-category-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.mobile-category-toggle i {
    transition: transform 0.3s ease;
}

.mobile-category-toggle.active i {
    transform: rotate(180deg);
}

.more-categories-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.mega-menu-subcategories {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.no-subcategories {
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
    margin: 0;
    padding: 10px 0;
    text-align: center;
}

.subcategory-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.subcategory-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.subcategory-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding-right: 10px;
}

.subcategory-link:hover::before {
    transform: scaleY(1);
}

.subcategory-link i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.subcategory-link:hover i {
    transform: translateX(-3px);
}

.more-link {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-color);
    background: linear-gradient(135deg, transparent 0%, var(--bg-tertiary) 100%);
}

.more-link:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(197, 131, 29, 0.3);
}

.more-link i {
    font-size: 14px;
}

/* Mobile Responsive - Mega Menu */
@media (max-width: 992px) {
    .mega-menu-overlay {
        top: 100px;
        position: fixed;
        height: calc(100vh - 100px);
        background: rgba(0, 0, 0, 0.5);
    }
    
    .mega-menu-container {
        max-width: 100%;
        height: 100%;
        margin: 0;
        padding: 20px;
        border-radius: 0;
        overflow-y: auto;
    }
    
    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 0;
        max-height: none;
        padding: 0;
    }
    
    .mega-menu-column {
        min-width: 100%;
        margin-bottom: 0;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0;
        background: transparent;
    }
    
    .mega-menu-column:hover {
        transform: none;
        box-shadow: none;
    }
    
    .mega-menu-column-header {
        padding: 15px 0;
        margin-bottom: 0;
        border-bottom: none;
        cursor: pointer;
    }
    
    .mega-menu-column-header::after {
        display: none;
    }
    
    .mobile-category-toggle {
        display: block;
    }
    
    .main-category-link {
        font-size: 16px;
        pointer-events: none;
    }
    
    .mega-menu-subcategories {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
    }
    
    .mega-menu-column.active .mega-menu-subcategories {
        max-height: 1000px;
        padding: 10px 0 15px 0;
    }
    
    .subcategory-link {
        padding: 12px 20px;
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .no-subcategories {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    .mega-menu-overlay {
        top: 80px;
        height: calc(100vh - 80px);
    }
    
    .mega-menu-container {
        padding: 15px;
    }
    
    .main-category-link {
        font-size: 15px;
    }
    
    .subcategory-link {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* ==================== BREADCRUMB STYLES ==================== */
.nav-breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb {
    background: var(--bg-primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

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

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: var(--text-secondary);
    padding: 0 5px;
}

.breadcrumb-item:last-child a {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-item.truncuts a {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== HIERARCHICAL CATEGORIES ==================== */
.hierarchical-categories-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.hierarchical-category {
    transition: var(--transition);
}

.category-row {
    position: relative;
    height: 100%;
}

.category-row-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    height: 100%;
}

.category-row-content:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.category-expand-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.category-expand-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.category-expand-btn.collapsed {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.category-expand-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.category-no-expand {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    color: var(--text-primary);
    min-width: 0;
}

.category-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
}

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

.category-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-secondary);
}

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

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

.category-children {
    margin-top: 15px;
    padding-right: 20px;
    border-right: 3px solid var(--border-color);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.hierarchical-category.level-0 > .category-children {
    border-right-color: var(--primary-color);
    grid-template-columns: repeat(2, 1fr);
}

.hierarchical-category.level-1 > .category-children {
    border-right-color: var(--primary-light);
    grid-template-columns: 1fr;
}

/* Level indentation and styling */
.hierarchical-category.level-0 .category-row-content {
    background: var(--bg-primary);
    border-width: 2px;
}

.hierarchical-category.level-1 .category-row-content,
.hierarchical-category.level-2 .category-row-content {
    background: var(--bg-secondary);
}

.hierarchical-category.level-1 .category-name {
    font-size: 15px;
}

.hierarchical-category.level-2 .category-name {
    font-size: 14px;
    font-weight: 500;
}

.hierarchical-category.level-3 .category-name {
    font-size: 13px;
    font-weight: 500;
}

/* Mobile Responsive - Hierarchical Categories */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 10px 15px;
        font-size: 12px;
        gap: 5px;
    }
    
    .breadcrumb-item.truncuts a {
        max-width: 120px;
    }
    
    .hierarchical-categories-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hierarchical-category {
        margin-right: 0 !important;
    }
    
    .category-row-content {
        padding: 15px;
    }
    
    .category-thumb,
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon {
        font-size: 24px;
    }
    
    .category-name {
        font-size: 15px;
    }
    
    .category-meta {
        font-size: 12px;
        gap: 10px;
    }
    
    .category-expand-btn {
        width: 28px;
        height: 28px;
    }
    
    .category-no-expand {
        width: 28px;
        height: 28px;
    }
    
    .category-children {
        padding-right: 15px;
        margin-top: 10px;
        grid-template-columns: 1fr;
    }
    
    .hierarchical-category.level-0 > .category-children {
        grid-template-columns: 1fr;
    }
    
    .hierarchical-category.level-1 .category-name,
    .hierarchical-category.level-2 .category-name,
    .hierarchical-category.level-3 .category-name {
        font-size: 14px;
    }
}

/* ==================== MOBILE MENU OVERLAY ==================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

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

.mobile-menu-container {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-primary);
    padding: 20px;
}

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

.mobile-menu-logo {
    height: 40px;
}

.mobile-menu-close {
    background: var(--accent-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
    background: #c0392b;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list > li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 15px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    background: none;
    border: none;
    text-align: right;
    cursor: pointer;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding-right: 20px;
}

.mobile-menu-link i:first-child {
    font-size: 20px;
    color: var(--primary-color);
    width: 25px;
    text-align: center;
}

.mobile-menu-link span {
    flex: 1;
}

.mobile-menu-dropdown-toggle {
    position: relative;
}

.mobile-menu-arrow {
    margin-right: auto;
    font-size: 14px !important;
    transition: transform 0.3s ease;
    width: auto !important;
}

.mobile-menu-dropdown.active .mobile-menu-arrow {
    transform: rotate(180deg);
}

.mobile-menu-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-secondary);
}

.mobile-menu-dropdown.active .mobile-menu-dropdown-content {
    max-height: 2000px;
}

.mobile-category-item {
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.mobile-category-item:last-child {
    border-bottom: none;
}

.mobile-category-main-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.mobile-category-main-link:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.mobile-category-main-link i {
    font-size: 18px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.mobile-subcategory-toggle {
    /* position: absolute;
    left: 15px;
    top: 50%; */
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
    float: left;
    margin-left: 20px;
    margin-top: -25px;
}

.mobile-subcategory-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.mobile-subcategory-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-category-item.active .mobile-subcategory-toggle i {
    transform: rotate(180deg);
}

.mobile-subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-tertiary);
    width: 100%;
}

.mobile-category-item.active .mobile-subcategories {
    max-height: 1000px;
}

.mobile-subcategory-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 40px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-subcategory-link:hover {
    background: rgba(0, 0, 0, 0.02);
    color: var(--primary-color);
    padding-right: 45px;
}

.mobile-subcategory-link i {
    font-size: 12px;
    color: var(--primary-color);
}

.mobile-view-more {
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(209, 141, 33, 0.1);
    border-top: 1px solid var(--primary-color);
    border-bottom: none;
}

.mobile-view-more:hover {
    background: rgba(209, 141, 33, 0.2);
}

.mobile-menu-whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    color: #25d366;
    font-weight: 600;
}

.mobile-menu-whatsapp i {
    color: #25d366 !important;
}

.mobile-menu-whatsapp:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(76, 175, 80, 0.2) 100%);
}

/* Hide desktop menu on mobile */
@media (max-width: 992px) {
    .desktop-menu {
        display: none !important;
    }
}

/* Desktop - hide mobile menu overlay trigger */
@media (min-width: 993px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* ==================== VIDEO CARDS - HOME PAGE ==================== */
.videos-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.video-card-home {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.video-card-home:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail-wrapper-home {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: var(--bg-secondary);
}

.video-thumbnail-home {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.video-play-overlay-home {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: var(--transition);
}

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

.video-play-overlay-home i {
    font-size: 60px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-badge-home {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
}

.video-badge-home.featured-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.video-info-home {
    padding: 15px;
}

.video-title-home {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.video-description-home {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-date-home {
    display: inline-block;
    font-size: 12px;
    color: var(--text-secondary);
}

.video-date-home i {
    color: var(--primary-color);
    margin-left: 5px;
}

/* Responsive - Videos Home */
@media (max-width: 992px) {
    .videos-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .videos-grid-home {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .video-play-overlay-home i {
        font-size: 50px;
    }
}

/* ==================== VIDEO MODAL - GLOBAL ==================== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: block;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.video-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.video-modal-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}

.video-modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid var(--border-color);
}

.video-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-primary);
}

.video-modal-body {
    padding: 0;
}

.video-player-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        margin: 20px auto;
    }
}
