/* ========================================================================== 
   ماژول نگارخانه — Gallery UI v1.5
   ========================================================================== */

:root{
  --ma-ink:#001864;
  --ma-accent:#00649f;
  --ma-accent-2:#2f84b6;
  --ma-soft:#f5f9fc;
  --ma-line:#d9e4ef;
  --ma-text:#10233a;
  --ma-muted:#5e7389;

  --cols:3;
  --gap:16px;
  --radius:16px;
}

.map-collection, .map-collection *,
.map-playlist, .map-playlist *,
#map-lightbox, #map-lightbox *{
  box-sizing:border-box;
}

.map-collection,
.map-playlist{
  font-family: inherit;
  color:var(--ma-text);
}

.map-collection a, .map-collection button,
.map-playlist a, .map-playlist button{
  color:inherit;
  text-decoration:none;
}

/* ---------- Filters ---------- */
.map-filters{
  margin:0 0 12px;
  padding:10px;
  border:1px solid var(--ma-line);
  border-radius:14px;
  background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%);
  box-shadow:0 8px 26px rgba(16,35,58,.06);
}
.map-filters-row{
  display:grid;
  grid-template-columns: minmax(200px,1.4fr) minmax(190px,1fr) auto auto auto;
  gap:8px;
  align-items:center;
}
.map-filter-search input,
.map-filter-select select{
  width:100%;
  border:1px solid #d5e2ee;
  border-radius:10px;
  background:#fff;
  color:var(--ma-text);
  font-size:13px;
  padding:8px 10px;
  outline:none;
}
.map-filter-search input:focus,
.map-filter-select select:focus{
  border-color:#9bbad6;
  box-shadow:0 0 0 3px rgba(0,100,159,.12);
}
.map-filter-btn{
  border:1px solid transparent;
  background:linear-gradient(135deg,var(--ma-accent),var(--ma-accent-2));
  color:#fff;
  border-radius:10px;
  padding:8px 12px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.map-filter-reset{
  border:1px solid #d6e3ef;
  background:#fff;
  color:#173f5d;
  border-radius:10px;
  padding:8px 12px;
  font-size:12px;
  font-weight:700;
}
.map-filter-reset:hover{ background:#f4f9fd; border-color:#bfd3e6; }
.map-filter-count{
  justify-self:end;
  color:#46617a;
  font-size:12px;
  font-weight:700;
}
@media (max-width:980px){
  .map-filters-row{
    grid-template-columns:1fr 1fr;
  }
  .map-filter-count{ justify-self:start; }
}
@media (max-width:620px){
  .map-filters-row{
    grid-template-columns:1fr;
  }
}

/* ---------- Gallery Grid ---------- */
.map-collection{
  column-count: var(--cols);
  column-gap: var(--gap);
  margin:0;
  padding:4px 0 0;
}
.map-collection[data-variant="infographic"]{ --cols:2; }

@media (max-width:1200px){ .map-collection{ --cols:2; } }
@media (max-width:760px){ .map-collection{ --cols:1; } }

figure.map-card{
  margin:0 0 var(--gap) !important;
  break-inside:avoid;
  -webkit-column-break-inside:avoid;
  page-break-inside:avoid;
  border-radius:calc(var(--radius) + 2px);
  border:1px solid var(--ma-line);
  background:#fff;
  overflow:hidden;
  box-shadow:0 12px 34px rgba(16,35,58,.08);
  transition:transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
figure.map-card:hover{
  transform:translateY(-3px);
  border-color:#bfd0e2;
  box-shadow:0 18px 44px rgba(16,35,58,.14);
}
figure.map-card::after{
  content:"";
  display:block;
  height:3px;
  background:linear-gradient(90deg,var(--ma-accent),var(--ma-accent-2));
}

button.map-media{
  -webkit-appearance:none;
  appearance:none;
  background:#eef4fa;
  border:0 !important;
  outline:0 !important;
  padding:0;
  margin:0;
  width:100%;
  border-radius:0;
  cursor:zoom-in;
  position:relative;
  overflow:hidden;
}

.map-media-inner{ display:block; position:relative; }

.map-img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
  transform:scale(1.01);
  transition:transform .45s ease, filter .28s ease;
}
.map-card:hover .map-img{
  transform:scale(1.055);
  filter:saturate(1.08);
}

.map-media::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,24,100,0) 40%, rgba(0,24,100,.72) 100%);
  opacity:.0;
  transition:opacity .22s ease;
  pointer-events:none;
}
.map-card:hover .map-media::before{ opacity:1; }

.map-overlay{
  position:absolute;
  inset:auto 0 0 0;
  padding:14px;
  opacity:0;
  transition:opacity .22s ease;
  pointer-events:none;
}
.map-card:hover .map-overlay{ opacity:1; }

.map-title{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#fff;
  font-size:13px;
  font-weight:700;
  line-height:1.4;
  padding:8px 12px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(0,100,159,.95), rgba(47,132,182,.95));
  box-shadow:0 10px 24px rgba(0,100,159,.3);
}
.map-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0 0 8px;
}
.map-tag{
  color:#fff;
  font-size:10.5px;
  font-weight:700;
  line-height:1.2;
  border-radius:999px;
  padding:4px 8px;
  background:rgba(0,24,100,.72);
  border:1px solid rgba(255,255,255,.22);
}
.map-tag-more{ background:rgba(0,100,159,.82); }

.map-caption{
  display:block;
  margin:0;
  padding:10px 12px;
  font-size:12px;
  line-height:1.75;
  color:var(--ma-muted);
  background:linear-gradient(180deg,#fff 0%, #f8fbff 100%);
  border-top:1px solid #edf3f8;
}

/* ---------- Load More ---------- */
.map-load-more-wrap{
  display:flex;
  justify-content:center;
  margin-top:8px;
}

.map-load-more{
  -webkit-appearance:none;
  appearance:none;
  border:1px solid transparent;
  background:linear-gradient(135deg,var(--ma-accent),var(--ma-accent-2));
  color:#fff;
  border-radius:14px;
  padding:10px 18px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(0,100,159,.25);
  transition:transform .12s ease, filter .18s ease, box-shadow .2s ease;
}
.map-load-more:hover{
  filter:brightness(1.06);
  box-shadow:0 16px 30px rgba(0,100,159,.3);
}
.map-load-more:active{ transform:translateY(1px); }
.map-load-more[disabled]{ opacity:.65; cursor:not-allowed; }

/* ---------- Video VOD (see .map-playlist--vod below) ---------- */

.screen-reader-text{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

/* ---------- Pagination ---------- */
.map-pagination{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:center;
  margin-top:6px;
}
.map-page{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 10px;
  border-radius:10px;
  border:1px solid #d9e5f0;
  background:#fff;
  color:#18324f;
  font-size:12px;
  font-weight:700;
}
.map-page:hover{ background:#f6fbff; border-color:#bdd2e5; }
.map-page.current{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,var(--ma-accent),var(--ma-accent-2));
}
.map-page.disabled{ opacity:.5; pointer-events:none; }

/* ---------- Lightbox ---------- */
#map-lightbox{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,17,47,.88);
  backdrop-filter: blur(4px);
}
#map-lightbox.is-open{ display:flex; }
#map-lightbox img{
  max-width:95vw;
  max-height:84vh;
  border-radius:14px;
  box-shadow:0 18px 46px rgba(0,0,0,.45);
}
#map-lightbox .map-lb-close{
  position:absolute;
  top:14px;
  left:14px;
  width:38px;
  height:38px;
  border:1px solid #dce6f2;
  border-radius:999px;
  background:#fff;
  color:#0f2740;
  font-size:20px;
  line-height:34px;
  cursor:pointer;
}
#map-lightbox .map-lb-caption{
  position:absolute;
  bottom:16px;
  left:50%;
  transform:translateX(-50%);
  max-width:92vw;
  text-align:center;
  color:#fff;
  font-size:13px;
  line-height:1.6;
  border-radius:999px;
  padding:7px 12px;
  background:rgba(5,19,42,.52);
}

/* ========================================
   VIDEO VOD — ماژول نگارخانه (scoped)
   ======================================== */

.map-playlist.map-playlist--vod{
  --vod-bg:#f8fafc;
  --vod-surface:#ffffff;
  --vod-surface2:#f1f5f9;
  --vod-line:rgba(15,23,42,.1);
  --vod-text:#0f172a;
  --vod-muted:#64748b;
  --vod-accent:var(--ma-accent,#00649f);
  --vod-accent2:var(--ma-accent-2,#2f84b6);

  position:relative;
  z-index:1;
  direction:rtl;
  margin:28px 0 40px;
  padding:22px 22px 26px;
  font-family:inherit;
  color:var(--vod-text);
  border-radius:20px;
  border:1px solid var(--vod-line);
  background:
    radial-gradient(880px 240px at 12% -25%,rgba(0,100,159,.09),transparent 58%),
    radial-gradient(640px 200px at 100% 0%,rgba(47,132,182,.07),transparent 52%),
    linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  box-shadow:0 16px 44px rgba(15,23,42,.08);
}
.map-playlist--vod.map-vod-theater{
  z-index:99980;
}

.map-playlist--vod .map-pl-row{
  display:flex;
  gap:22px;
  align-items:stretch;
}

.map-playlist--vod .map-pl-main{
  flex:1 1 66%;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:0;
}

.map-playlist--vod .map-vod-stage{
  position:relative;
  border-radius:18px;
  padding:1px;
  background:linear-gradient(135deg,rgba(0,100,159,.35),rgba(47,132,182,.18),rgba(255,255,255,.65));
  box-shadow:0 12px 36px rgba(15,23,42,.1);
}

.map-playlist--vod .map-vod-stage__frame{
  position:absolute;
  inset:0;
  border-radius:18px;
  pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.06);
}

.map-playlist--vod .map-vod-player{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background:#000;
}

.map-playlist--vod .map-video-player{
  width:100%;
  display:block;
  aspect-ratio:16/9;
  background:#000;
  vertical-align:middle;
}

.map-playlist--vod .map-vod-chrome{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  background:linear-gradient(180deg,#f8fafc,#eef2f7);
  border-top:1px solid rgba(15,23,42,.08);
}

.map-playlist--vod .map-vod-badge{
  font-size:11px;
  font-weight:700;
  line-height:1.45;
  letter-spacing:0;
  text-transform:none;
  color:#0c4a6e;
  background:rgba(224,242,254,.95);
  border:1px solid rgba(56,189,248,.35);
  padding:6px 11px;
  border-radius:10px;
  max-width:min(280px,58vw);
}

.map-playlist--vod .map-vod-chrome__actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.map-playlist--vod .map-vod-tool{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0;
  padding:8px 11px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.45);
  background:#fff;
  color:var(--vod-text);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:background .2s,border-color .2s,transform .12s,box-shadow .2s;
}
.map-playlist--vod .map-vod-tool.map-vod-tool--icon{
  padding:8px;
  min-width:40px;
  min-height:40px;
}
.map-playlist--vod .map-vod-tool:hover{
  background:#f1f5f9;
  border-color:rgba(0,100,159,.35);
  box-shadow:0 2px 8px rgba(15,23,42,.06);
}
.map-playlist--vod .map-vod-tool:active{ transform:translateY(1px); }
.map-playlist--vod .map-vod-theater[aria-pressed="true"]{
  background:linear-gradient(135deg,var(--vod-accent),var(--vod-accent2));
  border-color:transparent;
  color:#fff;
}

/* تمام‌صفحه: فقط ناحیهٔ ویدیو + نوار زیرش، نه عنوان و توضیحات */
.map-playlist--vod.map-vod-theater::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:99988;
  background:rgba(15,23,42,.78);
  backdrop-filter:blur(5px);
}
.map-playlist--vod.map-vod-theater .map-vod-stage{
  position:fixed;
  inset:0;
  z-index:99990;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.map-playlist--vod.map-vod-theater .map-vod-stage__frame{
  display:none;
}
.map-playlist--vod.map-vod-theater .map-pl-player.map-vod-player{
  width:100vw;
  max-width:100vw;
  height:100vh;
  max-height:100vh;
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  border-radius:0;
  overflow:hidden;
  box-shadow:none;
}
.map-playlist--vod.map-vod-theater .map-video-player{
  flex:1 1 auto;
  min-height:0;
  width:100%;
  max-height:none;
  aspect-ratio:auto;
  object-fit:contain;
  background:#000;
}
.map-playlist--vod.map-vod-theater .map-vod-chrome{
  flex-shrink:0;
  background:linear-gradient(180deg,#0f172a,#1e293b);
  border-top:1px solid rgba(255,255,255,.08);
}
.map-playlist--vod.map-vod-theater .map-vod-badge{
  color:#e0f2fe;
  background:rgba(0,100,159,.4);
  border-color:rgba(56,189,248,.4);
}
.map-playlist--vod.map-vod-theater .map-vod-tool{
  background:rgba(30,41,59,.9);
  color:#f1f5f9;
  border-color:rgba(148,163,184,.35);
}
.map-playlist--vod.map-vod-theater .map-vod-tool:hover{
  background:rgba(51,65,85,.95);
}
.map-playlist--vod.map-vod-theater .map-vod-theater[aria-pressed="true"]{
  background:linear-gradient(135deg,var(--vod-accent),var(--vod-accent2));
  color:#fff;
}

.map-playlist--vod.is-sticky:not(.map-vod-theater) .map-vod-stage{
  position:sticky;
  top:12px;
  z-index:50;
}

.map-playlist--vod .ma-video-header{
  margin-top:20px;
  padding-bottom:16px;
  border-bottom:1px solid rgba(15,23,42,.1);
}

.map-playlist--vod .ma-video-title{
  margin:0 0 10px;
  font-size:clamp(1.15rem,2.4vw,1.55rem);
  font-weight:800;
  line-height:1.45;
  color:#0f172a;
}

.map-playlist--vod .ma-video-meta{
  display:flex;
  flex-wrap:wrap;
  gap:14px 22px;
}

.map-playlist--vod .ma-meta-item{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:13px;
  color:var(--vod-muted);
}
.map-playlist--vod .ma-meta-item[hidden]{
  display:none !important;
}
.map-playlist--vod .ma-meta-item svg{ opacity:.85; }

.map-playlist--vod .ma-btn-like.is-liked{
  background:rgba(59,130,246,.12);
  border-color:rgba(37,99,235,.45);
  color:#1d4ed8;
}
.map-playlist--vod .ma-btn-dislike.is-disliked{
  background:rgba(248,113,113,.12);
  border-color:rgba(220,38,38,.4);
  color:#b91c1c;
}

.map-playlist--vod .ma-video-description{
  margin-top:16px;
  padding:16px 18px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.08);
  background:var(--vod-surface2);
}

.map-playlist--vod .ma-desc-short,
.map-playlist--vod .ma-desc-full{
  margin:0;
  font-size:14px;
  line-height:1.85;
  color:#334155;
}

.map-playlist--vod .ma-toggle-desc{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0;
  border:0;
  background:none;
  color:var(--vod-accent);
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}
.map-playlist--vod .ma-toggle-desc:hover{ color:var(--vod-accent2); }
.map-playlist--vod .ma-toggle-icon{ transition:transform .25s ease; }
.map-playlist--vod .ma-toggle-desc.is-expanded .ma-toggle-icon{ transform:rotate(180deg); }

.map-playlist--vod .ma-video-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

.map-playlist--vod .ma-btn,
.map-playlist--vod a.ma-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:11px;
  font-size:13px;
  font-weight:700;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  color:var(--vod-text);
  cursor:pointer;
  text-decoration:none;
  transition:background .2s,border-color .2s,transform .12s,box-shadow .2s;
}
.map-playlist--vod .ma-btn:hover{
  background:#f1f5f9;
  border-color:rgba(0,100,159,.25);
  box-shadow:0 2px 8px rgba(15,23,42,.06);
}
.map-playlist--vod a.ma-btn-download{
  background:linear-gradient(135deg,var(--vod-accent),var(--vod-accent2));
  border-color:transparent;
  color:#fff;
}
.map-playlist--vod a.ma-btn-download:hover{
  filter:brightness(1.08);
}
.map-playlist--vod .ma-btn-share.is-copied{
  border-color:#34d399;
  color:#047857;
  background:#ecfdf5;
}

.map-playlist--vod .map-pl-sidebar{
  flex:0 0 372px;
  max-width:100%;
  max-height:min(88vh,920px);
  display:flex;
  flex-direction:column;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.1);
  background:var(--vod-surface);
  box-shadow:0 10px 30px rgba(15,23,42,.07);
}

.map-playlist--vod .map-pl-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:16px 18px;
  background:linear-gradient(125deg,rgba(0,100,159,.12),rgba(241,245,249,.9));
  border-bottom:1px solid rgba(15,23,42,.08);
}

.map-playlist--vod .map-pl-header__titles h3{
  margin:0;
  font-size:16px;
  font-weight:800;
  color:#0f172a;
}
.map-playlist--vod .map-pl-header__hint{
  margin:4px 0 0;
  font-size:11px;
  color:var(--vod-muted);
}

.map-playlist--vod .map-pl-count{
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  color:#0c4a6e;
  background:rgba(224,242,254,.9);
  border:1px solid rgba(56,189,248,.35);
}
.map-playlist--vod .map-pl-count-visible{ color:#0369a1; }
.map-playlist--vod .map-pl-count-sep{ opacity:.45; font-weight:600; }
.map-playlist--vod .map-pl-count-label{ font-weight:700; opacity:.9; }

.map-playlist--vod .map-pl-search-wrap{
  position:relative;
  padding:12px 14px;
  background:var(--vod-surface2);
  border-bottom:1px solid rgba(15,23,42,.08);
}

.map-playlist--vod .map-search-icon{
  position:absolute;
  inset-inline-end:18px;
  top:50%;
  transform:translateY(-50%);
  color:var(--vod-muted);
  pointer-events:none;
}

.map-playlist--vod .map-pl-search{
  width:100%;
  box-sizing:border-box;
  padding:11px 14px;
  padding-inline-end:48px;
  padding-inline-start:14px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  color:var(--vod-text);
  font-size:13px;
  outline:none;
  transition:border-color .2s,box-shadow .2s;
}
.map-playlist--vod .map-pl-search::placeholder{ color:#94a3b8; }
.map-playlist--vod .map-pl-search:focus{
  border-color:rgba(0,100,159,.45);
  box-shadow:0 0 0 3px rgba(0,100,159,.12);
}

.map-playlist--vod .map-pl-list{
  flex:1;
  min-height:120px;
  overflow-y:auto;
  padding:10px 10px 12px;
  scrollbar-width:thin;
  scrollbar-color:rgba(148,163,184,.8) rgba(241,245,249,.9);
}
.map-playlist--vod .map-pl-list::-webkit-scrollbar{ width:7px; }
.map-playlist--vod .map-pl-list::-webkit-scrollbar-thumb{
  background:rgba(148,163,184,.75);
  border-radius:6px;
}

.map-playlist--vod .map-vid-card{
  position:relative;
  display:flex;
  gap:12px;
  padding:10px 10px 10px 8px;
  margin-bottom:8px;
  border-radius:14px;
  border:1px solid transparent;
  background:#f8fafc;
  cursor:pointer;
  transition:background .2s,border-color .2s,transform .15s,box-shadow .2s;
  outline:none;
}
.map-playlist--vod .map-vid-card:hover{
  background:#f1f5f9;
  border-color:rgba(15,23,42,.1);
}
.map-playlist--vod .map-vid-card:focus-visible{
  box-shadow:0 0 0 3px rgba(0,100,159,.2);
}
.map-playlist--vod .map-vid-card.is-active{
  background:linear-gradient(90deg,rgba(224,242,254,.95),rgba(248,250,252,.9));
  border-color:rgba(0,100,159,.28);
  box-shadow:0 8px 22px rgba(15,23,42,.08);
}
.map-playlist--vod .map-vid-card.is-hidden{ display:none; }

.map-playlist--vod .map-vid-card__active-bar{
  position:absolute;
  right:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:3px;
  background:linear-gradient(180deg,var(--vod-accent2),var(--vod-accent));
  opacity:0;
  transition:opacity .2s;
}
.map-playlist--vod .map-vid-card.is-active .map-vid-card__active-bar{ opacity:1; }

.map-playlist--vod .card-thumb{
  position:relative;
  flex:0 0 132px;
  width:132px;
  height:74px;
  border-radius:11px;
  overflow:hidden;
  background:#e2e8f0;
  border:1px solid rgba(15,23,42,.1);
  box-shadow:0 4px 12px rgba(15,23,42,.08);
}
.map-playlist--vod .card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.map-playlist--vod .map-vid-thumb{
  display:block;
  width:100%;
  height:100%;
  background:
    linear-gradient(145deg,rgba(0,100,159,.35),rgba(226,232,240,.95)),
    radial-gradient(circle at 30% 30%,rgba(255,255,255,.5),transparent 55%);
}
.map-playlist--vod .card-thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at center,rgba(255,255,255,0) 40%,rgba(0,0,0,.35));
  pointer-events:none;
}
.map-playlist--vod .card-duration{
  position:absolute;
  bottom:6px;
  left:6px;
  z-index:1;
  padding:3px 7px;
  border-radius:6px;
  font-size:11px;
  font-weight:800;
  color:#fff;
  background:rgba(0,0,0,.78);
}
.map-playlist--vod .card-ep{
  position:absolute;
  top:6px;
  right:6px;
  z-index:1;
  min-width:22px;
  height:22px;
  padding:0 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:900;
  color:#0f172a;
  background:linear-gradient(135deg,#e0f2fe,#bae6fd);
  border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,.35);
}

.map-playlist--vod .card-body{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
}
.map-playlist--vod .card-title{
  margin:0;
  font-size:13.5px;
  font-weight:800;
  line-height:1.45;
  color:#0f172a;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.map-playlist--vod .map-vid-card.is-active .card-title{ color:#0369a1; }

.map-playlist--vod .card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px 8px;
  font-size:11.5px;
  color:var(--vod-muted);
}
.map-playlist--vod .group-tag{
  padding:2px 7px;
  border-radius:999px;
  font-size:10.5px;
  font-weight:800;
  color:#1e40af;
  background:rgba(219,234,254,.85);
  border:1px solid rgba(59,130,246,.25);
}

.map-playlist--vod .map-pl-controls{
  display:flex;
  gap:10px;
  padding:12px;
  border-top:1px solid rgba(15,23,42,.08);
  background:var(--vod-surface2);
}

.map-playlist--vod .map-pl-prev,
.map-playlist--vod .map-pl-next{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 10px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  color:var(--vod-text);
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  transition:background .2s,border-color .2s,color .2s;
}
.map-playlist--vod .map-pl-prev:hover,
.map-playlist--vod .map-pl-next:hover{
  background:linear-gradient(135deg,var(--vod-accent),var(--vod-accent2));
  border-color:transparent;
  color:#fff;
}

@media (max-width:1100px){
  .map-playlist--vod .map-pl-row{ flex-direction:column; }
  .map-playlist--vod .map-pl-sidebar{
    flex:1 1 auto;
    width:100%;
    max-height:520px;
  }
}

@media (max-width:640px){
  .map-playlist.map-playlist--vod{
    padding:14px;
    margin:18px 0 28px;
    border-radius:16px;
  }
  .map-playlist--vod .card-thumb{
    flex-basis:104px;
    width:104px;
    height:58px;
  }
  .map-playlist--vod .ma-video-actions{ gap:8px; }
  .map-playlist--vod .ma-btn,
  .map-playlist--vod a.ma-btn{
    padding:9px 12px;
    font-size:12px;
  }
  .map-playlist--vod .map-vod-chrome{ flex-wrap:wrap; }
}

/* ---------- سایر ویدیوها (گرید زیر پلیر) ---------- */
.map-vod-more{
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid rgba(15,23,42,.1);
}
.map-vod-more-head{
  margin-bottom:14px;
}
.map-vod-more-h{
  margin:0 0 6px;
  font-size:1.1rem;
  font-weight:800;
  color:#0f172a;
}
.map-vod-more-sub{
  margin:0;
  font-size:12px;
  color:#64748b;
  line-height:1.55;
}
.map-vod-more-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
@media (max-width:960px){
  .map-vod-more-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:520px){
  .map-vod-more-grid{
    grid-template-columns:1fr;
  }
}
.map-vod-more-card{
  display:flex;
  flex-direction:column;
  text-align:right;
  padding:0;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  cursor:pointer;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 4px 14px rgba(15,23,42,.06);
  transition:transform .15s ease, box-shadow .2s ease;
}
.map-vod-more-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(15,23,42,.1);
}
.map-vod-more-thumb{
  position:relative;
  aspect-ratio:16/9;
  background:#0f172a;
}
.map-vod-more-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.map-vod-more-ph{
  display:block;
  width:100%;
  height:100%;
  min-height:120px;
  background:linear-gradient(135deg,#e2e8f0,#cbd5e1);
}
.map-vod-more-dur{
  position:absolute;
  bottom:6px;
  left:6px;
  z-index:1;
  font-size:11px;
  font-weight:800;
  padding:3px 7px;
  border-radius:6px;
  background:rgba(0,0,0,.78);
  color:#fff;
}
.map-vod-more-body{
  padding:10px 12px 12px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.map-vod-more-title{
  font-size:14px;
  font-weight:800;
  color:#0f172a;
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.map-vod-more-meta{
  font-size:12px;
  color:#64748b;
  display:flex;
  flex-wrap:wrap;
  gap:4px 8px;
  align-items:center;
}
.map-vod-more-author{
  font-weight:700;
  color:#334155;
}
.map-vod-more-dot{
  opacity:.55;
}
.map-vod-more-actions{
  display:flex;
  justify-content:center;
  margin-top:16px;
}
.map-vod-more-load{
  padding:10px 22px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  color:#0f172a;
  transition:border-color .2s, color .2s, box-shadow .2s;
}
.map-vod-more-load:hover{
  border-color:rgba(0,100,159,.35);
  color:var(--ma-accent);
  box-shadow:0 4px 12px rgba(0,100,159,.1);
}
.map-vod-more-load:disabled{
  opacity:.55;
  cursor:wait;
}
.map-vod-more--empty{
  border-top-color:rgba(15,23,42,.06);
}
.map-vod-more-empty{
  margin:0;
  padding:14px 16px;
  border-radius:12px;
  background:rgba(15,23,42,.04);
  font-size:13px;
  line-height:1.6;
  color:#64748b;
}
