        /* --- CSS VARIABLES (Updated Palette) --- */
        :root {
            --primary: #f8a000; /* The Orange from screenshot */
            --header-bg: #000000;
            --header-color: #000000;
            --nav-bg: #000000;
            --active-blue: #00609c; /* The blue active state in bottom bar */
            
            --body-bg: #f4f4f4; /* Light Gray background */
            --card-bg: #ffffff;
            --container-color: #ffffff;
            
            --text-dark: #222222;
            --text-light: #ffffff;
            --text-color: #222222;
            --text-muted: #666666;
            --link-color: #00609c;
            
            --border-color: #ddd;
            --nav-height: 50px;
            --bottom-nav-height: 60px;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        
        body {
            font-family: Tahoma, "Segoe UI", Geneva, sans-serif; /* Standard Arabic-friendly fonts */
            background-color: var(--body-bg);
            color: var(--text-dark);
            line-height: 1.5;
            padding-bottom: var(--bottom-nav-height);
        }

        a { text-decoration: none; color: inherit; transition: 0.2s; }
        ul { list-style: none; }
        img { max-width: 100%; height: auto; display: block; object-fit: cover; }

        /* --- LAYOUT UTILITIES --- */
        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 10px;
        }

        /* --- HEADER (Black) --- */
        .main-header {
            background-color: var(--header-bg);
            color: var(--text-light);
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .header-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: var(--nav-height);
        }

        .logo {
            font-size: 1.1rem;
            font-weight: bold;
            color: var(--text-light);
            display: flex;
            align-items: center;
            gap: 5px;
        }
        /* Mobile Hamburger */
        .hamburger {
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
        }
        .hamburger svg { width: 28px; height: 28px; fill: var(--text-light); }

        /* --- DESKTOP NAVIGATION (Black Bar) --- */
        .desktop-nav-bar {
            background-color: #1a1a1a;
            border-top: 1px solid #333;
            display: none; /* Hidden on mobile */
        }
        .desktop-nav-bar ul {
            display: flex;
            justify-content: center;
            gap: 1px;
        }
        .desktop-nav-bar a {
            display: block;
            padding: 10px 15px;
            color: #ddd;
            font-size: 0.9rem;
            font-weight: bold;
        }
        .desktop-nav-bar a:hover {
            background-color: var(--primary);
            color: #000;
        }

        /* --- MOBILE MENU --- */
        .mobile-menu {
            background-color: #111;
            color: #fff;
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.3s ease-out;
        }
        .mobile-menu.active { max-height: 500px; }
        .mobile-menu li { border-bottom: 1px solid #333; }
        .mobile-menu a { display: block; padding: 12px 15px; font-size: 0.95rem; }

        /* --- MAIN LAYOUT GRID --- */
        .content-wrapper {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-top: 20px;
        }

        /* --- SECTION HEADERS (Orange Bar) --- */
        .section-header {
            background-color: var(--primary); /* Orange */
            color: #000;
            padding: 8px 15px;
            border-radius: 6px 6px 0 0;
            font-weight: bold;
            text-align: center;
            margin-bottom: 0; /* Connected to content below */
            font-size: 1rem;
            border-bottom: 3px solid #cc8400;
        }

        /* --- SIDEBAR (Schedule) --- */
        .schedule-container {
            background-color: #fff;
            border: 1px solid var(--border-color);
            border-top: none; /* Because header has border */
        }
        
        .sub-header {
            background-color: #000;
            color: #fff;
            padding: 5px 10px;
            font-size: 0.85rem;
            text-align: center;
        }

        .schedule-item {
            display: flex;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid #eee;
            gap: 10px;
            background: #fff;
        }
        .schedule-item:last-child { border-bottom: none; }
        
        .s-logo {
            width: 50px;
            height: 30px;
            border: 1px solid #eee;
            padding: 2px;
        }
        .s-info { flex: 1; text-align: center; }
        .s-title { font-size: 0.8rem; font-weight: bold; color: #d32f2f; margin-bottom: 2px; }
        .s-desc { font-size: 0.75rem; color: #333; }
        .s-time-box {
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            padding: 4px;
            border-radius: 3px;
            text-align: center;
            min-width: 60px;
        }
        .s-time { font-size: 0.75rem; font-weight: bold; font-family: sans-serif; display: block; direction: ltr;}
        .s-gmt { font-size: 0.6rem; color: #666; display: block; }

        /* --- CHANNELS GRID (6 Columns) --- */
        .channels-container {
            margin-bottom: 30px;
        }
        .channels-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* 3 cols on mobile (smaller icons) */
            gap: 10px;
            background: #fff;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-top: none;
        }

        .channel-card {
            background: #fff;
            border: 1px solid #eee;
            transition: box-shadow 0.2s;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .channel-card:hover { 
            box-shadow: 0 4px 8px rgba(0,0,0,0.15); 
            border-color: var(--primary);
        }
        .c-thumb {
            width: 100%;
            aspect-ratio: 16/9;
            border-bottom: 1px solid #eee;
        }
        .c-title {
            padding: 8px 4px;
            font-size: 0.8rem;
            text-align: center;
            color: #00609c;
            font-weight: bold;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
        }

        /* --- FOOTER --- */
        footer {
            background-color: #e0e0e0; /* Light gray footer based on style */
            border-top: 4px solid var(--primary);
            padding: 20px 0;
            text-align: center;
            font-size: 0.85rem;
            color: #333;
            margin-top: 20px;
        }
        .footer-links a { margin: 0 10px; color: #000; font-weight: bold;}
        .social-links { margin-top: 15px; display: flex; justify-content: center; gap: 15px; }
        .social-links svg { width: 20px; height: 20px; fill: #444; }

        /* --- BOTTOM FIXED NAV (Mobile - Black) --- */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: var(--nav-bg);
            border-top: 3px solid var(--primary);
            display: flex;
            justify-content: space-between;
            height: var(--bottom-nav-height);
            z-index: 1001;
        }
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #aaa;
            font-size: 0.7rem;
            width: 25%;
            height: 100%;
            position: relative;
        }
        .nav-item.active { 
            background-color: var(--active-blue); 
            color: #fff;
        }
        .nav-item svg { width: 22px; height: 22px; margin-bottom: 3px; fill: currentColor; }

        /* --- CURRENT LAYOUT STYLES --- */
        .main-container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Simple Header */
        header {
            background-color: var(--header-bg);
            color: var(--text-light);
            padding: 10px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .logo-container a {
            display: block;
        }

        .logo-text {
            color: var(--primary);
            font-size: 1.8rem;
            font-weight: bold;
            text-decoration: none;
            font-family: 'Arial', sans-serif;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .header-icons {
            cursor: pointer;
        }

        /* Hamburger Menu */
        .menu-toggle {
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
            width: 35px;
            height: 30px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            z-index: 1001;
        }

        .menu-toggle span {
            display: block;
            width: 100%;
            height: 3px;
            background-color: var(--text-light);
            transition: all 0.3s ease;
            border-radius: 2px;
        }

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

        /* Main Content */
        main {
            flex: 1;
            padding: 10px;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

        /* Channels Container */
#channels-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 10px 0;
}

.channel-block {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 5px;
    /* Ensure the background is dark enough so the glass shine pops */
    background-color: #000; 
}

/* --- THE GLASS EFFECT START --- */
.channel-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px; /* Matches parent border-radius */
    pointer-events: none; /* Allows clicks to pass through to the link */
    z-index: 2; /* Sits above the image */
    
    /* 1. The Shine: Diagonal gradient from white to transparent */
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 40%, 
        rgba(255, 255, 255, 0) 50%, 
        rgba(255, 255, 255, 0) 100%
    );

    /* 2. The Glass Rim: Inner white glow and subtle border */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), /* Sharp rim */
                inset 0 0 10px rgba(255, 255, 255, 0.1);  /* Soft inner glow */
}
/* --- THE GLASS EFFECT END --- */

.channel-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Darker shadow for depth */
}

/* Optional: Make the glass shine slightly brighter on hover */
.channel-block:hover::after {
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.15) 40%, 
        rgba(255, 255, 255, 0) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
}

.channel-block a {
    display: block;
    text-decoration: none;
    height: 100%; /* Ensure link covers full height */
}

.channel-block img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* Optional: slightly dim image so glass stands out */
    filter: brightness(0.95); 
}

.country-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 8px 5px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 3; /* Places text ON TOP of the glass layer for readability */
    backdrop-filter: blur(2px); /* Optional: Adds a frosty look to the text bg */
}

        /* Side Menu Overlay */
        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1050;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Side Menu */
        .side-menu {
            position: fixed;
            top: 0;
            right: -350px; /* Start off-screen (right to left for RTL) */
            width: 320px;
            max-width: 85%;
            height: 100%;
            background-color: #fff;
            box-shadow: -2px 0 10px rgba(0,0,0,0.3);
            z-index: 1100;
            overflow-y: auto;
            transition: right 0.3s ease;
        }

        .side-menu.open {
            right: 0; /* Slide in from right */
        }

        .side-menu-header {
            background-color: var(--header-bg);
            color: var(--text-light);
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 3px solid var(--primary);
        }

        .side-menu-header h3 {
            margin: 0;
            font-size: 1.3rem;
        }

        .close-menu {
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 2rem;
            cursor: pointer;
            line-height: 1;
            padding: 0;
            width: 30px;
            height: 30px;
        }

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

        .side-menu-content {
            padding: 20px 0;
        }

        .menu-section {
            margin-bottom: 25px;
            padding: 0 20px;
        }

        .menu-section h4 {
            color: var(--text-dark);
            font-size: 1.1rem;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--primary);
        }

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

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

        .menu-section ul li a {
            display: block;
            padding: 10px 12px;
            color: var(--text-dark);
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.2s, color 0.2s;
            font-size: 0.95rem;
        }

        .menu-section ul li a:hover {
            background-color: var(--primary);
            color: #000;
        }

        .countries-list {
            max-height: 300px;
            overflow-y: auto;
        }

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

        .page-btn {
            padding: 8px 14px;
            background-color: var(--container-color);
            color: var(--text-dark);
            text-decoration: none;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            font-size: 0.9rem;
            transition: all 0.2s;
            min-width: 40px;
            text-align: center;
        }

        .page-btn:hover {
            background-color: var(--primary);
            color: #000;
            border-color: var(--primary);
        }

        .page-btn.active {
            background-color: var(--primary);
            color: #000;
            font-weight: bold;
            border-color: var(--primary);
        }

        .page-dots {
            color: var(--text-muted);
            padding: 0 5px;
        }

        /* Info Section */
        .info-section {
            background-color: var(--container-color);
            padding: 20px;
            margin: 20px 0;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            line-height: 1.8;
        }

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

        .info-section h2 {
            color: var(--text-dark);
            margin-bottom: 10px;
            font-size: 1.3rem;
        }

        .info-section p {
            margin-bottom: 10px;
            color: var(--text-color);
        }

        /* Utility Classes */
        .aflam4you {
            text-decoration: none;
            color: inherit;
            cursor: default;
        }

        /* Footer Enhancements */
        .footer-copyright {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #ccc;
        }

        .footer-copyright a {
            color: var(--link-color);
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer-copyright a:hover {
            color: var(--primary);
            text-decoration: underline;
        }

        /* --- DESKTOP MEDIA QUERY (> 900px) --- */
        @media (min-width: 900px) {
            body { padding-bottom: 0; }
            .hamburger, .bottom-nav { display: none; }
            .desktop-nav-bar { display: block; }

            /* RTL: Grid col 1 is Right side, Grid col 2 is Left side */
            .content-wrapper {
                grid-template-columns: 320px 1fr; /* Sidebar Fixed | Content Fluid */
                align-items: start;
            }

            /* Make channels display 6 in a row */
            .channels-grid {
                grid-template-columns: repeat(6, 1fr); 
            }

            /* Current layout - more columns on desktop */
            #channels-container {
                grid-template-columns: repeat(6, 1fr);
                gap: 20px;
            }

            .logo-text {
                font-size: 2.2rem;
            }

            main {
                padding: 20px;
            }

            /* Hide menu toggle on desktop if you add desktop nav later */
            /* .menu-toggle { display: none; } */
        }

        /* --- TABLET MEDIA QUERY (600px - 900px) --- */
        @media (min-width: 600px) and (max-width: 899px) {
            #channels-container {
                grid-template-columns: repeat(4, 1fr);
                gap: 18px;
            }
        }