/* =========================
   Base Theme + IRANYekanX
   ========================= */

@font-face {
  font-family: "IRANYekanX";
  src: url("../fonts/iranyekanx/IRANYekanXVFaNumVF.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html[lang="fa"] body {
  font-family: "IRANYekanX", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

html[lang="en"] body {
  font-family: "IRANYekanX", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

:root{
  --fb-navbar-h: 72px;
  --fb-overlay-z: 20050;
  --fb-navbar-z: 1040;
  --fb-main-top-gap: 14px;

  /* global rounding */
  --fb-radius-lg: 22px;
  --fb-radius-md: 18px;
  --fb-radius-sm: 14px;
}

body { background-color: #0f0f0f; }

/* =========================
   Navbar
   ========================= */

.navbar { background: #111; }

.navbar{
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: var(--fb-navbar-z);
  background: rgba(10,10,10,.55) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
  margin-bottom: 0 !important;

  /* ✅ FIX: prevent dropdown clipping */
  overflow: visible !important;
}

.navbar .container-fluid,
.navbar .navbar-collapse{
  overflow: visible !important; /* ✅ FIX: prevent dropdown clipping */
}

body{ padding-top: var(--fb-navbar-h); }

main{ padding-top: var(--fb-main-top-gap); }

@media (max-width: 992px){
  :root{
    --fb-navbar-h: 86px;
    --fb-main-top-gap: 16px;
  }
}

/* =========================================================
   Cards / Forms / Tables
   ========================================================= */

.card {
  background: #181818;
  border-color: #2a2a2a;
  color: #fff;
}

.form-control,
.form-select {
  background: #141414;
  color: #fff;
  border-color: #2a2a2a;
}

.form-control::placeholder { color: #bfbfbf; }
.form-label { color: #fff; }

.table { color: #fff; }
.table td, .table th { border-color: #2a2a2a; }

/* =========================
   Video cards
   ========================= */

.video-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #fff;
}

.video-card .card-body { background: #1a1a1a; }

.video-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.episode-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}

/* =========================
   Buttons
   ========================= */

.btn-outline-secondary {
  border-color: #555;
  color: #ddd;
}

.btn-outline-secondary:hover {
  background: #2a2a2a;
  color: #fff;
}


.btn-buy{
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  color:#fff !important;
  font-weight:700 !important;
  border-radius:12px !important;
  backdrop-filter:blur(8px);
  transition:all .25s ease;
  box-shadow:0 4px 14px rgba(0,0,0,.25);
}

.btn-buy:hover,
.btn-buy:focus{
  background:rgba(255,255,255,.14) !important;
  border-color:rgba(255,255,255,.30) !important;
  color:#fff !important;
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(0,0,0,.35);
}


.btn-buy:active{
  transform:translateY(0);
}

.quality-meta {
  color: #fff !important;
  opacity: 0.9 !important;
}

/* =========================
   Media Ratios
   ========================= */

.video-card .card-img-top,
.poster-img {
  aspect-ratio: 850 / 1280;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.slider-img {
  aspect-ratio: 1280 / 720;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* =========================================================
   ✅ Series cards (Archive / Stacked Posters)
   - Used in listing.html when kind != 'video'
   ========================================================= */

.series-card-archive{
  display: block;
  color: #fff;
  text-decoration: none;
}

.series-card-archive .stack-images{
  position: relative;
  width: 100%;
  /* ارتفاع تقریبی هم‌تراز با کارت‌های پوستر */
  aspect-ratio: 850 / 1280;
  border-radius: var(--fb-radius-lg);
}

/* fallback وقتی عکس نداریم */
.series-card-archive .stack-fallback{
  width: 100%;
  height: 100%;
  border-radius: var(--fb-radius-lg);
  border: 1px solid rgba(255,255,255,.10);
}

/* هر لایه پوستر */
.series-card-archive .stack-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--fb-radius-lg);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .20s ease, opacity .20s ease, filter .20s ease;
  will-change: transform;
}

/* لایه‌ها (حالت آرشیوی) */
.series-card-archive .img-1{
  z-index: 3;
  transform: translate(0,0);
  opacity: 1;
}
.series-card-archive .img-2{
  z-index: 2;
  transform: translate(8px, 8px);
  opacity: .65;
  filter: saturate(.9);
}
.series-card-archive .img-3{
  z-index: 1;
  transform: translate(16px, 16px);
  opacity: .42;
  filter: saturate(.85);
}

/* Hover (فقط روی دستگاه‌هایی که hover دارند) */
@media (hover:hover){
  .series-card-archive:hover .img-2{
    transform: translate(4px, 4px);
    opacity: .72;
  }
  .series-card-archive:hover .img-3{
    transform: translate(8px, 8px);
    opacity: .50;
  }
  .series-card-archive:hover .img-1{
    transform: translate(-1px, -2px);
  }
}

/* عنوان زیر کارت */
.series-card-archive .series-title{
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  line-height: 1.35;
}

/* =========================================================
   HERO (fb-hero)
   ========================= */

.fb-hero.fb-hero--fullbleed{
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.fb-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: #0f0f0f;
  min-height: 520px;
  padding: 0;
  margin-top: 0;
}

.fb-hero__bg {
  position: absolute;
  inset: 0;
  background-image: var(--fb-hero-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: none;
  opacity: 1;
}

.fb-hero__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(65% 70% at 78% 42%, rgba(0,0,0,.10) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.88) 100%),
    linear-gradient(270deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 52%, rgba(0,0,0,.20) 100%);
}

.fb-hero__container {
  position: relative;
  z-index: 2;
  padding: 48px 6vw;
}

.fb-hero__wrap{
  display:flex;
  align-items:flex-start !important;
  justify-content: space-between;
  gap: 28px;
  flex-direction: row-reverse;
}

.fb-hero__main {
  max-width: 860px;
  direction: rtl;
  text-align: right;
}

.fb-hero__title {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.3px;
  text-shadow: 0 10px 40px rgba(0,0,0,.55);
}

.fb-hero__subtitle {
  color: rgba(255,255,255,.75);
  margin-bottom: 18px;
  font-size: 14px;
}

.fb-hero__meta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin: 8px 0 16px;
}

.fb-hero__line {
  margin: 8px 0;
  color: rgba(255,255,255,.92);
  line-height: 1.95;
  font-size: 14px;
}

.fb-hero__lineText{
  color: rgba(255,255,255,.92);
}

.fb-muted { color: rgba(255,255,255,.65); }

.fb-hero__desc{
  margin-top: 14px;
  max-width: 720px;
  color: rgba(255,255,255,.78);
  line-height: 2;
  font-size: 14px;
}

.fb-hero__poster {
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
  flex: 0 0 240px !important;
  align-self: flex-start !important;
}

.fb-poster {
  width: 100%;
  aspect-ratio: 850 / 1280;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 60px rgba(0,0,0,.60);
}

.fb-hero__actions{
  display:flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.fb-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 12px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  white-space: nowrap;
}

.fb-chip--dark{
  background: rgba(0,0,0,.25);
  border-color: rgba(255,255,255,.12);
}

.fb-chip--imdb{
  background: rgba(255,193,7,.12);
  border-color: rgba(255,193,7,.32);
  color: rgba(255,193,7,.95);
}

.fb-chip--ok{
  background: rgba(25, 135, 84, .16);
  border-color: rgba(25, 135, 84, .40);
  color: rgba(141, 255, 199, .95);
}


.fb-chip--info{
  background: rgba(13, 110, 253, .14);
  border-color: rgba(13, 110, 253, .38);
  color: rgba(173, 208, 255, .98);
}

.fb-chip--danger{
  background: rgba(220, 53, 69, .14);
  border-color: rgba(220, 53, 69, .40);
  color: rgba(255, 176, 184, .98);
}

.fb-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.14);
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fb-btn:hover{ transform: translateY(-1px); }

.fb-btn--primary{
  background: rgba(13,110,253,.88);
  color:#fff;
}
.fb-btn--primary:hover{
  background: rgba(13,110,253,1);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 14px 38px rgba(0,0,0,.45);
}

.fb-btn--ghost{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}
.fb-btn--ghost:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}

@media (max-width: 900px) {
  .fb-hero { min-height: 420px; }
  .fb-hero__container { padding: 28px 18px; }
  .fb-hero__wrap { flex-direction: column; align-items: flex-start; }
  .fb-hero__main { max-width: 100%; }
  .fb-hero__poster { width: 180px; flex-basis: 180px; }
}

/* =========================
   Close button positioning
   ========================= */

.btn-close,
.close,
.modal-header .btn-close,
.modal-header .close {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  z-index: 9999;
}

.modal-content,
.modal-header,
.popup,
.episode-modal,
.quality-modal,
.fb-modal,
.card,
.fb-section {
  position: relative;
}

/* =========================================================
   Navbar Searchbox
   ========================================================= */

.nav-searchbox{
  display:flex;
  align-items:center;
  gap:12px;
  height: 38px;
  min-width: 360px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
  cursor: pointer;
  user-select: none;
}

.nav-searchbox:hover{
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.24);
  color: #fff;
}

.nav-searchbox__icon{ opacity:.85; }
.nav-searchbox__placeholder{
  font-size: 13px;
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 992px){
  .nav-searchbox{ min-width: 260px; width: 100%; }
}

/* =========================================================
   Search Overlay
   ========================================================= */

.search-overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.78);
  display:none;
  z-index: var(--fb-overlay-z);
}

.search-overlay.active{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding-top: calc(var(--fb-navbar-h) + 18px);
}

.search-box{
  width: min(1200px, 96vw);
  max-height: calc(100vh - var(--fb-navbar-h) - 36px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(22,22,22,.96);
  box-shadow: 0 30px 120px rgba(0,0,0,.65);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.search-head{
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex: 0 0 auto;
}

.search-input-wrap{ position: relative; }

.search-input-wrap input{
  width:100%;
  height: 56px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 0 56px 0 56px;
  color:#fff;
  outline:none;
  font-size: 16px;
}

.search-input-wrap input::placeholder{
  color: rgba(255,255,255,.55);
}

.search-close,
.search-go{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  height: 40px;
  width: 40px;
  border-radius: 10px;
  border: 0;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  cursor:pointer;
}

.search-close:hover,
.search-go:hover{
  background: rgba(255,255,255,.10);
  color: #fff;
}

.search-close{ left: 10px; }
.search-go{ right: 10px; }

.search-body{
  padding: 10px 18px 18px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.search-suggestions{
  display:flex;
  flex-direction:column;
  gap: 12px;
  min-height: 0;
  overflow: visible;
  padding-right: 4px;
}

#searchResults{
  overflow: visible;
  padding-right: 4px;
}

.search-chips{
  display:flex;
  flex-wrap:nowrap;
  gap:10px;
  overflow-x:auto;
  padding-bottom:6px;
  -webkit-overflow-scrolling:touch;
  flex: 0 0 auto;
  z-index: 2;
}

.search-chip{
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.86);
  padding:7px 14px;
  border-radius:12px;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  white-space: nowrap;
}

.search-chip:hover{
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.22);
}

#searchSuggestions .search-item{
  display:flex;
  align-items:center;
  gap: 16px;
  text-decoration:none;
  color:#fff;
  padding: 14px 14px;
  border-radius: var(--fb-radius-md);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  direction: rtl;
  justify-content: flex-start;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

#searchSuggestions .search-item:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

#searchSuggestions .search-item__img{
  width: 80px;
  height: 110px;
  object-fit:cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  flex: 0 0 auto;
  order: -1;
}

#searchSuggestions .search-item__meta{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap: 6px;
  text-align: right;
  min-width: 0;
  flex: 1 1 auto;
}

#searchSuggestions .search-item__title{
  font-weight: 900;
  font-size: 18px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#searchSuggestions .search-item__sub{
  color: rgba(255,255,255,.70);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-empty{
  padding: 18px 10px;
  color: rgba(255,255,255,.70);
  text-align: center;
  font-size: 16px;
}

.search-footer{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 18px;
  text-align:center;
  background: rgba(0,0,0,.18);
  flex: 0 0 auto;
}

.search-all{
  color: #6dd5ff;
  text-decoration:none;
  font-weight: 900;
  font-size: 16px;
}

.search-all:hover{ text-decoration: underline; }

@media (max-width: 768px){
  .search-overlay.active{ padding-top: calc(var(--fb-navbar-h) + 10px); }
  .search-box{ width: 96vw; max-height: calc(100vh - var(--fb-navbar-h) - 20px); }
  #searchSuggestions .search-item__img{ width: 70px; height: 96px; }
}

/* =========================================================
   Navbar genres dropdown
   ========================================================= */

/* ✅ FIX: stable RTL align + keep popper happy */
.nav-genre-dropdown .dropdown-menu{
  text-align: right;
  direction: rtl;
}

.nav-genre-dropdown .dropdown-menu[data-bs-popper]{
  right: 0 !important;
  left: auto !important;
}

/* ✅ FIX: dropdown always above page content */
.navbar .dropdown-menu{
  z-index: calc(var(--fb-navbar-z) + 40) !important;
}

/* desktop hover */
@media (min-width: 992px){
  .navbar .nav-genre-dropdown:hover > .dropdown-menu{
    display: block;
  }
}

/* ✅ MOBILE: tap-friendly dropdown (no hover) */
@media (max-width: 991.98px){
  .navbar .dropdown-menu{
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin-top: .25rem !important;
    max-height: 60vh;
    overflow: auto;
  }
}

/* =========================================================
   TOP SLIDER (Desktop = fullbleed)
   ========================================================= */

#topCarousel{
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  margin-top: 0;
  margin-bottom: 22px;
}

/* desktop keeps fullbleed */
#topCarousel .carousel-inner{
  border-radius: 0 !important;
  overflow: hidden;
}

#topCarousel .carousel-item{
  height: clamp(520px, 78vh, 980px);
  position: relative;
  overflow: hidden;
}

#topCarousel .carousel-item img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transform: scale(1.02);
  object-position: center 30% !important;
}

/* overlay caption (desktop) */
#topCarousel .carousel-caption{
  position: absolute;
  inset: 0;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6vw;
  text-align: right;
  z-index: 5;
  pointer-events: none;
}

#topCarousel .carousel-caption a,
#topCarousel .carousel-caption button{
  pointer-events: auto;
}

/* custom slider overlay (desktop) */
#topCarousel .fb-slider-caption{
  position:absolute;
  inset:0;
  display:flex !important;
  justify-content:flex-start !important;
  align-items:flex-end !important;
  padding: 0 6vw 24px !important;
  z-index: 6;
  pointer-events:none;
}

#topCarousel .fb-slider-content{
  max-width: 520px;
  pointer-events:auto;
}

/* hide titles */
#topCarousel .fb-slider-title,
#topCarousel .carousel-caption h5,
#topCarousel .carousel-caption p{
  display: none !important;
}
#topCarousel .fb-slider-subtitle,
#topCarousel .fb-slider-subtitle-movie{
  display: none !important;
}

/* latest episode badge */
#topCarousel .fb-slider-latest-episode{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 10px;
}

/* CTA button in slider */
#topCarousel .fb-slider-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration:none;
  background: rgba(13,110,253,.90);
  color:#fff;
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
}

#topCarousel .carousel-indicators{
  z-index: 9 !important;
  margin-bottom: 14px;
}

#topCarousel .carousel-indicators [data-bs-target]{
  width: 18px;
  height: 4px;
  border-radius: 999px;
  opacity: .40;
}

#topCarousel .carousel-indicators .active{ opacity: 1; }

#topCarousel .carousel-control-prev,
#topCarousel .carousel-control-next{
  display: flex !important;
  width: 70px;
  opacity: .9;
  z-index: 8;
}

/* mobile slider image swap */
#topCarousel .slider-img-mobile { display: none !important; }
@media (max-width: 768px){
  #topCarousel .has-mobile-slider .slider-img-desktop { display: none !important; }
  #topCarousel .has-mobile-slider .slider-img-mobile  { display: block !important; }
}

/* remove overlay/shadow */
#topCarousel .carousel-item::after{
  content: none !important;
  background: none !important;
}

#topCarousel,
#topCarousel .carousel-inner{
  box-shadow: none !important;
}

#topCarousel .fb-slider-btn,
#topCarousel .fb-slider-btn:hover,
#topCarousel .fb-slider-btn:focus,
#topCarousel .fb-slider-btn:focus-visible{
  box-shadow: none !important;
  outline: none !important;
}

#topCarousel .carousel-control-prev-icon,
#topCarousel .carousel-control-next-icon{
  filter: none !important;
}

#topCarousel .fb-slider-latest-episode{
  text-shadow: none !important;
  box-shadow: none !important;
}

/* =========================================================
   FINAL layout fix (navbar gap + py-4 issue)
   ========================================================= */

main.fb-main.py-4{
  padding-top: 0 !important;
  padding-bottom: 1.5rem !important;
}

.fb-page-container{
  padding-top: 0 !important;
}

/* =========================================================
   Season bar (FULL BLEED + RIGHT + stable)
   ========================================================= */

.season-bar-wrap{
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 18px;
  margin-bottom: 12px;
}

.season-bar-inner{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 0 6vw;
  flex-wrap: wrap;
  direction: ltr;
  margin-right: 0;
  margin-left: auto;
}

/* =========================================================
   Netflix-style Rows (تازه‌ها + ژانرها)
   ========================================================= */

body main .fb-row-scroll{
  direction: rtl !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  gap: 12px !important;
  padding: 6px 2px 12px !important;
  margin-bottom: 6px !important;

  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;

  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body main .fb-row-scroll::-webkit-scrollbar{
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

body main .fb-row-item{
  flex: 0 0 auto !important;
  width: 160px;
  scroll-snap-align: start;
  direction: rtl !important;
  text-align: right !important;
}

@media (min-width: 992px){
  body main .fb-row-item{ width: 170px; }
}
@media (max-width: 576px){
  body main .fb-row-item{ width: 140px; }
}

.fb-row-item .video-card{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fb-row-item .video-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
}

.fb-row-scroll .video-card .card-body{
  text-align: right !important;
}

.fb-row-scroll .video-card .small{
  direction: rtl !important;
}

.fb-row-scroll .text-muted{
  color: rgba(255,255,255,0.85) !important;
}
.fb-row-scroll .card-body .small{
  color: rgba(255,255,255,0.85) !important;
}

main.fb-main .d-flex.align-items-center.justify-content-between.mt-4.mb-2{
  padding-right: 64px !important;
}

/* =========================================================
   Row arrows (NO hover shadow/box)
   ========================================================= */

.fb-row-wrap{ position: relative; width: 100%; }

@media (min-width: 992px){
  .fb-row-wrap .fb-row-arrow{
    opacity: 0;
    pointer-events: none;
  }
  .fb-row-wrap:hover .fb-row-arrow{
    opacity: .95;
    pointer-events: auto;
  }
}

.fb-row-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 100%;
  border: 0;
  background: transparent !important;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none !important;
  outline: none !important;
}

.fb-row-arrow:hover,
.fb-row-arrow:focus,
.fb-row-arrow:focus-visible{
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.fb-row-arrow--prev{ right: 0; left: auto; }
.fb-row-arrow--next{ left: 0; right: auto; }

.fb-row-arrow .carousel-control-prev-icon,
.fb-row-arrow .carousel-control-next-icon{
  width: 2.4rem;
  height: 2.4rem;
  filter: none !important;
  opacity: .95;
}

.fb-row-wrap .fb-row-scroll{
  padding-left: 72px !important;
  padding-right: 72px !important;
}

@media (max-width: 576px){
  .fb-row-arrow{ width: 54px; }
  .fb-row-wrap .fb-row-scroll{
    padding-left: 60px !important;
    padding-right: 60px !important;
  }
}

/* =========================================================
   Badges in search (no ugly container)
   ========================================================= */

.search-item__type{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.badge{
  font-size:11px;
  padding:3px 8px;
  border-radius:10px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.14);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-kind{ background: rgba(13,110,253,.25); }
.badge-dub { background: rgba(25,135,84,.25); }
.badge-sub { background: rgba(111,66,193,.25); }

/* =========================================================
   Ultra pretty "مشاهده همه"
   ========================================================= */

/* =========================================================
   GLOBAL ROUNDED CARDS (PC + Mobile)
   ========================================================= */

.fb-row-item,
.search-item,
.card,
.video-card,
.series-card{
  border-radius: var(--fb-radius-lg) !important;
  overflow: hidden;
}

.fb-row-item img,
.search-item__img,
.card img,
.video-card img,
.series-card img{
  border-radius: inherit !important;
  display:block;
}

.fb-row-item,
.card,
.video-card,
.series-card{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

/* soft hover only when hover exists */
@media (hover:hover){
  .fb-row-item:hover,
  .search-item:hover,
  .card:hover,
  .video-card:hover,
  .series-card:hover{
    transform: translateY(-3px);
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 14px 40px rgba(0,0,0,.33);
  }
}

/* =========================================================
   ✅ MOBILE ONLY: Slider becomes 500x500 + button text "تماشا"
   IMPORTANT: this section overrides ONLY mobile, desktop untouched
   ========================================================= */

@media (max-width: 768px){

  /* turn fullbleed off only on mobile (card centered) */
  #topCarousel{
    width: 500px !important;
    height: 500px !important;
    max-width: calc(100vw - 24px) !important;
    margin: 14px auto 18px !important;

    left: auto !important;
    right: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;

    border-radius: 24px !important;
    overflow: hidden !important;
  }

  /* ensure exact square behavior */
  #topCarousel .carousel-inner{
    width: 100% !important;
    height: 100% !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  #topCarousel .carousel-item{
    width: 100% !important;
    height: 100% !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  /* image fills the square */
  #topCarousel .carousel-item img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
    object-position: center center !important;
  }

  /* keep caption overlay at bottom like a clean mobile hero */
  #topCarousel .fb-slider-caption{
    position: absolute !important;
    inset: auto 0 0 0 !important;
    padding: 0 16px 20px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    pointer-events: none !important;
    z-index: 10 !important;
  }

  #topCarousel .fb-slider-content{
    width: 100% !important;
    max-width: none !important;
    pointer-events: auto !important;
  }

  /* badge first */
  #topCarousel .fb-slider-latest-episode{
    font-size: 12px !important;
    padding: 7px 10px !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
  }

  /* button smaller */
  #topCarousel .fb-slider-btn{
    padding: 9px 14px !important;
    border-radius: 14px !important;
    font-weight: 900 !important;
  }

  /* ✅ VISUAL TEXT CHANGE: show only "تماشا" on mobile */
  #topCarousel .fb-slider-btn{
    font-size: 0 !important; /* hide existing text */
  }
  #topCarousel .fb-slider-btn::before{
    content: "تماشا" !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  /* if you have bootstrap .btn inside caption too */
  #topCarousel .carousel-caption .btn{
    font-size: 0 !important;
    padding: 9px 14px !important;
    border-radius: 14px !important;
  }
  #topCarousel .carousel-caption .btn::before{
    content: "تماشا" !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  /* indicators look neat in mobile square */
  #topCarousel .carousel-indicators{
    margin-bottom: 10px !important;
  }

  /* shrink arrows slightly (still usable) */
  #topCarousel .carousel-control-prev,
  #topCarousel .carousel-control-next{
    width: 54px !important;
    opacity: .95 !important;
  }
}

.fb-logo-wrap {
  display: flex;
  align-items: center;
}

.fb-site-logo {
  height: 60px;
  width: auto;
}

@media (max-width: 768px) {
  .fb-site-logo { height: 46px; }
}

/* =========================================================
   Filmobin HEADER – Ultra Premium VOD Pack (ALL-IN-ONE)
   Paste at END of styles.css
   ========================================================= */

/* ----- Brand tokens ----- */
:root{
  --fb-gold: 255, 200, 0;
  --fb-white: 255, 255, 255;
  --fb-bg1: 7, 9, 12;
  --fb-bg2: 12, 14, 18;

  --fb-radius-lg: 18px;
  --fb-radius-md: 14px;
  --fb-radius-pill: 999px;

  --fb-border: rgba(var(--fb-white), .08);
  --fb-border-2: rgba(var(--fb-white), .12);
  --fb-glass: rgba(var(--fb-bg2), .72);
  --fb-glass-2: rgba(var(--fb-bg2), .55);

  --fb-shadow: 0 18px 55px rgba(0,0,0,.55);
  --fb-shadow-soft: 0 12px 30px rgba(0,0,0,.35);
}

/* =========================================================
   NAVBAR SHELL (glass + spacing + premium line)
   ========================================================= */

/* ✅ FIX: remove sticky conflict, keep fixed navbar system */
.navbar.navbar-dark.bg-dark{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: var(--fb-navbar-z) !important;

  background: linear-gradient(180deg,
    rgba(var(--fb-bg1), .92),
    rgba(var(--fb-bg2), .70)
  ) !important;

  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);

  border-bottom: 1px solid var(--fb-border) !important;

  padding: 12px 12px !important;

  box-shadow: 0 10px 35px rgba(0,0,0,.40);

  /* ✅ FIX: prevent dropdown clipping */
  overflow: visible !important;
}

.navbar.navbar-dark.bg-dark::before{
  /* glow wash */
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 140px at 15% 10%, rgba(var(--fb-gold), .10), transparent 55%),
    radial-gradient(700px 140px at 85% 10%, rgba(80,160,255,.10), transparent 55%);
  pointer-events:none;
}

.navbar.navbar-dark.bg-dark::after{
  /* premium gradient underline */
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:2px;
  background: linear-gradient(90deg,
    rgba(var(--fb-gold), 0),
    rgba(var(--fb-gold), .65),
    rgba(var(--fb-gold), 0)
  );
  pointer-events:none;
}

.navbar .container-fluid{
  position: relative;
  align-items: center !important;
  gap: 12px !important;
  overflow: visible !important; /* ✅ FIX */
}

/* =========================================================
   LOGO (bigger + card + glow)
   ========================================================= */

.fb-logo-wrap{
  display:flex !important;
  align-items:center !important;

  padding: 8px 12px !important;
  border-radius: var(--fb-radius-lg) !important;

  background: linear-gradient(180deg,
    rgba(var(--fb-white), .06),
    rgba(var(--fb-white), .03)
  ) !important;

  border: 1px solid rgba(var(--fb-white), .10) !important;

  box-shadow:
    0 16px 45px rgba(0,0,0,.45),
    0 0 0 1px rgba(var(--fb-white), .06) inset;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fb-site-logo{
  height: 80px !important;
  width: auto !important;
  display:block !important;
  filter:
    drop-shadow(0 10px 22px rgba(0,0,0,.60))
    drop-shadow(0 0 18px rgba(var(--fb-gold), .22)) !important;
  transition: transform .18s ease, filter .18s ease;
}

.fb-logo-wrap:hover{
  transform: translateY(-1px);
  border-color: rgba(var(--fb-gold), .25) !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,.55),
    0 0 0 1px rgba(var(--fb-gold), .14) inset;
}

.fb-logo-wrap:hover .fb-site-logo{
  transform: scale(1.05);
  filter:
    drop-shadow(0 16px 30px rgba(0,0,0,.75))
    drop-shadow(0 0 24px rgba(var(--fb-gold), .32)) !important;
}

.navbar-brand img{
  height: 92px !important;
  width: auto !important;
}

/* =========================================================
   NAV LINKS (soft + pill + luxury hover)
   ========================================================= */
.navbar-nav{
  gap: 6px !important;
}

.navbar-nav .nav-link{
  position: relative;
  border-radius: var(--fb-radius-md) !important;
  padding: .52rem .78rem !important;

  color: rgba(var(--fb-white), .86) !important;
  font-weight: 500;
  letter-spacing: .15px;

  transition:
    transform .16s ease,
    background-color .16s ease,
    box-shadow .16s ease,
    color .16s ease;
  overflow: hidden;
}

.navbar-nav .nav-link::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(500px 120px at 50% 0%,
    rgba(var(--fb-white), .10),
    transparent 60%
  );
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events:none;
}

.navbar-nav .nav-link::after{
  content:"";
  position:absolute;
  left:12px; right:12px; bottom:8px;
  height:2px;
  background: linear-gradient(90deg,
    rgba(var(--fb-gold), 0),
    rgba(var(--fb-gold), .55),
    rgba(var(--fb-gold), 0)
  );
  opacity:0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events:none;
}

.navbar-nav .nav-link:hover{
  background: rgba(var(--fb-white), .06) !important;
  color: rgba(var(--fb-white), 1) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

.navbar-nav .nav-link:hover::before{ opacity:1; }
.navbar-nav .nav-link:hover::after{
  opacity:1;
  transform: translateY(0);
}

/* =========================================================
   DROPDOWN (glass panel + smooth)
   ========================================================= */
.dropdown-menu{
  border-radius: var(--fb-radius-lg) !important;
  padding: 10px !important;

  background: rgba(var(--fb-bg2), .88) !important;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);

  border: 1px solid rgba(var(--fb-white), .10) !important;

  box-shadow: var(--fb-shadow) !important;

  /* ✅ FIX: always above content */
  z-index: calc(var(--fb-navbar-z) + 40) !important;
}

.dropdown-item{
  border-radius: 14px !important;
  padding: .62rem .75rem !important;
  color: rgba(var(--fb-white), .86) !important;
  transition: background-color .16s ease, transform .16s ease, color .16s ease;
}

.dropdown-item:hover{
  background: rgba(var(--fb-white), .08) !important;
  color: rgba(var(--fb-white), 1) !important;
  transform: translateY(-1px);
}

/* =========================================================
   SEARCHBOX (pill + icon glow + focus)
   ========================================================= */
.nav-searchbox{
  border-radius: var(--fb-radius-pill) !important;
  padding: .62rem 1rem !important;

  background: rgba(var(--fb-white), .045) !important;
  border: 1px solid rgba(var(--fb-white), .10) !important;

  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition:
    transform .16s ease,
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease;
}

.nav-searchbox:hover{
  transform: translateY(-1px);
  background: rgba(var(--fb-white), .06) !important;
  border-color: rgba(var(--fb-gold), .22) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
}

.nav-searchbox:focus,
.nav-searchbox:focus-within{
  border-color: rgba(var(--fb-gold), .35) !important;
  box-shadow: 0 0 0 3px rgba(var(--fb-gold), .12), 0 18px 45px rgba(0,0,0,.40);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.navbar .btn{
  border-radius: var(--fb-radius-pill) !important;
  padding: .44rem 1.02rem !important;
  font-weight: 600;
  transition:
    transform .14s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease;
}

.navbar .btn:active{
  transform: translateY(1px) scale(.98);
}

.navbar .btn-outline-light{
  border-color: rgba(var(--fb-white), .22) !important;
  color: rgba(var(--fb-white), .95) !important;
  background: rgba(var(--fb-white), .03);
}

.navbar .btn-outline-light:hover{
  background: rgba(var(--fb-white), .08) !important;
  border-color: rgba(var(--fb-gold), .20) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.40);
  transform: translateY(-1px);
}

.navbar .btn-warning{
  border: none !important;
  color: #121212 !important;
  background: linear-gradient(180deg, #ffe07d, #f0b800) !important;
  box-shadow: 0 14px 34px rgba(255, 184, 0, .30);
}

.navbar .btn-warning:hover{
  box-shadow: 0 18px 45px rgba(255, 184, 0, .45);
  transform: translateY(-1px);
}

/* =========================================================
   NAVBAR TOGGLER
   ========================================================= */
.navbar-toggler{
  border-radius: 14px !important;
  border-color: rgba(var(--fb-white), .18) !important;
  background: rgba(var(--fb-white), .03);
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.navbar-toggler:hover{
  transform: translateY(-1px);
  background: rgba(var(--fb-white), .06);
  border-color: rgba(var(--fb-gold), .20) !important;
}

/* =========================================================
   MOBILE TUNING
   ========================================================= */
@media (max-width: 992px){
  .fb-site-logo{ height: 64px !important; }
  .navbar-brand img{ height: 64px !important; }
  .fb-logo-wrap{ padding: 6px 10px !important; }
  .navbar-nav .nav-link{ padding: .5rem .7rem !important; }
}

@media (max-width: 576px){
  .fb-site-logo{ height: 56px !important; }
  .navbar-brand img{ height: 56px !important; }
}

/* =========================
   FIX #1: remove top empty space
   ========================= */

html, body{
  margin: 0 !important;
  padding: 0 !important;
}

.navbar.navbar-dark.bg-dark{
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

main.fb-main{
  padding-top: 0 !important;
}

body > nav.navbar{
  margin-top: 0 !important;
}

/* =========================
   FIX #2: make dropdown items obvious
   ========================= */

.fb-hover-dd > .fb-nav-split .fb-nav-main{
  position: relative;
  padding-left: .9rem;
}

.fb-hover-dd > .fb-nav-split .fb-nav-main::before{
  content: "";
  position: absolute;
  left: .35rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255,200,0,.75);
  box-shadow: 0 0 12px rgba(255,200,0,.35);
  opacity: .9;
}

.fb-hover-dd > .fb-nav-split .fb-nav-caret{
  opacity: .85;
  transition: transform .16s ease, opacity .16s ease, filter .16s ease;
}

.fb-hover-dd:hover > .fb-nav-split .fb-nav-caret{
  opacity: 1;
  transform: translateY(-1px) rotate(180deg);
  filter: drop-shadow(0 0 10px rgba(255,200,0,.25));
}

.fb-hover-dd:hover > .fb-nav-split .fb-nav-main{
  color: rgba(255,255,255,1) !important;
}
.fb-hover-dd:hover > .fb-nav-split .fb-nav-main::after{
  content:"";
  position:absolute;
  right:.2rem;
  left:.2rem;
  bottom:.2rem;
  height:2px;
  background: linear-gradient(90deg, rgba(255,200,0,0), rgba(255,200,0,.55), rgba(255,200,0,0));
  opacity: .9;
}

/* =========================
   FIX: search box not clickable
   ========================= */

.nav-searchbox{
  position: relative !important;
  z-index: 3000 !important;
  pointer-events: auto !important;
}

.navbar.navbar-dark.bg-dark::before,
.navbar.navbar-dark.bg-dark::after{
  pointer-events: none !important;
}

.navbar-nav .nav-link::before,
.navbar-nav .nav-link::after{
  pointer-events: none !important;
}

.nav-searchbox *{
  pointer-events: none !important;
}

/* ✅ REMOVE logo box/card */
.fb-logo-wrap{
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.fb-logo-wrap:hover{
  transform: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.fb-site-logo{
  filter: none !important;
  transform: none !important;
}

.fb-logo-wrap:hover .fb-site-logo{
  transform: none !important;
  filter: none !important;
}

/* ✅ Remove dropdown caret + fix spacing in navbar items */
.fb-nav-split{
  gap: 0 !important;
}

/* ✅ FIX: caret hidden ONLY on desktop (hover exists) */
@media (min-width: 992px){
  .fb-nav-split .fb-nav-caret{
    display: none !important;
  }
}

/* ✅ FIX: caret visible on mobile so user can tap to see genres */
@media (max-width: 991.98px){
  .fb-nav-split .fb-nav-caret{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: .35rem .55rem;
  }
}

/* padding for text */
.fb-nav-split .fb-nav-main{
  padding-left: .6rem !important;
  padding-right: .6rem !important;
}

.fb-hover-dd > .fb-nav-split .fb-nav-main{
  padding-left: .75rem !important;
}

/* =========================================================
   ✅ Qualities Modal (SAFE Scoped Dark UI)
   ========================================================= */

#qualitiesModal { z-index: calc(var(--fb-overlay-z, 20050) + 20) !important; }

#qualitiesModal .modal-content{
  background: #0d0f12 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 18px !important;
  color: rgba(255,255,255,.92) !important;
}

#qualitiesModal .modal-header{
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
  position: relative;
}

#qualitiesModal .modal-title{
  color: #fff !important;
  font-weight: 800;
}

#qualitiesModal .modal-body .border{
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
}

#qualitiesModal .modal-body .d-flex{
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#qualitiesModal .modal-body .quality-meta,
#qualitiesModal .modal-body span,
#qualitiesModal .modal-body div{
  color: rgba(255,255,255,.85) !important;
}

#qualitiesModal a.btn{
  background: #ff7a00 !important;
  border: none !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}
#qualitiesModal a.btn:hover{ background: #ff9f2d !important; }

/* =========================================================
   HARD FIX: navbar must never overlap content
   (JS will set --fb-navbar-h dynamically)
   ========================================================= */

body{
  padding-top: var(--fb-navbar-h, 96px) !important;
}

/* slider / hero always starts below navbar */
#topCarousel,
.fb-hero.fb-hero--fullbleed{
  margin-top: 0 !important;
}

/* =========================================================
   HARD FIX: mobile dropdowns stable inside collapse
   ========================================================= */
@media (max-width: 991.98px){
  /* prevent Popper from absolute positioning in mobile nav */
  .navbar .dropdown-menu,
  .navbar .dropdown-menu[data-bs-popper]{
    position: static !important;
    transform: none !important;
    inset: auto !important;
    width: 100% !important;
    margin-top: .35rem !important;
    max-height: 60vh;
    overflow: auto;
  }

  .navbar .dropdown-menu.show{
    display: block !important;
  }

  /* make caret always tappable on mobile (force override) */
  .navbar .fb-nav-split .fb-nav-caret{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: .45rem .6rem !important;
  }
}

/* hide caret only on desktop */
@media (min-width: 992px){
  .navbar .fb-nav-split .fb-nav-caret{
    display: none !important;
  }
}


/* ======================================================
   QUALITIES MODAL – COMPACT + ALIGNED (LIKE YOUR 2nd PIC)
   Safe override – scoped to #qualitiesModal only
====================================================== */

/* هر ردیف: کیفیت (راست) | متن (وسط) | دکمه (چپ) */
#qualitiesModal .modal-body .border{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;

  /* فشرده‌تر مثل عکس دوم */
  padding: 10px 12px !important;
}

/* عنصر کیفیت (480p/720p/BLURAY) */
#qualitiesModal .modal-body .border > :is(.fw-semibold, .quality, .quality-label, .quality-name){
  order: 1 !important;              /* اول بیاد (RTL => سمت راست) */
  min-width: 72px !important;
  text-align: right !important;
  white-space: nowrap !important;
  font-weight: 700 !important;
}

/* متن حجم و قیمت (وسط) */
#qualitiesModal .modal-body .border > :is(.quality-meta, .meta, .download-meta, small){
  order: 2 !important;
  flex: 1 1 auto !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  opacity: .9 !important;
}

/* دکمه خرید و دانلود (چپ) — هم a هم button */
#qualitiesModal .modal-body .border > :is(a.btn, button.btn, a.download-btn, button.download-btn){
  order: 3 !important;              /* آخر بیاد (RTL => سمت چپ) */
  min-width: 120px !important;
  white-space: nowrap !important;
}

/* اگر بعضی ردیف‌ها کیفیت/متا کلاس نداشتن و ترتیب بهم می‌ریخت،
   این دو تا حالت رایج رو هم پوشش می‌ده */
#qualitiesModal .modal-body .border > :is(a.btn, button.btn):first-child{ order: 3 !important; }
#qualitiesModal .modal-body .border > :is(a.btn, button.btn):last-child{  order: 3 !important; }

/* ضربدر مودال سفید */
#qualitiesModal .modal-header .btn-close{
  filter: invert(1) !important;
  opacity: .9 !important;
}
#qualitiesModal .modal-header .btn-close:hover{
  opacity: 1 !important;
}

/* ===========================
   Series stacked poster effect
   =========================== */

.fb-row-item.fb-has-stack{
  position: relative;
  overflow: visible !important; /* مهم: تا لایه‌های پشت قیچی نشن */
}

/* دو لایه پشت کارت */
.fb-row-item.fb-has-stack::before,
.fb-row-item.fb-has-stack::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;        /* با کارت هماهنگ کن */
  background-image: var(--fb-stack-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* لایه‌ها پشت کارت */
  z-index: 0;
  pointer-events: none;

  /* حالت نرم مثل نمونه */
  opacity: .22;
  filter: blur(.2px) saturate(.9) contrast(.95);
}

/* لایه اول پشت */
.fb-row-item.fb-has-stack::before{
  transform: translate(10px, -10px) rotate(1.2deg);
  opacity: .18;
}

/* لایه دوم پشت */
.fb-row-item.fb-has-stack::after{
  transform: translate(5px, -5px) rotate(.6deg);
  opacity: .26;
}

/* خود کارت باید بالاتر از لایه‌های پشت باشه */
.fb-row-item.fb-has-stack > a{
  position: relative;
  z-index: 2;
  border-radius: 18px;
}

/* اگر خود کارت/تصویر overflow hidden دارد مشکلی نیست،
   چون افکت روی fb-row-item است و بیرون کارت دیده می‌شود. */

/* ===============================
   FB Mega Menu (3 columns)
   اضافه شود ته styles.css
   =============================== */

.fb-mega-menu{
  width: min(780px, 92vw);
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10, 12, 16, .97);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

/* grid 3 ستونه */
.fb-mega-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
}

/* آیتم */
.fb-mega-item{
  padding: 9px 10px;
  border-radius: 10px;
  white-space: normal;
  line-height: 1.4;
}

/* hover */
.fb-mega-item:hover{
  background: rgba(255,255,255,.08) !important;
}

/* موبایل: 2 ستون */
@media (max-width: 768px){
  .fb-mega-menu{ width: min(560px, 92vw); }
  .fb-mega-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* خیلی کوچیک: 1 ستون */
@media (max-width: 420px){
  .fb-mega-grid{ grid-template-columns: 1fr; }
}
/* =========================================================
   FILMOBIN – SERIES STACK EFFECT (fb-has-stack)
   منتقل‌شده از index.html
   ========================================================= */

.fb-row-item.fb-has-stack{
  position: relative;
  overflow: visible !important;
}

.fb-row-item.fb-has-stack::before,
.fb-row-item.fb-has-stack::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background-image: var(--fb-stack-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 0;
  pointer-events: none;
  opacity: .22;
  filter: blur(.2px) saturate(.95) contrast(.95);
}

.fb-row-item.fb-has-stack::before{
  transform: translate(10px, -10px) rotate(1.2deg);
  opacity: .18;
}

.fb-row-item.fb-has-stack::after{
  transform: translate(5px, -5px) rotate(.6deg);
  opacity: .26;
}

.fb-row-item.fb-has-stack > a{
  position: relative;
  z-index: 2;
  border-radius: 18px;
}

@media (max-width: 576px){
  .fb-row-item.fb-has-stack::before{ transform: translate(7px, -7px) rotate(1deg); }
  .fb-row-item.fb-has-stack::after{ transform: translate(3px, -3px) rotate(.5deg); }
}
/* =========================================================
   FILMOBIN – SERIES STACK EFFECT (fb-has-stack)
   منتقل‌شده از index.html
   ========================================================= */

.fb-row-item.fb-has-stack{
  position: relative;
  overflow: visible !important;
}

.fb-row-item.fb-has-stack::before,
.fb-row-item.fb-has-stack::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background-image: var(--fb-stack-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 0;
  pointer-events: none;
  opacity: .22;
  filter: blur(.2px) saturate(.95) contrast(.95);
}

.fb-row-item.fb-has-stack::before{
  transform: translate(10px, -10px) rotate(1.2deg);
  opacity: .18;
}

.fb-row-item.fb-has-stack::after{
  transform: translate(5px, -5px) rotate(.6deg);
  opacity: .26;
}

.fb-row-item.fb-has-stack > a{
  position: relative;
  z-index: 2;
  border-radius: 18px;
}

@media (max-width: 576px){
  .fb-row-item.fb-has-stack::before{ transform: translate(7px, -7px) rotate(1deg); }
  .fb-row-item.fb-has-stack::after{ transform: translate(3px, -3px) rotate(.5deg); }
}

/* =========================================================
   FILMOBIN – VIDEO CARD HOVER OVERLAY
   نمایش ژانر و امتیاز IMDb هنگام هاور کارت
   ========================================================= */

.video-card{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

/* overlay اصلی */
.video-card-overlay{
  position: absolute;
  inset: 0;
  z-index: 5;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .6rem;

  padding: 1rem;

  background: linear-gradient(
    to top,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.40) 45%,
    rgba(0,0,0,0) 100%
  );

  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;

  pointer-events: none;
}

.video-card:hover .video-card-overlay{
  opacity: 1;
  transform: translateY(0);
}

.video-card-overlay__item{
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.video-card-overlay__label{
  font-size: .75rem;
  color: rgba(255,255,255,.65);
}

.video-card-overlay__value{
  font-size: .95rem;
  color: #fff;
  font-weight: 700;
}

/* badge امتیاز imdb */
.imdb-badge{
  display: inline-flex;
  align-items: center;
  gap: .35rem;

  background: #f5c518;
  color: #000;

  padding: .22rem .45rem;
  border-radius: 4px;

  font-size: .82rem;
  font-weight: 700;

  width: fit-content;
}

.imdb-star{
  font-size: .9rem;
  line-height: 1;
}

.imdb-score{
  line-height: 1;
}

/* موبایل – چون hover نداریم، همیشه overlay دیده شود */
@media (hover: none){
  .video-card-overlay{
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   Filmobin custom home-card fixes
   1) genre line max 3 (template), compact one-line display
   2) IMDb text inline with score
   3) movie/series title visually outside poster frame
   ========================================================= */
.fb-row-scroll .video-card{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  border-radius: 0 !important;
}

.fb-row-scroll .video-card .poster-img,
.fb-row-scroll .video-card > .card-img-top{
  border-radius: 18px;
  border: 1px solid #2a2a2a;
  background: #1a1a1a;
  overflow: hidden;
}

.fb-row-scroll .video-card .card-body{
  background: transparent !important;
  padding: .45rem 0 0 !important;
}

.fb-row-scroll .video-title{
  font-size: .86rem;
  line-height: 1.45;
}

.fb-row-scroll .video-card-overlay{
  inset: 0 0 2.25rem 0;
  border-radius: 18px;
  padding: .65rem;
  gap: .35rem;
  overflow: hidden;
}

.fb-row-scroll .video-card-overlay__item{
  gap: .05rem;
  min-width: 0;
}

.fb-row-scroll .video-card-overlay__label{
  font-size: .62rem;
  line-height: 1.2;
}

.fb-row-scroll .video-card-overlay__value{
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .68rem;
  line-height: 1.35;
  font-weight: 600;
}

.fb-row-scroll .video-card-overlay__item--imdb{
  align-items: flex-start;
}

.fb-row-scroll .imdb-badge{
  direction: ltr;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: .25rem;
  padding: .16rem .38rem;
  font-size: .68rem;
  line-height: 1;
  white-space: nowrap;
}

.fb-row-scroll .imdb-text,
.fb-row-scroll .imdb-score{
  line-height: 1;
}

/* =========================================================
   FIX v3: separate poster frame from title/meta area
   ========================================================= */
.fb-row-scroll .video-card{
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  border-radius: 0 !important;
}

.fb-row-scroll .poster-frame{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #2a2a2a;
  background: #1a1a1a;
}

.fb-row-scroll .poster-frame .poster-img,
.fb-row-scroll .poster-frame > .card-img-top{
  display: block;
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.fb-row-scroll .video-card .card-body{
  background: transparent !important;
  border: 0 !important;
  padding: .55rem 0 0 !important;
}

.fb-row-scroll .video-card-overlay{
  inset: 0 !important;
  border-radius: 18px;
}


/* =========================================================
   Home rows: poster and title separated (no outer card box)
   ========================================================= */
main.fb-main .fb-row-scroll .fb-row-item,
main.fb-main .fb-row-scroll .video-card,
main.fb-main .fb-row-scroll .card{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

main.fb-main .fb-row-scroll .video-card{
  display: block !important;
  border-radius: 0 !important;
}

main.fb-main .fb-row-scroll .poster-frame{
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #111 !important;
}

main.fb-main .fb-row-scroll .poster-frame img,
main.fb-main .fb-row-scroll .poster-img,
main.fb-main .fb-row-scroll .card-img-top{
  border-radius: 14px !important;
  width: 100% !important;
  display: block !important;
}

main.fb-main .fb-row-scroll .card-body{
  background: transparent !important;
  border: 0 !important;
  padding: 10px 0 0 !important;
}

main.fb-main .fb-row-scroll .video-title{
  color: #fff !important;
  font-weight: 800 !important;
  text-align: center !important;
  line-height: 1.7 !important;
}

@media (hover:hover){
  main.fb-main .fb-row-scroll .fb-row-item:hover,
  main.fb-main .fb-row-scroll .card:hover,
  main.fb-main .fb-row-scroll .video-card:hover{
    box-shadow: none !important;
  }

  main.fb-main .fb-row-scroll .video-card:hover{
    transform: translateY(-3px) !important;
  }
}


/* =========================================================
   Global media cards: same behavior as Home cards site-wide
   - poster in its own frame
   - title/meta outside the poster box
   - genre + IMDb overlay on hover
   ========================================================= */
main.fb-main .video-card:not(.episode-card),
.video-card:not(.episode-card){
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  border-radius: 0 !important;
  color: #fff !important;
}

.video-card:not(.episode-card) .poster-frame{
  position: relative !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  border: 1px solid #2a2a2a !important;
  background: #111 !important;
}

.video-card:not(.episode-card) .poster-frame img,
.video-card:not(.episode-card) .poster-frame .poster-img,
.video-card:not(.episode-card) .poster-frame .card-img-top{
  display: block !important;
  width: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.video-card:not(.episode-card) > .card-img-top{
  border-radius: 14px !important;
  border: 1px solid #2a2a2a !important;
  background: #111 !important;
}

.video-card:not(.episode-card) .card-body,
.video-card:not(.episode-card) > .p-2{
  background: transparent !important;
  border: 0 !important;
  padding: 10px 0 0 !important;
}

.video-card:not(.episode-card) .video-title{
  color: #fff !important;
  font-weight: 800 !important;
  text-align: center !important;
  line-height: 1.7 !important;
}

.video-card:not(.episode-card) .small,
.video-card:not(.episode-card) .text-muted,
.video-card:not(.episode-card) .text-white-50{
  text-align: center !important;
}

.video-card:not(.episode-card) .video-card-overlay{
  inset: 0 !important;
  border-radius: 14px !important;
  padding: .65rem !important;
  gap: .35rem !important;
  overflow: hidden !important;
}

.video-card:not(.episode-card) .video-card-overlay__label{
  font-size: .62rem !important;
  line-height: 1.2 !important;
}

.video-card:not(.episode-card) .video-card-overlay__value{
  display: block !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: .68rem !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}

.video-card:not(.episode-card) .imdb-badge{
  direction: ltr !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: .25rem !important;
  padding: .16rem .38rem !important;
  font-size: .68rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

@media (hover:hover){
  .video-card:not(.episode-card):hover{
    transform: translateY(-3px) !important;
    box-shadow: none !important;
  }
}


/* Global dubbed badge */
.dubbed-ribbon{
  position:absolute;

  bottom:0;      /* دقیقاً چسبیده پایین */
  left:0;        /* دقیقاً چسبیده چپ */

  top:auto;
  right:auto;

  z-index:4;

  padding:5px 10px;

  border-radius:0 8px 0 0;

  background:linear-gradient(135deg,#d92b62,#fb456d);
  color:#fff;

  font-size:.72rem;   /* دو سایز بزرگ‌تر از .56 */
  font-weight:800;

  line-height:1.1;

  box-shadow:0 4px 8px rgba(0,0,0,.25);

  pointer-events:none;
  white-space:nowrap;
}

.dubbed-ribbon::before{
  content:none;
}
.subtitle-ribbon{
  position:absolute;
  bottom:0;
  left:0;
  z-index:4;
  padding:5px 10px;
  border-radius:0 8px 0 0;
  background:linear-gradient(135deg,#ff8a00,#ffb347);
  color:#fff;
  font-size:.72rem;
  font-weight:800;
  line-height:1.1;
  box-shadow:0 4px 8px rgba(0,0,0,.25);
  pointer-events:none;
  white-space:nowrap;
}

.cam-ribbon{
  position:absolute;
  bottom:32px;
  left:0;
  z-index:4;
  padding:5px 10px;
  border-radius:0 8px 0 0;
  background:linear-gradient(135deg,#8fd6a3,#5bbf7a);
  color:#073b1d;
  font-size:.72rem;
  font-weight:800;
  line-height:1.1;
  box-shadow:0 4px 8px rgba(0,0,0,.18);
  pointer-events:none;
  white-space:nowrap;
}

.fb-chip--cam{
  background:rgba(91,191,122,.20);
  border-color:rgba(91,191,122,.42);
  color:#74d391;
}

.badge-cam{
  background:rgba(91,191,122,.25);
  color:#dff7e7;
}

/* Series card stack - exactly behind poster */
.fb-has-stack{
  position:relative;
  overflow:visible;
}

.fb-has-stack .poster-frame{
  position:relative;
  overflow:visible;
  z-index:2;
}

.fb-has-stack .poster-frame::before,
.fb-has-stack .poster-frame::after{
  content:"";
  position:absolute;
  top:-6px;
  left:8px;
  right:-8px;
  bottom:6px;
  border-radius:16px;
  background:#3f4448;
  z-index:-1;
  pointer-events:none;
}

.fb-has-stack .poster-frame::before{
  transform:translateY(-4px);
  opacity:.75;
}

.fb-has-stack .poster-frame::after{
  top:-12px;
  left:16px;
  right:-16px;
  bottom:12px;
  opacity:.45;
}


/* =========================================================
   FIX: Series cards - ONLY poster stack behind, no overlay/play
   ========================================================= */

/* تگ نسخه پرده دقیقاً مثل دوبله، گوشه پایین چپ پوستر */
.cam-ribbon{
  position:absolute !important;
  bottom:0 !important;
  left:0 !important;
  top:auto !important;
  right:auto !important;
  z-index:5 !important;
  padding:5px 10px !important;
  border-radius:0 8px 0 0 !important;
  background:linear-gradient(135deg,#8fd6a3,#5bbf7a) !important;
  color:#073b1d !important;
  font-size:.72rem !important;
  font-weight:800 !important;
  line-height:1.1 !important;
  box-shadow:0 4px 8px rgba(0,0,0,.25) !important;
  pointer-events:none !important;
  white-space:nowrap !important;
}

/* هر افکت اضافه مثل پلی، گرادیان، عنوان روی پوستر و هاورهای اضافی حذف شود */
.fb-series-play,
.fb-series-card__play,
.series-play,
.series-card-play,
.fb-series-overlay,
.fb-series-card__overlay,
.series-card-overlay{
  display:none !important;
  content:none !important;
}

/* خود کارت مثل قبل بماند، فقط چند پوستر پشت آن بیاید */
body main .fb-row-item.fb-has-stack{
  position:relative !important;
  overflow:visible !important;
  isolation:isolate !important;
  background:transparent !important;
  border:0 !important;
}

/* pseudoهای قبلی داخل poster-frame که باعث بهم‌ریختگی می‌شدند خاموش شوند */
body main .fb-row-item.fb-has-stack .poster-frame::before,
body main .fb-row-item.fb-has-stack .poster-frame::after{
  display:none !important;
  content:none !important;
}

/* لایه‌های پشت کارت، از همان پوستر استفاده می‌کنند */
body main .fb-row-item.fb-has-stack::before,
body main .fb-row-item.fb-has-stack::after{
  content:"" !important;
  position:absolute !important;
  width:100% !important;
  aspect-ratio:850 / 1280 !important;
  top:6px !important;
  left:10px !important;
  border-radius:var(--fb-radius-lg) !important;
  background-image:var(--fb-stack-img) !important;
  background-size:cover !important;
  background-position:center !important;
  pointer-events:none !important;
  z-index:-1 !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:none !important;
}

body main .fb-row-item.fb-has-stack::before{
  transform:translate(10px,-7px) !important;
  opacity:.48 !important;
  filter:brightness(.70) saturate(.85) !important;
}

body main .fb-row-item.fb-has-stack::after{
  transform:translate(19px,-14px) !important;
  opacity:.26 !important;
  filter:brightness(.55) saturate(.75) !important;
}

body main .fb-row-item.fb-has-stack > a{
  position:relative !important;
  z-index:2 !important;
}

/* روی سریال هیچ تغییر اضافی هنگام هاور انجام نشود؛ فقط حالت عمومی کارت حفظ شود */
body main .fb-row-item.fb-has-stack:hover::before,
body main .fb-row-item.fb-has-stack:hover::after{
  transform:inherit;
}

/* =========================================================
   FILMOBIN FINAL FIX - SERIES STACK EXACTLY BEHIND POSTER
   این بخش باید آخر فایل باشد و تمام نسخه‌های قبلی fb-has-stack را override می‌کند.
   ========================================================= */

/* اگر نسخه‌های قبلی روی poster-frame لایه ساخته باشند، کامل خاموش شوند */
html body main .fb-row-item.fb-has-stack .poster-frame::before,
html body main .fb-row-item.fb-has-stack .poster-frame::after{
  display:none !important;
  content:none !important;
}

/* ظرف کارت سریال */
html body main .fb-row-item.fb-has-stack{
  position:relative !important;
  overflow:visible !important;
  isolation:isolate !important;
  background:transparent !important;
  border:0 !important;
}

/* دو پوستر پشت کارت؛ دقیقاً هم‌اندازه پوستر اصلی، بدون رفتن به چپ/راست */
html body main .fb-row-item.fb-has-stack::before,
html body main .fb-row-item.fb-has-stack::after{
  content:"" !important;
  display:block !important;
  position:absolute !important;

  top:0 !important;
  right:0 !important;
  left:0 !important;

  width:100% !important;
  aspect-ratio:850 / 1280 !important;
  height:auto !important;

  border-radius:18px !important;
  background-image:var(--fb-stack-img) !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;

  pointer-events:none !important;
  box-shadow:none !important;
  border:1px solid rgba(255,255,255,.08) !important;
}

/* لایه نزدیک‌تر پشت پوستر */
html body main .fb-row-item.fb-has-stack::before{
  z-index:0 !important;
  transform:translateY(-4px) scale(.985) !important;
  opacity:.26 !important;
  filter:brightness(.72) saturate(.85) !important;
}

/* لایه عقب‌تر */
html body main .fb-row-item.fb-has-stack::after{
  z-index:-1 !important;
  transform:translateY(-8px) scale(.97) !important;
  opacity:.14 !important;
  filter:brightness(.58) saturate(.75) !important;
}

/* خود کارت اصلی همیشه روی لایه‌ها بماند */
html body main .fb-row-item.fb-has-stack > a,
html body main .fb-row-item.fb-has-stack > .video-card{
  position:relative !important;
  z-index:2 !important;
}

/* هنگام هاور هیچ جابه‌جایی اضافه‌ای به لایه‌های پشت وارد نشود */
html body main .fb-row-item.fb-has-stack:hover::before{
  transform:translateY(-4px) scale(.985) !important;
}
html body main .fb-row-item.fb-has-stack:hover::after{
  transform:translateY(-8px) scale(.97) !important;
}

@media (max-width:576px){
  html body main .fb-row-item.fb-has-stack::before{
    transform:translateY(-3px) scale(.985) !important;
  }
  html body main .fb-row-item.fb-has-stack::after{
    transform:translateY(-6px) scale(.97) !important;
  }
  html body main .fb-row-item.fb-has-stack:hover::before{
    transform:translateY(-3px) scale(.985) !important;
  }
  html body main .fb-row-item.fb-has-stack:hover::after{
    transform:translateY(-6px) scale(.97) !important;
  }
}
/* =========================================================
   FILMOBIN - SERIES STACK FINAL
   ========================================================= */

.fb-row-item.fb-has-stack{
    overflow: visible !important;
    position: relative !important;
}

.fb-row-item.fb-has-stack .video-card{
    overflow: visible !important;
    position: relative !important;
    z-index: 2 !important;
}

.fb-row-item.fb-has-stack .poster-frame{
    position: relative !important;
    overflow: visible !important;
    z-index: 2 !important;
}

/* لایه دورتر */
.fb-row-item.fb-has-stack .poster-frame::before{
    content:"" !important;
    position:absolute !important;
    inset:0 !important;

    background-image:var(--fb-stack-img) !important;
    background-size:cover !important;
    background-position:center !important;
    background-repeat:no-repeat !important;

    border-radius:18px !important;

    transform: translate(84px,-82px) scale(.93) !important;

    opacity:.40 !important;
    filter:brightness(.65) !important;

    z-index:-2 !important;
    pointer-events:none !important;
}

/* لایه نزدیک‌تر */
.fb-row-item.fb-has-stack .poster-frame::after{
    content:"" !important;
    position:absolute !important;
    inset:0 !important;

    background-image:var(--fb-stack-img) !important;
    background-size:cover !important;
    background-position:center !important;
    background-repeat:no-repeat !important;

    border-radius:18px !important;

    transform: translate(43px,-41px) scale(.965) !important;

    opacity:.60 !important;
    filter:brightness(.82) !important;

    z-index:-1 !important;
    pointer-events:none !important;
}

/* پوستر اصلی */
.fb-row-item.fb-has-stack .poster-img{
    position:relative !important;
    z-index:3 !important;
}

/* تگ‌ها */
.fb-row-item.fb-has-stack .dubbed-ribbon,
.fb-row-item.fb-has-stack .subtitle-ribbon,
.fb-row-item.fb-has-stack .cam-ribbon{
    z-index:20 !important;
}

.fb-site-logo,
.navbar-brand img {
  height: 80px !important;
  width: auto !important;
}

@media (max-width: 576px) {
  .fb-site-logo,
  .navbar-brand img {
    height: 40px !important;
  }
}


/* =========================================================
   Pretty comments section
   ========================================================= */
.fb-comments-shell{
  width:min(100%, 1180px);
  margin:48px auto 40px;
  padding:0 14px;
  direction:rtl;
}
.fb-comments-card{
  background:#222429;
  border-radius:12px;
  padding:34px 54px 42px;
  color:#f5f5f5;
  box-shadow:0 18px 45px rgba(0,0,0,.18);
}
.fb-comments-title{
  text-align:center;
  font-size:26px;
  font-weight:800;
  margin:0 0 34px;
}
.fb-commentbox--pretty{
  display:grid;
  grid-template-columns:54px 1fr 54px;
  gap:14px;
  align-items:start;
  margin-bottom:34px;
}
.fb-comment-avatar,
.fb-comment-send{
  width:48px;
  height:48px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  flex:0 0 auto;
}
.fb-comment-avatar{
  background:#ddd;
  color:#111;
  font-size:22px;
}
.fb-comment-send{
  background:#777;
  color:#171717;
  font-size:24px;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease;
}
.fb-comment-send:hover{ transform:translateX(-2px); background:#ffc107; }
.fb-comment-send:disabled{ opacity:.55; cursor:not-allowed; transform:none; }
.fb-comment-send span{ display:inline-block; transform:rotate(180deg); }
.fb-comment-input-wrap{ min-width:0; }
.fb-comment-input{
  width:100%;
  min-height:58px;
  max-height:150px;
  resize:vertical;
  border:0;
  outline:0;
  border-radius:14px;
  background:#fff;
  color:#222;
  padding:18px 22px;
  font-size:15px;
  line-height:1.9;
  box-shadow:none;
}
.fb-comment-input::placeholder{ color:#aaa; }
.fb-spoiler-check{
  grid-column:2 / 3;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  margin-top:6px;
  color:#fff;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}
.fb-spoiler-check input{ width:18px; height:18px; accent-color:#ffc107; }
.fb-comment-message{
  grid-column:2 / 3;
  margin-top:4px;
  font-size:14px;
  color:#ff6b6b;
  text-align:right;
}
.fb-comment-message.text-success{ color:#58d68d !important; }
.fb-comment-login-box{
  width:min(100%, 520px);
  margin:0 auto 46px;
  padding:14px 18px;
  border-radius:8px;
  background:#3b3d43;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  color:#fff;
  font-weight:700;
}
.fb-login-icon{
  width:30px;
  height:30px;
  border-radius:8px;
  background:#83c341;
  color:#111;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}
.fb-login-btn{
  min-width:112px;
  text-align:center;
  padding:13px 18px;
  border-radius:12px;
  background:#666970;
  color:#fff !important;
  text-decoration:none !important;
}
.fb-login-btn--light{ background:#fff; color:#222 !important; }
.fb-comments-list{ margin-top:18px; }
.fb-comments-empty{
  text-align:center;
  color:#9b9da5;
  font-size:14px;
  padding:12px 0;
}
.fb-comment-item{
  position:relative;
  display:grid;
  grid-template-columns:56px 1fr;
  gap:16px;
  padding:28px 0;
  border-bottom:1px solid rgba(255,255,255,.09);
}
.fb-comment-item:last-child{ border-bottom:0; }
.fb-comment-user-avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  background:#d9d9d9;
  color:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:21px;
  overflow:hidden;
}
.fb-comment-user-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.fb-comment-meta{
  color:#aaa;
  font-size:13px;
  margin-bottom:12px;
}
.fb-comment-name{ color:#bfc0c6; }
.fb-comment-body{
  font-size:15px;
  line-height:2;
  font-weight:700;
  color:#fff;
  white-space:pre-wrap;
}
.fb-comment-actions{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:14px;
  color:#d8d8d8;
  font-size:15px;
}
.fb-comment-action{
  display:inline-flex;
  align-items:center;
  gap:6px;
  opacity:.9;
}
@media (max-width: 768px){
  .fb-comments-card{ padding:26px 18px 30px; }
  .fb-comments-title{ font-size:22px; margin-bottom:24px; }
  .fb-commentbox--pretty{ grid-template-columns:44px 1fr 44px; gap:10px; }
  .fb-comment-avatar,.fb-comment-send{ width:42px; height:42px; }
  .fb-spoiler-check,.fb-comment-message{ grid-column:1 / 4; }
  .fb-comment-login-box{ flex-wrap:wrap; gap:10px; }
  .fb-login-btn{ min-width:95px; padding:11px 14px; }
}

/* Blog rich text editor enhancements */
#blog-editor-toolbar {
  display: flex !important;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px;
}
#blog-editor-toolbar .form-select,
#blog-editor-toolbar .form-control-color {
  max-width: 160px;
}
.ck-editor__editable {
  min-height: 420px !important;
  background: #fff !important;
  color: #111 !important;
  caret-color: #111 !important;
  direction: rtl !important;
  text-align: right !important;
}
.ck-editor__editable *,
.ck-content,
.ck-content * {
  color: #111 !important;
}
.blog-inline-media img,
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 14px auto;
}
.blog-inline-media video,
.blog-content video {
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin: 14px auto;
}


/* Blog HTML editor toolbar/media */
#blog-editor-toolbar {
  align-items: center;
}
#blog-content-editor {
  min-height: 420px;
  font-family: Tahoma, Arial, sans-serif;
  direction: rtl;
  text-align: right;
}
.blog-inline-media img,
.blog-inline-media video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 12px 0;
}


/* Spoiler comments + comment reactions */
.fb-spoiler-badge{
  display:inline-flex;align-items:center;margin-inline-start:6px;padding:2px 8px;border-radius:999px;
  background:rgba(255,193,7,.16);color:#ffc107;font-size:11px;font-weight:700;
}
.fb-comment-body--spoiler{position:relative;cursor:pointer;overflow:hidden;border-radius:12px;min-height:34px;}
.fb-comment-body--spoiler .fb-comment-body-text{filter:blur(6px);user-select:none;transition:filter .2s ease;}
.fb-comment-body--spoiler .fb-comment-spoiler-cover{
  position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;
  background:rgba(10,10,14,.72);backdrop-filter:blur(3px);color:#fff;font-size:12px;font-weight:800;
}
.fb-comment-body--spoiler.is-revealed .fb-comment-body-text{filter:none;user-select:auto;}
.fb-comment-body--spoiler.is-revealed .fb-comment-spoiler-cover{display:none;}
.fb-comment-actions{display:flex;gap:8px;align-items:center;margin-top:8px;}
.fb-comment-action{border:0;background:rgba(255,255,255,.07);color:rgba(255,255,255,.78);border-radius:999px;padding:3px 
10px;font-size:12px;line-height:1.7;cursor:pointer;}
.fb-comment-action:hover{background:rgba(255,255,255,.13);color:#fff;}


/* Daily update: episode badges + liquid poster play */
.episode-card{position:relative;overflow:hidden;border-radius:16px;}
.episode-poster-frame{position:relative;overflow:hidden;border-radius:16px 16px 0 0;background:rgba(255,255,255,.04);}
.episode-poster-frame img{display:block;width:100%;height:auto;}
.episode-ribbon{z-index:4;font-size:10px;line-height:1.8;}
.episode-liquid-play,
.liquid-poster-play{
  position:absolute;
  inset:auto auto 14px 14px;
  z-index:8;
  width:54px;
  height:54px;
  border:0;
  border-radius:45% 55% 52% 48% / 42% 43% 57% 58%;
  background:rgba(255,193,7,.92);
  color:#111;
  font-weight:900;
  font-size:22px;
  display:grid;
  place-items:center;
  box-shadow:0 14px 35px rgba(255,193,7,.35), inset 0 0 18px rgba(255,255,255,.45);
  backdrop-filter:blur(10px);
  animation:fbLiquidPlay 4.2s ease-in-out infinite;
  cursor:pointer;
}
.episode-liquid-play{top:calc(var(--episode-play-top, 210px));bottom:auto;left:12px;width:44px;height:44px;font-size:18px;}
.fb-hero__poster--action{position:relative;}
.liquid-poster-play{left:50%;bottom:26px;transform:translateX(-50%);width:72px;height:72px;font-size:30px;}
.episode-liquid-play:hover,.liquid-poster-play:hover{filter:brightness(1.06);}
@keyframes fbLiquidPlay{
  0%,100%{border-radius:45% 55% 52% 48% / 42% 43% 57% 58%;}
  35%{border-radius:58% 42% 45% 55% / 55% 48% 52% 45%;}
  70%{border-radius:42% 58% 57% 43% / 46% 58% 42% 54%;}
}

/* FIX: center and activate episode poster play button */
.episode-poster-frame{
  position: relative !important;
  overflow: hidden !important;
}
.episode-poster-frame .episode-liquid-play{
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: 54px !important;
  height: 54px !important;
  font-size: 22px !important;
  z-index: 20 !important;
  pointer-events: auto !important;
}
.episode-poster-frame .episode-liquid-play:hover{
  transform: translate(-50%, -50%) scale(1.08) !important;
}


/* FIX: make episode poster play button clickable */
.episode-card,
.episode-poster,
.episode-poster-wrap,
.series-episode-card {
  position: relative;
}

.episode-liquid-play {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 50 !important;
  text-decoration: none !important;
}

.episode-liquid-play::before,
.episode-liquid-play::after {
  pointer-events: none !important;
}






/* Cleaner admin create/edit forms */
.admin-form-body{
  padding:28px !important;
}

.admin-form-card{
  margin-bottom:28px !important;
}

.admin-form-card .mb-3,
.admin-form-card .mb-2{
  margin-bottom:18px !important;
}

.admin-form-card .quality-item{
  padding:20px !important;
  margin-bottom:20px !important;
}

.admin-form-card .fw-bold.mb-2{
  color:#ffc107 !important;
  font-size:16px !important;
  font-weight:900 !important;
  margin-bottom:16px !important;
  padding-bottom:10px !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
}

.admin-form-card .row.g-2{
  row-gap:14px !important;
}

.admin-form-card .form-control,
.admin-form-card .form-select{
  min-height:42px !important;
}

.admin-form-card textarea.form-control{
  min-height:120px !important;
}

.admin-form-card .cats-box{
  border-radius:16px !important;
  padding:16px !important;
}

.admin-form-card .q-top{
  gap:12px !important;
}

.admin-form-card .q-mid,
.admin-form-card .q-bot{
  margin-top:12px !important;
}

.admin-form-card .btn{
  border-radius:12px !important;
  font-weight:800 !important;
}


/* Modern admin video / episode / series forms - visual only */
.admin-form-card{
  background:rgba(255,255,255,.055) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:24px !important;
  box-shadow:0 18px 50px rgba(0,0,0,.25) !important;
}

.admin-form-body{
  padding:30px !important;
}

.admin-form-card .form-label{
  color:rgba(255,255,255,.78) !important;
  font-size:13px !important;
  font-weight:900 !important;
  margin-bottom:8px !important;
}

.admin-form-card .form-control,
.admin-form-card .form-select{
  background:#14171c !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.14) !important;
  border-radius:14px !important;
  min-height:44px !important;
  box-shadow:none !important;
}

.admin-form-card .form-control:focus,
.admin-form-card .form-select:focus{
  border-color:rgba(255,193,7,.60) !important;
  box-shadow:0 0 0 .22rem rgba(255,193,7,.12) !important;
}

.admin-form-card textarea.form-control{
  line-height:1.9 !important;
  min-height:130px !important;
}

.admin-form-card .quality-item,
.admin-form-card .cats-box{
  background:rgba(255,255,255,.045) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:20px !important;
  padding:20px !important;
}

.admin-form-card .fw-bold.mb-2{
  color:#ffc107 !important;
  font-size:16px !important;
  font-weight:900 !important;
  padding-bottom:10px !important;
  margin-bottom:16px !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
}

.admin-form-card .btn{
  border-radius:13px !important;
  font-weight:800 !important;
}


/* Better category picker in admin forms */
.admin-form-card .cats-box{
  max-height:none !important;
  overflow:visible !important;
  background:rgba(10,13,18,.35) !important;
}

.admin-form-card .cats-grid{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
}

.admin-form-card .cats-grid .form-check{
  margin:0 !important;
  padding:0 !important;
}

.admin-form-card .cats-grid .form-check-input{
  display:none !important;
}

.admin-form-card .cats-grid .form-check-label{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:36px !important;
  padding:8px 13px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.06) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  color:rgba(255,255,255,.78) !important;
  font-weight:800 !important;
  cursor:pointer !important;
  transition:.15s ease !important;
}

.admin-form-card .cats-grid .form-check-input:checked + .form-check-label{
  background:rgba(255,193,7,.18) !important;
  border-color:rgba(255,193,7,.65) !important;
  color:#ffc107 !important;
  box-shadow:0 0 0 3px rgba(255,193,7,.08) !important;
}


/* Better file inputs in admin forms */
.admin-form-card input[type="file"]{
  width:100% !important;
  background:#0f1217 !important;
  border:1px dashed rgba(255,193,7,.45) !important;
  border-radius:18px !important;
  padding:12px !important;
  color:rgba(255,255,255,.75) !important;
  cursor:pointer !important;
}

.admin-form-card input[type="file"]::file-selector-button{
  background:#ffc107 !important;
  color:#111 !important;
  border:0 !important;
  border-radius:14px !important;
  padding:10px 18px !important;
  margin-left:14px !important;
  font-weight:900 !important;
  cursor:pointer !important;
}

.admin-form-card input[type="file"]:hover{
  border-color:#ffc107 !important;
  background:rgba(255,193,7,.06) !important;
}

.admin-form-card input[type="file"]:hover::file-selector-button{
  filter:brightness(1.05) !important;
}


.admin-form-card .admin-file-input{
  background:linear-gradient(135deg,rgba(255,193,7,.10),rgba(255,255,255,.035)) !important;
  border:1px solid rgba(255,193,7,.35) !important;
  border-radius:18px !important;
  padding:14px !important;
  min-height:58px !important;
}

.admin-form-card .admin-file-input::file-selector-button{
  float:left;
  background:#ffc107 !important;
  color:#111 !important;
  border:0 !important;
  border-radius:13px !important;
  padding:10px 18px !important;
  font-weight:900 !important;
}


/* Modern upload cards */
.admin-upload-section{margin-top:18px!important}
.admin-upload-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.admin-upload-card{
  background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:16px;
  min-height:230px;
}
.admin-upload-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}
.admin-upload-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:rgba(255,193,7,.15);
  border:1px solid rgba(255,193,7,.28);
  font-size:22px;
}
.admin-upload-title{
  color:#fff;
  font-weight:950;
}
.admin-upload-hint{
  color:rgba(255,255,255,.55);
  font-size:12px;
  margin-top:3px;
}
.admin-upload-input{
  width:100%;
  background:#0f1217!important;
  border:1px dashed rgba(255,193,7,.45)!important;
  border-radius:16px!important;
  padding:12px!important;
  color:rgba(255,255,255,.72)!important;
  margin-bottom:14px;
}
.admin-upload-input::file-selector-button{
  background:#ffc107!important;
  color:#111!important;
  border:0!important;
  border-radius:12px!important;
  padding:9px 14px!important;
  font-weight:900!important;
  margin-left:10px!important;
}
.admin-upload-preview{
  position:relative;
  min-height:120px;
  border-radius:18px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.09);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.admin-upload-preview:empty:before{
  content:"پیش‌نمایش تصویر";
  color:rgba(255,255,255,.35);
  font-size:13px;
}
.admin-upload-preview img{
  width:100%;
  height:140px;
  object-fit:cover;
  display:block;
}
.admin-upload-preview.wide img{height:120px}
.admin-upload-remove{
  position:absolute;
  top:8px;
  left:8px;
  width:28px;
  height:28px;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,.65);
  color:#fff;
  font-weight:900;
  line-height:1;
}
@media(max-width:992px){
  .admin-upload-grid{grid-template-columns:1fr}
}


.fb-mini-options{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:rgba(255,255,255,.035);
}

.fb-mini-options .form-check,
.fb-mini-options > div{
  margin:0 !important;
}

.fb-mini-options label,
.fb-mini-options .form-check-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.82);
  font-weight:800;
  cursor:pointer;
}

.fb-mini-options input[type="checkbox"],
.fb-mini-options .form-check-input{
  width:17px;
  height:17px;
  accent-color:#ffc107;
}


/* Clean qualities section */
.admin-form-card .qualities-card{
  background:rgba(10,13,18,.34) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:22px !important;
  padding:22px !important;
  margin-bottom:24px !important;
}

.admin-form-card #qualities{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:16px !important;
}

.admin-form-card .quality-row{
  position:relative !important;
  background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.035)) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:22px !important;
  padding:18px !important;
}

.admin-form-card .quality-row .q-top{
  display:grid !important;
  grid-template-columns:95px 1fr 150px 170px 44px !important;
  gap:12px !important;
  align-items:center !important;
}

.admin-form-card .quality-row .q-mid,
.admin-form-card .quality-row .q-bot{
  margin-top:12px !important;
}

.admin-form-card .quality-row .q-mid input,
.admin-form-card .quality-row .q-bot input{
  direction:ltr !important;
  text-align:left !important;
}

.admin-form-card .quality-row .form-check{
  display:flex !important;
  justify-content:center !important;
  margin:0 !important;
  padding:0 !important;
}

.admin-form-card .quality-row .form-check-input{
  display:none !important;
}

.admin-form-card .quality-row .form-check-label{
  min-width:64px !important;
  text-align:center !important;
  padding:10px 14px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.07) !important;
  border:1px solid rgba(255,255,255,.13) !important;
  color:rgba(255,255,255,.75) !important;
  cursor:pointer !important;
  font-weight:900 !important;
}

.admin-form-card .quality-row .form-check-input:checked + .form-check-label{
  background:#ffc107 !important;
  border-color:#ffc107 !important;
  color:#111 !important;
}

.admin-form-card .quality-row .btn-outline-danger{
  width:38px !important;
  height:38px !important;
  border-radius:50% !important;
  padding:0 !important;
  font-size:20px !important;
  line-height:1 !important;
}

.admin-form-card button[onclick="addQuality()"]{
  margin-top:10px !important;
  border-radius:999px !important;
  padding:10px 18px !important;
  border-color:rgba(255,193,7,.45) !important;
  color:#ffc107 !important;
}

@media(max-width:992px){
  .admin-form-card .quality-row .q-top{
    grid-template-columns:1fr 1fr !important;
  }
}




/* Compact video form */
.admin-form-body{
  padding:14px !important;
}

.fb-section{
  padding:14px !important;
  margin-bottom:12px !important;
  border-radius:18px !important;
}

.fb-section-title{
  margin-bottom:10px !important;
  padding-bottom:8px !important;
  font-size:16px !important;
}

.admin-form-card .form-control,
.admin-form-card .form-select{
  min-height:40px !important;
  padding:8px 12px !important;
  border-radius:12px !important;
}

.admin-form-card .form-label{
  margin-bottom:4px !important;
  font-size:12px !important;
}

.admin-form-card textarea.form-control{
  min-height:105px !important;
}

.admin-form-card textarea#cast_input{
  min-height:82px !important;
}

.admin-form-card .mb-3{
  margin-bottom:.55rem !important;
}

.admin-form-card .mb-2{
  margin-bottom:.4rem !important;
}

.admin-form-card .row.g-3{
  --bs-gutter-x:.65rem !important;
  --bs-gutter-y:.55rem !important;
}

.admin-form-card .quality-item{
  padding:12px !important;
  margin-bottom:10px !important;
  border-radius:16px !important;
}

.admin-form-card .quality-row{
  padding:12px !important;
}

.admin-form-card .quality-row .q-top{
  gap:8px !important;
}

.admin-form-card .quality-row .q-mid,
.admin-form-card .quality-row .q-bot{
  margin-top:8px !important;
}

.admin-form-card input[type="file"]{
  min-height:40px !important;
  padding:7px !important;
}



/* =========================================================
   FIX: iOS / touch browsers must not show poster hover overlay by default
   Safari on iOS reports hover:none/pointer:coarse, so the old rule made every
   poster look hovered. Keep hover overlays only for real mouse/trackpad devices.
   ========================================================= */
@media (hover: none), (pointer: coarse){
  .video-card .video-card-overlay,
  .video-card:not(.episode-card) .video-card-overlay{
    opacity: 0 !important;
    transform: translateY(12px) !important;
    pointer-events: none !important;
  }

  .video-card:hover .video-card-overlay,
  .video-card:not(.episode-card):hover .video-card-overlay{
    opacity: 0 !important;
    transform: translateY(12px) !important;
  }

  .video-card:hover,
  .video-card:not(.episode-card):hover{
    transform: none !important;
  }
}



/* Final clean Telegram-like glass play button */
.episode-poster-frame .episode-liquid-play{
  position:absolute !important;
  top:50% !important;
  left:50% !important;
  right:auto !important;
  bottom:auto !important;
  transform:translate(-50%, -50%) !important;

  width:62px !important;
  height:62px !important;
  min-width:62px !important;
  min-height:62px !important;
  padding:0 !important;
  border-radius:50% !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  background:rgba(0,0,0,.36) !important;
  border:2px solid rgba(255,255,255,.92) !important;
  box-shadow:0 8px 26px rgba(0,0,0,.42), inset 0 1px 2px rgba(255,255,255,.22) !important;
  backdrop-filter:blur(9px) saturate(140%) !important;
  -webkit-backdrop-filter:blur(9px) saturate(140%) !important;

  color:transparent !important;
  font-size:0 !important;
  line-height:1 !important;
  text-decoration:none !important;
  animation:none !important;
  z-index:50 !important;
}

.episode-poster-frame .episode-liquid-play::before{
  content:"" !important;
  display:block !important;
  width:0 !important;
  height:0 !important;
  border-top:13px solid transparent !important;
  border-bottom:13px solid transparent !important;
  border-left:21px solid #fff !important;
  margin-left:5px !important;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.45)) !important;
}

.episode-poster-frame .episode-liquid-play::after{
  display:none !important;
  content:none !important;
}

.episode-poster-frame .episode-liquid-play:hover{
  transform:translate(-50%, -50%) scale(1.06) !important;
  background:rgba(255,255,255,.18) !important;
}

/* دانلود قسمت های رایگان */
.episode-card .js-open-qualities{
    border-radius:14px !important;
    height:42px !important;

    background:linear-gradient(
        135deg,
        rgba(255,255,255,.06),
        rgba(255,255,255,.02)
    ) !important;

    border:1px solid rgba(255,255,255,.18) !important;

    color:#fff !important;
    font-weight:800 !important;

    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    transition:.25s ease;
}

.episode-card .js-open-qualities:hover{
    transform:translateY(-2px);
    border-color:#f6c445 !important;
    box-shadow:0 8px 22px rgba(246,196,69,.22);
    color:#f6c445 !important;
}

.episode-card .js-open-qualities::before{
    content:"⬇ ";
    font-size:14px;
}


.episode-card .js-open-qualities{
    font-size:0 !important;
}

.episode-card .js-open-qualities::before{
    content:"⬇ دانلود رایگان";
    font-size:14px;
    font-weight:800;
}


.episode-card .js-open-qualities{
    font-size:0 !important;
}

.episode-card .js-open-qualities::before{
    content:"دانلود رایگان";
    font-size:14px;
    font-weight:800;
}


/* Premium Download Modal */
#qualitiesModal .modal-content{
  background:#0f1115 !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:24px !important;
}

.fb-quality-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:#14181f;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:16px 18px;
  margin-bottom:12px;
  transition:.25s;
}

.fb-quality-row:hover{
  border-color:rgba(255,193,7,.35);
  transform:translateY(-1px);
}

.fb-quality-badge{
  min-width:110px;
  text-align:center;
  padding:10px 16px;
  border-radius:12px;
  background:#202632;
  color:#fff;
  font-weight:900;
  font-size:15px;
}

.fb-quality-meta{
  flex:1;
  text-align:center;
  color:#bfc6d4;
  font-size:14px;
  font-weight:700;
}

.fb-quality-download{
  min-width:150px;
  text-align:center;
  text-decoration:none;
  padding:12px 18px;
  border-radius:14px;
  background:linear-gradient(135deg,#ffc107,#ff9800);
  color:#111 !important;
  font-weight:900;
  transition:.25s;
}

.fb-quality-download:hover{
  transform:translateY(-2px);
  color:#111 !important;
}

@media(max-width:768px){
  .fb-quality-row{
    flex-direction:column;
    align-items:stretch;
    text-align:center;
  }

  .fb-quality-badge,
  .fb-quality-download{
    width:100%;
  }

  .fb-quality-meta{
    text-align:center;
  }
}

/* Premium Download Modal - compact + colored badges */
#qualitiesModal .modal-dialog{
  max-width:820px !important;
}

#qualitiesModal .modal-body{
  padding:18px 20px !important;
}

.fb-quality-row{
  padding:10px 14px !important;
  margin-bottom:8px !important;
  border-radius:14px !important;
  min-height:58px !important;
}

.fb-quality-badge{
  min-width:96px !important;
  padding:8px 13px !important;
  border-radius:11px !important;
  background:#252b35 !important;
  border:1px solid rgba(255,255,255,.12) !important;
}

.fb-quality-row:has(.fb-quality-badge:nth-child(1)){
  box-shadow:none !important;
}

.fb-quality-badge{
  box-shadow:none !important;
}

/* رنگ‌ها بر اساس متن کیفیت */
.fb-quality-badge{
  color:#fff !important;
}

.fb-quality-badge:contains("480p"){
  background:#2a303a !important;
}

.fb-quality-download{
  min-width:135px !important;
  padding:10px 14px !important;
  border-radius:12px !important;
}

/* چون CSS contains ندارد، رنگ‌ها را با JS کلاس می‌دهیم */

.fb-quality-badge.fb-q-480p{
  background:rgba(148,163,184,.16) !important;
  border-color:rgba(148,163,184,.45) !important;
}

.fb-quality-badge.fb-q-720p{
  background:rgba(37,99,235,.20) !important;
  border-color:rgba(59,130,246,.75) !important;
}

.fb-quality-badge.fb-q-1080p{
  background:rgba(255,193,7,.18) !important;
  border-color:rgba(255,193,7,.85) !important;
}

.fb-quality-badge.fb-q-hq1080,
.fb-quality-badge.fb-q-hq1080p{
  background:rgba(124,58,237,.22) !important;
  border-color:rgba(139,92,246,.85) !important;
}

.fb-quality-badge.fb-q-bluray,
.fb-quality-badge.fb-q-blueray{
  background:rgba(217,70,239,.22) !important;
  border-color:rgba(236,72,153,.85) !important;
}



/* fix: only explicitly-free buttons show free label */
.episode-card .js-open-qualities{
    font-size:14px !important;
}

.episode-card .js-open-qualities::before{
    content:none !important;
    display:none !important;
}

.episode-card .js-open-qualities.is-free-download{
    font-size:0 !important;
}

.episode-card .js-open-qualities.is-free-download::before{
    content:"دانلود رایگان" !important;
    display:inline !important;
    font-size:14px !important;
    font-weight:800 !important;
}

html{
  scroll-behavior:smooth;
}

.fb-comment-jump,
.js-comment-count-btn{
  border-radius:999px !important;
  padding:8px 14px !important;
  background:rgba(255,255,255,.07) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  color:#fff !important;
  font-weight:900 !important;
  text-decoration:none !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  transition:.22s ease !important;
}

.fb-comment-jump:hover,
.js-comment-count-btn:hover{
  background:rgba(255,193,7,.16) !important;
  border-color:rgba(255,193,7,.65) !important;
  color:#ffc107 !important;
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(255,193,7,.14);
}

#comments{
  scroll-margin-top:120px;
}


/* Like / Dislike buttons */
#fb-interactions{
  margin-top:18px !important;
}

#fb-interactions .js-vote{
  min-width:74px;
  height:40px;
  border-radius:999px !important;
  font-weight:900 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  transition:.22s ease !important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

#fb-interactions .js-vote[data-vote="1"]{
  background:rgba(34,197,94,.10) !important;
  border:1px solid rgba(34,197,94,.45) !important;
  color:#86efac !important;
}

#fb-interactions .js-vote[data-vote="-1"]{
  background:rgba(239,68,68,.10) !important;
  border:1px solid rgba(239,68,68,.45) !important;
  color:#fca5a5 !important;
}

#fb-interactions .js-vote:hover{
  transform:translateY(-2px) scale(1.03);
}

#fb-interactions .js-vote[data-vote="1"]:hover{
  background:rgba(34,197,94,.18) !important;
  box-shadow:0 10px 24px rgba(34,197,94,.16);
}

#fb-interactions .js-vote[data-vote="-1"]:hover{
  background:rgba(239,68,68,.18) !important;
  box-shadow:0 10px 24px rgba(239,68,68,.16);
}

#fb-interactions .fb-comment-jump{
  height:40px;
}


/* ===== Premium Vote Bar ===== */

#fb-interactions .d-flex{
    gap:12px !important;
}

#fb-interactions .js-vote,
#fb-interactions .fb-comment-jump{
    min-width:84px;
    height:44px;
    border-radius:999px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    font-weight:800 !important;
    text-decoration:none !important;
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    transition:all .25s ease;
    border:1px solid rgba(255,255,255,.08);
}

/* Like */
#fb-interactions .js-vote[data-vote="1"]{
    background:
      linear-gradient(135deg,
      rgba(34,197,94,.22),
      rgba(16,185,129,.08));
    border-color:rgba(34,197,94,.55) !important;
    color:#9af7b7 !important;
}

#fb-interactions .js-vote[data-vote="1"]:hover{
    transform:translateY(-2px);
    box-shadow:
      0 0 24px rgba(34,197,94,.22),
      0 10px 30px rgba(34,197,94,.18);
}

/* Dislike */
#fb-interactions .js-vote[data-vote="-1"]{
    background:
      linear-gradient(135deg,
      rgba(239,68,68,.22),
      rgba(220,38,38,.08));
    border-color:rgba(239,68,68,.55) !important;
    color:#ffb3b3 !important;
}

#fb-interactions .js-vote[data-vote="-1"]:hover{
    transform:translateY(-2px);
    box-shadow:
      0 0 24px rgba(239,68,68,.22),
      0 10px 30px rgba(239,68,68,.18);
}

/* Comment */
#fb-interactions .fb-comment-jump{
    background:
      linear-gradient(135deg,
      rgba(255,193,7,.24),
      rgba(255,193,7,.08));
    border-color:rgba(255,193,7,.65) !important;
    color:#ffd95a !important;
}

#fb-interactions .fb-comment-jump:hover{
    transform:translateY(-2px);
    box-shadow:
      0 0 24px rgba(255,193,7,.22),
      0 10px 30px rgba(255,193,7,.18);
}

/* counts */
#fb-interactions .js-like-count,
#fb-interactions .js-dislike-count,
#fb-interactions .js-comment-count{
    font-weight:900;
    font-size:.95rem;
}

/* mobile */
@media (max-width:991px){

  #fb-interactions .js-vote,
  #fb-interactions .fb-comment-jump{
      min-width:72px;
      height:40px;
      font-size:13px;
  }

}


/* Replace emoji icons with premium CSS icons */
#fb-interactions .js-vote,
#fb-interactions .fb-comment-jump{
    font-size:0 !important;
}

#fb-interactions .js-vote .js-like-count,
#fb-interactions .js-vote .js-dislike-count,
#fb-interactions .fb-comment-jump .js-comment-count{
    font-size:14px !important;
    margin-inline-start:8px;
}

#fb-interactions .js-vote::before,
#fb-interactions .fb-comment-jump::before{
    font-size:18px !important;
    line-height:1;
}

#fb-interactions .js-vote[data-vote="1"]::before{
    content:"👍";
    filter:saturate(1.25);
}

#fb-interactions .js-vote[data-vote="-1"]::before{
    content:"👎";
    filter:saturate(1.25);
}

#fb-interactions .fb-comment-jump::before{
    content:"💬";
    filter:saturate(1.25);
}


/* SVG line like/dislike */
#fb-interactions .js-vote{
  min-width:78px !important;
  height:44px !important;
  border-radius:999px !important;
  padding:0 15px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:9px !important;
  background:rgba(255,255,255,.045) !important;
  border:1px solid rgba(255,255,255,.16) !important;
  color:#fff !important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transition:.22s ease !important;
}

#fb-interactions .fb-vote-svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.95;
}

#fb-interactions .fb-vote-like{
  color:#f8fafc !important;
}

#fb-interactions .fb-vote-dislike{
  color:#f8fafc !important;
}

#fb-interactions .fb-vote-like:hover{
  color:#86efac !important;
  border-color:rgba(34,197,94,.65) !important;
  background:rgba(34,197,94,.10) !important;
  box-shadow:0 0 22px rgba(34,197,94,.16);
}

#fb-interactions .fb-vote-dislike:hover{
  color:#fca5a5 !important;
  border-color:rgba(239,68,68,.65) !important;
  background:rgba(239,68,68,.10) !important;
  box-shadow:0 0 22px rgba(239,68,68,.16);
}

#fb-interactions .js-like-count,
#fb-interactions .js-dislike-count{
  font-size:14px !important;
  font-weight:900 !important;
  color:currentColor !important;
}


/* remove old emoji pseudo icons, keep SVG only */
#fb-interactions .js-vote::before,
#fb-interactions .js-vote::after{
  content:none !important;
  display:none !important;
}

#fb-interactions .js-vote{
  font-size:14px !important;
}

#fb-interactions .fb-vote-svg{
  display:block !important;
}


/* Episode Watch Online Button - match premium style */
.episode-card a.btn-primary,
.episode-card .btn-primary{
    border-radius:14px !important;
    height:42px !important;

    background:linear-gradient(135deg,#1577ff,#0066e6) !important;
    border:1px solid rgba(80,150,255,.75) !important;

    color:#fff !important;
    font-weight:900 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    box-shadow:
      0 8px 22px rgba(0,102,230,.22),
      inset 0 1px 0 rgba(255,255,255,.18) !important;

    transition:.22s ease !important;
}

.episode-card a.btn-primary:hover,
.episode-card .btn-primary:hover{
    transform:translateY(-2px);
    background:linear-gradient(135deg,#2584ff,#0872ff) !important;
    box-shadow:
      0 12px 28px rgba(0,102,230,.32),
      inset 0 1px 0 rgba(255,255,255,.22) !important;
}


/* =========================================================
   SERIES POSTER STACK - sharp multi-poster look like sample
   Applies ONLY to series posters in home rows and listing pages.
   ========================================================= */

/* Home slider/list row: stack is on the item wrapper */
main.fb-main .fb-row-scroll .fb-row-item.fb-has-stack{
  position: relative !important;
  overflow: visible !important;
  isolation: isolate;
}

main.fb-main .fb-row-scroll .fb-row-item.fb-has-stack::before,
main.fb-main .fb-row-scroll .fb-row-item.fb-has-stack::after{
  content: "" !important;
  position: absolute !important;
  left: 0;
  right: 0;
  top: 0;
  aspect-ratio: 850 / 1280;
  border-radius: 14px !important;
  background-image: var(--fb-stack-img) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
  pointer-events: none;
  z-index: -1;
  filter: none !important;      /* واضح و شفاف، بدون بلور */
}

main.fb-main .fb-row-scroll .fb-row-item.fb-has-stack::before{
  transform: translate(10px, -10px) scale(.985);
  opacity: .55;
}

main.fb-main .fb-row-scroll .fb-row-item.fb-has-stack::after{
  transform: translate(19px, -19px) scale(.97);
  opacity: .34;
}

main.fb-main .fb-row-scroll .fb-row-item.fb-has-stack > .video-card{
  position: relative !important;
  z-index: 2 !important;
}

/* Listing / category / search pages: stack class is on the card itself */
.video-card.fb-series-stack{
  position: relative !important;
  overflow: visible !important;
  isolation: isolate;
}

.video-card.fb-series-stack::before,
.video-card.fb-series-stack::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  aspect-ratio: 850 / 1280;
  border-radius: 18px;
  background-image: var(--fb-stack-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
  pointer-events: none;
  z-index: -1;
  filter: none;
}

.video-card.fb-series-stack::before{
  transform: translate(10px, -10px) scale(.985);
  opacity: .55;
}

.video-card.fb-series-stack::after{
  transform: translate(19px, -19px) scale(.97);
  opacity: .34;
}

.video-card.fb-series-stack .poster-frame{
  position: relative;
  z-index: 2;
}

@media (hover:hover){
  main.fb-main .fb-row-scroll .fb-row-item.fb-has-stack:hover::before,
  .video-card.fb-series-stack:hover::before{
    transform: translate(12px, -12px) scale(.985);
    opacity: .62;
  }

  main.fb-main .fb-row-scroll .fb-row-item.fb-has-stack:hover::after,
  .video-card.fb-series-stack:hover::after{
    transform: translate(23px, -23px) scale(.97);
    opacity: .40;
  }
}

@media (max-width: 576px){
  main.fb-main .fb-row-scroll .fb-row-item.fb-has-stack::before,
  .video-card.fb-series-stack::before{
    transform: translate(7px, -7px) scale(.985);
  }

  main.fb-main .fb-row-scroll .fb-row-item.fb-has-stack::after,
  .video-card.fb-series-stack::after{
    transform: translate(13px, -13px) scale(.97);
  }
}

/* =========================================================
   Filmobin season selector - desktop pill UI
   تغییر فقط ظاهری است: لینک‌ها و منطق انتخاب فصل دست‌نخورده مانده‌اند.
   ========================================================= */
.season-pill-wrap{
  margin-top: 16px !important;
  margin-bottom: 14px !important;
}

.season-pill-inner{
  direction: rtl !important;
  justify-content: center !important;
  gap: 16px !important;
  padding: 14px 5vw !important;
  flex-wrap: wrap !important;
}

.season-pill{
  min-width: 138px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none !important;
  color: rgba(255,255,255,.92) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    #14191f;
  border: 1px solid rgba(255,255,255,.11);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 10px 26px rgba(0,0,0,.20);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
  white-space: nowrap;
}

.season-pill:hover{
  transform: translateY(-2px);
  color: #fff !important;
  border-color: rgba(255,193,7,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 14px 34px rgba(0,0,0,.28),
    0 0 0 3px rgba(255,193,7,.08);
}

.season-pill.is-active{
  color: #141414 !important;
  background:
    linear-gradient(135deg, #ffd84d 0%, #ffc107 45%, #b98200 100%);
  border-color: rgba(255,193,7,.95);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    0 12px 30px rgba(255,193,7,.24),
    0 0 24px rgba(255,193,7,.26);
}

.season-pill__title{
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.2px;
}

.season-pill__count{
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  opacity: .72;
}

.season-pill.is-active .season-pill__count{
  opacity: .86;
}

@media (max-width: 768px){
  .season-pill-inner{
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding: 12px 16px 14px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
  }
  .season-pill-inner::-webkit-scrollbar{
    display: none !important;
  }
  .season-pill{
    min-width: 96px;
    min-height: 40px;
    padding: 8px 14px;
    flex: 0 0 auto;
  }
  .season-pill__title{
    font-size: 14px;
  }
  .season-pill__count{
    margin-top: 3px;
    font-size: 10.5px;
  }
}


/* Blog detail SEO/content fixes */
.blog-detail-page .blog-post-card,
.blog-detail-page .blog-sidebar-widget{
  background: rgba(20, 25, 31, .96);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
}

.blog-featured-media{
  text-align: center;
}
.blog-featured-media img,
.blog-featured-media video{
  width: auto;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.blog-content{
  font-size: 16px;
  line-height: 2.05;
  color: rgba(255,255,255,.88);
}
.blog-content p,
.blog-content li{
  line-height: 2.05;
}
.blog-content h2{
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.7;
  margin: 2rem 0 1rem;
}
.blog-content h3{
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  line-height: 1.7;
}
.blog-content img{
  display: block;
  width: auto;
  max-width: min(100%, 720px);
  max-height: 420px;
  object-fit: contain;
  margin: 1rem auto;
  border-radius: 14px;
}
.blog-content table{
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  overflow: hidden;
}
.blog-content th,
.blog-content td{
  border: 1px solid rgba(255,255,255,.16);
  padding: .75rem .9rem;
  vertical-align: top;
}
.blog-content th{
  background: rgba(255,193,7,.14);
  font-weight: 800;
}
.blog-content tr:nth-child(even) td{
  background: rgba(255,255,255,.035);
}
.blog-content details{
  margin: 1rem 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  overflow: hidden;
}
.blog-content summary{
  cursor: pointer;
  padding: .85rem 1rem;
  font-weight: 800;
  background: rgba(255,193,7,.11);
}
.blog-content details > *:not(summary){
  padding: 0 1rem 1rem;
}

.blog-sidebar{
  position: sticky;
  top: 92px;
}
.blog-sidebar-title{
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
.blog-sidebar-list{
  display: grid;
  gap: .85rem;
}
.blog-sidebar-item{
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.88);
  text-decoration: none;
}
.blog-sidebar-item:hover{
  color: #ffc107;
}
.blog-sidebar-item img{
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  flex: 0 0 auto;
}
.blog-news-list .blog-sidebar-item img{
  width: 72px;
  height: 48px;
}
.blog-sidebar-item span{
  font-size: .92rem;
  line-height: 1.7;
}

@media (max-width: 991.98px){
  .blog-sidebar{
    position: static;
  }
}



/* Blog sidebar latest items */
.blog-sidebar-media-item{
  align-items:center;
  gap:12px;
}

.blog-sidebar-poster{
  width:64px;
  height:86px;
  object-fit:cover;
  border-radius:12px;
  flex:0 0 64px;
  box-shadow:0 8px 20px rgba(0,0,0,.28);
}

.blog-sidebar-info{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.blog-sidebar-name{
  font-weight:700;
  line-height:1.7;
}

.blog-sidebar-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  font-size:.78rem;
  opacity:.78;
  line-height:1.5;
}

.blog-sidebar-meta span{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  padding:2px 8px;
}



/* Blog sidebar latest visual fix */
.blog-sidebar .blog-sidebar-media-item{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
}

.blog-sidebar .blog-sidebar-media-item .blog-sidebar-poster,
.blog-sidebar .blog-sidebar-item img.blog-sidebar-poster{
  width:72px !important;
  height:96px !important;
  object-fit:cover !important;
  border-radius:14px !important;
  overflow:hidden !important;
  flex:0 0 72px !important;
  box-shadow:0 8px 22px rgba(0,0,0,.35) !important;
}

.blog-sidebar .blog-sidebar-info{
  display:flex !important;
  flex-direction:column !important;
  gap:7px !important;
  min-width:0 !important;
}

.blog-sidebar .blog-sidebar-name{
  font-weight:800 !important;
  line-height:1.7 !important;
}

.blog-sidebar .blog-sidebar-meta{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:6px !important;
  font-size:.76rem !important;
  line-height:1.5 !important;
  opacity:.9 !important;
}

.blog-sidebar .blog-sidebar-meta span{
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:999px !important;
  padding:2px 8px !important;
  color:#cfd6df !important;
}


/* Blog sidebar meta smaller */
.blog-sidebar .blog-sidebar-meta{
  font-size:.68rem !important;
  gap:4px !important;
}

.blog-sidebar .blog-sidebar-meta span{
  padding:1px 6px !important;
  border-radius:999px !important;
}


/* Blog sidebar JS alignment base */
@media (min-width: 992px){
  .blog-detail-page .blog-sidebar{
    position: static !important;
    top: auto !important;
    padding-top: 0 !important;
  }
}


/* Added: coming soon/live badges */
.coming-soon-ribbon,.live-ribbon,.persian-reporter-ribbon{position:absolute;top:10px;right:10px;z-index:5;padding:5px 
10px;border-radius:999px;font-size:12px;font-weight:900;color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.coming-soon-ribbon{background:#0d6efd;}
.live-ribbon{background:#dc3545;right:auto;left:10px;}
.persian-reporter-ribbon{background:#198754;top:44px;}
.fb-live-player{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:18px;}

/* World Cup 2026 module */
.wc-hero{min-height:420px;background:#111827 center/cover 
no-repeat;border-radius:24px;padding:42px;display:flex;align-items:center;border:1px solid 
rgba(255,255,255,.12);overflow:hidden}.wc-hero__content{max-width:760px}.wc-logo{max-height:96px;max-width:220px;object-fit:contain;margin-bottom:18px}.wc-hero 
h1{font-size:clamp(2rem,5vw,4.5rem);font-weight:900}.wc-countdown{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.wc-countdown>div{min-width:92px;text-align:center;background:rgba(255,255,255,.1);border:1px 
solid rgba(255,255,255,.16);border-radius:16px;padding:14px}.wc-countdown b{font-size:2rem;display:block}.wc-countdown 
span{color:rgba(255,255,255,.7)}.wc-box{background:rgba(255,255,255,.045);border:1px solid 
rgba(255,255,255,.1);border-radius:20px;padding:22px}.wc-match{display:grid;grid-template-columns:1fr auto 
1fr;gap:12px;align-items:center;text-decoration:none;color:#fff;background:rgba(255,255,255,.06);border:1px solid 
rgba(255,255,255,.1);border-radius:16px;padding:16px}.wc-match b{font-size:1.3rem;color:#ffc107}.wc-match 
small{grid-column:1/-1;color:rgba(255,255,255,.65)}.wc-match 
em{grid-column:1/-1;color:#ffb3b3;font-style:normal}.wc-bracket{display:flex;gap:16px;overflow-x:auto;padding-bottom:8px}.wc-bracket>div{min-width:220px}.wc-bracket 
h3{font-size:1rem;text-align:center}.wc-bracket-card{background:rgba(255,255,255,.07);border:1px solid 
rgba(255,255,255,.12);border-radius:14px;padding:12px;margin-bottom:12px;display:grid;gap:8px}.wc-bracket-card 
span{display:flex;justify-content:space-between}.wc-poster{width:100%;max-height:420px;object-fit:cover;border-radius:18px;margin-bottom:18px}.wc-score{font-size:3rem;font-weight:900;color:#ffc107;margin:18px 
0}@media(max-width:768px){.wc-hero{padding:24px;min-height:320px}.wc-match{grid-template-columns:1fr;text-align:center}.wc-countdown>div{min-width:70px;padding:10px}.wc-countdown 
b{font-size:1.5rem}}


/* World Cup 2026 Event Hub redesign */
.wc-event-hub{--wc-accent:#DA2E61;--wc-gold:#ffc857;--wc-panel:rgba(255,255,255,.055);--wc-border:rgba(255,255,255,.12);--wc-text:rgba(255,255,255,.88);color:var(--wc-text);margin-inline:calc(50% 
- 50vw);padding-bottom:56px;scroll-behavior:smooth}.wc-event-hub 
a{text-decoration:none}.wc-hero{position:relative;width:100vw;min-height:clamp(460px,60vh,680px);max-height:720px;display:flex;align-items:flex-end;background:#090b14 
center/cover no-repeat;border-bottom:1px solid rgba(255,255,255,.12);overflow:hidden;padding:clamp(110px,14vw,150px) 
clamp(24px,7vw,96px) 42px}.wc-hero:after{content:"";position:absolute;inset:auto 0 
0;height:45%;background:linear-gradient(180deg,transparent,rgba(5,6,12,.92));pointer-events:none}.wc-hero__brand{position:absolute;top:34px;right:clamp(24px,6vw,82px);z-index:2;display:grid;gap:10px;justify-items:center;padding:14px 
16px;background:rgba(5,7,14,.42);border:1px solid 
rgba(255,255,255,.16);border-radius:22px;backdrop-filter:blur(14px)}.wc-logo{max-width:150px;max-height:92px;object-fit:contain;margin:0}.wc-hero__brand 
span,.wc-eyebrow,.wc-section-heading>span{letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.68);font-size:.78rem}.wc-hero__content{position:relative;z-index:2;max-width:780px;display:grid;gap:18px;line-height:1.95}.wc-hero 
h1{font-size:clamp(2.15rem,4.4vw,4.2rem);font-weight:900;letter-spacing:.045em;line-height:1.25;margin:0}.wc-hero 
p{font-size:clamp(1rem,1.5vw,1.22rem);line-height:2.05;max-width:680px;margin:0;color:rgba(255,255,255,.78)}.wc-hero__meta{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.wc-status-pill,.wc-live-badge{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:8px 
13px;background:rgba(218,46,97,.16);border:1px solid 
var(--wc-accent);color:#fff}.wc-anchor-nav{position:absolute;z-index:3;left:50%;bottom:24px;transform:translateX(-50%);display:flex;gap:10px;flex-wrap:wrap;justify-content:center;padding:10px;background:rgba(7,9,18,.72);border:1px 
solid rgba(255,255,255,.12);border-radius:999px;backdrop-filter:blur(16px)}.wc-anchor-nav a{color:#fff;padding:9px 
15px;border-radius:999px;background:rgba(255,255,255,.07);transition:.2s}.wc-anchor-nav 
a:hover{background:rgba(218,46,97,.34)}.wc-mobile-hero-slider{display:none}.wc-countdown-wrap{max-width:1180px;margin:30px auto 
42px;padding:0 
24px}.wc-countdown{display:grid;grid-template-columns:repeat(4,minmax(118px,1fr));gap:18px;direction:ltr}.wc-countdown__card{text-align:center;background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.045));border:1px 
solid var(--wc-accent);border-radius:22px;padding:18px 14px;box-shadow:0 18px 42px 
rgba(0,0,0,.2);transition:.2s}.wc-countdown__card:hover{box-shadow:0 0 28px 
rgba(218,46,97,.22);transform:translateY(-2px)}.wc-countdown__card 
b{display:block;font-size:clamp(1.9rem,4vw,3rem);line-height:1.05;color:#fff}.wc-countdown__card 
span{display:block;margin-top:8px;color:rgba(255,255,255,.68);font-size:.88rem}.wc-hub-grid{max-width:1180px;margin:0 
auto;display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2fr);gap:28px;align-items:start;padding:0 
24px}.wc-news-sidebar{position:sticky;top:92px;max-height:calc(100vh - 
112px);overflow:auto;background:rgba(255,255,255,.045);border:1px solid 
var(--wc-border);border-radius:28px;padding:20px;box-shadow:0 24px 70px 
rgba(0,0,0,.18)}.wc-news-list{display:grid;gap:14px}.wc-news-card{position:relative;display:grid;gap:7px;padding:15px 16px 15px 
14px;background:rgba(255,255,255,.055);border:1px solid 
rgba(255,255,255,.1);border-radius:18px;color:#fff;line-height:1.8}.wc-news-card:before{content:"";position:absolute;right:-1px;top:18px;width:3px;height:34px;background:var(--wc-accent);border-radius:99px}.wc-news-card 
time{font-size:.78rem;color:var(--wc-gold)}.wc-news-card strong{font-size:.98rem}.wc-news-card 
p{margin:0;color:rgba(255,255,255,.66);font-size:.88rem}.wc-main-content{display:grid;gap:30px}.wc-panel{background:var(--wc-panel);border:1px 
solid var(--wc-border);border-radius:30px;padding:clamp(20px,3vw,30px);box-shadow:0 22px 70px 
rgba(0,0,0,.14);scroll-margin-top:96px}.wc-panel--featured{border-color:rgba(218,46,97,.34)}.wc-section-heading{display:grid;gap:8px;margin-bottom:20px}.wc-section-heading 
h2{font-size:clamp(1.35rem,2.5vw,2rem);line-height:1.5;margin:0}.wc-section-heading 
p{margin:0;color:rgba(255,255,255,.64);line-height:1.9}.wc-match-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.wc-match-card{display:grid;gap:14px;color:#fff;background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.04));border:1px 
solid 
rgba(255,255,255,.12);border-radius:22px;padding:18px;transition:.2s}.wc-match-card:hover{transform:translateY(-3px);border-color:rgba(218,46,97,.55)}.wc-match-card__top,.wc-match-card__meta{display:flex;justify-content:space-between;gap:10px;color:rgba(255,255,255,.62);font-size:.86rem}.wc-match-card__top 
em{font-style:normal;color:var(--wc-gold)}.wc-match-card__teams{display:grid;grid-template-columns:1fr auto 
1fr;align-items:center;gap:10px;text-align:center;font-weight:800}.wc-match-card__teams 
b{color:var(--wc-gold);font-size:1.25rem}.wc-match-card 
small{color:rgba(255,255,255,.58)}.wc-groups-accordion{display:grid;gap:12px}.wc-group-card{background:rgba(255,255,255,.055);border:1px 
solid rgba(255,255,255,.12);border-radius:18px;overflow:hidden}.wc-group-card 
summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:16px 
18px;font-weight:800}.wc-group-card summary 
span{font-size:.82rem;color:rgba(255,255,255,.58);font-weight:500}.wc-group-table{width:100%;color:#fff;border-collapse:collapse;font-size:.88rem}.wc-group-table 
th,.wc-group-table td{padding:10px;border-top:1px solid 
rgba(255,255,255,.09);white-space:nowrap;text-align:center}.wc-group-table th:first-child,.wc-group-table 
td:first-child{text-align:right}.wc-intro-text{line-height:2.05;color:rgba(255,255,255,.76);max-height:260px;overflow:auto}.wc-bracket-tree{display:flex;gap:18px;overflow-x:auto;padding:8px 
4px 18px;scroll-snap-type:x 
proximity}.wc-bracket-stage{min-width:220px;scroll-snap-align:start;position:relative}.wc-bracket-stage 
h3{text-align:center;font-size:1rem;margin-bottom:14px;color:var(--wc-gold)}.wc-bracket-card{position:relative;display:grid;gap:9px;background:rgba(255,255,255,.07);border:1px 
solid 
rgba(255,255,255,.14);border-radius:16px;padding:13px;margin-bottom:16px}.wc-bracket-card:after{content:"";position:absolute;left:-18px;top:50%;width:18px;border-top:1px 
solid rgba(218,46,97,.42)}.wc-bracket-stage:first-child .wc-bracket-card:after{display:none}.wc-bracket-card 
span{display:flex;justify-content:space-between;gap:10px}.wc-bracket-card--empty{color:rgba(255,255,255,.54)}.wc-related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.wc-related-card,.wc-empty-state{background:rgba(255,255,255,.06);border:1px 
solid 
rgba(255,255,255,.11);border-radius:18px;padding:16px;color:#fff;line-height:1.8}.wc-empty-state{margin:0;color:rgba(255,255,255,.7)}
@media(max-width:992px){.wc-hub-grid{grid-template-columns:1fr}.wc-news-sidebar{position:relative;top:auto;max-height:none;order:2}.wc-news-list{display:flex;overflow-x:auto;padding-bottom:8px}.wc-news-card{min-width:260px}.wc-match-grid{grid-template-columns:1fr}.wc-hero{min-height:420px}}
@media(max-width:768px){.wc-event-hub{margin-inline:calc(50% - 
50vw);padding-bottom:36px}.wc-hero--desktop{display:none}.wc-mobile-hero-slider{display:block;margin:0 calc(50% - 50vw) 
18px;padding:12px 0 0;overflow:hidden}.wc-mobile-hero-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x 
mandatory;padding:0 18px 10px}.wc-mobile-hero-card{scroll-snap-align:center;flex:0 0 
82vw;min-height:58vw;max-height:420px;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;padding:18px;border-radius:26px;background:#151827 
center/cover no-repeat;border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 50px 
rgba(0,0,0,.24);overflow:hidden}.wc-mobile-hero-card 
img{width:72px;max-height:58px;object-fit:contain;align-self:flex-start}.wc-mobile-hero-card 
span{color:rgba(255,255,255,.68);letter-spacing:.12em;font-size:.75rem}.wc-mobile-hero-card 
h2{font-size:1.35rem;line-height:1.55;margin:0;color:#fff}.wc-mobile-hero-card 
a{align-self:flex-start;color:#fff;background:var(--wc-accent);border-radius:999px;padding:8px 
13px}.wc-mobile-hero-card--solid{background:linear-gradient(135deg,rgba(218,46,97,.35),rgba(22,25,42,.95))}.wc-mobile-hero-card--accent{background:linear-gradient(135deg,rgba(255,200,87,.24),rgba(22,25,42,.95))}.wc-countdown-wrap{margin:18px 
auto 26px;padding:0 18px}.wc-countdown{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wc-countdown__card{padding:18px 
10px;border-radius:18px}.wc-hub-grid{display:flex;flex-direction:column;padding:0 
18px;gap:22px}.wc-main-content{display:contents}.wc-panel{border-radius:22px;padding:19px;scroll-margin-top:24px}.wc-panel--featured{order:1}.wc-groups-accordion{order:2}.wc-news-sidebar{order:5;width:100%;padding:18px;border-radius:22px}.wc-panel--bracket{order:6}.wc-bracket-tree{gap:12px;cursor:grab}.wc-bracket-stage{min-width:78vw}.wc-match-card__teams{grid-template-columns:1fr;gap:7px}.wc-match-card__top,.wc-match-card__meta{flex-direction:column}.wc-group-table{font-size:.78rem}.wc-section-heading 
h2{font-size:1.25rem}}

/* =========================================================
   World Cup Event Hub - viewport/grid alignment hotfix
   Fixes RTL full-bleed horizontal drift and puts sidebar on LEFT
   ========================================================= */
html, body{
  overflow-x: hidden !important;
}

.wc-event-hub{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding-bottom: 56px !important;
  overflow-x: clip !important;
  direction: rtl !important;
}

.wc-hero,
.wc-mobile-hero-slider{
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

.wc-hub-grid{
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  direction: ltr !important;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr) !important;
}

.wc-news-sidebar,
.wc-main-content,
.wc-panel{
  direction: rtl !important;
  min-width: 0 !important;
}

.wc-main-content{
  width: 100% !important;
}

.wc-panel{
  max-width: 100% !important;
  overflow: hidden !important;
}

.wc-group-card .table-responsive,
.wc-bracket-tree{
  max-width: 100% !important;
  overflow-x: auto !important;
}

.wc-bracket-tree{
  direction: rtl !important;
}

@media (min-width: 993px){
  .wc-news-sidebar{
    grid-column: 1 !important;
  }
  .wc-main-content{
    grid-column: 2 !important;
  }
}

@media (max-width: 992px){
  .wc-hub-grid{
    width: min(100%, calc(100% - 36px)) !important;
    display: flex !important;
    flex-direction: column !important;
    direction: rtl !important;
  }
  .wc-main-content{
    display: contents !important;
  }
}

@media (max-width: 768px){
  .wc-event-hub{
    margin: 0 auto !important;
    padding-bottom: 36px !important;
  }
  .wc-mobile-hero-slider{
    display: block !important;
    margin: 0 0 18px !important;
    padding: 12px 0 0 !important;
  }
  .wc-hub-grid{
    width: min(100%, calc(100% - 24px)) !important;
  }
  .wc-panel,
  .wc-news-sidebar{
    width: 100% !important;
  }
}

/* =========================================================
   World Cup Hero / Slider full-width only - corrected centering
   Only the hero breaks out of the Bootstrap container. The rest
   of the page remains centered.
   ========================================================= */
html, body{
  overflow-x: hidden !important;
}

.wc-event-hub{
  overflow-x: clip !important;
}

.wc-hero--desktop,
.wc-mobile-hero-slider{
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: translateX(-50%) !important;
}

.wc-hero--desktop{
  border-radius: 0 !important;
}

@media (min-width: 769px){
  .wc-mobile-hero-slider{display:none !important;}
}

@media (max-width: 768px){
  .wc-hero--desktop{display:none !important;}
  .wc-mobile-hero-slider{
    display:block !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    padding: 12px 0 0 !important;
    overflow: hidden !important;
  }
}

/* =========================================================
   FINAL FIX - World Cup hero true full-bleed without clipping
   Root cause: .wc-event-hub had overflow-x: clip, so the 100vw
   hero was clipped by the Bootstrap container boundary.
   ========================================================= */
.wc-event-hub{
  overflow: visible !important;
  overflow-x: visible !important;
  width: 100% !important;
  max-width: 100% !important;
}

.wc-hero--desktop{
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

.wc-mobile-hero-slider{
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px){
  .wc-hero--desktop{
    display: flex !important;
  }
  .wc-mobile-hero-slider{
    display: none !important;
  }
}

@media (max-width: 768px){
  .wc-hero--desktop{
    display: none !important;
  }
  .wc-mobile-hero-slider{
    display: block !important;
  }
}



/* =========================================================
   FINAL REAL FIX - World Cup hero full viewport width
   This uses container breakout margins instead of left:50% transform,
   so RTL + Bootstrap container cannot shift or clip the hero.
   ========================================================= */
html, body{
  overflow-x: hidden !important;
}

.wc-event-hub{
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline: 0 !important;
  overflow: visible !important;
  overflow-x: visible !important;
}

.wc-hero--desktop,
.wc-mobile-hero-slider{
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  margin-left: calc((100vw - 100%) / -2) !important;
  margin-right: calc((100vw - 100%) / -2) !important;
  margin-inline-start: calc((100vw - 100%) / -2) !important;
  margin-inline-end: calc((100vw - 100%) / -2) !important;
  box-sizing: border-box !important;
}

.wc-hero--desktop{
  border-radius: 0 !important;
  min-height: clamp(460px, 60vh, 680px) !important;
}

@media (min-width: 769px){
  .wc-hero--desktop{ display: flex !important; }
  .wc-mobile-hero-slider{ display: none !important; }
}

@media (max-width: 768px){
  .wc-hero--desktop{ display: none !important; }
  .wc-mobile-hero-slider{
    display: block !important;
    padding-top: 12px !important;
    margin-bottom: 18px !important;
    overflow: hidden !important;
  }
}


/* =========================================================
   World Cup 2026 exact dark/pink visual pass - 2026-06-10
   Scoped to .wc26 so the rest of Filmobin stays untouched.
   ========================================================= */
:root{--wc26-bg:#080b12;--wc26-card:#0d111b;--wc26-card2:#111621;--wc26-line:rgba(255,255,255,.10);--wc26-text:#f8f8fb;--wc26-muted:rgba(255,255,255,.68);--wc26-pink:#ff2d78;--wc26-pink2:#d51661;--wc26-gold:#ffc62d}
.wc26{background:radial-gradient(circle at 18% 8%,rgba(112,0,180,.24),transparent 28%),radial-gradient(circle at 74% 
0,rgba(255,45,120,.08),transparent 24%),linear-gradient(180deg,#080b12 0%,#090d14 55%,#070a10 
100%);color:var(--wc26-text);width:100vw!important;max-width:100vw!important;margin-inline:calc(50% - 50vw)!important;padding:0 
6vw 54px!important;overflow:hidden!important}
.wc26 a{text-decoration:none!important}.wc26-hero{position:relative;display:grid;grid-template-columns:minmax(280px,37%) 
minmax(360px,1fr) 170px;gap:30px;align-items:center;min-height:310px;padding:34px 0 
16px;background:linear-gradient(90deg,rgba(255,45,120,.10),transparent 45%),var(--wc26-hero-img,none) center/cover 
no-repeat}.wc26-hero:before{content:"";position:absolute;inset:0;margin-inline:-6vw;background:linear-gradient(90deg,rgba(255,45,120,.18),rgba(8,11,18,.75) 
30%,rgba(8,11,18,.95) 70%),radial-gradient(ellipse at 22% 52%,rgba(255,45,120,.34),transparent 
28%);z-index:0}.wc26-hero>*{position:relative;z-index:1}.wc26-hero-art{min-height:255px;display:flex;align-items:center;justify-content:center;isolation:isolate}.wc26-cup-shape{width:140px;height:190px;border:14px 
solid rgba(255,255,255,.92);border-left-color:var(--wc26-pink);border-radius:36px 86px 36px 86px;transform:skew(-8deg) 
rotate(-5deg);box-shadow:0 0 40px rgba(255,45,120,.42),inset 0 0 30px 
rgba(0,0,0,.55)}.wc26-cup-shape:before{content:"";position:absolute;width:88px;height:88px;border:7px solid 
rgba(255,255,255,.8);border-radius:50%;right:20px;top:34px}.wc26-cup-shape:after{content:"";position:absolute;width:70px;height:16px;background:rgba(255,255,255,.82);right:28px;bottom:-24px;border-radius:50%}.wc26-num{font-weight:900;font-size:72px;line-height:1;margin-right:-5px;color:#d9d9df;text-shadow:0 
6px 22px 
rgba(0,0,0,.6)}.wc26-num-caption{position:absolute;bottom:26px;left:40%;font-size:10px;letter-spacing:2px;color:#fff;text-align:left}.wc26-hero-main{text-align:right;max-width:690px}.wc26-eyebrow{font-size:15px;letter-spacing:10px;color:var(--wc26-pink);margin-bottom:10px;text-transform:uppercase}.wc26-hero 
h1{font-size:clamp(38px,5vw,68px);font-weight:900;line-height:1.25;margin:0 0 12px;color:#fff;text-shadow:0 5px 20px 
rgba(0,0,0,.52)}.wc26-hero 
p{font-size:17px;line-height:2.15;color:rgba(255,255,255,.86);margin:0;max-width:760px}.wc26-tabs{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.wc26-tabs 
a,.wc26-start-pill a,.wc26-outline-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid 
var(--wc26-line);background:rgba(255,255,255,.04);color:#fff;border-radius:999px;padding:12px 
23px;font-weight:700;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);transition:.2s ease}.wc26-tabs 
a:hover,.wc26-outline-btn:hover{border-color:var(--wc26-pink);color:#fff;background:rgba(255,45,120,.12)}.wc26-event-card{justify-self:end;width:150px;height:166px;border:1px 
solid 
var(--wc26-line);border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;box-shadow:0 
24px 60px 
rgba(0,0,0,.28)}.wc26-mini-logo{width:66px;height:66px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(255,45,120,.30),rgba(255,255,255,.05));color:#fff;position:relative}.wc26-mini-logo 
img{width:58px;height:58px;object-fit:contain}.wc26-mini-logo span{font-size:42px;color:var(--wc26-pink)}.wc26-mini-logo 
b{position:absolute;left:9px;bottom:6px;font-size:19px}.wc26-event-card strong{font-size:12px;letter-spacing:2px}.wc26-event-card 
small{color:#fff}.wc26-start-pill{position:absolute;left:0;bottom:18px;display:flex;align-items:center;gap:18px;color:#fff}.wc26-start-pill 
a{border-color:var(--wc26-pink);padding:13px 24px}.wc26-start-pill 
span{display:grid;gap:2px;color:rgba(255,255,255,.75);font-size:13px}.wc26-start-pill 
b{font-weight:800;color:#fff}.wc26-countdown-wrap{width:100%;margin:10px auto 
16px}.wc26-countdown{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid 
var(--wc26-pink);border-radius:18px;background:rgba(10,14,22,.82);box-shadow:0 16px 60px rgba(0,0,0,.22),inset 0 0 30px 
rgba(255,45,120,.03);overflow:hidden}.wc26-countdown>div{text-align:center;padding:13px 
10px;position:relative}.wc26-countdown>div:not(:last-child):after{content:"";position:absolute;right:100%;top:22%;height:56%;width:1px;background:rgba(255,45,120,.65)}.wc26-countdown 
b{font-size:42px;font-weight:900;line-height:1;color:#fff;display:block}.wc26-countdown 
span{font-size:13px;color:#fff}.wc26-dashboard{display:grid;grid-template-columns:minmax(340px,.95fr) 
minmax(520px,1.08fr);gap:16px;direction:ltr}.wc26-panel{direction:rtl;border:1px solid 
var(--wc26-line);background:linear-gradient(145deg,rgba(15,20,31,.95),rgba(8,12,19,.95));border-radius:20px;box-shadow:0 24px 
80px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.04)}.wc26-updates,.wc26-matches{min-height:415px;padding:24px 
28px}.wc26-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}.wc26-heading 
i{color:var(--wc26-pink);font-style:normal;font-size:24px}.wc26-heading 
h2{margin:0;color:#fff;font-size:24px;font-weight:900}.wc26-heading-row{justify-content:space-between;gap:12px}.wc26-heading-row>div:first-child{display:flex;align-items:center;gap:12px}.wc26-filter-pills{display:flex;gap:8px;flex-wrap:wrap}.wc26-filter-pills 
span{border:1px solid var(--wc26-line);border-radius:999px;padding:8px 
17px;color:rgba(255,255,255,.72);font-size:12px}.wc26-filter-pills 
.active{background:linear-gradient(90deg,var(--wc26-pink2),var(--wc26-pink));color:#fff;border-color:transparent}.wc26-timeline{position:relative;padding:8px 
0 
4px}.wc26-timeline:before{content:"";position:absolute;right:112px;top:0;bottom:0;width:1px;background:rgba(255,45,120,.48)}.wc26-update-item{display:grid;grid-template-columns:94px 
26px 1fr;gap:8px;align-items:start;color:#fff;padding:10px 0}.wc26-update-item 
time{color:var(--wc26-pink);font-size:13px;line-height:1.8;text-align:left;direction:rtl}.wc26-update-item>span{width:8px;height:8px;background:var(--wc26-pink);border-radius:50%;margin-top:11px;box-shadow:0 
0 0 5px rgba(255,45,120,.08)}.wc26-update-item strong{font-size:15px;line-height:1.9;color:#fff}.wc26-update-item p{margin:3px 0 
0;color:rgba(255,255,255,.70);line-height:1.8;font-size:13px}.wc26-update-empty{padding:20px;color:var(--wc26-muted)}.wc26-outline-btn{margin-top:14px;padding:11px 
28px;justify-content:center}.wc26-wide{display:flex;width:max-content;margin-inline:auto}.wc26-match-list{display:grid;gap:10px}.wc26-match-row{display:grid;grid-template-columns:118px 
1fr 104px 1fr 100px;align-items:center;gap:12px;min-height:93px;padding:11px 18px;border:1px solid 
rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.025);color:#fff}.wc26-match-row:hover{border-color:rgba(255,45,120,.5);background:rgba(255,45,120,.045);color:#fff}.wc26-match-date{color:rgba(255,255,255,.70);font-size:13px;line-height:1.8;text-align:right}.wc26-match-date 
small{display:block;color:rgba(255,255,255,.52)}.wc26-team{display:flex;align-items:center;gap:10px}.wc26-team-one{justify-content:flex-end}.wc26-team-two{justify-content:flex-start}.wc26-team 
span{font-size:24px;filter:drop-shadow(0 5px 10px rgba(0,0,0,.4))}.wc26-team 
b{font-size:15px;color:#fff}.wc26-score{text-align:center;display:grid;gap:6px}.wc26-score 
em{justify-self:center;background:linear-gradient(90deg,var(--wc26-pink2),var(--wc26-pink));border-radius:8px;padding:4px 
10px;color:#fff;font-size:11px;font-style:normal;font-weight:800}.wc26-score 
strong{font-size:16px;letter-spacing:1px}.wc26-status{text-align:left;color:var(--wc26-pink);font-size:13px;font-weight:800}.wc26-section-panel{margin-top:18px;padding:24px 
28px}.wc26 .wc-group-card,.wc26 .wc-bracket-card,.wc26 .wc-related-card,.wc26 
.wc-empty-state{background:rgba(255,255,255,.035)!important;border-color:rgba(255,255,255,.10)!important}.wc26 
.wc-group-card{border-radius:16px}.wc26 .wc-group-card summary{color:#fff}.wc26 .wc-group-table th{color:var(--wc26-pink)}.wc26 
.wc-bracket-stage h3{color:var(--wc26-gold)}
@media(max-width:1180px){.wc26{padding-inline:24px!important}.wc26-hero{grid-template-columns:250px 
1fr}.wc26-event-card{display:none}.wc26-dashboard{grid-template-columns:1fr}.wc26-updates{order:2}.wc26-matches{order:1}.wc26-match-row{grid-template-columns:105px 
1fr 92px 1fr 90px}.wc26-start-pill{position:relative;left:auto;bottom:auto;margin-top:18px}}
@media(max-width:768px){.wc26{padding-inline:14px!important}.wc26-hero{display:block;min-height:auto;padding:26px 0 
20px}.wc26-hero-art{min-height:190px;justify-content:flex-start;padding-right:22px}.wc26-cup-shape{width:98px;height:136px;border-width:10px}.wc26-num{font-size:54px}.wc26-num-caption{display:none}.wc26-eyebrow{font-size:11px;letter-spacing:5px}.wc26-hero 
h1{font-size:34px}.wc26-hero p{font-size:14px;line-height:2}.wc26-tabs{gap:8px;margin-top:18px}.wc26-tabs a{padding:10px 
14px;font-size:13px}.wc26-start-pill{align-items:flex-start;flex-direction:column;gap:10px}.wc26-countdown{grid-template-columns:repeat(2,1fr)}.wc26-countdown 
b{font-size:34px}.wc26-updates,.wc26-matches,.wc26-section-panel{padding:18px 
14px;border-radius:18px}.wc26-heading-row{display:block}.wc26-filter-pills{margin-top:12px;overflow:auto;flex-wrap:nowrap;padding-bottom:4px}.wc26-filter-pills 
span{white-space:nowrap}.wc26-match-row{grid-template-columns:1fr;gap:9px;text-align:center}.wc26-match-date,.wc26-status{text-align:center}.wc26-team,.wc26-team-one,.wc26-team-two{justify-content:center}.wc26-timeline:before{right:92px}.wc26-update-item{grid-template-columns:76px 
22px 1fr}.wc26-heading h2{font-size:20px}}

/* =========================================================
   World Cup 2026 cleanup patch - remove old slider/banner bleed
   Fixes: old live-slider text showing in hero, reversed card/logo positions,
   duplicate oversized decorative logo, and keeps changes scoped to .wc26.
   ========================================================= */
.wc26 .wc26-hero{
  direction:ltr!important;
  grid-template-columns:minmax(320px,36%) minmax(420px,1fr) 170px!important;
  grid-template-areas:"art main card" "art main start"!important;
  background:
    radial-gradient(ellipse at 20% 58%,rgba(255,45,120,.32),transparent 31%),
    radial-gradient(ellipse at 50% 0,rgba(98,0,160,.18),transparent 42%),
    linear-gradient(90deg,rgba(255,45,120,.14),rgba(8,11,18,.94) 46%,#080b12 100%)!important;
  overflow:hidden!important;
}
.wc26 .wc26-hero:before{
  background:
    linear-gradient(90deg,rgba(8,11,18,.10) 0%,rgba(8,11,18,.45) 32%,rgba(8,11,18,.96) 74%),
    radial-gradient(ellipse at 17% 70%,rgba(255,45,120,.36),transparent 30%)!important;
  pointer-events:none!important;
}
.wc26 
.wc26-hero-art{grid-area:art!important;justify-content:flex-start!important;direction:ltr!important;min-width:0!important;position:relative!important;}
.wc26 
.wc26-hero-main{grid-area:main!important;direction:rtl!important;text-align:right!important;justify-self:center!important;align-self:center!important;}
.wc26 .wc26-event-card{grid-area:card!important;justify-self:end!important;align-self:center!important;direction:rtl!important;}
.wc26 
.wc26-start-pill{grid-area:start!important;position:static!important;justify-self:end!important;align-self:start!important;direction:rtl!important;margin-top:4px!important;}
.wc26 .wc26-hero-logo-img{
  display:block!important;
  width:min(360px,100%)!important;
  max-height:280px!important;
  object-fit:contain!important;
  filter:drop-shadow(0 20px 55px rgba(255,45,120,.38)) drop-shadow(0 18px 50px rgba(0,0,0,.70))!important;
}
.wc26 .wc26-cup-shape{margin-left:26px!important;}
.wc26 .wc26-num-caption{left:46%!important;}
.wc26 .wc26-tabs{direction:rtl!important;}

@media(max-width:1180px){
  .wc26 .wc26-hero{
    grid-template-columns:minmax(230px,34%) 1fr!important;
    grid-template-areas:"art main" "start main"!important;
  }
  .wc26 .wc26-event-card{display:none!important;}
  .wc26 .wc26-start-pill{justify-self:start!important;}
  .wc26 .wc26-hero-logo-img{width:min(280px,100%)!important;max-height:220px!important;}
}
@media(max-width:768px){
  .wc26 .wc26-hero{display:block!important;direction:rtl!important;}
  .wc26 .wc26-hero-art{justify-content:center!important;padding-right:0!important;margin-bottom:10px!important;}
  .wc26 .wc26-hero-logo-img{width:min(230px,82vw)!important;max-height:190px!important;margin-inline:auto!important;}
  .wc26 .wc26-start-pill{justify-self:stretch!important;margin-top:16px!important;}
}

/* World Cup clean fixes + team uploaded logos */
.wc26 .wc26-start-pill{display:none!important}
.wc26-team span img,.wc-group-table td 
img{width:28px;height:28px;object-fit:contain;display:inline-block;vertical-align:middle;border-radius:6px;background:rgba(255,255,255,.06);padding:2px}
.wc-group-table td img{margin-left:8px}


/* World Cup read-only match rows: matches stay visible but do not navigate to detail pages. */
.wc26-match-row--readonly,
.wc26-update-item--readonly{
  cursor: default;
  pointer-events: none;
}


/* =========================================================
   Performance migration: home-row virtualization + lighter IMDb styling
   ========================================================= */
.fb-row-scroll{
  contain: layout paint style;
}
.fb-row-item{
  contain: layout paint style;
  content-visibility: auto;
  /* contain-intrinsic-size disabled: wrong fallback size broke carousel layout */
}
.fb-row-item--virtual{
  min-height: 244px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}
.fb-row-item--virtual.fb-has-stack::before{
  display: none !important;
}
.fb-seo-links{
  display: block;
  padding: 8px 0;
}
.fb-seo-links a{
  display: inline-block;
  margin: 0 8px 8px 0;
}
.imdb-score{
  line-height: 1;
  font-weight: 800;
}
.imdb-score--high{ color: var(--fb-imdb-high, #39d98a); }
.imdb-score--mid{ color: var(--fb-imdb-mid, #ffd166); }
.imdb-score--low{ color: var(--fb-imdb-low, #ff6b6b); }


/* Fix broken item-level virtualization placeholders */
.fb-row-item--virtual {
  display: none !important;
}
.fb-row-wrap > template[data-fb-row-template] {
  display: none !important;
}

/* CLS fix: reserve real space for deferred home sections before AJAX replacement */
.fb-home-section-placeholder {
  min-height: 360px;
  contain: layout paint style;
}
.fb-section-skeleton {
  min-height: 330px;
}
.fb-section-skeleton__title {
  display: block;
  height: 28px;
  max-width: 280px;
  margin-inline-start: auto;
}
.fb-section-skeleton__row {
  display: block;
  height: 285px !important;
  width: 100%;
}
@media (max-width: 576px) {
  .fb-home-section-placeholder {
    min-height: 330px;
  }
  .fb-section-skeleton {
    min-height: 300px;
  }
  .fb-section-skeleton__row {
    height: 255px !important;
  }
}

/* Force all IMDb scores to black */
.imdb-score,
.imdb-score--high,
.imdb-score--mid,
.imdb-score--low {
    color: #000 !important;
}


}


/* Free download modal: copy link button */
.fb-quality-copy{
  border:1px solid rgba(255,193,7,.45);
  background:rgba(255,193,7,.12);
  color:#ffd45d;
  border-radius:12px;
  padding:.55rem .9rem;
  font-weight:800;
}
.fb-quality-copy:hover{filter:brightness(1.08)}


/* FB MOBILE BOTTOM NAV CSS START */
.fb-mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }

  /* مخفی کردن منوی سه‌خط موبایل */
  .navbar-toggler,
  .mobile-menu-toggle,
  .fb-mobile-menu-toggle,
  button[data-bs-toggle="offcanvas"],
  button[data-bs-target*="offcanvas"],
  button[data-bs-toggle="collapse"] {
    display: none !important;
  }
.fb-mobile-bottom-nav {
    position: fixed !important;
    right: 10px !important;
    left: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    z-index: 99999 !important;

    display: grid !important;
    /* FB MOBILE BOTTOM NAV GOLD V1 */
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 3px !important;

    height: 66px !important;
    padding: 7px 8px !important;

    border-radius: 22px !important;
    background: rgba(13, 18, 26, .92) !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .48) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;

    direction: rtl !important;
  }

  .fb-mobile-bottom-nav__item {
    height: 52px !important;
    min-width: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;

    color: rgba(255,255,255,.66) !important;
    text-decoration: none !important;
    border-radius: 16px !important;

    font-size: 10.5px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;

    transition: background .18s ease, color .18s ease, transform .18s ease !important;
  }

  .fb-mobile-bottom-nav__icon {
    height: 22px !important;
    min-width: 22px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 20px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
  }

  .fb-mobile-bottom-nav__text {
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  /*
   * FB MOBILE BOTTOM NAV GOLD V1
   *
   * Search is no longer permanently highlighted.
   * Only the real active page receives brand styling.
   */
  .fb-mobile-bottom-nav__item {
    position: relative !important;
  }

  .fb-mobile-bottom-nav__item.is-active {
    color: #ffd21f !important;

    background:
      linear-gradient(
        180deg,
        rgba(255,210,31,.14),
        rgba(255,210,31,.045)
      ) !important;

    box-shadow:
      inset 0 0 0 1px rgba(255,210,31,.18),
      0 5px 16px rgba(0,0,0,.12) !important;
  }

  .fb-mobile-bottom-nav__item.is-active .fb-mobile-bottom-nav__icon,
  .fb-mobile-bottom-nav__item.is-active .fb-mobile-bottom-nav__text {
    color: #ffd21f !important;
  }

  .fb-mobile-bottom-nav__item.is-active::before {
    content: "" !important;
    position: absolute !important;

    top: 2px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: 18px !important;
    height: 2px !important;

    border-radius: 999px !important;
    background: #ffd21f !important;

    box-shadow:
      0 0 9px rgba(255,210,31,.28) !important;
  }

  /*
   * --search stays only as a JavaScript hook.
   * Visually it behaves exactly like every other nav item.
   */
  .fb-mobile-bottom-nav__item--search {
    background: transparent !important;
    box-shadow: none !important;
  }

  .fb-mobile-bottom-nav__item--search:not(.is-active),
  .fb-mobile-bottom-nav__item--search:not(.is-active) .fb-mobile-bottom-nav__icon,
  .fb-mobile-bottom-nav__item--search:not(.is-active) .fb-mobile-bottom-nav__text {
    color: rgba(255,255,255,.66) !important;
  }

  .fb-mobile-bottom-nav__item--search.is-active {
    color: #ffd21f !important;

    background:
      linear-gradient(
        180deg,
        rgba(255,210,31,.14),
        rgba(255,210,31,.045)
      ) !important;

    box-shadow:
      inset 0 0 0 1px rgba(255,210,31,.18),
      0 5px 16px rgba(0,0,0,.12) !important;
  }

  .fb-mobile-bottom-nav__item:active {
    transform: scale(.96) !important;
  }

  /*
   * Extra safety for narrow phones.
   */
  @media (max-width: 390px) {
    .fb-mobile-bottom-nav {
      right: 6px !important;
      left: 6px !important;
      padding-right: 6px !important;
      padding-left: 6px !important;
      gap: 2px !important;
    }

    .fb-mobile-bottom-nav__item {
      font-size: 9.5px !important;
      border-radius: 13px !important;
    }

    .fb-mobile-bottom-nav__icon {
      font-size: 18px !important;
    }
  }
}
/* FB MOBILE BOTTOM NAV CSS END */


/* FB MOBILE SEARCH SHEET CSS START */
.fb-mobile-search-sheet {
  display: none;
}

@media (max-width: 768px) {
  body.fb-mobile-search-open {
    overflow: hidden !important;
  }

  .fb-mobile-search-sheet {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .18s ease !important;
    direction: rtl !important;
  }

  body.fb-mobile-search-open .fb-mobile-search-sheet {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .fb-mobile-search-sheet__backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0,0,0,.48) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  .fb-mobile-search-sheet__panel {
    position: absolute !important;
    right: 10px !important;
    left: 10px !important;
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;

    padding: 14px !important;
    border-radius: 22px !important;

    background: rgba(15, 20, 29, .97) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.55) !important;

    transform: translateY(18px) !important;
    transition: transform .18s ease !important;
  }

  body.fb-mobile-search-open .fb-mobile-search-sheet__panel {
    transform: translateY(0) !important;
  }

  .fb-mobile-search-sheet__close {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;

    width: 34px !important;
    height: 34px !important;
    border: 0 !important;
    border-radius: 12px !important;

    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }

  .fb-mobile-search-sheet__title {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    margin: 0 0 12px !important;
    padding-left: 42px !important;
  }

  .fb-mobile-search-original-host {
    width: 100% !important;
  }

  .fb-mobile-search-original-host > * {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
  }

  .fb-mobile-search-original-host form,
  .fb-mobile-search-original-host .search-box,
  .fb-mobile-search-original-host .search-form,
  .fb-mobile-search-original-host .header-search,
  .fb-mobile-search-original-host .navbar-search,
  .fb-mobile-search-original-host .mobile-search,
  .fb-mobile-search-original-host .search-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .fb-mobile-search-original-host input[type="search"],
  .fb-mobile-search-original-host input[name="q"],
  .fb-mobile-search-original-host input[name="query"],
  .fb-mobile-search-original-host input[name="s"],
  .fb-mobile-search-original-host input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .fb-mobile-search-fallback-form {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .fb-mobile-search-sheet.has-original-search .fb-mobile-search-fallback-form {
    display: none !important;
  }

  .fb-mobile-search-fallback-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 46px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 15px !important;
    outline: none !important;
    background: rgba(255,255,255,.07) !important;
    color: #fff !important;
    padding: 0 13px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  .fb-mobile-search-fallback-submit {
    flex: 0 0 auto !important;
    height: 46px !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: #00d7ff !important;
    color: #001018 !important;
    padding: 0 15px !important;
    font-size: 13px !important;
    font-weight: 950 !important;
  }
}
/* FB MOBILE SEARCH SHEET CSS END */


/* FB MOBILE SEARCH PANEL HEIGHT FIX START */
@media (max-width: 768px) {
  .fb-mobile-search-sheet__panel {
    top: auto !important;
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    max-height: calc(100dvh - 150px) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .fb-mobile-search-original-host {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .fb-mobile-search-original-host form,
  .fb-mobile-search-original-host .search-box,
  .fb-mobile-search-original-host .search-form,
  .fb-mobile-search-original-host .header-search,
  .fb-mobile-search-original-host .navbar-search,
  .fb-mobile-search-original-host .mobile-search,
  .fb-mobile-search-original-host .search-wrapper {
    flex: 0 0 auto !important;
  }

  /* نتیجه‌های سرچ داخل همان کادر اسکرول بخورند */
  .fb-mobile-search-original-host .search-results,
  .fb-mobile-search-original-host .search-result,
  .fb-mobile-search-original-host .search-suggestions,
  .fb-mobile-search-original-host .suggestions,
  .fb-mobile-search-original-host .autocomplete-results,
  .fb-mobile-search-original-host .live-search-results,
  .fb-mobile-search-original-host [class*="search-result"],
  .fb-mobile-search-original-host [class*="search_results"],
  .fb-mobile-search-original-host [class*="suggestion"],
  .fb-mobile-search-original-host [id*="search-result"],
  .fb-mobile-search-original-host [id*="suggestion"] {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;

    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 260px) !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    transform: none !important;
    margin-top: 10px !important;
    z-index: auto !important;
  }

  .fb-mobile-search-original-host .search-results::-webkit-scrollbar,
  .fb-mobile-search-original-host .search-suggestions::-webkit-scrollbar,
  .fb-mobile-search-original-host .live-search-results::-webkit-scrollbar,
  .fb-mobile-search-original-host [class*="search-result"]::-webkit-scrollbar,
  .fb-mobile-search-original-host [class*="suggestion"]::-webkit-scrollbar {
    width: 4px !important;
  }
}
/* FB MOBILE SEARCH PANEL HEIGHT FIX END */


/* FB MOBILE ROW SPACING FINAL START */
@media (max-width: 768px) {
  /* کل بخش‌ها کمی نفس بگیرند */
  body .fb-row-wrap {
    margin-top: 24px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* ردیف کارت‌ها از لبه راست شروع نشود */
  body .fb-row-wrap .fb-row-scroll {
    padding-right: 30px !important;
    padding-left: 22px !important;
    margin-right: -10px !important;
    margin-left: -10px !important;
    gap: 12px !important;
    scroll-padding-right: 30px !important;
    scroll-padding-left: 22px !important;
  }

  /* کارت اول/آخر زیر لبه نرود */
  body .fb-row-wrap .fb-row-scroll::before,
  body .fb-row-wrap .fb-row-scroll::after {
    content: "" !important;
    flex: 0 0 1px !important;
    width: 1px !important;
    min-width: 1px !important;
  }

  /* عنوان‌ها عقب‌تر از گوشه راست */
  body .fb-mobile-force-row-title,
  body .fb-mobile-row-title-ready,
  body .fb-row-wrap .fb-mobile-force-row-title,
  body .fb-row-wrap .fb-mobile-row-title-ready {
    padding-right: 24px !important;
    padding-left: 18px !important;
    margin-bottom: 13px !important;
    font-size: 15px !important;
    justify-content: flex-end !important;
    gap: 7px !important;
  }

  /* فلش شبیه > و مرتب کنار عنوان */
  body .fb-mobile-force-row-arrow,
  body .fb-mobile-row-title-arrow {
    color: #42cfff !important;
    font-size: 23px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important;
    margin-inline-start: 2px !important;
    margin-inline-end: 0 !important;
  }

  /* دکمه مشاهده همه قطعاً مخفی بماند */
  body .fb-mobile-force-hide-view-all,
  body .fb-mobile-hide-view-all {
    display: none !important;
    visibility: hidden !important;
  }
}
/* FB MOBILE ROW SPACING FINAL END */


/* FB MOBILE HOME SECTION HEADER TEMPLATE START */
.fb-home-section-more-arrow {
  display: none;
}

@media (max-width: 768px) {
  body .fb-home-section-head {
    width: 100% !important;
    max-width: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;

    direction: rtl !important;
    text-align: right !important;

    padding: 0 10px !important;
    margin: 22px 0 10px !important;
    box-sizing: border-box !important;
  }

  body .fb-home-section-title {
    order: 1 !important;
    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    letter-spacing: -.1px !important;

    text-align: right !important;
    direction: rtl !important;
  }

  body .fb-home-section-more {
    order: 2 !important;
    flex: 0 0 auto !important;

    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 3px 0 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;

    color: #35d7ff !important;
    text-decoration: none !important;
  }

  body .fb-home-section-more-text {
    display: none !important;
  }

  body .fb-home-section-more-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #35d7ff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
  }
}
/* FB MOBILE HOME SECTION HEADER TEMPLATE END */


/* FB SEO DESCRIPTION READMORE START */
.fb-seo-desc-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.fb-seo-desc-text {
  margin: 0;
  line-height: 2;
  color: rgba(255,255,255,.92);
  word-break: break-word;
}

.fb-seo-desc-wrap--long:not(.is-expanded) .fb-seo-desc-text {
  max-height: 8.2em;
  overflow: hidden;
}

.fb-seo-desc-wrap--long:not(.is-expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  height: 52px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(8,12,18,0), rgba(8,12,18,.96));
}

.fb-seo-desc-toggle {
  position: relative !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #35d7ff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  z-index: 2;
}

.fb-seo-desc-toggle:hover,
.fb-seo-desc-toggle:focus {
  color: #7fe8ff;
  text-decoration: none;
}

.fb-seo-desc-toggle::after {
  content: "⌄";
  font-size: 14px;
  transform: translateY(-1px);
}

.fb-seo-desc-wrap.is-expanded .fb-seo-desc-toggle::after {
  content: "⌃";
}

@media (max-width: 768px) {
  .fb-seo-desc-wrap--long:not(.is-expanded) .fb-seo-desc-text {
    max-height: 7.8em;
  }

  .fb-seo-desc-wrap--long:not(.is-expanded)::after {
    bottom: 40px;
    height: 48px;
  }

  .fb-seo-desc-toggle {
    margin-top: 8px;
    font-size: 13px;
  }
}
/* FB SEO DESCRIPTION READMORE END */


/* FB DESCRIPTION HTML EDITOR CSS START */
.fb-desc-editor-toolbar {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}

textarea.fb-desc-editor {
  min-height: 190px;
  direction: rtl;
  text-align: right;
  font-family: inherit;
}

.fb-seo-desc-text {
  display: block;
  white-space: normal;
}

.fb-seo-desc-text p {
  margin: 0 0 10px;
}

.fb-seo-desc-text h2,
.fb-seo-desc-text h3,
.fb-seo-desc-text h4 {
  color: #fff;
  font-weight: 900;
  line-height: 1.7;
  margin: 12px 0 8px;
}

.fb-seo-desc-text h2 { font-size: 20px; }
.fb-seo-desc-text h3 { font-size: 18px; }
.fb-seo-desc-text h4 { font-size: 16px; }

.fb-seo-desc-text a {
  color: #35d7ff;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px dashed rgba(53,215,255,.55);
}

.fb-seo-desc-text a:hover {
  color: #7be7ff;
  border-bottom-color: #7be7ff;
}

.fb-seo-desc-wrap--long:not(.is-expanded) .fb-seo-desc-text {
  display: block !important;
  max-height: 7.2em;
  overflow: hidden;
}

.fb-seo-desc-text .text-right { text-align: right; }
.fb-seo-desc-text .text-center { text-align: center; }
.fb-seo-desc-text .text-left { text-align: left; }
.fb-seo-desc-text .text-justify { text-align: justify; }
/* FB DESCRIPTION HTML EDITOR CSS END */


/* FB READMORE BUTTON SEPARATE FINAL START */
.fb-seo-desc-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

.fb-seo-desc-wrap .fb-seo-desc-text {
  width: 100% !important;
  display: block !important;
  margin-bottom: 0 !important;
}

.fb-seo-desc-wrap .fb-seo-desc-toggle {
  position: static !important;
  align-self: flex-start !important;
  margin-top: 18px !important;
  margin-bottom: 12px !important;
  padding: 0 !important;
  display: inline-flex !important;
  width: auto !important;
  clear: both !important;
  background: transparent !important;
  line-height: 1.8 !important;
}

.fb-seo-desc-wrap--long:not(.is-expanded)::after {
  bottom: 58px !important;
  height: 46px !important;
}

@media (max-width: 768px) {
  .fb-seo-desc-wrap .fb-seo-desc-toggle {
    margin-top: 14px !important;
    margin-bottom: 10px !important;
  }

  .fb-seo-desc-wrap--long:not(.is-expanded)::after {
    bottom: 52px !important;
  }
}
/* FB READMORE BUTTON SEPARATE FINAL END */

/* FB DESC LINE CUT FIX FINAL START */
.fb-seo-desc-wrap {
  width: 100% !important;
  max-width: 900px !important;
  direction: rtl !important;
  text-align: right !important;
}

.fb-seo-desc-wrap .fb-seo-desc-text {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(255,255,255,.92) !important;
  font-size: 15px !important;
  line-height: 2.25 !important;
  text-align: right !important;
  direction: rtl !important;
  overflow: visible !important;
}

.fb-seo-desc-wrap--long:not(.is-expanded) .fb-seo-desc-text {
  max-height: 9em !important;
  overflow: hidden !important;
}

.fb-seo-desc-wrap--long:not(.is-expanded)::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 54px !important;
  height: 58px !important;
  pointer-events: none !important;
  background: linear-gradient(to bottom, rgba(8,12,18,0), rgba(8,12,18,.98)) !important;
}

.fb-seo-desc-wrap.is-expanded .fb-seo-desc-text {
  max-height: none !important;
  overflow: visible !important;
}

.fb-seo-desc-wrap.is-expanded::after {
  display: none !important;
}

.fb-seo-desc-wrap .fb-seo-desc-toggle {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  align-self: flex-start !important;
  margin-top: 14px !important;
  margin-bottom: 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: #35d7ff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.8 !important;
  cursor: pointer !important;
}

@media (max-width: 768px) {
  .fb-seo-desc-wrap .fb-seo-desc-text {
    font-size: 14px !important;
    line-height: 2.15 !important;
  }

  .fb-seo-desc-wrap--long:not(.is-expanded) .fb-seo-desc-text {
    max-height: 8.6em !important;
  }

  .fb-seo-desc-wrap--long:not(.is-expanded)::after {
    bottom: 50px !important;
    height: 54px !important;
  }
}
/* FB DESC LINE CUT FIX FINAL END */

/* FB REMOVE DESC FADE HAZE FINAL START */
.fb-seo-desc-wrap--long:not(.is-expanded)::after {
  display: none !important;
  content: none !important;
}

.fb-seo-desc-wrap--long:not(.is-expanded) .fb-seo-desc-text {
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
/* FB REMOVE DESC FADE HAZE FINAL END */


/* FB LANDING SEO TEXT START */
.fb-landing-seo-text {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  padding: 16px 18px;
  color: rgba(255,255,255,.86);
  line-height: 2.1;
  font-size: 14px;
}

.fb-landing-seo-text h2,
.fb-landing-seo-text h3,
.fb-landing-seo-text h4 {
  color: #fff;
  font-weight: 900;
  margin: 0 0 10px;
}

.fb-landing-seo-text p {
  margin: 0 0 10px;
}

.fb-landing-seo-text a {
  color: #35d7ff;
  font-weight: 800;
  text-decoration: none;
}

.fb-landing-seo-text a:hover {
  color: #7fe8ff;
}
/* FB LANDING SEO TEXT END */

/* FB COMPACT DESKTOP HEADER START */
@media (min-width: 993px) {
  header,
  .navbar,
  .site-header,
  .main-header,
  .top-header {
    min-height: 78px !important;
  }

  header .navbar,
  .navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .navbar-brand,
  .site-logo,
  .logo {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .navbar-brand img,
  .site-logo img,
  .logo img,
  header img[alt*="فیلم"],
  header img[src*="logo"] {
    max-height: 64px !important;
    height: auto !important;
  }

  header .nav-link,
  .navbar .nav-link {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.4 !important;
  }

  header input[type="search"],
  header .form-control,
  .navbar input[type="search"],
  .navbar .form-control {
    height: 44px !important;
    min-height: 44px !important;
  }

  header .btn,
  .navbar .btn {
    min-height: 42px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}
/* FB COMPACT DESKTOP HEADER END */


/* FB FEATURE STRIP V4 GLOBAL START */
.fbf-strip-v4 {
  position: relative;
  width: 100%;
  margin: 26px 0 30px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--fbf-bg, #111);
}

.fbf-v4-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(440px, .9fr) 160px minmax(680px, 1.25fr);
  align-items: center;
  gap: 38px;
  min-height: 380px;
  padding: 28px 38px;
  text-decoration: none !important;
  color: #fff !important;
  direction: ltr;
  overflow: hidden;
  background:
    radial-gradient(circle at 45% 52%, rgba(255,255,255,.055), transparent 30%),
    linear-gradient(90deg, rgba(10,10,12,.98) 0%, color-mix(in srgb, var(--fbf-bg, #111) 70%, #000 30%) 50%, rgba(8,8,10,.98) 100%);
}

.fbf-v4-info {
  grid-column: 1;
  direction: rtl;
  text-align: right;
  z-index: 3;
  max-width: 620px;
  justify-self: end;
}

.fbf-v4-title {
  display: block;
  color: #fff;
  font-size: 36px;
  font-weight: 950;
  line-height: 1.35;
  margin-bottom: 7px;
  text-shadow: 0 4px 18px rgba(0,0,0,.38);
}

.fbf-v4-en {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  direction: ltr;
  text-align: right;
}

.fbf-v4-genres {
  display: block;
  color: color-mix(in srgb, var(--fbf-accent, #e50058) 38%, #b8c4ff 62%);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.7;
  margin-bottom: 14px;
}

.fbf-v4-desc {
  display: -webkit-box;
  color: rgba(255,255,255,.88);
  font-size: 16px;
  font-weight: 700;
  line-height: 2.05;
  max-width: 620px;
  margin-bottom: 20px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 3px 15px rgba(0,0,0,.32);
}

.fbf-v4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 160px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--fbf-accent, #e50058);
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  box-shadow:
    0 14px 28px rgba(0,0,0,.26),
    0 12px 30px color-mix(in srgb, var(--fbf-accent, #e50058) 44%, transparent);
}

.fbf-v4-btn i {
  display: block;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 0;
  border-left: 10px solid #fff;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.15));
}

.fbf-v4-imdb {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  width: 138px;
  height: 138px;
  min-width: 138px;
  border-radius: 50%;
  position: relative;
  z-index: 4;
  --imdb-progress: calc(var(--imdb-score, 0) * 10%);
  background:
    conic-gradient(
      from 18deg,
      #f2f2f5 0 var(--imdb-progress),
      rgba(255,255,255,.20) var(--imdb-progress) 100%
    );
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.45));
}

.fbf-v4-imdb::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.12), transparent 35%),
    rgba(34,35,43,.98);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 -18px 35px rgba(0,0,0,.24);
}

.fbf-v4-imdb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 61%, rgba(255,255,255,.10) 62%, transparent 72%);
  pointer-events: none;
}

.fbf-v4-imdb-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fbf-v4-imdb .score {
  color: #fff;
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.fbf-v4-imdb .label {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 8px;
}

.fbf-v4-art {
  grid-column: 3;
  position: relative;
  height: 330px;
  min-height: 330px;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 26px 60px rgba(0,0,0,.34);
}

.fbf-v4-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fbf-v4-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,.12) 42%, rgba(0,0,0,.56) 100%);
  pointer-events: none;
}

@media (min-width: 769px) and (max-width: 1280px) {
  .fbf-v4-link {
    grid-template-columns: minmax(340px, .9fr) 122px minmax(440px, 1.15fr);
    gap: 24px;
    min-height: 350px;
    padding: 24px;
  }

  .fbf-v4-title {
    font-size: 30px;
  }

  .fbf-v4-desc {
    font-size: 14px;
    line-height: 1.95;
  }

  .fbf-v4-imdb {
    width: 116px;
    height: 116px;
    min-width: 116px;
  }

  .fbf-v4-imdb .score {
    font-size: 27px;
  }

  .fbf-v4-art {
    height: 305px;
    min-height: 305px;
  }
}

@media (max-width: 768px) {
  .fbf-strip-v4 {
    margin: 20px 0 24px;
    border-radius: 18px;
  }

  .fbf-v4-link {
    display: block;
    min-height: 360px;
    padding: 0;
    direction: rtl;
    background: rgba(10,10,12,.98);
  }

  .fbf-v4-art {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 100%;
    border-radius: 18px;
    opacity: .55;
  }

  .fbf-v4-art::after {
    background: linear-gradient(0deg, rgba(0,0,0,.90) 0%, rgba(0,0,0,.40) 100%);
  }

  .fbf-v4-info {
    position: relative;
    z-index: 3;
    max-width: none;
    padding: 150px 18px 20px;
    text-align: right;
  }

  .fbf-v4-title {
    font-size: 24px;
  }

  .fbf-v4-desc {
    font-size: 13px;
    line-height: 1.9;
    -webkit-line-clamp: 2;
  }

  .fbf-v4-imdb {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 82px;
    height: 82px;
    min-width: 82px;
    z-index: 4;
  }

  .fbf-v4-imdb::before {
    inset: 7px;
  }

  .fbf-v4-imdb .score {
    font-size: 20px;
  }

  .fbf-v4-imdb .label {
    font-size: 10px;
    margin-top: 4px;
  }
}
/* FB FEATURE STRIP ISOLATED V4 END */


/* FBF V4 RIGHT ART ABSOLUTE FULL START */
@media (min-width: 769px) {
  .fbf-strip-v4 {
    height: 380px !important;
    min-height: 380px !important;
  }

  .fbf-v4-link {
    position: relative !important;
    height: 380px !important;
    min-height: 380px !important;

    /* فقط اطلاعات و IMDb در سمت چپ/وسط باشند */
    display: grid !important;
    grid-template-columns: minmax(440px, 1fr) 160px !important;
    align-items: center !important;
    gap: 38px !important;

    /* سمت راست برای تصویر فول رزرو می‌شود */
    padding: 32px calc(52% + 34px) 32px 42px !important;
    overflow: hidden !important;
  }

  .fbf-v4-info {
    grid-column: 1 !important;
    justify-self: end !important;
    max-width: 650px !important;
    z-index: 5 !important;
  }

  .fbf-v4-imdb {
    grid-column: 2 !important;
    justify-self: center !important;
    z-index: 6 !important;
  }

  /* تصویر 1400×500 کامل سمت راست را پر کند */
  .fbf-v4-art {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;

    width: 52% !important;
    height: 100% !important;
    min-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 0 22px 22px 0 !important;
    overflow: hidden !important;
    z-index: 2 !important;
    box-shadow: none !important;
  }

  .fbf-v4-art img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  .fbf-v4-art::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background:
      linear-gradient(
        270deg,
        rgba(0,0,0,.02) 0%,
        rgba(0,0,0,.04) 48%,
        rgba(0,0,0,.22) 74%,
        rgba(0,0,0,.72) 100%
      ) !important;
    pointer-events: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1280px) {
  .fbf-v4-link {
    grid-template-columns: minmax(330px, 1fr) 120px !important;
    gap: 24px !important;
    padding: 28px calc(50% + 24px) 28px 28px !important;
  }

  .fbf-v4-art {
    width: 50% !important;
    border-radius: 0 18px 18px 0 !important;
  }
}
/* FBF V4 RIGHT ART ABSOLUTE FULL END */


/* FBF V4 RESPONSIVE STABLE START */
@media (min-width: 769px) {
  .fbf-v4-link {
    --fbf-art-w: clamp(560px, 43vw, 820px);
    --fbf-imdb-size: clamp(108px, 7vw, 138px);
    --fbf-gap: clamp(24px, 2.1vw, 42px);

    height: clamp(340px, 20vw, 390px) !important;
    min-height: clamp(340px, 20vw, 390px) !important;

    grid-template-columns: minmax(360px, 650px) var(--fbf-imdb-size) !important;
    gap: var(--fbf-gap) !important;

    padding-top: clamp(24px, 1.8vw, 34px) !important;
    padding-bottom: clamp(24px, 1.8vw, 34px) !important;
    padding-left: clamp(28px, 2.4vw, 48px) !important;
    padding-right: calc(var(--fbf-art-w) + clamp(26px, 2vw, 42px)) !important;
  }

  .fbf-v4-art {
    width: var(--fbf-art-w) !important;
    height: 100% !important;
    min-height: 100% !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 0 22px 22px 0 !important;
  }

  .fbf-v4-art img {
    object-fit: cover !important;
    object-position: center center !important;
  }

  .fbf-v4-info {
    max-width: clamp(420px, 35vw, 650px) !important;
    justify-self: end !important;
  }

  .fbf-v4-title {
    font-size: clamp(29px, 2.15vw, 40px) !important;
    line-height: 1.32 !important;
  }

  .fbf-v4-en {
    font-size: clamp(13px, .82vw, 16px) !important;
  }

  .fbf-v4-genres {
    font-size: clamp(14px, .9vw, 17px) !important;
  }

  .fbf-v4-desc {
    font-size: clamp(14px, .95vw, 17px) !important;
    line-height: 2 !important;
    max-width: clamp(420px, 35vw, 650px) !important;
  }

  .fbf-v4-btn {
    min-height: clamp(46px, 2.9vw, 54px) !important;
    min-width: clamp(145px, 9vw, 170px) !important;
    font-size: clamp(15px, .95vw, 18px) !important;
  }

  .fbf-v4-imdb {
    width: var(--fbf-imdb-size) !important;
    height: var(--fbf-imdb-size) !important;
    min-width: var(--fbf-imdb-size) !important;
  }

  .fbf-v4-imdb::before {
    inset: clamp(8px, .55vw, 10px) !important;
  }

  .fbf-v4-imdb .score {
    font-size: clamp(25px, 1.65vw, 32px) !important;
  }

  .fbf-v4-imdb .label {
    font-size: clamp(11px, .72vw, 14px) !important;
  }
}

/* مانیتورهای خیلی عریض: عکس زیادی بزرگ نشه */
@media (min-width: 1900px) {
  .fbf-v4-link {
    --fbf-art-w: clamp(700px, 39vw, 860px);
  }
}

/* لپ‌تاپ‌ها و صفحه‌های کوچکتر */
@media (min-width: 769px) and (max-width: 1450px) {
  .fbf-v4-link {
    --fbf-art-w: clamp(440px, 41vw, 590px);
    --fbf-imdb-size: clamp(96px, 7.8vw, 118px);

    grid-template-columns: minmax(300px, 520px) var(--fbf-imdb-size) !important;
    padding-right: calc(var(--fbf-art-w) + 22px) !important;
    padding-left: 24px !important;
    gap: 22px !important;
  }

  .fbf-v4-info {
    max-width: 520px !important;
  }

  .fbf-v4-desc {
    max-width: 520px !important;
    -webkit-line-clamp: 2 !important;
  }
}

/* مانیتورهای نزدیک 1366 */
@media (min-width: 769px) and (max-width: 1180px) {
  .fbf-v4-link {
    --fbf-art-w: 42vw;
    --fbf-imdb-size: 92px;

    grid-template-columns: minmax(260px, 1fr) var(--fbf-imdb-size) !important;
    padding-right: calc(var(--fbf-art-w) + 18px) !important;
    gap: 18px !important;
  }

  .fbf-v4-title {
    font-size: 26px !important;
  }

  .fbf-v4-desc {
    font-size: 13px !important;
    line-height: 1.85 !important;
  }
}
/* FBF V4 RESPONSIVE STABLE END */


/* FBF V4 ART REAL FULL HEIGHT START */
@media (min-width: 769px) {
  .fbf-strip-v4,
  .fbf-v4-link {
    box-sizing: border-box !important;
  }

  .fbf-v4-link {
    position: relative !important;
    overflow: hidden !important;
  }

  /* عکس سمت راست واقعاً از بالا تا پایین پر شود */
  .fbf-v4-art {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    align-self: stretch !important;
    overflow: hidden !important;
  }

  .fbf-v4-art img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  .fbf-v4-art::after {
    position: absolute !important;
    inset: 0 !important;
  }
}
/* FBF V4 ART REAL FULL HEIGHT END */


/* FBF V4 SECTION LINK LOCK START */
@media (min-width: 769px) {
  .fbf-strip-v4 {
    position: relative !important;
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
    overflow: hidden !important;
  }

  /* لینک دقیقاً به اندازه خود نوار شود */
  .fbf-strip-v4 .fbf-v4-link {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* تصویر سمت راست دقیقاً از بالا تا پایین خود نوار */
  .fbf-strip-v4 .fbf-v4-art {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .fbf-strip-v4 .fbf-v4-art img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  .fbf-strip-v4 .fbf-v4-art::after {
    position: absolute !important;
    inset: 0 !important;
  }
}

@media (min-width: 769px) and (max-width: 1400px) {
  .fbf-strip-v4 {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
  }
}
/* FBF V4 SECTION LINK LOCK END */


/* FBF V4 ART VISUAL FILL START */
@media (min-width: 769px) {
  /*
    Console confirmed:
    .fbf-strip-v4, .fbf-v4-link, .fbf-v4-art, .fbf-v4-art img
    are equal height. So this is not a layout gap.
    We visually crop/zoom the artwork to remove the dark bottom area.
  */

  .fbf-v4-art {
    background: #000 !important;
  }

  .fbf-v4-art img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;

    transform: translateY(-4%) scale(1.16) !important;
    transform-origin: center center !important;
    will-change: transform !important;
  }

  .fbf-v4-art::after {
    background:
      linear-gradient(
        270deg,
        rgba(0,0,0,.015) 0%,
        rgba(0,0,0,.035) 50%,
        rgba(0,0,0,.18) 76%,
        rgba(0,0,0,.66) 100%
      ) !important;
  }
}

@media (min-width: 769px) and (max-width: 1400px) {
  .fbf-v4-art img {
    transform: translateY(-5%) scale(1.20) !important;
  }
}
/* FBF V4 ART VISUAL FILL END */


/* FBF V4 SWAP INFO IMDB TEST START */
@media (min-width: 769px) {
  /*
    تست چیدمان:
    IMDb برود سمت چپ‌تر
    متن بیاید وسط، کنار تصویر
  */

  .fbf-v4-link {
    grid-template-columns: var(--fbf-imdb-size) minmax(360px, 560px) !important;
  }

  .fbf-v4-imdb {
    grid-column: 1 !important;
    justify-self: center !important;
  }

  .fbf-v4-info {
    grid-column: 2 !important;
    justify-self: center !important;
    text-align: right !important;
    max-width: 560px !important;
  }

  .fbf-v4-desc {
    max-width: 560px !important;
  }
}

@media (min-width: 1600px) {
  .fbf-v4-link {
    grid-template-columns: var(--fbf-imdb-size) minmax(400px, 590px) !important;
  }

  .fbf-v4-info,
  .fbf-v4-desc {
    max-width: 590px !important;
  }
}

@media (min-width: 769px) and (max-width: 1400px) {
  .fbf-v4-link {
    grid-template-columns: var(--fbf-imdb-size) minmax(270px, 470px) !important;
  }

  .fbf-v4-info,
  .fbf-v4-desc {
    max-width: 470px !important;
  }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .fbf-v4-link {
    grid-template-columns: var(--fbf-imdb-size) minmax(250px, 1fr) !important;
  }
}
/* FBF V4 SWAP INFO IMDB TEST END */


/* FBF V4 SWAP ROW FIX START */
@media (min-width: 769px) {
  .fbf-v4-imdb {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: center !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  .fbf-v4-info {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: center !important;
  }
}
/* FBF V4 SWAP ROW FIX END */


/* FBF V4 INFO NUDGE RIGHT START */
@media (min-width: 769px) {
  .fbf-v4-info {
    transform: translateX(48px) !important;
  }
}
/* FBF V4 INFO NUDGE RIGHT END */
/* FB FEATURE STRIP V4 GLOBAL END */


/* FB SITE FOOTER START */
.fb-site-footer {
  margin-top: 54px;
  border-top: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at top right, rgba(22,217,255,.08), transparent 34%),
    linear-gradient(180deg, rgba(15,18,24,.96), rgba(7,9,13,.98));
  color: rgba(255,255,255,.86);
}

.fb-site-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 18px 24px;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(320px, .9fr);
  gap: 34px;
}

.fb-site-footer__logo {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  margin-bottom: 10px;
}

.fb-site-footer__brand p {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 14px;
  line-height: 2;
}

.fb-site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 20px;
}

.fb-site-footer__col h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.fb-site-footer__col a,
.fb-site-footer__col span {
  display: block;
  margin: 8px 0;
  color: rgba(255,255,255,.66);
  font-size: 14px;
  text-decoration: none;
}

.fb-site-footer__col a:hover {
  color: #16d9ff;
}

.fb-site-footer__bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 18px 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.45);
  font-size: 13px;
}

@media (max-width: 768px) {
  .fb-site-footer {
    margin-top: 34px;
    margin-bottom: 62px;
  }

  .fb-site-footer__inner {
    grid-template-columns: 1fr;
    padding: 28px 16px 18px;
    gap: 24px;
  }

  .fb-site-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .fb-site-footer__brand p,
  .fb-site-footer__col a,
  .fb-site-footer__col span {
    font-size: 13px;
  }
}
/* FB SITE FOOTER END */


/* FB FOOTER LOGO CONTACT START */
.fb-site-footer__brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.fb-site-footer__logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.28));
}

.fb-site-footer__brand-head .fb-site-footer__logo {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .fb-site-footer__logo-img {
    width: 42px;
    height: 42px;
  }
}
/* FB FOOTER LOGO CONTACT END */


/* FB FOOTER CONTACT PAGE UPDATE START */
.fb-site-footer__brand-head {
  align-items: center;
}

.fb-site-footer__logo-img {
  width: 92px !important;
  height: auto !important;
  max-height: 74px !important;
  object-fit: contain !important;
}

.fb-contact-page {
  max-width: 920px;
  margin: 42px auto 70px;
  padding: 0 18px;
}

.fb-contact-card {
  background:
    radial-gradient(circle at top right, rgba(22,217,255,.10), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  padding: 34px 28px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.fb-contact-card h1 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 950;
}

.fb-contact-card p {
  margin: 0 0 18px;
  color: rgba(255,255,255,.68);
  line-height: 2;
}

.fb-contact-email {
  display: inline-flex;
  align-items: center;
  direction: ltr;
  color: #16d9ff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.fb-contact-email:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .fb-site-footer__logo-img {
    width: 82px !important;
    max-height: 66px !important;
  }

  .fb-contact-page {
    margin: 28px auto 46px;
  }

  .fb-contact-card {
    border-radius: 18px;
    padding: 26px 20px;
  }
}
/* FB FOOTER CONTACT PAGE UPDATE END */


/* FB FOOTER FINAL TUNING START */
.fb-site-footer__logo-img {
  width: 145px !important;
  height: auto !important;
  max-height: 112px !important;
  object-fit: contain !important;
}

.fb-site-footer__brand-head {
  margin-bottom: 14px !important;
}

/* صفحه ارتباط با ما کوتاه است؛ این باعث می‌شود فوتر وسط صفحه نیاید */
.fb-contact-page {
  min-height: calc(100vh - 430px) !important;
  display: flex !important;
  align-items: flex-start !important;
}

.fb-contact-card {
  width: 100% !important;
}

@media (max-width: 768px) {
  .fb-site-footer__logo-img {
    width: 118px !important;
    max-height: 94px !important;
  }

  .fb-contact-page {
    min-height: calc(100vh - 500px) !important;
  }
}
/* FB FOOTER FINAL TUNING END */


/* FB RESPONSIVE CORE V1 START */

/* جلوگیری از ترکیدن عرض صفحه */
html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

/* فقط موبایل و تبلت کوچک */
@media (max-width: 768px) {

  body {
    width: 100% !important;
    max-width: 100% !important;
  }

  .container,
  .container-fluid,
  .fb-page-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* هدر و منو */
  .navbar,
  .navbar .container-fluid,
  .navbar-collapse,
  .navbar-nav {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .navbar-brand,
  .fb-logo-wrap {
    max-width: 150px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .navbar-brand img,
  .fb-logo-wrap img {
    max-width: 145px !important;
    height: auto !important;
  }

  .nav-searchbox {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .nav-searchbox__placeholder {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .navbar .fb-mega-menu,
  .navbar .fb-nested-menu,
  .navbar .fb-submenu-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* سرچ قدیمی / overlay */
  .search-overlay,
  .search-box {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .search-box {
    width: calc(100vw - 20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #searchInput {
    min-width: 0 !important;
    width: 100% !important;
  }

  /* اسلایدرها */
  #topCarousel,
  #topCarousel .carousel-inner,
  #topCarousel .carousel-item {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  #topCarousel .slider-img,
  #topCarousel .slider-img-desktop,
  #topCarousel .slider-img-mobile {
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
  }

  #topCarousel .carousel-caption.fb-slider-caption {
    left: 12px !important;
    right: 12px !important;
    bottom: 18px !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }

  #topCarousel .fb-slider-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #topCarousel .fb-slider-title,
  #topCarousel .fb-slider-subtitle {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  #topCarousel .fb-slider-btn {
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  /* ردیف‌های فیلم و سریال */
  .fb-row-wrap {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .fb-row-scroll {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .fb-row-scroll::-webkit-scrollbar {
    display: none !important;
  }

  .fb-row-item {
    flex: 0 0 126px !important;
    width: 126px !important;
    min-width: 126px !important;
    max-width: 126px !important;
  }

  .fb-row-item .card,
  .fb-row-item .video-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .fb-row-item .poster-frame,
  .fb-row-item .poster-img,
  .fb-row-item .card-img-top {
    width: 100% !important;
    max-width: 100% !important;
  }

  .fb-row-item .card-title,
  .fb-row-item .video-title {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* صفحه جستجو */
  .fb-search-form,
  .fb-search-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .fb-search-chip {
    white-space: nowrap !important;
  }

  /* نوارهای ویژه */
  .fbf-v4,
  .fbf-v4-link {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .fbf-v4-info,
  .fbf-v4-desc {
    max-width: 100% !important;
    transform: none !important;
  }
}

@media (max-width: 430px) {
  .navbar-brand,
  .fb-logo-wrap {
    max-width: 126px !important;
  }

  .navbar-brand img,
  .fb-logo-wrap img {
    max-width: 122px !important;
  }

  .fb-row-item {
    flex-basis: 118px !important;
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
  }

  #topCarousel .fb-slider-title {
    font-size: 18px !important;
    line-height: 1.6 !important;
  }
}

/* FB RESPONSIVE CORE V1 END */


/* FB PEOPLE CARDS START */
.fb-people-panel{
  margin:18px 0 12px;
  padding:16px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));
  box-shadow:0 16px 40px rgba(0,0,0,.18);
}

.fb-people-panel__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin-bottom:14px;
}

.fb-people-panel__head h2{
  margin:0;
  color:#fff;
  font-size:1.05rem;
  font-weight:900;
}

.fb-people-panel__head span{
  color:rgba(255,255,255,.55);
  font-size:.82rem;
}

.fb-people-group + .fb-people-group{
  margin-top:16px;
}

.fb-people-group__title{
  color:rgba(255,255,255,.78);
  font-size:.86rem;
  font-weight:800;
  margin-bottom:10px;
}

.fb-people-row{
  display:flex;
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 2px 10px;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
}

.fb-people-row::-webkit-scrollbar{
  height:6px;
}

.fb-people-row::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:999px;
}

.fb-person-card{
  flex:0 0 104px;
  width:104px;
  min-height:148px;
  padding:10px 8px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);
  text-decoration:none !important;
  color:#fff !important;
  text-align:center;
  scroll-snap-align:start;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}

.fb-person-card:hover{
  transform:translateY(-2px);
  border-color:rgba(255,193,7,.45);
  background:rgba(255,255,255,.06);
}

.fb-person-card__img,
.fb-person-card__placeholder{
  width:78px;
  height:78px;
  margin:0 auto 9px;
  border-radius:50%;
  object-fit:cover;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid rgba(255,255,255,.16);
  background:radial-gradient(circle at 30% 20%,rgba(255,193,7,.35),rgba(17,24,39,.96));
  color:#fff;
  font-size:30px;
  font-weight:900;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
}

.fb-person-card__name{
  display:block;
  color:#fff;
  font-size:.82rem;
  font-weight:800;
  line-height:1.45;
  min-height:34px;
  overflow:hidden;
}

.fb-person-card__role{
  display:block;
  margin-top:4px;
  color:rgba(255,193,7,.88);
  font-size:.72rem;
  font-weight:700;
}

@media (max-width:576px){
  .fb-people-panel{
    margin-top:16px;
    padding:13px;
    border-radius:18px;
  }

  .fb-people-panel__head{
    align-items:flex-start;
    flex-direction:column;
    gap:3px;
  }

  .fb-person-card{
    flex-basis:92px;
    width:92px;
    min-height:138px;
    padding:9px 7px;
  }

  .fb-person-card__img,
  .fb-person-card__placeholder{
    width:68px;
    height:68px;
    font-size:26px;
  }

  .fb-person-card__name{
    font-size:.78rem;
  }
}
/* FB PEOPLE CARDS END */

/* FB PEOPLE CARDS CLEAN V2 START */
.fb-people-panel{
  margin:18px 0 10px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.fb-people-panel__head{
  margin-bottom:14px !important;
}

.fb-people-panel__head h2{
  font-size:1.12rem !important;
}

.fb-people-group + .fb-people-group{
  margin-top:18px !important;
}

.fb-people-row{
  overflow:visible !important;
  flex-wrap:wrap !important;
  padding:0 !important;
  gap:14px !important;
}

.fb-person-card{
  flex:0 0 92px !important;
  width:92px !important;
  min-height:auto !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.fb-person-card:hover{
  transform:translateY(-2px) !important;
  border-color:transparent !important;
  background:transparent !important;
}

.fb-person-card__img,
.fb-person-card__placeholder{
  width:76px !important;
  height:76px !important;
  margin:0 auto 8px !important;
  border-radius:50% !important;
}

.fb-person-card__name{
  min-height:auto !important;
  font-size:.8rem !important;
}

.fb-person-card__role{
  font-size:.7rem !important;
}

@media (max-width:576px){
  .fb-people-row{
    gap:12px !important;
  }

  .fb-person-card{
    flex-basis:78px !important;
    width:78px !important;
  }

  .fb-person-card__img,
  .fb-person-card__placeholder{
    width:64px !important;
    height:64px !important;
  }

  .fb-person-card__name{
    font-size:.72rem !important;
  }
}
/* FB PEOPLE CARDS CLEAN V2 END */

/* FB PEOPLE NAME ONE LINE V3 START */
.fb-person-card{
  flex-basis:118px !important;
  width:118px !important;
}

.fb-person-card__name{
  display:block !important;
  width:100% !important;
  min-height:0 !important;
  height:auto !important;
  line-height:1.45 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

@media (max-width:576px){
  .fb-person-card{
    flex-basis:104px !important;
    width:104px !important;
  }

  .fb-person-card__name{
    font-size:.74rem !important;
  }
}
/* FB PEOPLE NAME ONE LINE V3 END */


/* FB DMCA LTR FIX START */
.fb-policy-page--dmca,
.fb-policy-page--dmca .fb-policy-card,
.fb-policy-card--dmca{
  direction:ltr !important;
  text-align:left !important;
  unicode-bidi:isolate !important;
}

.fb-policy-card--dmca h1,
.fb-policy-card--dmca h2,
.fb-policy-card--dmca p,
.fb-policy-card--dmca li{
  direction:ltr !important;
  text-align:left !important;
  unicode-bidi:plaintext !important;
}

.fb-policy-card--dmca .fb-policy-email{
  direction:ltr !important;
  text-align:left !important;
}

.fb-policy-card--dmca ul{
  padding-left:22px !important;
  padding-right:0 !important;
}
/* FB DMCA LTR FIX END */


/* Fix Poster sticking on detail pages */
.fb-hero__wrap {
  align-items: flex-start !important;
}

.fb-hero__poster {
  position: -webkit-sticky;
  position: sticky;
  top: 110px;
  align-self: flex-start;
  z-index: 10;
}

@media (max-width: 900px) {
  .fb-hero__poster {
    position: relative;
    top: auto;
  }
}


/* Strict Poster Fix */
.fb-hero__wrap {
    align-items: flex-start !important;
}
.fb-hero__poster {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    flex: 0 0 240px !important;
    align-self: flex-start !important;
}
@media (max-width: 900px) {
    .fb-hero__poster {
        position: relative !important;
        top: auto !important;
        min-width: 180px !important;
        max-width: 180px !important;
        flex: 0 0 180px !important;
        margin: 0 auto !important;
    }
}


/* AGGRESSIVE POSTER FIX TO OVERRIDE ALL STYLES */
html body main.fb-main .fb-hero__wrap {
    align-items: flex-start !important;
}
html body main.fb-main .fb-hero__poster {
    align-self: flex-start !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 110px !important;
}

/* FIXED POSTER STICKY - SAFE MODE */
.fb-hero__wrap { align-items: flex-start !important; }
.fb-hero__poster { position: -webkit-sticky !important; position: sticky !important; top: 110px !important; align-self: flex-start !important; }
@media (max-width: 900px) { .fb-hero__poster { position: relative !important; top: auto !important; } }


/* ---------------------------------------------------
   CLASSIC 2-COLUMN VOD REDESIGN
--------------------------------------------------- */
html body main.fb-main .fb-hero--classic {
    min-height: 420px !important;
    padding-top: calc(var(--fb-navbar-h, 80px) + 20px) !important;
}

html body main.fb-main .fb-hero--classic .fb-hero__wrap { 
    align-items: flex-end !important; 
    position: relative;
}

html body main.fb-main .fb-hero--classic .fb-hero__poster { 
    top: auto !important; 
    position: relative !important; 
    align-self: flex-end !important; 
    margin-bottom: -70px !important; 
    z-index: 10 !important; 
}

html body main.fb-main .fb-hero--classic .fb-hero__title {
    font-size: clamp(28px, 4vw, 46px) !important;
}

/* Tabs Styling */
html body main.fb-main .fb-classic-tabs {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 8px;
}

html body main.fb-main .fb-classic-tabs .nav-link {
    color: rgba(255,255,255,0.6);
    border-radius: 0;
    background: transparent !important;
    padding: 12px 16px;
    font-weight: 800;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

html body main.fb-main .fb-classic-tabs .nav-link.active,
html body main.fb-main .fb-classic-tabs .nav-link:hover {
    color: #fff;
    border-bottom: 2px solid #ffc107;
}

/* Content Boxes */
html body main.fb-main .fb-content-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 24px;
}

html body main.fb-main .fb-content-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
}

/* Sidebar Widgets */
html body main.fb-main .fb-sidebar-widget {
    background: rgba(20,25,31,0.96);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

html body main.fb-main .fb-sidebar-title { 
    font-size: 17px; 
    font-weight: 900; 
    margin-bottom: 20px; 
    color: #fff; 
}

html body main.fb-main .fb-sidebar-list { display: flex; flex-direction: column; gap: 16px; }
html body main.fb-main .fb-sidebar-item { display: flex; align-items: center; gap: 14px; text-decoration: none !important; color: #fff !important; transition: transform 0.2s; }
html body main.fb-main .fb-sidebar-item:hover { transform: translateX(-4px); }
html body main.fb-main .fb-sidebar-item img { width: 68px; height: 96px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
html body main.fb-main .fb-sidebar-info { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
html body main.fb-main .fb-sidebar-name { font-weight: 800; font-size: 14px; line-height: 1.5; }
html body main.fb-main .fb-sidebar-meta { display: flex; gap: 8px; font-size: 12.5px; opacity: 0.8; font-weight: bold; }

@media (max-width: 900px) {
    html body main.fb-main .fb-hero--classic .fb-hero__wrap { flex-direction: column !important; align-items: center !important; }
    html body main.fb-main .fb-hero--classic .fb-hero__main { text-align: center !important; padding-bottom: 20px !important;}
    html body main.fb-main .fb-hero--classic .fb-hero__actions { justify-content: center !important; }
    html body main.fb-main .fb-hero--classic .fb-hero__poster { margin-bottom: 0 !important; align-self: center !important;}
    html body main.fb-main .fb-classic-tabs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding-bottom: 5px; }
    html body main.fb-main .fb-sidebar-widget { position: relative; top: auto; }
}


/* ---------------------------------------------------
   ULTRA PREMIUM VOD REDESIGN
--------------------------------------------------- */
body { background: #0b0f16 !important; }

html body main.fb-main .fb-hero--ultra {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    min-height: 80vh !important;
    display: flex;
    align-items: center;
    padding-top: calc(var(--fb-navbar-h, 80px) + 20px) !important;
    background-color: #0b0f16;
}

html body main.fb-main .fb-hero--ultra .fb-hero__bg {
    background-image: var(--fb-hero-bg);
    background-size: cover;
    background-position: center 20%;
    position: absolute;
    inset: 0;
    opacity: 0.8;
}

html body main.fb-main .fb-hero--ultra .fb-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0b0f16 0%, rgba(11,15,22,0.85) 30%, rgba(11,15,22,0.4) 60%, rgba(11,15,22,0.8) 100%) !important;
}

html body main.fb-main .fb-hero__container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

html body main.fb-main .fb-hero__wrap {
    display: flex;
    align-items: flex-end; /* Align bottom to let poster pop out */
    justify-content: space-between;
    gap: 50px;
}

html body main.fb-main .fb-hero__main {
    flex: 1;
    padding-bottom: 20px;
}

html body main.fb-main .fb-hero__poster {
    flex: 0 0 280px;
    position: relative;
}

html body main.fb-main .fb-poster-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 35px 70px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.1);
    transform: translateY(80px); /* The 3D pop-out effect */
    position: relative;
    z-index: 20;
    display: block;
}

html body main.fb-main .fb-hero__title {
    font-size: clamp(38px, 4vw, 62px) !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    text-shadow: 0 5px 25px rgba(0,0,0,0.9) !important;
    margin-bottom: 25px !important;
    color: #fff;
}

/* Tabs Styling */
html body main.fb-main .fb-classic-tabs {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 8px;
}
html body main.fb-main .fb-classic-tabs .nav-link {
    color: rgba(255,255,255,0.6);
    border-radius: 0;
    background: transparent !important;
    padding: 14px 20px;
    font-weight: 800;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}
html body main.fb-main .fb-classic-tabs .nav-link.active,
html body main.fb-main .fb-classic-tabs .nav-link:hover {
    color: #fff;
    border-bottom: 3px solid #ffc107;
}

/* Content Boxes */
html body main.fb-main .fb-content-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px;
    padding: 30px;
    backdrop-filter: blur(10px);
}
html body main.fb-main .fb-content-title {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
}

/* Sidebar Widgets */
html body main.fb-main .fb-sidebar-widget {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px;
    padding: 26px;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(10px);
}
html body main.fb-main .fb-sidebar-title { 
    font-size: 18px; 
    font-weight: 900; 
    margin-bottom: 22px; 
    color: #fff; 
}
html body main.fb-main .fb-sidebar-list { display: flex; flex-direction: column; gap: 18px; }
html body main.fb-main .fb-sidebar-item { display: flex; align-items: center; gap: 15px; text-decoration: none !important; color: #fff !important; transition: transform 0.2s; background: rgba(255,255,255,0.02); padding: 8px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.03); }
html body main.fb-main .fb-sidebar-item:hover { transform: translateX(-5px); border-color: rgba(255,193,7,0.3); background: rgba(255,255,255,0.05); }
html body main.fb-main .fb-sidebar-item img { width: 75px; height: 105px; border-radius: 12px; object-fit: cover; box-shadow: 0 6px 15px rgba(0,0,0,0.4); }
html body main.fb-main .fb-sidebar-info { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
html body main.fb-main .fb-sidebar-name { font-weight: 800; font-size: 15px; line-height: 1.5; }
html body main.fb-main .fb-sidebar-meta { display: flex; gap: 8px; font-size: 12.5px; opacity: 0.7; font-weight: bold; }
html body main.fb-main .fb-sidebar-meta span { background: rgba(255,255,255,0.1); padding: 3px 8px; border-radius: 6px; }

/* Buttons */
html body main.fb-main .fb-btn {
    height: 54px !important;
    padding: 0 32px !important;
    font-size: 16px !important;
    border-radius: 14px !important;
}

@media (max-width: 992px) {
    html body main.fb-main .fb-hero--ultra .fb-hero__wrap { flex-direction: column !important; align-items: center !important; }
    html body main.fb-main .fb-hero--ultra .fb-hero__main { text-align: center !important; padding-bottom: 20px !important;}
    html body main.fb-main .fb-hero--ultra .fb-hero__actions { justify-content: center !important; }
    html body main.fb-main .fb-hero--ultra .fb-hero__poster { margin-bottom: 0 !important; align-self: center !important;}
    html body main.fb-main .fb-poster-img { transform: translateY(0) !important; margin-top: 20px; width: 220px; }
    html body main.fb-main .fb-classic-tabs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding-bottom: 5px; }
    html body main.fb-main .fb-sidebar-widget { position: relative; top: auto; }
}


/* ---------------------------------------------------
   COMPACT LUXURY REDESIGN (Right Header + Sidebar)
--------------------------------------------------- */
html body main.fb-main { background: #080b10 !important; }

/* Hero Box (Right Column) */
html body main.fb-main .fb-compact-hero {
    position: relative;
    background: #121820;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
html body main.fb-main .fb-compact-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    opacity: 0.15;
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: linear-gradient(to left, transparent 20%, black 100%);
}
html body main.fb-main .fb-compact-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 25px;
}
html body main.fb-main .fb-compact-poster-wrap {
    flex-shrink: 0;
    position: relative;
}
html body main.fb-main .fb-compact-poster {
    width: 170px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}
html body main.fb-main .fb-compact-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
html body main.fb-main .fb-compact-series-link {
    display: inline-block;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 5px;
    text-decoration: none;
}
html body main.fb-main .fb-compact-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 5px;
    color: #fff;
    line-height: 1.3;
}
html body main.fb-main .fb-compact-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 10px;
}

/* Sleek Badges */
html body main.fb-main .fb-sleek-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
html body main.fb-main .fb-badge {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 800;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
}
html body main.fb-main .fb-badge--imdb {
    background: rgba(245, 197, 24, 0.1);
    border-color: rgba(245, 197, 24, 0.3);
    color: #f5c518;
}
html body main.fb-main .fb-badge--green {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}
html body main.fb-main .fb-badge--red {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
html body main.fb-main .fb-badge--outline {
    background: transparent;
    border-color: rgba(255,255,255,0.2);
}

/* Bigger Sidebar Items (Left Column) */
html body main.fb-main .fb-sidebar-widget {
    background: transparent;
    padding: 10px 0;
}
html body main.fb-main .fb-sidebar-title { 
    font-size: 18px; 
    font-weight: 900; 
    color: #fff; 
    border-bottom: 2px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}
html body main.fb-main .fb-sidebar-list { display: flex; flex-direction: column; gap: 14px; }
html body main.fb-main .fb-sidebar-item--large {
    display: flex;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 16px;
    padding: 12px;
    gap: 15px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
html body main.fb-main .fb-sidebar-item--large:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,193,7,0.3);
    transform: translateY(-3px);
}
html body main.fb-main .fb-sidebar-item--large img {
    width: 80px;
    height: 115px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
html body main.fb-main .fb-sidebar-info--large {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
html body main.fb-main .fb-sidebar-name--large {
    font-size: 15.5px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.4;
}
html body main.fb-main .fb-sidebar-meta--large {
    display: flex;
    gap: 8px;
}
html body main.fb-main .fb-meta-pill {
    font-size: 12px;
    color: #94a3b8;
    background: rgba(255,255,255,0.05);
    padding: 3px 8px;
    border-radius: 6px;
}

/* Tabs & Boxes */
html body main.fb-main .fb-content-box {
    background: #121820;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 20px;
    padding: 25px;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    html body main.fb-main .fb-compact-hero__content { flex-direction: column; align-items: center; text-align: center; }
    html body main.fb-main .fb-sleek-badges { justify-content: center; }
    html body main.fb-main .fb-compact-actions { justify-content: center; display: flex;}
}

/* ---------------------------------------------------
   VERTICAL EPISODE CARDS (PORTRAIT POSTERS)
--------------------------------------------------- */
html body main.fb-main .episode-card {
    border-radius: 12px !important;
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    transition: transform 0.2s, border-color 0.2s !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}
html body main.fb-main .episode-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(255,193,7,0.4) !important;
}
html body main.fb-main .episode-poster-frame {
    width: 100% !important;
    aspect-ratio: 2 / 3 !important; /* نسبت استاندارد پوسترهای عمودی */
    height: auto !important;
    background: #0a0d12 !important;
    position: relative !important;
    overflow: hidden !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
html body main.fb-main .episode-poster-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important; 
}
html body main.fb-main .episode-card .card-body {
    padding: 12px 10px !important; /* پدینگ ظریف‌تر برای کارت کوچکتر */
}
html body main.fb-main .episode-card .btn {
    font-size: 12.5px !important;
    padding: 7px !important;
    height: auto !important;
    border-radius: 8px !important;
}

/* ---------------------------------------------------
   STABILITY FIXES
--------------------------------------------------- */
.fb-classic-container { min-height: 60vh !important; }
.tab-pane { transition: none !important; }

/* ---------------------------------------------------
   VERTICAL EPISODE CARDS (PORTRAIT POSTERS)
--------------------------------------------------- */
html body main.fb-main .episode-card {
    border-radius: 12px !important;
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    transition: transform 0.2s, border-color 0.2s !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}
html body main.fb-main .episode-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(255,193,7,0.4) !important;
}
html body main.fb-main .episode-poster-frame {
    width: 100% !important;
    aspect-ratio: 2 / 3 !important; /* نسبت استاندارد پوسترهای عمودی */
    height: auto !important;
    background: #0a0d12 !important;
    position: relative !important;
    overflow: hidden !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
html body main.fb-main .episode-poster-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important; 
}
html body main.fb-main .episode-card .card-body {
    padding: 12px 10px !important; /* پدینگ ظریف‌تر برای کارت کوچکتر */
}
html body main.fb-main .episode-card .btn {
    font-size: 12.5px !important;
    padding: 7px !important;
    height: auto !important;
    border-radius: 8px !important;
}



/* FB_FOOTER_SOCIALS_V1 */
.fb-site-footer__socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    direction: ltr;
}

.fb-footer-social {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.06);
    color: #fff;
    text-decoration: none;
    transition:
        transform .18s ease,
        background-color .18s ease,
        border-color .18s ease;
}

.fb-footer-social svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fb-footer-social--telegram svg path {
    fill: currentColor;
    stroke: none;
}

.fb-footer-social:hover {
    color: #ffd21f;
    border-color: rgba(255,210,31,.55);
    background: rgba(255,210,31,.10);
    transform: translateY(-2px);
}

.fb-footer-social--disabled {
    opacity: .35;
    cursor: default;
}

.fb-footer-social--disabled:hover {
    color: #fff;
    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.06);
    transform: none;
}

@media (max-width: 768px) {
    .fb-site-footer__socials {
        justify-content: center;
        margin-top: 16px;
    }

    .fb-footer-social {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}
/* FB_FOOTER_SOCIALS_V1 END */


/* =========================================================
   FB_APP_DOWNLOAD_HEADER_V1
   Filmobin Android direct-download CTA
   ========================================================= */

.fb-app-download-btn {
    position: relative;
    isolation: isolate;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;

    border: 1px solid rgba(255, 210, 31, .42);
    background:
        linear-gradient(
            135deg,
            rgba(255, 210, 31, .16),
            rgba(255, 184, 0, .07)
        );

    box-shadow:
        0 8px 24px rgba(0,0,0,.26),
        0 0 0 1px rgba(255,255,255,.035) inset;

    overflow: hidden;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.fb-app-download-btn::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;

    background:
        radial-gradient(
            circle at 30% 0%,
            rgba(255, 224, 110, .24),
            transparent 55%
        );

    opacity: .75;
    pointer-events: none;
}

.fb-app-download-btn__icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    color: #ffd21f;

    background: rgba(255,210,31,.10);
    border: 1px solid rgba(255,210,31,.18);
}

.fb-app-download-btn__icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fb-app-download-btn--desktop {
    display: inline-flex;

    height: 43px;
    padding: 5px 13px 5px 10px;

    border-radius: 14px;
}

.fb-app-download-btn__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    line-height: 1.05;
}

.fb-app-download-btn__copy strong {
    font-size: 12.5px;
    font-weight: 850;
    color: #fff;
}

.fb-app-download-btn__copy small {
    margin-top: 4px;

    font-size: 9.5px;
    font-weight: 600;

    color: rgba(255,210,31,.86);
}

.fb-app-download-btn:hover {
    color: #fff !important;

    transform: translateY(-1px);

    border-color: rgba(255,210,31,.78);

    background:
        linear-gradient(
            135deg,
            rgba(255,210,31,.23),
            rgba(255,184,0,.11)
        );

    box-shadow:
        0 12px 30px rgba(0,0,0,.32),
        0 0 20px rgba(255,200,0,.09);
}

.fb-app-download-btn:hover .fb-app-download-btn__icon {
    color: #ffe16a;
}

/* Mobile CTA is intentionally outside navbar-collapse */
.fb-app-download-btn--mobile {
    display: none;

    height: 42px;
    min-width: 58px;
    padding: 5px 9px;

    border-radius: 13px;

    font-size: 11px;
    font-weight: 800;
}

.fb-app-download-btn__mobile-text {
    color: #fff;
}

/* Tablet + mobile */
@media (max-width: 991.98px) {

    .fb-app-download-btn--desktop {
        display: none !important;
    }

    .fb-app-download-btn--mobile {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .navbar > .container-fluid {
        flex-wrap: wrap;
    }
}

/* Small phones */
@media (max-width: 576px) {

    .fb-app-download-btn--mobile {
        height: 40px;
        min-width: 52px;
        padding: 4px 7px;
        gap: 6px;
    }

    .fb-app-download-btn--mobile .fb-app-download-btn__icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
        border-radius: 8px;
    }

    .fb-app-download-btn--mobile .fb-app-download-btn__icon svg {
        width: 15px;
        height: 15px;
    }

    .fb-app-download-btn__mobile-text {
        font-size: 10.5px;
    }
}

/* Very narrow phones: icon only, still 40px tap target */
@media (max-width: 365px) {

    .fb-app-download-btn--mobile {
        min-width: 40px;
        width: 40px;
        padding: 4px;
    }

    .fb-app-download-btn__mobile-text {
        display: none;
    }
}

/* FB_APP_DOWNLOAD_HEADER_V1 END */
