    /* --- BRANDING & VARIABLES --- */
    :root {
        --vid-primary: #2563EB; /* AiPSoft Blue */
        --vid-primary-dark: #1D4ED8;
        --vid-secondary: #0F172A; /* Deep Navy */
        --vid-bg-light: #F8FAFC; 
        --vid-bg-gray: #F1F5F9;
        --vid-text-main: #1E293B;
        --vid-text-muted: #64748b;
        --vid-border: #E2E8F0;
        --vid-accent: #EF4444; /* Red for Video/Play elements */
    }

    .vid-wrapper {
        font-family: 'Lexend', sans-serif;
        color: var(--vid-text-main);
        background: #ffffff;
        line-height: 1.6;
    }

    .vid-container { 
        max-width: 1200px; 
        margin: 0 auto; 
        padding: 0 24px; 
        position: relative;
        z-index: 2;
    }

    /* --- TYPOGRAPHY & UTILITIES --- */
    .vid-title {
        font-size: 3.5rem;
        font-weight: 800;
        color: var(--vid-secondary);
        margin-bottom: 20px;
        letter-spacing: -0.02em;
        line-height: 1.15;
    }
    
    .vid-subtitle {
        font-size: 1.2rem;
        color: var(--vid-text-muted);
        max-width: 750px;
        margin: 0 auto 30px;
        line-height: 1.6;
    }

    .vid-section-title {
        font-size: 2rem;
        font-weight: 800;
        color: var(--vid-secondary);
        margin-bottom: 10px;
        letter-spacing: -0.02em;
    }

    .vid-section-desc {
        color: var(--vid-text-muted);
        margin-bottom: 30px;
        font-size: 1.05rem;
    }

    .vid-badge {
        display: inline-flex;
        align-items: center;
        padding: 6px 16px;
        background: #fee2e2;
        color: var(--vid-accent);
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 20px;
        border: 1px solid rgba(239, 68, 68, 0.2);
    }

    /* --- HERO SECTION --- */
    .vid-hero {
        padding: 140px 0 80px;
        text-align: center;
        background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 100%);
        border-bottom: 1px solid var(--vid-border);
        position: relative;
    }

    .vid-hero-bg {
        position: absolute;
        inset: 0;
        background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
        background-size: 30px 30px;
        opacity: 0.3;
        z-index: 0;
        mask-image: radial-gradient(circle at center top, black, transparent 80%);
        -webkit-mask-image: radial-gradient(circle at center top, black, transparent 80%);
    }

    /* --- FILTER BUTTONS --- */
    .vid-filters {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin: 40px 0 60px;
    }

    .vid-filter-btn {
        padding: 10px 24px;
        border-radius: 50px;
        background: white;
        border: 1px solid var(--vid-border);
        color: var(--vid-text-muted);
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        transition: 0.3s;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    }

    .vid-filter-btn:hover {
        border-color: var(--vid-primary);
        color: var(--vid-primary);
        transform: translateY(-2px);
    }

    .vid-filter-btn.active {
        background: var(--vid-primary);
        color: white;
        border-color: var(--vid-primary);
        box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
    }

    /* --- VIDEO GRIDS --- */
    .vid-category-section {
        padding: 60px 0;
        border-bottom: 1px solid var(--vid-border);
    }
    .vid-category-section:last-child {
        border-bottom: none;
    }

    /* Landscape Grid (Commercials, Tutorials, Misc) */
    .vid-grid-landscape {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }

    /* Portrait Grid (Reels/Shorts) */
    .vid-grid-portrait {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 30px;
    }

    /* --- VIDEO CARD STYLES --- */
    .vid-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid var(--vid-border);
        box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
        transition: 0.3s;
        cursor: pointer;
        display: flex;
        flex-direction: column;
    }

    .vid-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
        border-color: var(--vid-primary);
    }

    .vid-thumbnail {
        position: relative;
        width: 100%;
        overflow: hidden;
        background: #1e293b;
    }
    
    .landscape-thumb { aspect-ratio: 16 / 9; }
    .portrait-thumb { aspect-ratio: 9 / 16; }

    .vid-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
        opacity: 0.85;
    }

    .vid-card:hover .vid-thumbnail img {
        transform: scale(1.05);
        opacity: 1;
    }

    /* Play Button Overlay */
    .vid-play-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(15, 23, 42, 0.2);
        transition: 0.3s;
    }

    .vid-card:hover .vid-play-overlay {
        background: rgba(15, 23, 42, 0.4);
    }

    .vid-play-btn {
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.9);
        color: var(--vid-accent);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        padding-left: 5px; /* Visual center adjustment for play icon */
        transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .portrait-thumb .vid-play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .vid-card:hover .vid-play-btn {
        transform: scale(1.15);
        background: white;
    }

    /* Video Info/Text */
    .vid-info {
        padding: 20px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .vid-info h3 {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--vid-secondary);
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .portrait-thumb ~ .vid-info h3 {
        font-size: 1.05rem;
    }

    .vid-info p {
        font-size: 0.9rem;
        color: var(--vid-text-muted);
        margin: 0;
        line-height: 1.5;
        flex-grow: 1;
    }

    .vid-duration {
        display: inline-block;
        background: var(--vid-bg-gray);
        color: var(--vid-text-main);
        font-size: 0.75rem;
        font-weight: 600;
        padding: 4px 8px;
        border-radius: 6px;
        margin-top: 15px;
        align-self: flex-start;
    }

    /* --- SOCIAL MEDIA MORE VIDEOS SECTION --- */
    .vid-social-more {
        margin-top: 50px;
        padding-top: 35px;
        border-top: 1px dashed var(--vid-border);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .vid-social-more span {
        font-weight: 600;
        color: var(--vid-text-muted);
        font-size: 1.05rem;
    }

    .vid-social-links {
        display: flex;
        gap: 15px;
    }

    .vid-social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--vid-bg-light);
        color: var(--vid-primary);
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid var(--vid-border);
        font-size: 1.1rem;
    }

    .vid-social-link:hover {
        background: var(--vid-primary);
        color: white;
        transform: translateY(-4px);
        border-color: var(--vid-primary);
        box-shadow: 0 10px 15px -5px rgba(0,0,0,0.1);
    }
    
    /* Brand specific hover colors */
    .vid-social-link.yt:hover { background: #FF0000; border-color: #FF0000; box-shadow: 0 10px 15px -5px rgba(255, 0, 0, 0.3); }
    .vid-social-link.ig:hover { background: #E1306C; border-color: #E1306C; box-shadow: 0 10px 15px -5px rgba(225, 48, 108, 0.3); }
    .vid-social-link.fb:hover { background: #1877F2; border-color: #1877F2; box-shadow: 0 10px 15px -5px rgba(24, 119, 242, 0.3); }

    /* --- VIDEO MODAL (POPUP) --- */
    .vid-modal-overlay {
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: rgba(15, 23, 42, 0.9);
        backdrop-filter: blur(8px);
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .vid-modal-overlay.active {
        display: flex;
    }

    .vid-modal-content {
        width: 100%;
        max-width: 1000px;
        background: black;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    }

    .vid-modal-content.portrait-mode {
        max-width: 400px; /* Thinner modal for reels */
    }

    /* 16:9 Aspect Ratio Container for iframes */
    .vid-iframe-container {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
        height: 0;
    }

    .portrait-mode .vid-iframe-container {
        padding-bottom: 177.77%; /* 9:16 Aspect Ratio */
    }

    .vid-iframe-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

    .vid-modal-close {
        position: absolute;
        top: -40px;
        right: 0;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        transition: 0.2s;
    }
    .vid-modal-close:hover {
        color: var(--vid-accent);
        transform: scale(1.1);
    }

    /* --- RESPONSIVE --- */
    @media (max-width: 991px) {
        .vid-title { font-size: 2.75rem; }
        .vid-grid-landscape { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
        .vid-grid-portrait { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    }

    @media (max-width: 640px) {
        .vid-hero { padding: 100px 0 60px; }
        .vid-title { font-size: 2.25rem; }
        .vid-grid-landscape, .vid-grid-portrait { grid-template-columns: 1fr; }
        .vid-modal-close { top: 10px; right: 10px; z-index: 10; background: rgba(0,0,0,0.5); width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;}
        .vid-social-more { flex-direction: column; text-align: center; gap: 15px; }
    }

    /* Breadcrumbs (Uses rs- class to match PHP, but rm- variables for theme) */
    .rs-breadcrumbs {
        display: flex;
        align-items: center;
        justify-content: center; /* Centered to match the restaurant hero */
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.95rem;
        font-weight: 500;
        margin-bottom: 25px;
        color: var(--rm-text-muted); 
        flex-direction: <?php echo ($lang == 'ar') ? 'row-reverse' : 'row'; ?>; /* RTL Support */
    }

    .rs-breadcrumbs a {
        color: #2563EB; /* Changed to standard AiPSoft bright blue */
        text-decoration: none;
        transition: color 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-direction: <?php echo ($lang == 'ar') ? 'row-reverse' : 'row'; ?>; /* RTL Support */
    }

    .rs-breadcrumbs a:hover {
        color: var(--rm-food-red); /* Restaurant red on hover */
        text-decoration: underline;
    }

    .rs-breadcrumbs .rs-separator {
        color: #94a3b8;
        font-size: 0.8rem;
        transform: <?php echo ($lang == 'ar') ? 'rotate(180deg)' : 'none'; ?>; /* Flip arrows for Arabic */
    }

    .rs-breadcrumbs .rs-current {
        color: var(--rm-text-main); 
    }