:root {
    --primary-color: #ffcc00; /* رنگ اصلی */
    --secondary-color: #007bff; /* رنگ ثانویه */
    --background-color: #1a1a1a; /* رنگ پس‌زمینه تیره */
    --text-color: #e0e0e0; /* رنگ متن روشن */
    --muted-text-color: #b3b3b3; /* رنگ متن کمرنگ */
    --border-color: #444; /* رنگ حاشیه */
}

body {

    justify-content: center; /* اضافه کردن این خط برای وسط‌چین کردن */
    align-items: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
      

}
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Arial', sans-serif;
    margin: 25px;
     
}
/* برای Lightbox عکس */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

#lightbox #close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  z-index: 10000;
}

.container {
     display: flex; /* استفاده از Flexbox */
    flex-direction: column; /* چینش عمودی */
    justify-content: center; /* مرکز کردن عمودی */
    height: 100%; /* ارتفاع کامل برای مرکز کردن */
}
.content {
    text-align: center; /* مرکز کردن متن */
    padding: 20px;
    background-color: #f0f0f0; /* رنگ پس‌زمینه برای محتوا */
    border-radius: 8px; /* گوشه‌های گرد */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* سایه */
}
.left {
    flex: 1; /* بخش چپ */
    background-color: #1a1a1a; /* رنگ پس‌زمینه برای بخش چپ */
}



.right iframe {
    width: 100%; /* iframe به عرض کامل بخش راست می‌رسد */
    height: 100%; /* ارتفاع iframe به ارتفاع کامل بخش راست می‌رسد */
}

@media (max-width: 1100px) {
    .right {
        display: none; /* پنهان کردن بخش راست در نمایش موبایل */
    }
}




a:link {
  color: ffcc00;
  background-color: transparent;
  text-decoration: none;
}
a:visited {
  color: 9a2b0e;
  background-color: transparent;
  text-decoration: none;
}


a {  
    color: var(--primary-color);
    text-decoration-line: none;
        padding: 0px 80px;
    transition: color 0.3s; /* انیمیشن تغییر رنگ */
      margin: 0;
    padding: 0;
    
    
}



.opacity.description {
    width: 100%;
    color: var(--muted-text-color);
    direction: rtl;
    text-align: center;
    padding: 0 200px; /* فاصله از حاشیه چپ و راست */
    box-sizing:content-box;
    font-weight: bold;
    font-family: 'B Titr';
}

.navigation {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    flex-wrap: wrap;
}


.navigationline {
    display: flex;
    justify-content:space-between;
}

.navlink {
    margin:  5px;
}


.navlink a {
       position:relative;
    left: -130px;
    padding: 10px 15px;
    border-radius: 50px;
    transition: background-color 0.3s, border-color 0.3s;
}

.navlink a:hover {
    background-color: #535151; /* رنگ پس‌زمینه هنگام هاور */
    border-color: #535151; /* رنگ حاشیه هنگام هاور */
}

#frontcover {padding-right: 20px;
    text-align: center;
}

.coverimage {direction:rtl;
    width: 300px;
    border-radius: 1px;
}

table {direction:rtl;
    width:100%;
    border-collapse:inherit ;
    margin-top: 1px;
}

td {direction:rtl;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
div {direction:rtl;
    float: none !important; /* تاثیر float را نادیده می‌گیرد */
    margin: 0 auto; /* مرکز قرار دادن div */
}
/* استایل برای گوشی‌های موبایل */
@media (max-width: 1068px) {
    table {direction:rtl;
        font-size: 25px;
        font-weight: bold;
        width: 100%;
    }

    .details > tbody > tr:nth-child(1) > td:nth-child(1) .valuestable {
        width: 950px; /* مقدار ثابت برای عرض */direction:rtl;
        min-width: 950px; /* حداقل عرض */
        max-width: 950px; /* حداکثر عرض */
        font-size: 14px;
        font-weight: bold;
    }
}

/* استایل برای رایانه‌های شخصی */
@media (min-width: 1069px) {
    .details > tbody > tr:nth-child(1) > td:nth-child(1) .valuestable {
        width: 1300px; /* مقدار ثابت برای عرض */direction:rtl;
        min-width: 1300px; /* حداقل عرض */
        max-width: 1300px; /* حداکثر عرض */
        font-size: 16px;
        font-weight: bold;
    }
}

.details > tbody > tr:nth-child(1) > td:nth-child(2) .valuestable {
    width: 1300px;direction:rtl;
    min-width: 1300px;
    max-width: 1300px;
}

/* انتخاب جدول Features */
.details > tbody > tr:nth-child(3) .valuestable {
    width: 1300px;
    min-width: 1300px;
    max-width: 1300px;
}

.maintitle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.header {
    background-color: #444; 
    color: var(--primary-color);
    padding: 10px;
    text-align: center;
}

.fieldlabel {padding: 9px 35px;
    font-weight: bold;
}

.fieldvalue {
    color: var(--muted-text-color);
}

.opacity {
    opacity: 0.9;
}

.marginbackdrop {
    background-color: rgba(50, 50, 50, 0.8);
    padding: 15px;
    border-radius: 8px;
}

.details {padding-right: 20px;
     width: 75%;
    max-width: 400px auto;
    margin: 10px auto;
    text-align: center;
}

.sidebox {direction:rtl;padding-right: 20px;
    background-color: #2a2a2a; 
    border-radius: 10px;
    padding: 1``5px;
    margin-top: 20px;
}
.image-preview {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 16 / 9; /* مستطیل افقی */
  overflow: hidden;
  margin: 6px;
  border-radius: 8px;
  background-color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* پر کردن فضای preview */
  transition: transform 0.3s ease;
}

.image-preview img:hover {
  transform: scale(1.05);
}

#image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 10px;
  width: 100%;
  max-width: 1500px;
}
#video-container {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  margin-top: 20px;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
}

#video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* حذف نوارهای سیاه اطراف ویدیو */
}

#movietitle,
.fieldvaluelarge,
.fieldvaluedefault {
  margin: 5px 0;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
}

#movietitle, .fieldvaluelarge, .fieldvaluedefault {
    margin: 5px 0;
    text-align: center;
}
@media (max-width: 1068px) {
  .navigation {
    flex-direction: column;
    align-items: center;
  }

@media (max-width: 1068px) {
  #video-container {
    width: 100%;
    max-width: 100vw;
    aspect-ratio: 16 / 9;
    background-color: black;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* تمام کادر رو پر کن، حتی اگه کراپ بشه */
  }
}

  .imdb-container {
    display: flex;
    justify-content: center; /* وسط‌چین کردن در حالت موبایل */
    margin-top: 5px;
    flex-wrap: wrap;
  }
}
.imdb-container span,
.imdb-container i {
    display: inline-block;
    vertical-align: top;
}