/* ==========================================================
   Vibino — کارت فیلم / سریال / انیمیشن داخل مقالات مجله
   شورت‌کد: [fk_movie_card id="123"]   (includes/fk-movie-card.php)
   همهٔ قواعد زیر .fk-mc محدود شده‌اند؛ پس لود سراسری آن به جای دیگری آسیب نمی‌زند.
   ========================================================== */
html body .fk-mc{
  position:relative;display:block;isolation:isolate;overflow:hidden;
  width:100%;max-width:100%;min-height:190px;aspect-ratio:2/1;
  margin:22px 0;padding:0;box-sizing:border-box;
  border-radius:16px;border:1px solid rgba(255,255,255,.08);
  background:#0e0f14;color:#fff!important;
  text-decoration:none!important;direction:rtl;text-align:right;
  box-shadow:0 8px 26px rgba(0,0,0,.32);
  transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease;
  -webkit-tap-highlight-color:transparent;
}
html body .fk-mc:hover,html body .fk-mc:focus-visible{
  color:#fff!important;border-color:rgba(192,38,211,.55);
  box-shadow:0 10px 32px rgba(0,0,0,.42),0 0 0 1px rgba(192,38,211,.25);
}
html body .fk-mc:focus-visible{outline:2px solid #c026d3;outline-offset:2px}
html body .fk-mc *{box-sizing:border-box}

/* ----- پس‌زمینه ----- */
html body .fk-mc .fk-mc__media{position:absolute;inset:0;z-index:0;display:block;overflow:hidden;background:linear-gradient(135deg,#1b1530,#0e0f14)}
html body .fk-mc .fk-mc__bg{
  position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;
  object-fit:cover;object-position:center 30%;
  filter:blur(18px) saturate(1.15);transform:scale(1.25);
  transition:transform .6s cubic-bezier(.22,1,.36,1);
}
/* تصویر عریض اختیاری (bg="...") بدون بلور */
html body .fk-mc.is-custom-bg .fk-mc__bg{filter:none;transform:none}
html body .fk-mc.is-custom-bg:hover .fk-mc__bg{transform:scale(1.04)}
html body .fk-mc:not(.is-custom-bg):hover .fk-mc__bg{transform:scale(1.32)}
html body .fk-mc .fk-mc__media:after{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(0deg,rgba(9,10,14,.94) 0%,rgba(9,10,14,.66) 42%,rgba(9,10,14,.18) 100%),
    linear-gradient(90deg,rgba(9,10,14,.35),transparent 60%);
}

/* ----- آیکن لینک (بالا چپ) ----- */
html body .fk-mc .fk-mc__open{
  position:absolute;z-index:3;top:14px;left:14px;
  display:flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:9px;
  background:rgba(14,15,20,.55);border:1px solid rgba(255,255,255,.14);color:#f3f3f6;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  transition:background .2s ease,border-color .2s ease;
}
html body .fk-mc:hover .fk-mc__open{background:rgba(192,38,211,.7);border-color:rgba(255,255,255,.3)}
html body .fk-mc .fk-mc__open svg{display:block;width:15px;height:15px;margin:0}

/* ----- بدنه: پوستر + اطلاعات (پایین کارت) ----- */
html body .fk-mc .fk-mc__body{
  position:absolute;z-index:2;right:0;bottom:0;left:0;
  display:flex;flex-direction:row;align-items:flex-end;gap:14px;
  padding:16px;direction:rtl;
}
html body .fk-mc .fk-mc__poster{
  flex:0 0 auto;display:block;width:78px;aspect-ratio:2/3;overflow:hidden;
  border-radius:9px;background:#1a1b22;
  border:1px solid rgba(255,255,255,.16);box-shadow:0 8px 22px rgba(0,0,0,.55);
  transition:transform .3s cubic-bezier(.22,1,.36,1);
}
html body .fk-mc:hover .fk-mc__poster{transform:translateY(-3px)}
html body .fk-mc .fk-mc__poster img{display:block;width:100%;height:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;object-fit:cover}

html body .fk-mc .fk-mc__info{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding-bottom:2px}
html body .fk-mc .fk-mc__title{
  display:block;max-width:100%;margin:0;padding:0;
  font-size:19px;line-height:1.5;font-weight:800;color:#fff;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  text-shadow:0 2px 10px rgba(0,0,0,.55);
}
html body .fk-mc .fk-mc__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;font-size:12px;line-height:1.4;color:#b9bbc8}
html body .fk-mc .fk-mc__sub{unicode-bidi:isolate;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .fk-mc .fk-mc__dot{opacity:.7}
html body .fk-mc .fk-mc__tags{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 0;padding:0}
html body .fk-mc .fk-mc__tag{
  display:inline-block;margin:0;padding:4px 11px;border-radius:999px;
  background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.1);
  color:#ececf2;font-size:11.5px;line-height:1.5;white-space:nowrap;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}

/* ----- بدون تصویر ----- */
html body .fk-mc.is-no-bg .fk-mc__media{background:linear-gradient(135deg,#2a1745,#0e0f14)}

/* ----- موبایل ----- */
@media(max-width:600px){
  html body .fk-mc{min-height:176px;aspect-ratio:auto;height:196px;margin:18px 0;border-radius:14px}
  html body .fk-mc .fk-mc__body{gap:11px;padding:12px}
  html body .fk-mc .fk-mc__poster{width:66px;border-radius:8px}
  html body .fk-mc .fk-mc__title{font-size:16px}
  html body .fk-mc .fk-mc__meta{font-size:11px}
  html body .fk-mc .fk-mc__tag{padding:3px 9px;font-size:10.5px}
  html body .fk-mc .fk-mc__open{top:10px;left:10px;width:28px;height:28px}
}
@media(prefers-reduced-motion:reduce){
  html body .fk-mc,html body .fk-mc *{transition:none!important}
}
