@charset "utf-8";
/* Theme Name: Hindy TV V2
Theme URI: https://hindyo.com/
Author: Hossam El Din
Description: نسخة مطورة بالكامل لعام 2026. تم إحلال أنظمة Float بـ Flexbox و Grid، وإضافة نظام الترقيم الاحترافي، وإخفاء مساحات الإعلانات الذكي، وتنظيف أخطاء 404.
Version: 2.4 (Ultra Stable - 404 & Performance Fixes)
*/

/* -------------------------------------------------------------------------
   1. Reset & Global Box Sizing
------------------------------------------------------------------------- */ 
* { box-sizing: border-box; }
html, body, div, span, h1, h2, h3, h4, p, a, img, ul, li, nav, section, article, aside, header, footer { margin: 0; padding: 0; border: 0; outline: 0; vertical-align: baseline; background: transparent; }
body { direction: rtl; background: #333; font-family: 'dkr', tahoma, Arial; line-height: 1.6; overflow-x: hidden; padding-top: 80px !important; }
nav ul { list-style: none; }
a { text-decoration: none !important; transition: 0.3s; color: #ff5200; }
img { max-width: 100%; height: auto; }

/* -------------------------------------------------------------------------
   2. Fonts Face (Optimized for PageSpeed & 404 Fixed)
------------------------------------------------------------------------- */
@font-face {
    font-family: dkb; 
    src: url('fonts/droidKufi-b.ttf'); 
    font-weight: normal; 
    font-display: swap; 
}
@font-face {
    font-family: dkr; 
    /* 🚨 تم تصحيح اسم الملف ليطابق الموجود في السيرفر بالضبط 🚨 */
    src: url('fonts/droidKufi-r.ttf'); 
    font-weight: normal; 
    font-display: swap; 
}

/* -------------------------------------------------------------------------
   3. Header & Navbar (Modern Flexbox)
------------------------------------------------------------------------- */
#main-header { background: #000; border-bottom: 5px #444 solid; position: fixed; right: 0; left: 0; top: 0; z-index: 999; height: 75px; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
#header-container { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 0 15px; }

.logo-url { display: flex !important; align-items: center; height: 100%; }
.logo-url img { height: 50px; width: auto; }

#main-menu { display: flex; flex-grow: 1; margin-right: 30px; }
#main-menu ul { display: flex; width: 100%; gap: 15px; align-items: center; margin: 0; }
#main-menu ul li { list-style: none; position: relative; }
#main-menu ul li a { display: block; padding: 10px 15px; font: 16px dkb; color: #eee; border-radius: 5px; }
#main-menu ul li a:hover { color: #fff; background-color: #444; }

#logoContainer, #logodesign { display: none !important; }

/* Search Button & Area */
.search-btn { display: flex; align-items: center; }
.search-btn a { background-color: #222; padding: 10px 15px; border-radius: 4px; border: 1px #444 solid; color: #FFF; font-size: 18px; }
.search-btn a:hover { background-color: #ff0234; }
#search-area { position: fixed; top: 75px; right: 0; left: 0; background: rgba(0,0,0,0.95); z-index: 998; border-bottom: 3px solid #ff0234; display: none; padding: 30px 0; }
#search-form { max-width: 800px; margin: 0 auto; display: flex; gap: 10px; padding: 0 15px; }
.search-box { flex-grow: 1; padding: 15px; border-radius: 4px; border: 0; font: 16px dkb; background: #fff; color: #000; }
.botton { background: #ff0234; border: 0; color: #fff; padding: 15px 30px; font: 16px dkb; border-radius: 4px; cursor: pointer; }

/* -------------------------------------------------------------------------
   4. Sidenav (Mobile Menu)
------------------------------------------------------------------------- */
.sidenav { height: 100%; width: 0; position: fixed; z-index: 1000; top: 0; right: 0; background-color: #000; overflow-x: hidden; transition: 0.3s; padding-top: 80px; border-left: 5px #05de3e solid; }
.sidenav ul { padding: 0 20px; }
.sidenav ul li { color: #fff; border-bottom: 1px #333 solid; margin-bottom: 10px; }
.sidenav ul li a { font: 18px dkb; color: #fff; display: block; padding: 10px 0; }
.sidenav ul li a:hover { color: #ff5200; }
.sidenav .closebtn { position: absolute; top: 15px; right: 20px; font-size: 40px; color: #fff; line-height: 1; }
#deviceNav { display: none; }
#buttonNav { background: #444; border: 1px #666 solid; color: #fff; padding: 8px 15px; font-size: 22px; border-radius: 4px; cursor: pointer; }

/* -------------------------------------------------------------------------
   5. Main Layout & Grids (Fixes Included)
------------------------------------------------------------------------- */
/* 🚨 إعدام صورة الخلفية لمنع 404 وزيادة سرعة الموقع 🚨 */
.background-image { display: none !important; }

#mainContentArea { padding-top: 30px; min-height: 80vh; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 15px; }

.containerTitle { display: flex; align-items: center; font: 24px dkb; color: #FFF; margin-bottom: 30px; border-right: 5px solid #ff5200; padding-right: 15px; background: rgba(0,0,0,0.4); padding-top: 10px; padding-bottom: 10px; border-radius: 4px; }
.filmPopulair { background: #ff5200; border-radius: 4px; padding: 6px 15px; font-size: 15px; margin-right: auto; }
.filmPopulair a { font: 15px dkb; color: #FFF; }

/* Grid System for Posters (Fixing Empty Spaces) */
#blockats .row, #rowbstrap { 
    display: grid !important; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; 
    gap: 20px !important; 
    margin: 0 !important; 
    padding: 0 !important; 
}
#blockats .row::before, #blockats .row::after, #rowbstrap::before, #rowbstrap::after { 
    display: none !important; 
    content: none !important; 
}

.filmeblock { width: 100%; float: none; padding: 0; margin: 0; }
.block { background: #000; border-radius: 8px; overflow: hidden; border: 3px #ff5200 solid; position: relative; transition: 0.3s; height: 340px; display: flex; flex-direction: column; }
.block:hover { border-color: #ddd; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.6); z-index: 10; }
.block img { width: 100%; height: 100%; object-fit: cover; }
.block h2 { position: absolute !important; bottom: 0 !important; left: 0 !important; right: 0 !important; background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 80%, transparent 100%) !important; padding: 35px 10px 15px 10px !important; margin: 0 !important; text-align: center !important; z-index: 10 !important; }
.block h2 a { color: #fff; font: 15px dkb; font-weight: bold; text-shadow: 1px 1px 3px #000; }

.movie-info { position: absolute; top: 15px; right: 15px; left: 15px; z-index: 11; display: flex; justify-content: space-between; opacity: 0; transition: 0.3s; }
.block:hover .movie-info { opacity: 1; }
.mQuality a, .mViews a, .mQuality span, .mViews span { background: rgba(0,0,0,0.8); color: #fff; padding: 5px 8px; border-radius: 4px; font: bold 12px tahoma; border: 1px solid #fff; }
p.mDescription { display: none; }

/* -------------------------------------------------------------------------
   6. Single Episode Layout
------------------------------------------------------------------------- */
.single-info-box { display: flex; flex-wrap: wrap; gap: 25px; background: rgba(0,0,0,0.4); padding: 20px; border-radius: 10px; margin-bottom: 30px; border: 1px solid #444; }
#movieImage { flex: 0 0 300px; max-width: 300px; }
#movieImage img { width: 100%; height: auto; border-radius: 8px; border: 3px #444 solid; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
#movieInfo { flex: 1; min-width: 300px; }
#movieTitle { font: 26px dkb; color: #ff5200; margin-bottom: 15px; border-bottom: 1px #444 solid; padding-bottom: 10px; line-height: 1.5; }
.movie-story { color: #ccc; font: 15px dkr; line-height: 1.8; margin-bottom: 20px; text-align: justify; }

.tech-card { background: rgba(0,0,0,0.4); border-radius: 8px; border: 1px #444 solid; padding: 15px; margin-bottom: 20px; }
#movieSemantic { font: 14px dkb; color: #Fc0; line-height: 2.2; }
#movieSemantic strong { color: #eee; }
#movieSemantic a { color: #Fc0; margin: 0 5px; } #movieSemantic a:hover { color: #ff0234; }
.trailer-btn { display: inline-block; background: #ddd; color: #000 !important; padding: 10px 20px; border-radius: 4px; font: 15px dkb; margin-top: 15px; font-weight: bold; }
.trailer-btn:hover { background: #fff; }

/* -------------------------------------------------------------------------
   7. Video Servers & Iframe
------------------------------------------------------------------------- */
.video-section-wrapper { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
#movieServerOnline, #movieServerDownload { flex: 0 0 250px; max-width: 250px; }
#movieIframeVideo { flex: 1; min-width: 300px; }

#serverOnline, #serverDownload { background: rgba(0,0,0,0.4); border: 1px #444 solid; border-radius: 8px; padding: 15px; max-height: 520px; overflow-y: auto; }
#serverOnline { border-left: 3px #ff5200 solid; }
#serverDownload { border-right: 3px #05de3e solid; }
.allServerTitle { font: 16px dkb; color: #fff; text-align: center; margin-bottom: 15px; border-bottom: 1px solid #444; padding-bottom: 10px; }

.onlineServer, .downloadServer { margin-bottom: 8px; }
.onlineServer a, .downloadServer a { display: flex; justify-content: space-between; align-items: center; background: rgba(250,250,250,0.1); color: #fff !important; padding: 12px 15px; border-radius: 4px; font: 14px dkb; border-right: 3px solid transparent; transition: 0.3s; }
.onlineServer a span img, .downloadServer a span img { height: 20px; width: auto; }
.onlineServer a:hover { background: rgba(250,250,250,0.2); border-right-color: #ff5200; }
.downloadServer a:hover { background: rgba(250,250,250,0.2); border-right-color: #05de3e; }

#myIframe { width: 100%; aspect-ratio: 16 / 9; height: auto; background: #000; border-radius: 8px; border: 2px #444 solid; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.6); }

/* -------------------------------------------------------------------------
   8. Episodes Grid
------------------------------------------------------------------------- */
#animSerieEpisode { background: rgba(0,0,0,0.4); border-radius: 8px; padding: 20px; border: 1px solid #444; margin-bottom: 30px; }
#animSerieEpisode h3 { margin-bottom: 20px; }
#animSerieEpisode h3 span { font: 18px dkb; color: #fff; background: #ff5200; padding: 8px 15px; border-radius: 4px; display: inline-block; }
.episodes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.episode-btn a { display: block; text-align: center; padding: 12px 10px; background: rgba(250,250,250,0.1); color: #fff; font: 14px dkb; border-radius: 4px; border: 1px solid #555; transition: 0.3s; }
.episode-btn a:hover { background: #ff5200; border-color: #ff5200; color: #fff; transform: translateY(-2px); }

/* -------------------------------------------------------------------------
   10. Footer
------------------------------------------------------------------------- */
#myfooter { background: #111; padding: 40px 0 20px; border-top: 3px #ff5200 solid; margin-top: 50px; }
#footerContent { max-width: 1300px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
#mySocialMedia { display: flex; gap: 10px; justify-content: center; }
.blockSocial a { color: #FFF; display: flex; justify-content: center; align-items: center; width: 45px; height: 45px; font-size: 22px; border-radius: 5px; transition: 0.3s; }
.blockSocial a:hover { opacity: 0.8; transform: translateY(-3px); }
.facebook { background: #3B5998; } .twitter { background: #55acee; } .googleplus { background: #dd4b39; } .youtube { background: #bb0000; } .rss { background: #F60; }
#siteRights { color: #888; font: 14px dkr; text-align: center; }
#siteRights a { color: #ff5200; }

/* -------------------------------------------------------------------------
   11. Smart Ads Management (Hide Empty Spaces)
------------------------------------------------------------------------- */
#mainContainerAds, #mytopads, #mybottomads, #myrightads, #myleftads, .ad-block {
    margin: 0 !important; padding: 0 !important; min-height: 0 !important; border: none !important;
}

#mytopads .textwidget:empty, #mybottomads .textwidget:empty, 
#myrightads .textwidget:empty, #myleftads .textwidget:empty {
    display: none !important;
}

#mainContainerAds:has(iframe), #mainContainerAds:has(img), #mainContainerAds:has(ins),
#mytopads:has(iframe), #mytopads:has(img), #mytopads:has(ins),
#mybottomads:has(iframe), #mybottomads:has(img), #mybottomads:has(ins) {
    margin-bottom: 30px !important; margin-top: 15px !important; display: block !important;
}

/* -------------------------------------------------------------------------
   12. Responsive Design (Mobile & Tablets Fixes)
------------------------------------------------------------------------- */
@media screen and (max-width: 1100px) {
    #main-menu { display: none; }
    #deviceNav { display: block; }
    .logo-url { display: flex !important; }
    
    .video-section-wrapper::before,
    .video-section-wrapper::after {
        display: none !important;
        content: none !important;
    }

    .video-section-wrapper { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 20px !important; 
    }
    
    #movieServerOnline { order: 1 !important; max-width: 100%; margin: 0 !important; width: 100% !important; }
    #movieIframeVideo { order: 2 !important; margin: 0 !important; width: 100% !important; display: block !important; clear: both !important; }
    #movieServerDownload { order: 3 !important; max-width: 100%; margin: 0 !important; width: 100% !important; }
    
    #serverOnline, #serverDownload { max-height: none; border: 1px solid #444; padding-top: 20px !important; }
    #serverOnline { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    #serverDownload { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .allServerTitle { grid-column: 1 / -1; }
}

@media screen and (max-width: 768px) {
    .containerTitle { flex-direction: column !important; align-items: flex-start !important; gap: 15px !important; height: auto !important; font-size: 16px !important; padding: 8px 12px !important; }
    .filmPopulair { margin-right: 0 !important; width: 100% !important; text-align: center !important; }
    .containerTitle span:first-child { font-size: 16px !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; display: block !important; max-width: 100% !important; }
    
    #blockats .row, #rowbstrap { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .block { height: 250px; }
    .block h2 { font-size: 13px !important; padding: 25px 5px 10px 5px !important; }
    
    .single-info-box { flex-direction: column; align-items: center; }
    #movieImage { flex: 1; max-width: 250px; }
    #movieInfo { text-align: center; }
}

@media screen and (max-width: 480px) {
    .block { height: 220px; }
    .search-box { width: 70%; }
    .botton { width: 30%; padding: 15px 10px; }
}

/* -------------------------------------------------------------------------
   13. Smart Tags Carousel (Netflix Style)
------------------------------------------------------------------------- */
.tags-carousel-wrapper {
    display: flex !important;
    align-items: center !important;
    background: rgba(0,0,0,0.3) !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    margin-top: 20px !important;
    border: 1px solid #444 !important;
    overflow: hidden !important;
    gap: 10px !important;
}

.tags-carousel-title {
    color: #ff5200 !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.tags-slider-container {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    -ms-overflow-style: none !important;  
    scrollbar-width: none !important;  
    flex-grow: 1 !important;
    padding: 5px 0 !important;
    direction: rtl !important; 
}

.tags-slider-container::-webkit-scrollbar {
    display: none !important; 
}

.slider-tag-item {
    white-space: nowrap !important;
    padding: 6px 16px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 20px !important; 
    color: #ccc !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.slider-tag-item:hover {
    background: #ff5200 !important;
    border-color: #ff5200 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

.tag-arrow {
    background: transparent !important;
    border: none !important;
    color: #aaa !important;
    font-size: 18px !important;
    cursor: pointer !important;
    padding: 0 5px !important;
    transition: 0.3s !important;
    outline: none !important;
}

.tag-arrow:hover {
    color: #ff5200 !important;
}

@media screen and (max-width: 768px) {
    .tag-arrow { display: none !important; }
}

/* Hindyo Optimized CSS for Accessibility & Performance */

/* 1. Pagination Modern & High Contrast */
.pagination-wrapper, 
.smart-pagination-wrapper, 
.native-pagination-wrapper {
    display: block;
    width: 100%;
    text-align: center;
    margin: 30px 0;
}

.page-numbers, 
a.page-numbers {
    background: #222 !important;
    color: #fff !important;
    padding: 10px 18px !important;
    margin: 3px;
    border-radius: 5px;
    display: inline-block;
    border: 1px solid #444;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-numbers.current, 
.page-numbers:hover {
    background: #ff5200 !important;
    border-color: #ff5200 !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 2. Accessibility: Focus States */
a:focus {
    outline: 2px solid #ff5200;
    outline-offset: 2px;
}

/* 3. Grid Fixes for CLS */
.filmeblock .imglinks img {
    display: block;
    object-fit: cover;
    background: #222; /* يحجز مساحة الصورة بلون داكن قبل التحميل */
}

/* حجز مساحة بوستر الحلقة لمنع الاهتزاز CLS */
#mainContant img.wp-post-image,
#movieImage img {
    aspect-ratio: 1 / 1; 
    width: 100%;
    height: auto;
    object-fit: cover;
}