:root {
            --primary: #FF0000;
            --primary-dark: #CC0000;
            --secondary: #282828;
            --success: #28a745;
            --warning: #ffc107;
            --danger: #dc3545;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --border: #dee2e6;
            --radius: 0px;
			
            --shadow: 0 0px 0px rgba(0,0,0,0.0);
            --youtube-red: #FF0000;
            --youtube-dark: #282828;
        }
        
        * {
            -webkit-tap-highlight-color: transparent;
        }
        
        body, h1, h2, h3, p, a, span, li, button, input {
            font-family: 'Noto Sans Arabic', Arial, sans-serif !important;
        }

        body {
            overflow-x: hidden;
            position: relative;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 15px;
            width: 100%;
        }
        
        .btno { 
            padding: 12px 20px; 
            background: var(--youtube-red); 
            color: white; 
            border: none; 
            border-radius: var(--radius);
            cursor: pointer; 
            font-weight: 600; 
            display: inline-flex; 
            align-items: center; 
            justify-content: center;
            gap: 8px; 
            font-size: 0.95rem;
            white-space: nowrap;
            text-decoration: none;
            transition: all 0.3s ease;
            min-height: 44px;
            box-sizing: border-box;
        }
        
        .btno:hover { 
            background: var(--primary-dark); 
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(255,0,0,0.2);
            text-decoration: none;
        }
        
        .btno-secondary { 
            background: var(--secondary); 
        }
        
        .btno-export { 
            background: var(--success); 
        }
        
        .btno-save { 
            background: var(--warning); 
            color: #212529;
        }
        
        .header {
            padding: 25px 20px;
            text-align: center;
            background: linear-gradient(135deg, #FF0000, #CC0000);
            color: white;
            margin-bottom: 20px;
            width: 100%;
        }
        
.header h1 {
    font-size: clamp(0.5rem, 2vw, 1rem);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
        
        .header p {
            font-size: clamp(1rem, 3vw, 1.2rem);
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.6;
            padding: 0 10px;
        }
        
        .nav-bar { 
            
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 20px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            width: 100%;
        }
        
        .nav-section {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .date-input { 
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 1rem;
            min-width: 140px;
            max-width: 100%;
            box-sizing: border-box;
        }
        
        .stats-grid { 
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
            width: 100%;
        }
        
        .stat-card { 
            
            padding: 25px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            border-left: 5px solid var(--youtube-red);
            transition: transform 0.3s ease;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
        }
        
        .main-grid { 
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
            margin-bottom: 40px;
            width: 100%;
        }
        
        .videos-table { 
            
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            width: 100%;
        }
        
        .table-controls {          
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            padding: 20px;
        
        }
        
        .table-controls select, 
        .table-controls input { 
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.95rem;
            min-width: 140px;
            max-width: 100%;
        }
        
        .table-header { 
            padding: 20px;
        
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            border-bottom: 2px solid var(--youtube-red);
        }
        
        table { 
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            table-layout: fixed;
        }
        
        @media (max-width: 768px) {
            table {
                table-layout: auto;
            }
        }
        
        th { 
            padding: 15px 12px;
            background: var(--secondary);
            color: white;
            text-align: right;
            font-weight: 600;
            border-bottom: 2px solid var(--youtube-red);
            font-size: 0.9rem;
        }
        
        td { 
            padding: 12px 10px;
            vertical-align: middle;
            word-wrap: break-word;
        }
        
        tbody tr:hover { 
        
        }
        
        .video-title a { 
        
            text-decoration: none;
            font-weight: 600;
            line-height: 1.4;
            display: block;
        }
        
        .video-title a:hover { 
            color: var(--youtube-red);
        }
        
        .category-badge { 
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            display: inline-block;
            white-space: nowrap;
        }
        
        .category-music { 
            background: rgba(220,53,69,0.1);
            color: #dc3545;
        }
        
        .category-entertainment { 
            background: rgba(255,193,7,0.1);
            color: #ffc107;
        }
        
        .category-gaming { 
            background: rgba(0,123,255,0.1);
            color: #007bff;
        }
        
        .category-news { 
            background: rgba(40,167,69,0.1);
            color: #28a745;
        }
        
        .category-education { 
            background: rgba(111,66,193,0.1);
            color: #6f42c1;
        }
        
        .category-sports { 
            background: rgba(253,126,20,0.1);
            color: #fd7e14;
        }
        
        .trend-indicator { 
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-weight: 600;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            white-space: nowrap;
        }
        
        .trend-up { 
            background: rgba(40,167,69,0.1);
            color: #28a745;
        }
        
        .trend-down { 
            background: rgba(220,53,69,0.1);
            color: #dc3545;
        }
        
        .trend-stable { 
            background: rgba(108,117,125,0.1);
            color: #6c757d;
        }
        
        .view-count { 
            font-weight: 700;
            color: var(--youtube-red);
            font-size: 1rem;
        }
        
        .video-thumbnail { 
            width: 100px;
            height: 60px;
            border-radius: 8px;
            object-fit: cover;
            border: 1px solid var(--border);
            transition: transform 0.3s ease;
        }
        
        .video-thumbnail:hover {
            transform: scale(1.05);
        }
        
        .channel-info {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            color: var(--gray);
            flex-wrap: wrap;
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            padding: 20px;
        
            flex-wrap: wrap;
        }
        
        .pagination button { 
            padding: 8px 15px;
            
            border: 1px solid var(--border);
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            min-width: 40px;
            min-height: 40px;
        }
        
        .pagination button:hover { 
            border-color: var(--youtube-red);
            color: var(--youtube-red);
        }
        
        .pagination button.active { 
            background: var(--youtube-red);
            color: white;
            border-color: var(--youtube-red);
        }
        
        .pagination button:disabled { 
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .charts-section {
            
            border-radius: var(--radius);
            padding: 25px;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
            width: 100%;
        }
        
        .chart-container { 
            height: 300px;
            margin-top: 20px;
            position: relative;
            width: 100%;
        }
        
        h2 {
            font-weight: 700;
            font-size: clamp(1.3rem, 3vw, 2rem);
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .categories-section { 
            
            border-radius: var(--radius);
            padding: 25px;
            box-shadow: var(--shadow);
            width: 100%;
        }
        
        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }
        
        .category-item { 
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
        
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .category-item:hover { 
            
            border-color: var(--youtube-red);
            transform: translateY(-5px);
            box-shadow: var(--shadow);
        }
        
        .category-icon { 
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.4rem;
            flex-shrink: 0;
        }
        
        .empty-state { 
            text-align: center;
            padding: 60px 20px;
        
            border-radius: var(--radius);
            border: 2px dashed var(--border);
            width: 100%;
        }
        
        .empty-state i { 
            font-size: 4rem;
            margin-bottom: 20px;
            color: var(--gray);
        }
        
        .auto-refresh { 
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .auto-refresh select { 
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.9rem;
            min-width: 120px;
        }
        
        .refresh-btno { 
            padding: 10px 20px;
            background: var(--success);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            min-height: 44px;
        }
        
        .refresh-btno:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(40,167,69,0.2);
        }
        
        .refresh-btno.off { 
            background: var(--danger);
        }
        
        .video-detail-card { 
            
            padding: 25px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            width: 100%;
        }
        
        .video-player-container {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            border-radius: var(--radius);
            margin-bottom: 25px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            width: 100%;
        }
        
        .video-player-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
            border-radius: var(--radius);
        }
        
        .video-thumbnail-large {
            width: 100%;
            height: auto;
            border-radius: var(--radius);
            margin-bottom: 20px;
        }
        
        .no-thumbnail { 
        
            height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: var(--gray);
            border-radius: var(--radius);
        }
        
        .video-detail-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
            margin-bottom: 40px;
        }
        
        @media (min-width: 992px) {
            .video-detail-layout {
                grid-template-columns: 1fr 1fr;
            }
        }
        
        .video-history-section {
            
            padding: 25px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            width: 100%;
        }
        
        .video-info-section {
            
            padding: 25px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            width: 100%;
        }
        
        .video-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }
        
        .info-card {
            padding: 15px;
            text-align: center;
            transition: transform 0.3s ease;
        
            border-radius: var(--radius);
        }
        
        .info-card:hover {
            transform: translateY(-5px);
            
            box-shadow: var(--shadow);
        }
        
        .info-label {
            font-size: 0.85rem;
            color: var(--gray);
            margin-bottom: 8px;
            display: block;
        }
        
        .info-value {
            font-size: 1.2rem;
            font-weight: 700;
        
        }
        
        .breadcrumb {
            margin: 0 0 20px 0;
            font-size: 0.95rem;
            padding: 15px 0;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .breadcrumb a {
            text-decoration: none;
            font-weight: 600;
        }
        
        .breadcrumb a:hover {
            text-decoration: underline;
        }
        
        .overview-grid { 
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
            width: 100%;
        }
        
        .overview-card { 
            padding: 25px;
            color: white;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            border-radius: var(--radius);
            min-height: 180px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
                
        .overview-card h3 { 
            font-size: 1.1rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            z-index: 2;
            position: relative;
        }
        
        .overview-card .stat {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 10px;
            z-index: 2;
            position: relative;
            line-height: 1.2;
        }
        
        .overview-card .label {
            font-size: 1rem;
            opacity: 0.9;
            z-index: 2;
            position: relative;
            line-height: 1.4;
        }
        
        .card-daily { 
            background: linear-gradient(135deg, #FF0000, #CC0000);
        }
        
        .card-weekly { 
            background: linear-gradient(135deg, #28a745, #1e7e34);
        }
        
        .card-monthly { 
            background: linear-gradient(135deg, #ffc107, #e0a800);
        }
        
        .card-top { 
            background: linear-gradient(135deg, #dc3545, #c82333);
        }
        
        .api-description {
            
            padding: 25px;
            border-radius: var(--radius);
            margin-top: 30px;
            border-left: 5px solid var(--youtube-red);
            max-height: 400px;
            overflow-y: auto;
            line-height: 1.8;
            width: 100%;
        }
        
        .api-description-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border);
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .api-description h3 {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 0;
            font-size: 1.3rem;
        }
        
        .api-status {
            font-size: 0.9rem;
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: 600;
        }
        
        .status-success { 
            background: rgba(40,167,69,0.1);
            color: #28a745;
        }
        
        .status-warning { 
            background: rgba(255,193,7,0.1);
            color: #ffc107;
        }
        
        .status-error { 
            background: rgba(220,53,69,0.1);
            color: #dc3545;
        }
        
        .mobile-only {
            display: none;
        }
        
        .desktop-only {
            display: block;
        }
        
        @media (max-width: 768px) {
            .mobile-only {
                display: block !important;
            }
            
            .desktop-only {
                display: none !important;
            }
            
            .container {
                padding: 0 0px;
            }
            
            .header {
                padding: 0px 0px;
                border-radius: 0;
                margin-bottom: 15px;
            }
            
            .header h1 {
                font-size: 1.5rem;
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }
            
            .nav-bar {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
                padding: 0px;
                border-radius: 0;
                margin: 0 0 15px 0;
            }
			
			
			.mobile-video-item {
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    border: 1px solid var(--border);
}
			
	.video-info-section {
            
            padding: 0px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            width: 100%;
        }
		.charts-section {
    border-radius: var(--radius);
    padding: 1px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    width: 100%;
}
            
            .nav-section {
                width: 100%;
                justify-content: center;
                flex-direction: column;
                gap: 8px;
            }
            
            .date-input,
            .country-selector,
            .btno {
                width: 100%;
                max-width: 100%;
            }
            
            .main-grid {
                gap: 20px;
            }
            
            .table-controls {
                flex-direction: column;
                gap: 12px;
                padding: 0px;
            }
            
            .table-controls > div {
                width: 100%;
            }
            
            .table-controls select,
            .table-controls input {
                width: 100%;
                min-width: unset;
                font-size: 16px; /* لمنع التكبير في iOS */
            }
            
            .table-header {
                flex-direction: column;
                gap: 12px;
                text-align: center;
                padding: 15px;
            }
            
            .table-header h2 {
                font-size: 1.2rem;
                text-align: center;
            }
            
            .categories-grid {
                grid-template-columns: 1fr;
            }
            
            .chart-container {
                height: 250px;
            }
            
            .video-detail-layout {
                gap: 20px;
            }
            
            .video-info-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .overview-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .pagination {
                padding: 15px;
                gap: 5px;
            }
            
            .pagination button {
                padding: 6px 12px;
                min-width: 35px;
                min-height: 35px;
                font-size: 0.85rem;
            }
            
            th, td {
                padding: 10px 8px;
                font-size: 0.85rem;
            }
            
            .video-thumbnail {
                width: 80px;
                height: 45px;
            }
            
            .chart-tabs {
                width: 100%;
                overflow-x: auto;
                flex-wrap: nowrap;
                padding: 5px;
                -webkit-overflow-scrolling: touch;
            }
            
            .chart-tab {
                flex: 0 0 auto;
                padding: 10px 15px;
                font-size: 0.85rem;
            }
        }
        
        @media (max-width: 480px) {
            .header h1 {
                font-size: 1.3rem;
            }
            
            .header p {
                font-size: 0.95rem;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
            
            .video-info-grid {
                grid-template-columns: 1fr;
            }
            
            .overview-card {
                padding: 20px;
            }
            
            .overview-card .stat {
                font-size: 2rem;
            }
            
            .btno {
                padding: 12px 15px;
                font-size: 0.9rem;
            }
        }
        
        .mobile-filters {
            display: none;
            
            padding: 20px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            margin-bottom: 20px;
            width: 100%;
        }
        
        @media (max-width: 768px) {
            .mobile-filters {
                display: block;
            }
        }
        
        .mobile-filters > div {
            margin-bottom: 15px;
        }
        
        .mobile-filters label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
        
            font-size: 0.95rem;
        }
        
        .mobile-filters select,
        .mobile-filters input {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 1rem;
            
            -webkit-appearance: none;
        }
        
        .country-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            color: white;
            text-decoration: none;
            white-space: nowrap;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .country-flag {
            font-size: 1.1rem;
            flex-shrink: 0;
        }
        
        .country-selector {
            padding: 12px 15px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 1rem;
            min-width: 200px;
            max-width: 100%;
            
            -webkit-appearance: none;
        }
        
        .country-selector option {
            font-size: 1rem;
            padding: 10px;
        }
        
        .country-color-eg { background: #000000 !important; color: white; }
        .country-color-sa { background: #0b6b3a !important; color: white; }
        .country-color-ae { background: #1c1c1c !important; color: white; }
        .country-color-qa { background: #7b1e3a !important; color: white; }
        .country-color-kw { background: #00796b !important; color: white; }
        .country-color-bh { background: #b71c1c !important; color: white; }
        .country-color-om { background: #c62828 !important; color: white; }
        .country-color-jo { background: #2e7d32 !important; color: white; }
        .country-color-lb { background: #388e3c !important; color: white; }
        .country-color-sy { background: #212121 !important; color: white; }
        .country-color-iq { background: #1b5e20 !important; color: white; }
        .country-color-ps { background: #c62828 !important; color: white; }
        .country-color-ma { background: #8e0000 !important; color: white; }
        .country-color-dz { background: #00695c !important; color: white; }
        .country-color-tn { background: #d32f2f !important; color: white; }
        .country-color-ly { background: #2e7d32 !important; color: white; }
        .country-color-sd { background: #5d4037 !important; color: white; }
        .country-color-ye { background: #6d4c41 !important; color: white; }
        .country-color-so { background: #1565c0 !important; color: white; }
        .country-color-dj { background: #0277bd !important; color: white; }
        .country-color-mr { background: #33691e !important; color: white; }
        .country-color-com { background: #283593 !important; color: white; }
        .country-color-all { background: #575756 !important; color: white; }
        .country-color-us { background: #3c3b6e !important; color: white; }
        .country-color-gb { background: #012169 !important; color: white; }
        .country-color-fr { background: #0055a4 !important; color: white; }
        .country-color-de { background: #000000 !important; color: white; }

        .country-badge {
            border: 1px solid rgba(255,255,255,0.2) !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
            padding: 6px 12px !important;
            border-radius: 20px !important;
            font-weight: 600 !important;
            transition: all 0.3s ease !important;
            display: inline-flex !important;
        }

        .country-badge:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 4px 15px rgba(0,0,0,0.25) !important;
            border-color: rgba(255,255,255,0.4) !important;
        }

        .country-color-eg a,
        .country-color-sa a,
        .country-color-ae a { color: white !important; }
        
        .seo-content {
            
            border-radius: var(--radius);
            padding: 25px;
            margin: 30px 0;
            border-left: 5px solid var(--youtube-red);
            line-height: 1.8;
            width: 100%;
        }
        
        .seo-content h2 {
            font-size: 1.5rem;
            margin-bottom: 20px;
            color: var(--youtube-red);
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .seo-content h2 i {
            color: var(--youtube-red);
        }
        
        .seo-content p {
            font-size: 1.05rem;
            margin-bottom: 20px;
        
            line-height: 1.7;
        }
        
        .seo-content p strong {
            color: var(--youtube-red);
        }
        
        .video-countries {
            margin-top: 30px;
            
            padding: 25px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            width: 100%;
        }
        
        .video-countries h3 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .video-countries p {
            font-size: 1rem;
            color: #6c757d;
            margin-bottom: 20px;
            line-height: 1.6;
        }
        
        #countriesGrid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
        }
        
        @media (max-width: 768px) {
            #countriesGrid {
                grid-template-columns: 1fr;
            }
        }
        
        .country-item {
        
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 20px;
            transition: all 0.3s ease;
        }
        
        .country-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            border-color: var(--youtube-red);
            
        }
        
        .country-item-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .country-flag-big {
            font-size: 2rem;
        }
        
        .country-name {
            font-weight: 700;
            font-size: 1.1rem;
        
        }
        
        .country-view-count {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--youtube-red);
            margin-bottom: 10px;
        }
        
        .tags-section {
            margin-top: 30px;
            
            padding: 25px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            width: 100%;
        }
        
        .tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 15px;
        }
        
        h3 {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
            border-bottom: 2px solid #f10f0f;
            padding-bottom: 10px;
        }

        h3 i {
            color: #f10f0f;
            font-size: 1.2rem;
        }

        .tag-badge {
            padding: 8px 15px;
        
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.3s ease;
            
            border: 1px solid #ddd;
        }
        
        .tag-badge:hover {
            background: var(--youtube-red);
            color: white;
            border-color: var(--youtube-red);
            transform: translateY(-2px);
        }
        
        .video-description {
            line-height: 1.8;
            max-height: 400px;
            overflow-y: auto;
        
            padding: 20px;
            border-radius: var(--radius);
            margin-top: 20px;
        }
        
        .video-description h3 {
            font-size: 1.3rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .video-description pre {
            white-space: pre-wrap;
            word-wrap: break-word;
            font-family: 'Noto Sans Arabic', sans-serif;
            font-size: 1rem;
        
            line-height: 1.7;
        }
        
        .video-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }
        
        .video-stat-card {
            
            padding: 20px;
            text-align: center;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .video-stat-card:hover {
            transform: translateY(-5px);
            border-color: var(--youtube-red);
            box-shadow: var(--shadow);
        }
        
        .video-stat-icon {
            font-size: 2rem;
            margin-bottom: 12px;
            color: var(--youtube-red);
        }
        
        .video-stat-label {
            font-size: 0.9rem;
            color: #6c757d;
            margin-bottom: 8px;
        }
        
        .video-stat-value {
            font-size: 1.8rem;
            font-weight: 700;
        
        }
        
        .video-stat-change {
            font-size: 0.85rem;
            font-weight: 600;
            margin-top: 5px;
        }
        
        .change-positive {
            color: #28a745;
        }
        
        .change-negative {
            color: #dc3545;
        }
        
        .change-neutral {
            color: #6c757d;
        }
        
        .chart-tabs {
            display: flex;
            gap: 10px;
        
            padding: 8px;
            border-radius: 8px;
            width: fit-content;
            margin-bottom: 20px;
        }
        
        .chart-tab {
            padding: 10px 20px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 600;
        
            border-radius: 8px;
            transition: all 0.3s ease;
            background: transparent;
            user-select: none;
            white-space: nowrap;
        }
        
        .chart-tab:hover {
            background: rgba(255,0,0,0.1);
            color: var(--youtube-red);
        }
        
        .chart-tab.active {
            background: var(--youtube-red);
            color: white;
            box-shadow: 0 4px 12px rgba(255,0,0,0.2);
        }
        
        #mobileMonthlyVideos {
            display: none;
        }
        
        @media (max-width: 768px) {
            .seo-content {
                padding: 20px;
                margin: 20px 0;
            }
            
            .seo-content h2 {
                font-size: 1.3rem;
            }
            
            .seo-content p {
                font-size: 1rem;
            }
            
            .video-countries {
                padding: 20px;
                margin-top: 20px;
            }
            
            .video-countries h3 {
                font-size: 1.2rem;
            }
            
            #countriesGrid {
                grid-template-columns: 1fr;
            }
            
            .tags-section {
                padding: 20px;
                margin-top: 20px;
            }
            
            .video-description {
                padding: 15px;
                margin: 20px 0;
                max-height: 300px;
            }
            
            .video-description h3 {
                font-size: 1.2rem;
            }
            
            .video-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
            
            .video-stat-card {
                padding: 15px;
            }
            
            .video-stat-value {
                font-size: 1.5rem;
            }
            
            .chart-tabs {
                width: 100%;
                justify-content: space-between;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                padding: 5px;
            }
            
            .chart-tab {
                flex: 1;
                text-align: center;
                font-size: 0.8rem;
                padding: 10px 5px;
                min-width: 100px;
            }
            
            #mobileMonthlyVideos {
                display: flex;
                flex-direction: column;
                gap: 12px;
                margin-top: 15px;
            }
        }
        
        .mobile-video-item {
            
            border-radius: var(--radius);
            padding: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-bottom: 15px;
            border: 1px solid var(--border);
        }
        
        .mobile-video-thumbnail {
            width: 100%;
            height: 180px;
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 12px;
        }
        
        .mobile-video-title {
            font-weight: 600;
            font-size: 1.05rem;
            margin-bottom: 10px;
            line-height: 1.4;
        }
        
        .mobile-video-title a {
        
            text-decoration: none;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .mobile-video-title a:hover {
            color: var(--youtube-red);
        }
        
        .mobile-video-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .mobile-view-count {
            font-weight: 700;
            color: var(--youtube-red);
            font-size: 1.05rem;
        }
        
        .mobile-channel-info {
            font-size: 0.9rem;
            color: #6c757d;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .mobile-video-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .watch-on-youtube {
            background: var(--youtube-red);
            color: white;
            padding: 14px 25px;
            border-radius: var(--radius);
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.3s ease;
            border: 2px solid var(--youtube-red);
            width: 100%;
            margin-top: 20px;
            min-height: 50px;
        }
        
        .watch-on-youtube:hover {
            
            color: var(--youtube-red);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(255,0,0,0.2);
            text-decoration: none;
        }
        
        .channel-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 15px;
            background: linear-gradient(135deg, #ff0000, #cc0000);
            color: #fff;
            font-weight: 700;
            font-size: 14px;
            border-radius: 30px;
            text-decoration: none;
            box-shadow: 0 6px 14px rgba(255, 0, 0, 0.35);
            transition: all 0.25s ease;
            max-width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .channel-badge i {
            font-size: 16px;
        }
        
        .channel-badge:hover {
            background: linear-gradient(135deg, #e60000, #b30000);
            transform: translateY(-2px);
            box-shadow: 0 10px 22px rgba(255, 0, 0, 0.45);
            text-decoration: none;
        }
        
        .channel-badge:active {
            transform: scale(0.96);
        }
        
        .engagement-rate {
            font-size: 1rem;
            font-weight: 700;
            padding: 5px 12px;
            border-radius: 20px;
            display: inline-block;
        }
        
        .engagement-high {
            background: rgba(40,167,69,0.1);
            color: #28a745;
        }
        
        .engagement-medium {
            background: rgba(255,193,7,0.1);
            color: #ffc107;
        }
        
        .engagement-low {
            background: rgba(220,53,69,0.1);
            color: #dc3545;
        }
        
        #videosTable {
            width: 100%;
            overflow-x: auto;
            display: block;
            -webkit-overflow-scrolling: touch;
        }
        
        #videosTable thead th {
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        @media (max-width: 768px) {
            #videosTable {
                font-size: 0.85rem;
            }
            
            #videosTable th,
            #videosTable td {
                padding: 10px 8px;
                min-width: 80px;
            }
            
            #videosTable .video-thumbnail {
                width: 70px;
                height: 40px;
            }
            
            #videosTable .video-title a {
                font-size: 0.9rem;
                line-height: 1.3;
            }
            
            #videosTable .channel-info {
                font-size: 0.8rem;
            }
        }
        
        a, button {
            touch-action: manipulation;
        }
        
        input, select, textarea {
            font-size: 16px !important; /* منع التكبير في iOS */
        }
        
        .article-main-container {
            width: 100%;
            max-width: 100%;
            overflow: hidden;
        }
        
        .page-section {
            width: 100%;
            padding: 0;
        }
        
        .containers {
            width: 100%;
            max-width: 100%;
            padding: 0;
        }
        
        .main-content {
            width: 100%;
            max-width: 100%;
            padding: 0 10px;
            box-sizing: border-box;
        }
        
        @media (max-width: 768px) {
            .main-content {
                padding: 0 0px;
            }
        }
        
        .video-player-container {
            margin-left: -10px;
            margin-right: -10px;
            width: calc(100% + 20px);
        }
        
        @media (max-width: 768px) {
            .video-player-container {
                margin-left: -5px;
                margin-right: -5px;
                width: calc(100% + 10px);
            }
        }
        
        i[class^="fa-"], i[class*=" fa-"] {
            font-size: inherit;
        }
        
        h1, h2, h3, h4, h5, h6 {
            line-height: 1.3;
            word-wrap: break-word;
        }
        
        p, span, div {
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        img {
            max-width: 100%;
            height: auto;
        }
        
        .responsive-table {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .responsive-table table {
            min-width: 600px;
        }
        
        @media (max-width: 768px) {
            .responsive-table {
                margin: 0 -10px;
                width: calc(100% + 20px);
            }
            
            .responsive-table table {
                min-width: 700px;
            }
        }