<style>
/* ** کدنوسی تمیز، فشرده و سئو شده **
** استفاده از فونت Vazirmatn برای بهبود Core Web Vitals **
*/

/* فونت Vazirmatn - بهینه شده برای بارگذاری سریع‌تر و استاندارد */
@font-face {
  font-family: 'vazir';
  font-style: normal;
  font-weight: 100;
  src: url("Vazirmatn-Thin.woff2") format("woff2");
}
@font-face {
  font-family: 'vazir';
  font-style: normal;
  font-weight: 400; /* Regular */
  src: url("Vazirmatn-Regular.woff2") format("woff2");
}
@font-face {
  font-family: 'vazir';
  font-style: normal;
  font-weight: 700; /* Bold */
  src: url("Vazirmatn-Bold.woff2") format("woff2");
}
@font-face {
  font-family: 'vazir';
  font-style: normal;
  font-weight: 950; /* Black */
  src: url("Vazirmatn-Black.woff2") format("woff2");
}

body {
    font-family: 'vazir', Tahoma, sans-serif;
    direction: rtl;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
    padding-bottom: 70px; /* فضای کافی برای منوی ثابت پایین (رفع مشکل منو و محتوا) */
    margin: 0;
}

/* هدر اصلی (H1) */
header {
    background-color: #ffcc00; /* زرد شاد */
    padding: 10px 0;
    text-align: center;
    color: #333;
}
header h1 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
}

/* **بخش جدید: بنر یوتیوب در بالای صفحه** */
.youtube-top-banner {
    background-color: #ff0000; /* رنگ قرمز یوتیوب */
    padding: 5px 0;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.youtube-top-banner a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1em;
    padding: 5px 10px;
}

.youtube-top-banner img {
    width: 30px; /* اندازه آیکون یوتیوب */
    height: 30px;
    margin-left: 10px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

/* بخش لوگو و تبلیغ (ریسپانسیو و منطبق با درخواست) */
.header-logo-ad {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.site-logo img {
    /* **لوگوی دسکتاپ: 292px** */
    max-width: 292px; 
    height: auto;
    width: 100%; /* ریسپانسیو اولیه */
}

.header-ad {
    width: 468px;
    height: 60px;
    background-color: #eee;
    text-align: center;
    line-height: 60px;
    font-size: 1em;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* جلوگیری از به هم ریختن محتوای تبلیغ */
}

/* iframe سئو فرندلی برای تبلیغات محصولات */
.ads-iframe-container {
    padding: 10px 20px;
    background-color: #f7f7f7;
    text-align: center;
}
.ads-iframe-container iframe {
    width: 100%;
    max-width: 728px; /* عرض تبلیغ اصلی */
    height: 90px;
    border: 1px dashed #ff6600;
    margin: 0 auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.video-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* نسبت 16:9 برای ویدیوی ریسپانسیو */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-wrapper iframe, .video-wrapper script {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-description {
    padding: 15px;
    background-color: #f0f0f0;
}

.video-description h3 {
    margin: 0 0 10px 0;
    color: #ff6600; /* نارنجی شاد */
    font-weight: 700;
    font-size: 1.3em;
}

.video-description p {
    color: #666;
    font-size: 1em;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: #ff6600; /* نارنجی شاد */
    font-size: 2em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #333;
}

.channel-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}
.channel-links a img {
    max-width: 150px;
    height: auto;
    border: none;
    display: block;
}

/* منوی پایین ثابت (Bottom Navigation) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #ffcc00; /* زرد شاد */
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.bottom-nav a {
    text-decoration: none;
    color: #333;
    font-size: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.bottom-nav a:hover {
    color: #ff6600; /* نارنجی شاد */
}

.bottom-nav a i {
    font-size: 1.3em;
    margin-bottom: 3px;
}

/* **مدیا کوئری (Mobile-First) - اعمال تغییرات موبایل** */
@media (max-width: 768px) {
    
    .header-logo-ad {
        flex-direction: column;
        align-items: center;
        padding: 10px 10px;
    }

    /* **حل مشکل سایز لوگو در موبایل با انتخابگر قوی‌تر** */
    .header-logo-ad .site-logo img {
        max-width: 220px; /* **اندازه جدید برای موبایل** (اگر نیاز بود، تا 250px افزایش دهید) */
        height: auto;
        margin-bottom: 5px;
    }

    /* کوچک‌تر کردن تبلیغ در موبایل */
    .header-ad {
        width: 100%;
        max-width: 300px; 
        height: 50px;
        line-height: 50px;
        font-size: 0.9em;
    }
    
    /* کوچک‌تر کردن فونت h3 در موبایل */
    .video-description h3 {
        font-size: 1.1em;
    }
    
    /* کوچک‌تر کردن متن منوی پایین در موبایل */
    .bottom-nav a span {
        font-size: 0.75em;
    }
}
</style>