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

/* 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 - تم إضافة font-display: swap لتحسين السرعة */
@font-face {
    font-family: dkb; 
    src: url('fonts/droidKufi-b.ttf'); 
    font-weight: normal; 
    font-display: swap; /* إصلاح PageSpeed لمنع اختفاء النص أثناء التحميل */
}
@font-face {
    font-family: dkr; 
    src: url('fonts/DroidKufi-Regular.ttf'); 
    font-weight: normal; 
    font-display: swap; /* إصلاح PageSpeed لمنع اختفاء النص أثناء التحميل */
}

/* 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 */
.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 */
#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 */
.background-image { position: fixed; left: 0; right: 0; top: 0; z-index: -1; background: url(media/svg1_1.svg) no-repeat center center; background-size: cover; width: 100%; height: 100%; filter: grayscale(100%); opacity: 0.2; }
#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; }

/* Homepage Movie Grid */
#blockats .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.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; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.95)); padding: 40px 10px 15px; text-align: center; z-index: 3; }
.block h2 a { color: #fff; font: 14px dkb; text-shadow: 1px 1px 3px #000; }

.movie-info { position: absolute; top: 15px; right: 15px; left: 15px; z-index: 4; 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; }

#movieTags { background: rgba(0,0,0,0.2); padding: 15px; border-radius: 5px; }
#movieTags strong { font: 15px dkb; color: #eee; display: block; margin-bottom: 10px; }
#movieTags a { display: inline-block; padding: 5px 10px; background: rgba(250,250,250,0.1); border-radius: 4px; color: #ccc; font: 14px dkb; margin: 0 5px 5px 0; }
#movieTags a:hover { color: #FC0; background: rgba(250,250,250,0.2); }

/* 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); }

/* 9. Pagination */
div#pagination-out { padding: 30px 0; text-align: center; width: 100%; clear: both; }
.wp-pagenavi { display: inline-block; }
.wp-pagenavi a, .wp-pagenavi span { background: rgba(0,0,0,0.5); color: #fff; font: 16px dkb; display: inline-block; margin: 0 5px; padding: 8px 16px; border-radius: 4px; border: 1px #ff5200 solid; transition: 0.3s; }
.wp-pagenavi a:hover { background: rgba(250,250,250,0.2); }
.wp-pagenavi span.current { background: #ff5200; font-weight: bold; }

/* 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. Responsive Design (Mobile First Approach Fixes) */
@media screen and (max-width: 1100px) {
    #main-menu { display: none; }
    #deviceNav { display: block; }
    .logo-url { display: flex !important; }
    
    .video-section-wrapper { flex-direction: column; }
    #movieServerOnline, #movieServerDownload { flex: 1; max-width: 100%; }
    
    /* إصلاح خطأ max-height */
    #serverOnline, #serverDownload { max-height: none; border: 1px solid #444; }
    
    /* جعل السيرفرات في الجوال كأزرار متراصة أفقياً */
    #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) {
    #blockats .row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
    .block { height: 250px; }
    
    .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) {
    #blockats .row { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
    .block { height: 220px; }
    
    .search-box { width: 70%; }
    .botton { width: 30%; padding: 15px 10px; }
}