/* ==========================================================
 *  VOD Streaming Platform — Vanilla CSS
 *  Mobile-first, RTL, Dark Cinematic + Neon Pink/Cyan
 *  Compatible: Mobile, Tablet, Desktop, Smart TV
 * ========================================================== */

/* ============== Reset & Base ============== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
html, body {
  margin: 0; padding: 0;
  font-family: "Vazirmatn", "IRANSans", "Tahoma", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

:root {
  --bg-0: #050505;
  --bg-1: #0a0a0c;
  --bg-2: #121214;
  --bg-3: #1a1a1f;
  --bg-4: #22222a;
  --text: #f1f1f5;
  --muted: #9a9aa8;
  --neon: #ff2d87;
  --neon-2: #00e6ff;
  --neon-purple: #a855f7;
  --success: #22c55e;
  --warn: #f59e0b;
  --error: #ef4444;
  --border: #2a2a35;
  --radius: 12px;
  --shadow-neon: 0 0 12px rgba(255,45,135,.55), 0 0 32px rgba(255,45,135,.25);
  --shadow-card: 0 10px 25px rgba(0,0,0,.5);
  --header-h: 60px;
}

body {
  background: var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,45,135,.10), transparent 70%),
    radial-gradient(900px 500px at -10% 20%, rgba(0,230,255,.08), transparent 70%),
    linear-gradient(180deg, #050505, #0a0a0c);
  background-attachment: fixed;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: .2s color; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ============== Header ============== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,12,.85);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px;
  min-height: var(--header-h);
  flex-wrap: nowrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 18px; letter-spacing: .3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff; box-shadow: var(--shadow-neon);
  font-size: 14px;
}
.brand-text { font-size: 16px; }

.main-nav {
  display: flex; gap: 18px;
  flex: 1;
  margin: 0 16px;
}
.main-nav a {
  position: relative;
  padding: 6px 4px;
  color: #d6d6df;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--neon); }
.main-nav a::after {
  content: ""; position: absolute; right: 0; bottom: -4px;
  height: 2px; width: 0; background: var(--neon); transition: width .25s;
}
.main-nav a:hover::after { width: 100%; }

.nav-actions {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.search-wrap { position: relative; }
.search-wrap input {
  width: 200px; padding: 8px 12px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  outline: none; transition: .2s;
  font-size: 13px;
}
.search-wrap input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(255,45,135,.15); }
.search-results {
  position: absolute; top: 110%; right: 0; width: 340px; max-width: 90vw;
  max-height: 460px; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 6px; display: none; z-index: 60;
}
.search-results.open { display: block; box-shadow: var(--shadow-card); }
.search-result-item {
  display: flex; gap: 10px; padding: 8px; border-radius: 8px;
  align-items: center;
}
.search-result-item:hover { background: var(--bg-3); }
.search-result-item img {
  width: 44px; height: 60px; object-fit: cover; border-radius: 6px;
  flex-shrink: 0;
}
.search-result-meta { min-width: 0; flex: 1; }
.search-result-meta strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-meta span { color: var(--muted); font-size: 11px; }

.nav-toggle {
  display: none;
  background: var(--bg-3); border: 1px solid var(--border);
  color: #fff; padding: 6px 10px; border-radius: 8px;
  font-size: 18px;
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--bg-3);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: .2s;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  min-height: 38px;
}
.btn:active { transform: translateY(1px); }
.btn:hover { transform: translateY(-1px); }
.btn-neon {
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  box-shadow: var(--shadow-neon);
}
.btn-neon:hover { box-shadow: 0 0 20px rgba(255,45,135,.7), 0 0 40px rgba(255,45,135,.4); }
.btn-neon-outline {
  background: transparent; border-color: var(--neon); color: var(--neon);
}
.btn-neon-outline:hover { background: var(--neon); color: #fff; box-shadow: var(--shadow-neon); }
.btn-ghost { background: transparent; border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; min-height: 30px; }
.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ============== Layout ============== */
.site-main { padding: 20px 0 60px; }
.section { margin: 28px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; gap: 10px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 20px; }
.section-head a { color: var(--neon); font-size: 13px; }

/* ============== Hero Slider ============== */
.hero-slider {
  position: relative; height: 420px; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--border); margin-top: 16px;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.3) 60%, transparent 100%);
}
.hero-content {
  position: absolute; bottom: 30px; right: 30px; max-width: 600px; z-index: 2;
  padding-left: 16px;
}
.hero-content h1 { font-size: 30px; margin: 0 0 10px; line-height: 1.3; }
.hero-content .badges { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }
.hero-content p { color: #d0d0db; margin: 10px 0 16px; line-height: 1.7; font-size: 14px; }
.badge {
  background: var(--bg-3); padding: 4px 10px; border-radius: 999px;
  font-size: 11px; color: var(--muted); border: 1px solid var(--border);
}
.badge-neon { color: var(--neon); border-color: var(--neon); }
.hero-nav {
  position: absolute; bottom: 14px; left: 14px; z-index: 3; display: flex; gap: 6px;
}
.hero-dot {
  width: 26px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.25); border: 0; padding: 0; cursor: pointer;
}
.hero-dot.active { background: var(--neon); }

/* ============== Cards ============== */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .25s;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--neon);
  box-shadow: 0 12px 30px rgba(255,45,135,.15);
}
.card-poster { position: relative; aspect-ratio: 2/3; background: var(--bg-3); }
.card-poster img { width: 100%; height: 100%; object-fit: cover; }
.card-imdb {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.75); color: #ffd54a;
  padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700;
}
.card-type {
  position: absolute; top: 8px; left: 8px;
  background: var(--neon); color: #fff; padding: 3px 8px;
  border-radius: 6px; font-size: 10px; font-weight: 700;
}
.card-body { padding: 10px 12px 12px; flex: 1; }
.card-title {
  font-size: 13px; font-weight: 600; margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.card-meta {
  font-size: 11px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 4px;
}
.card-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============== TOP 3 Podium ============== */
.top3-podium {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: end;
  padding: 24px 8px;
}
.podium-item {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  transition: .3s;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}
.podium-item::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top, currentColor, transparent 60%);
  opacity: .08;
  pointer-events: none;
}
.podium-item:hover { transform: translateY(-6px); }

/* Rank 1 - Gold (وسط، بلندتر) */
.podium-rank-1 {
  border: 2px solid #f5c518;
  color: #f5c518;
  transform: translateY(-16px);
  box-shadow: 0 15px 40px rgba(245,197,24,.25);
}
.podium-rank-1:hover { transform: translateY(-22px); }
.podium-rank-1 .podium-badge {
  background: linear-gradient(135deg, #f5c518, #e8a600);
  color: #000;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(245,197,24,.5);
}

/* Rank 2 - Silver */
.podium-rank-2 {
  border-color: #c0c0c8;
  color: #c0c0c8;
}
.podium-rank-2 .podium-badge {
  background: linear-gradient(135deg, #c0c0c8, #909098);
  color: #000;
  font-size: 26px;
}

/* Rank 3 - Bronze */
.podium-rank-3 {
  border-color: #cd7f32;
  color: #cd7f32;
}
.podium-rank-3 .podium-badge {
  background: linear-gradient(135deg, #cd7f32, #a05a1a);
  color: #fff;
  font-size: 24px;
}

.podium-badge {
  position: absolute;
  top: -18px;
  right: 50%;
  transform: translateX(50%);
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  z-index: 3;
}

.podium-poster {
  position: relative;
  aspect-ratio: 2/3;
  max-width: 160px;
  margin: 8px auto 14px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.5);
}
.podium-poster img {
  width: 100%; height: 100%; object-fit: cover;
}
.podium-imdb {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,.85);
  color: #ffd54a;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  font-family: sans-serif;
}

.podium-info { color: var(--text); }
.podium-info h3 {
  margin: 0 0 6px;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-info p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .top3-podium { gap: 10px; padding: 16px 4px; }
  .podium-item { padding: 14px 8px; border-radius: 12px; }
  .podium-rank-1 { transform: translateY(-8px); }
  .podium-rank-1:hover { transform: translateY(-12px); }
  .podium-badge { width: 36px; height: 36px; top: -14px; font-size: 22px !important; }
  .podium-poster { max-width: 100px; margin-top: 4px; }
  .podium-info h3 { font-size: 12px; }
  .podium-info p { font-size: 10px; }
  .podium-imdb { font-size: 9px; padding: 2px 5px; }
}

/* ============== Category Grid ============== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.cat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: .3s;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 4px;
  background: var(--neon);
  transform: scaleY(0);
  transition: transform .3s;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--neon); box-shadow: 0 12px 30px rgba(255,45,135,.15); }
.cat-card:hover::before { transform: scaleY(1); }

.cat-icon {
  flex: 0 0 56px; width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  font-size: 26px;
  box-shadow: 0 6px 16px rgba(255,45,135,.3);
}
.cat-card-serials .cat-icon {
  background: linear-gradient(135deg, var(--neon-2), #2196f3);
  box-shadow: 0 6px 16px rgba(0,230,255,.3);
}
.cat-card-search .cat-icon {
  background: linear-gradient(135deg, var(--neon-purple), #7c4dff);
  box-shadow: 0 6px 16px rgba(168,85,247,.3);
}
.cat-info { flex: 1; }
.cat-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--text);
}
.cat-info p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.cat-arrow {
  font-size: 20px;
  color: var(--muted);
  transition: .2s;
}
.cat-card:hover .cat-arrow { color: var(--neon); transform: translateX(-4px); }

/* ============== Hero Carousel (Cinematic) ============== */
.hero-carousel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: 16px -8px 30px;
  min-height: 520px;
  background: #000;
}
.hc-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
  background-image: var(--hc-bg);
  background-size: cover;
  background-position: center;
}
.hc-slide.active {
  opacity: 1;
  visibility: visible;
}
.hc-backdrop {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.5) 40%, transparent 100%),
    linear-gradient(0deg, rgba(5,5,5,.98) 0%, rgba(5,5,5,.4) 40%, transparent 100%);
}
.hc-content {
  position: relative;
  height: 100%;
  min-height: 520px;
  display: flex; align-items: center;
  padding: 40px 24px;
}
.hc-info {
  max-width: 620px;
  color: #fff;
  animation: hcSlideIn 1s ease-out;
}
@keyframes hcSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
.hc-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(255,45,135,.15);
  border: 1px solid var(--neon);
  color: var(--neon);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
}
.hc-tag-dot {
  width: 6px; height: 6px;
  background: var(--neon);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.5); }
}
.hc-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,.8);
  background: linear-gradient(180deg, #fff 0%, #d0d0d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hc-meta {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: #d0d0d8;
  font-size: 14px;
}
.hc-imdb {
  background: linear-gradient(135deg, #f5c518, #e8a600);
  color: #000;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  font-family: sans-serif;
}
.hc-dot {
  width: 4px; height: 4px;
  background: var(--muted);
  border-radius: 50%;
}
.hc-summary {
  font-size: 15px;
  line-height: 1.9;
  color: #d0d0d8;
  margin-bottom: 24px;
  max-width: 560px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hc-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: .2s;
  border: 0;
  cursor: pointer;
}
.hc-btn-primary {
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  box-shadow: 0 10px 30px rgba(255,45,135,.5);
}
.hc-btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 40px rgba(255,45,135,.7); }
.hc-btn-primary span { font-size: 18px; }
.hc-btn-secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
}
.hc-btn-secondary:hover { background: rgba(255,255,255,.2); }

/* Hero Thumbnails */
.hc-thumbnails {
  position: absolute;
  bottom: 20px;
  left: 24px;
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hc-thumb {
  position: relative;
  width: 72px; height: 108px;
  background: var(--bg-3);
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: .3s;
  opacity: .6;
}
.hc-thumb:hover { opacity: 1; transform: translateY(-4px); }
.hc-thumb.active {
  opacity: 1;
  border-color: var(--neon);
  box-shadow: 0 8px 20px rgba(255,45,135,.4);
  transform: translateY(-6px);
}
.hc-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.hc-thumb-num {
  position: absolute;
  bottom: 4px; right: 4px;
  background: rgba(0,0,0,.8);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-family: sans-serif;
  font-weight: 700;
}

@media (max-width: 768px) {
  .hero-carousel { min-height: 460px; border-radius: 14px; margin: 12px -12px 20px; }
  .hc-content { min-height: 460px; padding: 24px 16px; }
  .hc-title { font-size: 26px; }
  .hc-summary { font-size: 13px; -webkit-line-clamp: 2; margin-bottom: 16px; }
  .hc-btn { padding: 10px 20px; font-size: 13px; }
  .hc-thumbnails { display: none; }
}

/* ============== Section Head V2 ============== */
.section-title-wrap {
  display: flex; align-items: center; gap: 12px;
}
.section-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 8px rgba(255,45,135,.3));
}
.section-title-wrap h2 { margin: 0; font-size: 20px; }
.section-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.section-link {
  color: var(--neon);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: .2s;
}
.section-link:hover {
  background: rgba(255,45,135,.1);
  border-color: var(--neon);
}

/* ============== Hero Featured Banner (بنر جذاب سینمایی) ============== */
.hero-featured {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 380px;
  background: #000;
  transition: .3s;
}
.hero-featured:hover { transform: translateY(-4px); }

.hf-backdrop {
  position: absolute; inset: 0;
  background-image: var(--hf-bg);
  background-size: cover;
  background-position: center;
}
.hf-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,.95) 30%, rgba(5,5,5,.5) 60%, transparent 100%),
    linear-gradient(0deg, rgba(5,5,5,.9) 0%, transparent 40%);
}

.hf-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  padding: 30px;
  min-height: 380px;
  align-items: center;
}

.hf-info {
  color: #fff;
  min-width: 0;
}
.hf-badges {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.hf-chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  color: #fff;
  white-space: nowrap;
}
.hf-chip-neon {
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  border-color: transparent;
  font-weight: 700;
}
.hf-chip-imdb {
  background: linear-gradient(135deg, #f5c518, #e8a600);
  color: #000;
  border-color: transparent;
  font-weight: 800;
  font-family: sans-serif;
}
.hf-title {
  font-size: 34px;
  font-weight: 900;
  margin: 0 0 12px;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0,0,0,.6);
}
.hf-genre {
  color: var(--neon);
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 600;
}
.hf-summary {
  color: #d0d0d8;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 18px;
  max-width: 500px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hf-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.hf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: .2s;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}
.hf-btn-icon { font-size: 16px; }
.hf-btn-primary {
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,45,135,.4);
}
.hf-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,45,135,.6); }
.hf-btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
}
.hf-btn-ghost:hover { background: rgba(255,255,255,.2); }

.hf-poster-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hf-poster {
  position: relative;
  width: 240px;
  aspect-ratio: 2/3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  transition: .3s;
}
.hero-featured:hover .hf-poster {
  transform: perspective(1000px) rotateY(-6deg) scale(1.02);
}
.hf-poster img {
  width: 100%; height: 100%; object-fit: cover;
}

/* واریانت‌های رنگی hero-featured */
.hf-primary .hf-title { color: #fff; }
.hf-accent .hf-gradient {
  background:
    linear-gradient(90deg, rgba(20,0,30,.95) 30%, rgba(20,0,30,.5) 60%, transparent 100%),
    linear-gradient(0deg, rgba(5,5,5,.9) 0%, transparent 40%);
}
.hf-accent .hf-title { background: linear-gradient(90deg, #fff, var(--neon-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hf-cyan .hf-gradient {
  background:
    linear-gradient(90deg, rgba(0,15,25,.95) 30%, rgba(0,15,25,.5) 60%, transparent 100%),
    linear-gradient(0deg, rgba(5,5,5,.9) 0%, transparent 40%);
}
.hf-cyan .hf-title { background: linear-gradient(90deg, #fff, var(--neon-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hf-cyan .hf-genre { color: var(--neon-2); }

@media (max-width: 768px) {
  .hero-featured { min-height: auto; border-radius: 14px; }
  .hf-content { grid-template-columns: 1fr; padding: 20px; min-height: auto; text-align: center; }
  .hf-poster-wrap { order: -1; }
  .hf-poster { width: 160px; }
  .hf-title { font-size: 22px; }
  .hf-summary { font-size: 12px; -webkit-line-clamp: 2; margin-bottom: 14px; }
  .hf-badges { justify-content: center; }
  .hf-actions { justify-content: center; }
  .hf-btn { flex: 1; justify-content: center; padding: 10px 16px; font-size: 13px; }
}

/* ============== Row Slider (اسلایدر افقی جدید) ============== */
.row-slider-wrap {
  position: relative;
  margin: 0 -4px;
}
.row-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px 4px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--neon) transparent;
  scroll-snap-type: x proximity;
}
.row-slider::-webkit-scrollbar { height: 6px; }
.row-slider::-webkit-scrollbar-track { background: transparent; }
.row-slider::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
.row-slider::-webkit-scrollbar-thumb:hover { background: var(--neon); }

.rs-card {
  flex: 0 0 200px;
  width: 200px;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--text);
  transition: .25s;
  border-radius: 12px;
}
.rs-card:hover { transform: translateY(-6px); }

.rs-poster {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  border: 1px solid var(--border);
  transition: .3s;
}
.rs-card:hover .rs-poster {
  border-color: var(--neon);
  box-shadow: 0 15px 40px rgba(255,45,135,.3);
}
.rs-poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: .5s;
}
.rs-card:hover .rs-poster img { transform: scale(1.08); }

.rs-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
  opacity: 0;
  transition: .3s;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12px;
}
.rs-card:hover .rs-overlay { opacity: 1; }

.rs-details-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255,45,135,.5);
  transform: translateY(20px);
  opacity: 0;
  transition: .3s;
  width: 100%;
  text-align: center;
  border: 0;
  font-family: inherit;
}
.rs-card:hover .rs-details-btn {
  transform: translateY(0);
  opacity: 1;
}
.rs-details-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 26px rgba(255,45,135,.7);
}

/* دکمه ثانویه (اطلاعات) */
.rs-info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  transform: translateY(20px);
  opacity: 0;
  transition: .3s .05s;
  width: 100%;
  text-align: center;
  font-family: inherit;
  margin-top: 6px;
}
.rs-card:hover .rs-info-btn {
  transform: translateY(0);
  opacity: 1;
}
.rs-info-btn:hover { background: rgba(255,255,255,.2); }

.rs-info-link {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 12px 4px 4px;
}
.rs-info-link:hover .rs-title { color: var(--neon); }

.rs-imdb {
  position: absolute;
  top: 8px; right: 8px;
  background: linear-gradient(135deg, #f5c518, #e8a600);
  color: #000;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0,0,0,.5);
  font-family: sans-serif;
}
.rs-type-badge {
  position: absolute;
  top: 8px; left: 8px;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.85);
  border-radius: 6px;
  font-size: 12px;
}

.rs-info,
.rs-info-link {
  padding: 12px 4px 4px;
}
.rs-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
  transition: .2s;
}
.rs-card:hover .rs-title { color: var(--neon); }
.rs-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex; gap: 4px; align-items: center;
}

/* Navigation دکمه‌های row slider */
.rs-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(0,0,0,.9);
  color: var(--neon);
  border: 2px solid var(--neon);
  font-size: 24px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 8px 20px rgba(255,45,135,.3);
  display: flex; align-items: center; justify-content: center;
  transition: .25s;
  opacity: 0;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}
.row-slider-wrap:hover .rs-nav { opacity: .95; }
.rs-nav:hover {
  background: var(--neon);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.rs-nav:disabled { opacity: 0 !important; pointer-events: none; }
.rs-prev { right: -4px; }
.rs-next { left: -4px; }

@media (max-width: 720px) {
  .rs-card { flex: 0 0 140px; width: 140px; }
  .rs-title { font-size: 12px; }
  .rs-nav { width: 34px; height: 34px; font-size: 18px; }
  .rs-play-icon { width: 44px; height: 44px; font-size: 18px; }
  .section-icon { font-size: 22px; }
  .section-title-wrap h2 { font-size: 17px; }
  .section-subtitle { font-size: 11px; }
}

/* ============== Featured Banner (Legacy - نگه داشته شده) ============== */
.featured-banner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  background: linear-gradient(135deg, #0a0a0c 0%, #1a0a15 60%, #0a0a0c 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: .3s;
  min-height: 380px;
  text-decoration: none;
  color: var(--text);
}
.featured-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--banner-bg);
  background-size: cover;
  background-position: center;
  filter: blur(50px) brightness(.4);
  opacity: .55;
  z-index: 0;
}
.featured-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(270deg, transparent 0%, rgba(5,5,5,.6) 40%, rgba(5,5,5,.95) 100%);
  z-index: 1;
}
.featured-banner:hover {
  border-color: var(--neon);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(255,45,135,.25);
}
.featured-banner:hover::before { opacity: .7; }

/* اطلاعات - سمت راست RTL (متن) */
.fb-info {
  position: relative;
  z-index: 2;
  padding: 40px 40px 40px 20px;
  display: flex; flex-direction: column;
  justify-content: center;
  min-width: 0;
  text-align: right;
}
.fb-badges {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 14px;
  justify-content: flex-end;
}
.fb-title {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  text-shadow: 0 4px 20px rgba(0,0,0,.6);
}
.fb-meta {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}
.fb-meta-row {
  display: flex; align-items: baseline; gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.fb-meta-label {
  color: var(--muted);
  font-size: 12px;
  min-width: 70px;
  text-align: left;
}
.fb-meta-value { color: #d0d0db; }
.fb-meta-value strong { color: #fff; }

.fb-summary-title {
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0 4px;
}
.fb-summary {
  color: #c0c0c8;
  font-size: 13px;
  line-height: 1.9;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fb-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: flex-end;
}
.fb-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: .2s;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.fb-btn-primary {
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255,45,135,.4);
}
.fb-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,45,135,.6); }
.fb-btn-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
}
.fb-btn-secondary:hover { background: rgba(255,255,255,.15); }

/* پوستر - سمت چپ (بزرگ) */
.fb-poster {
  position: relative;
  z-index: 2;
  padding: 30px;
  display: flex; align-items: center; justify-content: center;
}
.fb-poster img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05);
  transition: .3s;
}
.featured-banner:hover .fb-poster img { transform: scale(1.03); }
.fb-imdb {
  position: absolute;
  top: 36px; left: 36px;
  background: linear-gradient(135deg, #f5c518, #e8a600);
  color: #000;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 4px 16px rgba(245,197,24,.5);
  font-family: sans-serif;
}

/* واریانت‌های رنگی */
.featured-banner.banner-primary { border-color: rgba(255,45,135,.3); }
.featured-banner.banner-primary:hover { border-color: var(--neon); }

.featured-banner.banner-secondary { border-color: rgba(0,230,255,.2); }
.featured-banner.banner-secondary::after {
  background: linear-gradient(270deg, transparent 0%, rgba(0,20,30,.5) 40%, rgba(5,5,5,.95) 100%);
}
.featured-banner.banner-secondary:hover { border-color: var(--neon-2); }

.featured-banner.banner-accent { border-color: rgba(168,85,247,.2); }
.featured-banner.banner-accent::after {
  background: linear-gradient(270deg, transparent 0%, rgba(20,0,30,.5) 40%, rgba(5,5,5,.95) 100%);
}
.featured-banner.banner-accent:hover { border-color: var(--neon-purple); }

/* ============== Empty state ============== */
.empty-links-box {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-3);
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
}

/* ============== Alert Message ============== */
.alert-message {
  background: linear-gradient(135deg, rgba(255,45,135,.12), rgba(168,85,247,.08));
  border: 1px solid var(--neon);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  margin: 14px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.alert-message strong { color: var(--neon); flex-shrink: 0; }
.alert-message > span { flex: 1; min-width: 200px; }

/* ============== Card Slider (بازطراحی شده) ============== */
.slider-wrap {
  position: relative;
  margin: 0 -4px;
  padding: 8px 0;
}

/* Fade در دو طرف اسلایدر */
.slider-wrap::before, .slider-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 4;
}
.slider-wrap::before {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-0), transparent);
}
.slider-wrap::after {
  left: 0;
  background: linear-gradient(90deg, var(--bg-0), transparent);
}
.card-slider {
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--neon) transparent;
}
.card-slider::-webkit-scrollbar { height: 6px; }
.card-slider::-webkit-scrollbar-track { background: transparent; }
.card-slider::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
.card-slider::-webkit-scrollbar-thumb:hover { background: var(--neon); }
.card-slider.grabbing { cursor: grabbing; user-select: none; }
/* هیچ pointer-events blocking نیست تا کلیک کارت‌ها همیشه کار کند */
.slider-card {
  flex: 0 0 180px;
  width: 180px;
  scroll-snap-align: start;
}
.card-slider {
  scroll-snap-type: x proximity;
}

.slider-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,45,135,.95);
  color: #fff;
  border: 2px solid rgba(255,255,255,.15);
  font-size: 24px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 20px rgba(255,45,135,.4), 0 0 40px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  transition: .25s;
  opacity: 0;
  font-family: inherit;
  line-height: 1;
}
.slider-wrap:hover .slider-nav { opacity: 1; }
.slider-nav:hover {
  background: var(--neon);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 30px rgba(255,45,135,.7);
}
.slider-nav:disabled {
  opacity: 0 !important;
  cursor: not-allowed;
}
.slider-prev { right: 4px; }
.slider-next { left: 4px; }

/* ============== Filter Sidebar / Archive ============== */
.archive-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
}
.filter-side {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; height: fit-content; position: sticky; top: calc(var(--header-h) + 16px);
}
.filter-side h3 { margin: 0 0 12px; font-size: 15px; }
.filter-group { margin-bottom: 14px; }
.filter-group label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.filter-group select, .filter-group input {
  width: 100%; padding: 8px 10px; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 13px;
  min-height: 36px;
}
.filter-actions { display: flex; gap: 8px; margin-top: 12px; }
.filter-actions .btn { flex: 1; }
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.filter-bar .form-control { flex: 1; min-width: 150px; }
.filter-bar select { max-width: 180px; }

/* ============== Load More + Infinite ============== */
.infinite-loader {
  display: flex; justify-content: center; align-items: center;
  gap: 12px; padding: 30px 20px; color: var(--muted);
}
.infinite-loader.hidden { display: none; }
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--bg-3);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.load-more-btn {
  display: flex !important;
  margin: 24px auto;
  min-width: 220px;
  font-size: 15px;
  padding: 14px 28px;
}
.load-more-btn.hidden { display: none !important; }

.infinite-end {
  text-align: center; padding: 24px; color: var(--muted); font-size: 14px;
  border-top: 1px dashed var(--border); margin-top: 20px;
}
.infinite-end.hidden { display: none; }

/* ============== Pagination (admin) ============== */
.pagination {
  display: flex; gap: 6px; justify-content: center; margin: 30px 0;
  flex-wrap: wrap;
}
.pagination button, .pagination a {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  padding: 8px 14px; border-radius: 8px; transition: .2s; font-size: 13px;
  cursor: pointer; display: inline-block;
}
.pagination button:hover, .pagination a:hover { border-color: var(--neon); color: var(--neon); }
.pagination button.active, .pagination a.active { background: var(--neon); border-color: var(--neon); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ============== Single Page (Legacy) ============== */
.single-hero {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin: 24px 0;
}
.single-poster img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.single-info h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.3; }
.single-info .meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.single-info .summary { line-height: 1.9; color: #d0d0db; font-size: 14px; }
.single-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ============== Quality Cards (ساده و جذاب) ============== */
.quality-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quality-card {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  transition: .25s;
  position: relative;
  overflow: hidden;
}
.quality-card::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--neon), var(--neon-purple));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s;
}
.quality-card:hover {
  border-color: var(--neon);
  transform: translateX(-2px);
  box-shadow: 0 12px 30px rgba(255,45,135,.15);
}
.quality-card:hover::before { transform: scaleY(1); }

.qc-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.qc-size {
  color: var(--muted);
  font-size: 12px;
  background: rgba(0,0,0,.35);
  padding: 4px 10px;
  border-radius: 6px;
}
.qc-sub {
  color: var(--neon-2);
  font-size: 11px;
  background: rgba(0,230,255,.1);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0,230,255,.3);
}

.qc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.qc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: .2s;
  font-family: inherit;
  white-space: nowrap;
  flex: 1;
  justify-content: center;
  min-width: 120px;
}
.qc-btn:hover { transform: translateY(-2px); }
.qc-btn-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  font-size: 14px;
}

.qc-btn-play {
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(255,45,135,.35);
}
.qc-btn-play:hover { box-shadow: 0 8px 22px rgba(255,45,135,.55); }

.qc-btn-vlc {
  background: linear-gradient(135deg, #ff6600, #ff8800);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(255,102,0,.35);
}
.qc-btn-vlc:hover { box-shadow: 0 8px 22px rgba(255,102,0,.55); }

.qc-btn-dl {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(34,197,94,.3);
}
.qc-btn-dl:hover { box-shadow: 0 8px 22px rgba(34,197,94,.5); }

.qc-btn-copy {
  flex: 0 0 44px;
  min-width: 44px;
  padding: 10px;
}
.qc-btn-copy:hover { border-color: var(--neon); color: var(--neon); }

/* ============== Heart Button (افزودن به علاقه‌مندی) ============== */
.btn-heart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  cursor: pointer;
  transition: .25s;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(10px);
}
.btn-heart:hover {
  background: rgba(255,45,135,.15);
  border-color: var(--neon);
  color: var(--neon);
  transform: translateY(-2px);
}
.btn-heart .heart-icon {
  font-size: 22px;
  line-height: 1;
  transition: .3s;
  color: rgba(255,255,255,.7);
}
.btn-heart:hover .heart-icon { color: var(--neon); transform: scale(1.15); }
.btn-heart.active {
  background: linear-gradient(135deg, rgba(255,45,135,.25), rgba(168,85,247,.15));
  border-color: var(--neon);
  color: var(--neon);
}
.btn-heart.active .heart-icon {
  color: var(--neon);
  animation: heartBeat 1.2s ease-in-out;
  text-shadow: 0 0 12px rgba(255,45,135,.7);
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1); }
  75% { transform: scale(1.15); }
}

/* ============== Single Hero V2 (طبق تصویر: پوستر 300x450 راست، متن چپ) ============== */
.single-hero-v2 {
  position: relative;
  margin: -20px -20px 30px;
  padding: 40px 0 30px;
  overflow: hidden;
  min-height: 480px;
  display: flex; align-items: center;
}
.single-hero-v2::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(.4);
  transform: scale(1.1);
  z-index: 0;
}
.single-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.6) 50%, rgba(5,5,5,.9) 100%),
    linear-gradient(180deg, transparent, rgba(5,5,5,.7));
  z-index: 1;
}
.single-hero-content {
  position: relative; z-index: 2; width: 100%;
}

/* گرید افقی: متن اول، پوستر دوم (در RTL: پوستر سمت راست) */
.single-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: flex-start;
}

/* پوستر با ابعاد ثابت 300x450 */
.single-poster-v2 {
  position: relative;
  width: 300px;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
  justify-self: end;
}
.single-poster-v2 img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.poster-imdb {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, #f5c518, #e8a600);
  color: #000;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(245,197,24,.5);
  display: flex; align-items: center; gap: 6px;
  font-family: sans-serif;
}
.imdb-star { font-size: 14px; }
.imdb-value { font-size: 15px; }
.imdb-label { font-size: 10px; opacity: .85; }

/* اطلاعات سمت چپ (اول در RTL) — text-align: right چون فارسی */
.single-info-v2 {
  color: #fff;
  min-width: 0;
  text-align: right;
}
.single-badges {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px;
  justify-content: flex-end; /* سمت راست */
}
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.chip-neon { background: linear-gradient(135deg, var(--neon), var(--neon-purple)); border-color: transparent; }
.chip-cyan { background: linear-gradient(135deg, var(--neon-2), #2196f3); border-color: transparent; }
.chip-purple { background: linear-gradient(135deg, var(--neon-purple), #7c4dff); border-color: transparent; }
.chip-imdb {
  background: transparent;
  border: 1px solid var(--neon);
  color: var(--neon);
  font-weight: 700;
}

.single-title {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 14px;
  line-height: 1.2;
  color: #fff;
  text-align: right;
}

/* Meta lines طبق تصویر — «مقدار : برچسب» */
.single-meta-list {
  display: flex; flex-direction: column;
  gap: 4px;
  margin: 14px 0 12px;
}
.meta-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  color: #d0d0d8;
  justify-content: flex-start;
  flex-wrap: wrap;
  line-height: 1.9;
}
.ml-value {
  color: #f1f1f5;
  font-weight: 400;
  order: 1;
  direction: ltr;
  unicode-bidi: plaintext;
}
/* برای متن‌های فارسی، جهت پویا */
.meta-line[dir="rtl"] .ml-value,
.ml-value:lang(fa) {
  direction: rtl;
}
.ml-sep {
  color: #d0d0d8;
  order: 2;
  padding: 0 2px;
}
.ml-label {
  color: #d0d0d8;
  font-weight: 400;
  order: 3;
}

/* Cast & Story blocks — سبک تصویر */
.single-cast-block,
.single-story-block {
  margin: 14px 0;
}
.scb-label {
  margin: 0 0 6px;
  font-size: 14px;
  color: #d0d0d8;
  font-weight: 400;
  text-align: right;
}
.scb-value {
  margin: 0;
  color: #f1f1f5;
  font-size: 13px;
  line-height: 2;
  text-align: right;
  direction: ltr;
  unicode-bidi: plaintext;
}
.single-story-block .scb-value {
  color: #c0c0c8;
  line-height: 2;
  font-size: 13.5px;
  direction: rtl;
}

.single-actions-v2 {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 18px;
  align-items: center;
  justify-content: flex-end;
}

/* ======== Responsive ======== */
@media (max-width: 900px) {
  .single-grid {
    grid-template-columns: 1fr 220px;
    gap: 18px;
  }
  .single-poster-v2 { width: 220px; height: 330px; }
  .single-title { font-size: 26px; }
}

@media (max-width: 640px) {
  .single-hero-v2 {
    padding: 24px 0 20px;
    min-height: auto;
    margin: -20px -12px 20px;
  }
  /* حتی در موبایل: پوستر کوچک کنار متن — نه زیر متن */
  .single-grid {
    grid-template-columns: 1fr 130px;
    gap: 12px;
  }
  .single-poster-v2 {
    width: 130px;
    height: 195px;
    border-radius: 10px;
  }
  .poster-imdb {
    top: 6px; right: 6px;
    padding: 3px 6px;
    font-size: 10px;
  }
  .imdb-star, .imdb-value { font-size: 11px; }
  .imdb-label { font-size: 8px; }

  .single-title { font-size: 18px; margin-bottom: 10px; }
  .single-badges { gap: 4px; margin-bottom: 10px; }
  .chip { font-size: 10px; padding: 3px 8px; }
  .single-meta-list { gap: 4px; margin-bottom: 10px; }
  .meta-item { font-size: 12px; gap: 4px; }
  .meta-label { font-size: 11px; min-width: 60px; }
  .single-description { padding: 10px 12px; margin: 10px 0; }
  .single-description h3 { font-size: 12px; }
  .single-description p {
    font-size: 11.5px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .single-actions-v2 {
    flex-direction: column;
    align-items: stretch;
    margin-top: 12px;
    gap: 6px;
  }
  .btn-hero, .btn-heart {
    justify-content: center;
    padding: 10px 12px;
    font-size: 12px;
    width: 100%;
  }
  .btn-heart .heart-label { font-size: 12px; }

  .access-required-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px;
    gap: 12px;
  }
  .arb-actions { justify-content: center; width: 100%; flex-direction: column; }
  .arb-actions .btn { width: 100%; }

  /* Quality Cards Mobile */
  .quality-card { padding: 12px; }
  .qc-badge-wrap { gap: 6px; margin-bottom: 10px; padding-bottom: 10px; }
  .qc-actions { flex-direction: column; }
  .qc-btn {
    flex: none;
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 14px;
  }
  .qc-btn-copy { width: 100%; min-width: auto; }

  /* Serial Picker Mobile */
  .picker-row { grid-template-columns: 1fr; gap: 10px; }
  .picker-select { padding: 12px 40px 12px 16px; font-size: 13px; }
  .selected-episode-card { padding: 14px; }
  .sec-ep-num { width: 44px; height: 44px; font-size: 16px; flex-basis: 44px; }
  .sec-title { font-size: 14px; }
  .ql-grid { grid-template-columns: 1fr; }
}

/* موبایل خیلی کوچک */
@media (max-width: 380px) {
  .single-grid { grid-template-columns: 1fr 110px; gap: 10px; }
  .single-poster-v2 { width: 110px; height: 165px; }
  .single-title { font-size: 16px; }
  .chip { font-size: 9px; padding: 2px 6px; }
  .meta-label { min-width: 50px; }
}

/* ============================================================
 * Error Pages (404, 500, 503, ...)
 * ============================================================ */
.error-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.err-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .25;
  pointer-events: none;
  animation: errGlowPulse 4s ease-in-out infinite;
}
.err-glow-neon  { background: var(--neon); }
.err-glow-error { background: var(--error); }
.err-glow-warn  { background: var(--warn); }
@keyframes errGlowPulse {
  0%, 100% { opacity: .2; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: .35; transform: translate(-50%, -50%) scale(1.1); }
}

.err-card {
  position: relative;
  z-index: 2;
  max-width: 560px;
  width: 100%;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.err-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
.err-icon {
  font-size: 60px;
  animation: errIconFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 15px currentColor);
}
.err-icon-neon  { color: var(--neon); }
.err-icon-error { color: var(--error); }
.err-icon-warn  { color: var(--warn); }
@keyframes errIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.err-code {
  font-size: 90px;
  font-weight: 900;
  line-height: 1;
  font-family: sans-serif;
  background: linear-gradient(180deg, currentColor 0%, transparent 130%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px currentColor;
}
.err-code-neon  { color: var(--neon); }
.err-code-error { color: var(--error); }
.err-code-warn  { color: var(--warn); }

.err-title {
  margin: 0 0 12px;
  font-size: 26px;
  color: var(--text);
}
.err-desc {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.err-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.err-actions .btn { min-width: 140px; }

.err-links {
  padding: 20px;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
}
.err-links-title {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.err-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.err-links-grid a {
  padding: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: .2s;
}
.err-links-grid a:hover {
  border-color: var(--neon);
  color: var(--neon);
  transform: translateY(-2px);
}

.err-support {
  font-size: 13px;
  color: var(--muted);
}
.err-support a {
  color: var(--neon);
  margin-right: 6px;
}
.err-support a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .err-card { padding: 30px 20px; border-radius: 16px; }
  .err-header { gap: 12px; }
  .err-icon { font-size: 42px; }
  .err-code { font-size: 60px; }
  .err-title { font-size: 20px; }
  .err-desc { font-size: 13px; }
  .err-actions .btn { min-width: auto; flex: 1; padding: 10px 12px; font-size: 12px; }
  .err-links-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
 * Static Pages (about, contact, terms, privacy, faq)
 * ============================================================ */
.static-page {
  max-width: 900px;
  margin: 20px auto 40px;
}

.sp-hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(255,45,135,.08), rgba(168,85,247,.04));
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 24px;
}
.sp-hero-icon {
  font-size: 60px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 15px rgba(255,45,135,.4));
  animation: errIconFloat 3s ease-in-out infinite;
}
.sp-hero-title {
  margin: 0 0 10px;
  font-size: 28px;
  color: var(--text);
  background: linear-gradient(135deg, #fff, #d0d0db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sp-hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sp-content {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  line-height: 2;
  color: #d0d0db;
  font-size: 14px;
  margin-bottom: 24px;
}
.sp-content h2 {
  margin: 20px 0 12px;
  color: var(--neon);
  font-size: 18px;
}
.sp-content h3 {
  margin: 16px 0 10px;
  color: var(--text);
  font-size: 15px;
}
.sp-content ol, .sp-content ul {
  padding-right: 20px;
  margin: 10px 0;
}
.sp-content li { margin-bottom: 6px; }

.sp-legal {
  text-align: justify;
  line-height: 2.2;
}

/* Features Grid (about) */
.sp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.sp-feature {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  transition: .3s;
}
.sp-feature:hover {
  border-color: var(--neon);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255,45,135,.15);
}
.spf-icon {
  font-size: 40px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 10px rgba(255,45,135,.3));
}
.sp-feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--text);
}
.sp-feature p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* Contact Cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: .3s;
}
.contact-card:hover {
  border-color: var(--neon);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255,45,135,.15);
}
.cc-icon {
  flex: 0 0 50px;
  width: 50px; height: 50px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  border-radius: 12px;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(255,45,135,.35);
}
.contact-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--text);
}
.contact-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: .2s;
}
.faq-item[open] {
  border-color: var(--neon);
  box-shadow: 0 6px 20px rgba(255,45,135,.1);
}
.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  transition: background .2s;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover {
  background: rgba(255,45,135,.05);
}
.fq-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--neon);
}
.fq-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.fq-arrow {
  color: var(--muted);
  transition: transform .3s;
  font-size: 14px;
}
.faq-item[open] .fq-arrow {
  transform: rotate(180deg);
  color: var(--neon);
}

.faq-answer {
  padding: 0 18px 18px;
  color: #d0d0db;
  line-height: 1.9;
  font-size: 13px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  margin-top: 4px;
}
.faq-answer p { margin: 0; }

.faq-cta {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255,45,135,.08), rgba(168,85,247,.04));
  border: 1px solid var(--border);
  border-radius: 14px;
}
.faq-cta p {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 14px;
}

@media (max-width: 640px) {
  .sp-hero { padding: 30px 16px; border-radius: 14px; }
  .sp-hero-icon { font-size: 42px; }
  .sp-hero-title { font-size: 20px; }
  .sp-hero-sub { font-size: 12px; }
  .sp-content { padding: 20px; font-size: 13px; }
}

/* ============================================================
 * Info Page — صفحه نمایش داده‌های فیلم/سریال
 * ============================================================ */
.info-page { padding: 20px 0 40px; }

/* Breadcrumb */
.info-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.info-breadcrumb a {
  color: var(--muted);
  transition: color .2s;
}
.info-breadcrumb a:hover { color: var(--neon); }
.ib-sep { opacity: .5; }
.ib-current { color: var(--text); font-weight: 600; }

/* Header Card */
.info-header-card {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.info-header-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(255,45,135,.15), transparent 60%);
  pointer-events: none;
}

.ihc-poster {
  position: relative;
  width: 240px;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.1);
  order: 2; /* پوستر سمت راست */
  justify-self: end;
}
.ihc-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.ihc-body {
  order: 1;
  position: relative;
  z-index: 1;
}
.ihc-type-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(255,45,135,.4);
}
.ihc-title {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
}
.ihc-original {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
  font-family: sans-serif;
  direction: ltr;
  unicode-bidi: plaintext;
}

/* Quick stats */
.ihc-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.qs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}
.qs-item.qs-imdb {
  border-color: rgba(245,197,24,.4);
  background: linear-gradient(135deg, rgba(245,197,24,.1), rgba(0,0,0,.3));
}
.qs-item.qs-dub {
  border-color: rgba(168,85,247,.4);
  background: linear-gradient(135deg, rgba(168,85,247,.1), rgba(0,0,0,.3));
}
.qs-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.qs-item > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.qs-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  font-family: sans-serif;
}
.qs-item.qs-imdb .qs-value { color: #f5c518; }
.qs-item.qs-dub .qs-value { color: var(--neon-purple); font-family: inherit; font-size: 14px; }
.qs-label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.ihc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============ Info Grid (2 columns) ============ */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  margin-bottom: 30px;
}

/* بلاک اطلاعات */
.info-main { display: flex; flex-direction: column; gap: 16px; }

.info-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: .2s;
}
.info-block:hover { border-color: rgba(255,45,135,.2); }
.ib-title {
  margin: 0;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text);
  background: linear-gradient(90deg, rgba(255,45,135,.06), transparent);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ib-icon { font-size: 18px; }
.ib-body { padding: 18px; }

.info-story {
  color: #d0d0d8;
  line-height: 2;
  font-size: 14px;
  margin: 0;
  text-align: justify;
}

/* Cast */
.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.cast-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-3);
  border-radius: 10px;
  transition: .2s;
}
.cast-item:hover { background: var(--bg-4); transform: translateY(-2px); }
.cast-avatar {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: sans-serif;
}
.cast-name {
  font-size: 12px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: right;
}

/* Trailer Card */
.trailer-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: .25s;
}
.trailer-card:hover {
  border-color: var(--neon);
  background: rgba(255,45,135,.05);
  transform: translateY(-2px);
}
.tc-poster {
  position: relative;
  width: 140px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}
.tc-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .7;
  transition: .3s;
}
.trailer-card:hover .tc-poster img { opacity: 1; }
.tc-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,45,135,.95);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  padding-right: 3px;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
  transition: .2s;
}
.trailer-card:hover .tc-play { transform: translate(-50%, -50%) scale(1.15); }
.tc-info { flex: 1; min-width: 0; }
.tc-info h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--text);
}
.tc-info p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ========== Sidebar (Specs) ========== */
.info-side { display: flex; flex-direction: column; gap: 16px; }
.info-side-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.isc-title {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--neon);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.specs-table tr {
  border-bottom: 1px dashed var(--border);
}
.specs-table tr:last-child { border-bottom: 0; }
.specs-table td {
  padding: 10px 4px;
  vertical-align: top;
  line-height: 1.7;
}
.specs-table td:first-child {
  color: var(--muted);
  font-size: 12px;
  width: 40%;
  white-space: nowrap;
}
.specs-table td:last-child {
  color: var(--text);
  font-weight: 500;
  text-align: left;
}

/* CTA Card */
.info-cta-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(255,45,135,.15), rgba(168,85,247,.08));
  border-color: var(--neon);
}
.icc-icon {
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  border-radius: 50%;
  font-size: 26px;
  margin-bottom: 12px;
  padding-right: 3px;
  box-shadow: 0 8px 24px rgba(255,45,135,.4);
}
.info-cta-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text);
}
.info-cta-card p {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}

/* Related & Comments */
.info-related, .info-comments { margin-top: 30px; }

.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.comment-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  transition: .2s;
}
.comment-card:hover {
  border-color: rgba(255,45,135,.3);
  transform: translateY(-2px);
}
.cc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.cc-avatar {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--neon-2), #2196f3);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-family: sans-serif;
  flex-shrink: 0;
}
.cc-meta { display: flex; flex-direction: column; min-width: 0; }
.cc-meta strong { color: var(--neon-2); font-size: 13px; }
.cc-meta small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.cc-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #d0d0d8;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .info-header-card { grid-template-columns: 1fr 180px; padding: 18px; }
  .ihc-poster { width: 180px; height: 270px; }
  .ihc-title { font-size: 24px; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .info-header-card {
    grid-template-columns: 1fr 130px;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
  }
  .ihc-poster { width: 130px; height: 195px; }
  .ihc-title { font-size: 18px; }
  .ihc-type-badge { font-size: 10px; padding: 3px 10px; }
  .ihc-original { font-size: 11px; margin-bottom: 12px; }
  .ihc-quick-stats { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .qs-item { padding: 8px; gap: 6px; }
  .qs-icon { font-size: 18px; }
  .qs-value { font-size: 13px; }
  .qs-label { font-size: 9px; }
  .ihc-actions { flex-direction: column; }
  .ihc-actions .btn-hero { width: 100%; justify-content: center; padding: 10px; font-size: 12px; }

  .ib-title { padding: 12px 14px; font-size: 13px; }
  .ib-body { padding: 14px; }
  .info-story { font-size: 12.5px; line-height: 1.9; }

  .cast-list { grid-template-columns: 1fr; }
  .trailer-card { flex-direction: column; align-items: stretch; }
  .tc-poster { width: 100%; }

  .info-breadcrumb { font-size: 11px; padding: 8px 10px; }
  .comments-grid { grid-template-columns: 1fr; }
}

/* ============================================================
 * Netflix-Style Seasons & Episodes
 * ============================================================ */
.netflix-seasons {
  margin-top: 8px;
}

/* Header با selector */
.ns-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ns-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ns-title-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  border-radius: 12px;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(255,45,135,.35);
}
.ns-title {
  margin: 0 0 2px;
  font-size: 16px;
  color: var(--text);
}
.ns-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Dropdown Selector فصل */
.ns-season-selector {
  position: relative;
  min-width: 260px;
}
.ns-selector-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  transition: .2s;
}
.ns-selector-btn:hover {
  border-color: var(--neon);
  background: rgba(255,45,135,.05);
}
.ns-selector-btn.open {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(255,45,135,.15);
}
.ns-selector-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.ns-selector-value {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--neon);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ns-selector-arrow {
  color: var(--muted);
  font-size: 14px;
  transition: transform .3s;
}
.ns-selector-btn.open .ns-selector-arrow {
  transform: rotate(180deg);
  color: var(--neon);
}

.ns-selector-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15,15,20,.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--neon);
  border-radius: 12px;
  padding: 6px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,.7);
  animation: nsMenuFade .2s ease-out;
}
.ns-selector-menu.hidden { display: none; }
@keyframes nsMenuFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ns-selector-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: right;
  transition: .15s;
  position: relative;
}
.ns-selector-item:hover {
  background: var(--bg-3);
}
.ns-selector-item.active {
  background: linear-gradient(135deg, rgba(255,45,135,.15), rgba(168,85,247,.08));
}

.nssi-num {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3);
  color: var(--neon);
  font-weight: 800;
  font-size: 13px;
  border-radius: 8px;
  font-family: sans-serif;
  border: 1px solid var(--border);
}
.ns-selector-item.active .nssi-num {
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  border-color: transparent;
}
.nssi-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nssi-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nssi-meta {
  font-size: 11px;
  color: var(--muted);
}
.nssi-check {
  color: var(--neon);
  font-weight: 900;
  font-size: 16px;
}

/* پنل‌ها */
.ns-panels { position: relative; }
.ns-panel {
  display: none;
  animation: nsPanelFade .3s ease-out;
}
.ns-panel.active { display: block; }
@keyframes nsPanelFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* لیست قسمت‌ها (Netflix-style: افقی، فشرده) */
.ns-episodes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* هر قسمت */
.ns-ep-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: transparent;
  border-radius: 10px;
  transition: .2s;
  position: relative;
}
.ns-ep-item::before {
  content: '';
  position: absolute;
  top: 8px; bottom: 8px; right: 0;
  width: 3px;
  background: var(--neon);
  border-radius: 3px;
  opacity: 0;
  transition: opacity .2s;
}
.ns-ep-item:hover {
  background: linear-gradient(90deg, rgba(255,45,135,.08), transparent);
}
.ns-ep-item:hover::before {
  opacity: 1;
}

/* شماره قسمت (بزرگ و برجسته - Netflix-style) */
.nse-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--muted);
  text-align: center;
  line-height: 1;
  font-family: sans-serif;
  transition: .2s;
  opacity: .6;
}
.ns-ep-item:hover .nse-number {
  color: var(--neon);
  opacity: 1;
  text-shadow: 0 0 12px rgba(255,45,135,.4);
}

.nse-info { min-width: 0; }
.nse-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nse-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  min-width: 100px;
}
.nse-size {
  font-size: 11px;
  color: var(--muted);
  background: rgba(0,0,0,.35);
  padding: 3px 8px;
  border-radius: 5px;
}
.nse-sub {
  font-size: 10px;
  color: var(--neon-2);
  background: rgba(0,230,255,.1);
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(0,230,255,.3);
}

/* دکمه‌ها (فقط آیکون - Netflix-style) */
.nse-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.nse-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: .2s;
  font-family: inherit;
}
.nse-btn:hover {
  transform: translateY(-2px);
}
.nse-btn-primary {
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255,45,135,.4);
}
.nse-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255,45,135,.6);
}
.nse-btn-vlc {
  background: linear-gradient(135deg, #ff6600, #ff8800);
  color: #fff;
  border-color: transparent;
}
.nse-btn-download {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-color: transparent;
}
.nse-btn-more:hover {
  border-color: var(--neon);
  color: var(--neon);
}

/* ============ Responsive ============ */
@media (max-width: 720px) {
  .ns-header {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }
  .ns-header-left { justify-content: center; }
  .ns-season-selector { min-width: auto; width: 100%; }
  .ns-selector-btn { padding: 11px 14px; }
  .ns-selector-value { font-size: 13px; }

  .ns-episodes { padding: 4px; }
  .ns-ep-item {
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 10px;
  }
  .nse-number { font-size: 28px; }
  .nse-title { font-size: 13px; }
  .nse-actions {
    grid-column: 1 / -1;
    justify-content: center;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
  }
  .nse-btn { width: 40px; height: 40px; font-size: 15px; flex: 1; max-width: 60px; }
}

/* ============================================================
 * Legacy Seasons Tabs (نگه داشته شده)
 * ============================================================ */
.seasons-tabs-wrap {
  margin-top: 8px;
}

/* خلاصه بالا */
.stw-summary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(255,45,135,.08), rgba(168,85,247,.05));
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 16px;
}
.stw-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}
.stw-icon { font-size: 15px; }
.stw-num {
  color: var(--neon);
  font-weight: 800;
  font-size: 15px;
  font-family: sans-serif;
}
.stw-label { color: var(--muted); font-size: 12px; }
.stw-divider {
  width: 1px; height: 22px;
  background: var(--border);
}

/* ردیف تب‌ها (scrollable در موبایل) */
.stw-tabs-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--neon) transparent;
  padding-bottom: 8px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.stw-tabs-scroll::-webkit-scrollbar { height: 4px; }
.stw-tabs-scroll::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 2px; }
.stw-tabs-scroll::-webkit-scrollbar-thumb:hover { background: var(--neon); }

.stw-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 100%;
}

.stw-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: .25s;
  font-family: inherit;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}
.stw-tab:hover {
  background: var(--bg-3);
  color: var(--text);
}
.stw-tab.active {
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  box-shadow: 0 6px 16px rgba(255,45,135,.4);
}

.stw-tab-num {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border-radius: 8px;
  font-family: sans-serif;
}
.stw-tab.active .stw-tab-num {
  background: rgba(255,255,255,.2);
}
.stw-tab:not(.active) .stw-tab-num {
  background: var(--bg-3);
  color: var(--neon);
  border: 1px solid var(--border);
}

.stw-tab-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.stw-tab-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.stw-tab-meta {
  font-size: 10px;
  opacity: .85;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stw-tab-q {
  background: rgba(0,0,0,.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: sans-serif;
}
.stw-tab:not(.active) .stw-tab-q {
  background: var(--bg-3);
  color: var(--neon);
}

/* پنل‌ها */
.stw-panels { position: relative; }
.stw-panel {
  display: none;
  animation: stwFadeIn .35s ease-out;
}
.stw-panel.active { display: block; }
@keyframes stwFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* گرید قسمت‌ها (کامپکت) */
.stw-episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

/* هر کارت قسمت (بسیار جمع و جور) */
.ep-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: .2s;
}
.ep-mini-card:hover {
  border-color: var(--neon);
  background: rgba(255,45,135,.05);
  transform: translateY(-1px);
}

.emc-num {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,45,135,.15), rgba(168,85,247,.1));
  color: var(--neon);
  font-weight: 800;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid rgba(255,45,135,.3);
  font-family: sans-serif;
}

.emc-info {
  flex: 1;
  min-width: 0;
}
.emc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.emc-size {
  font-size: 10px;
  color: var(--muted);
}

.emc-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.emc-btn {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  transition: .15s;
  font-family: inherit;
}
.emc-btn:hover { transform: translateY(-1px); }
.emc-btn-play {
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  border-color: transparent;
}
.emc-btn-vlc {
  background: linear-gradient(135deg, #ff6600, #ff8800);
  color: #fff;
  border-color: transparent;
}
.emc-btn-dl {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-color: transparent;
}
.emc-btn-copy:hover { border-color: var(--neon); color: var(--neon); }

/* Mobile */
@media (max-width: 640px) {
  .stw-summary {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
  }
  .stw-tab { padding: 8px 12px; gap: 8px; }
  .stw-tab-num { width: 26px; height: 26px; font-size: 12px; flex-basis: 26px; }
  .stw-tab-title { font-size: 12px; }
  .stw-tab-meta { font-size: 9px; }

  .stw-episodes-grid { grid-template-columns: 1fr; }
  .ep-mini-card { padding: 8px; gap: 8px; }
  .emc-num { width: 32px; height: 32px; font-size: 12px; flex-basis: 32px; }
  .emc-title { font-size: 12px; }
  .emc-btn { width: 28px; height: 28px; font-size: 11px; }
}

/* ============================================================
 * Seasons Accordion (Legacy - نگه داشته برای سازگاری)
 * ============================================================ */
.seasons-container {
  margin-top: 8px;
}

/* خلاصه بالای فصل‌ها */
.seasons-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(255,45,135,.08), rgba(168,85,247,.05));
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
}
.ss-item {
  display: flex; align-items: center; gap: 12px;
}
.ss-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 8px rgba(255,45,135,.4));
}
.ss-body { display: flex; flex-direction: column; }
.ss-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--neon);
  line-height: 1;
  font-family: sans-serif;
}
.ss-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.ss-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

/* Accordion */
.seasons-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* هر پنل فصل */
.season-panel {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.season-panel.open {
  border-color: var(--neon);
  box-shadow: 0 12px 30px rgba(255,45,135,.12);
}

/* دکمه toggle */
.sp-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  text-align: right;
  transition: background .2s;
}
.sp-toggle:hover {
  background: linear-gradient(90deg, rgba(255,45,135,.05), transparent);
}
.season-panel.open .sp-toggle {
  background: linear-gradient(90deg, rgba(255,45,135,.08), transparent);
  border-bottom: 1px solid var(--border);
}
.sp-toggle-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.sp-season-badge {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255,45,135,.35);
  font-family: sans-serif;
  flex-shrink: 0;
}
.sp-info { flex: 1; min-width: 0; }
.sp-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.sp-meta {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.sp-ep-count {
  font-size: 12px;
  color: var(--muted);
}
.sp-quality {
  font-size: 11px !important;
  padding: 3px 10px !important;
}

.sp-arrow {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3);
  border-radius: 8px;
  color: var(--muted);
  font-size: 16px;
  transition: transform .35s ease, color .2s, background .2s;
}
.season-panel.open .sp-arrow {
  transform: rotate(180deg);
  background: var(--neon);
  color: #fff;
}
.sp-toggle:hover .sp-arrow { color: var(--neon); }
.season-panel.open .sp-toggle:hover .sp-arrow { color: #fff; }

/* بدنه (Accordion collapse) */
.sp-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4, 0, .2, 1);
}
.season-panel.open .sp-body {
  max-height: 5000px;
  transition: max-height .8s cubic-bezier(.4, 0, .2, 1);
}
.sp-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

/* هر ردیف قسمت */
.ep-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: .2s;
  position: relative;
}
.ep-row::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 3px;
  background: var(--neon);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transition: transform .3s;
}
.ep-row:hover {
  border-color: rgba(255,45,135,.4);
  background: rgba(255,45,135,.03);
  transform: translateX(-3px);
}
.ep-row:hover::before {
  transform: scaleY(1);
}

.ep-row-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.ep-num-tag {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,45,135,.15), rgba(168,85,247,.1));
  color: var(--neon);
  font-weight: 800;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,45,135,.3);
  font-family: sans-serif;
  flex-shrink: 0;
}
.ep-row-info { flex: 1; min-width: 0; }
.ep-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.ep-row-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ep-size-tag {
  font-size: 11px;
  color: var(--muted);
  background: rgba(0,0,0,.35);
  padding: 2px 8px;
  border-radius: 5px;
}
.ep-sub-tag {
  font-size: 10px;
  color: var(--neon-2);
  background: rgba(0,230,255,.1);
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(0,230,255,.3);
}

/* دکمه‌های اکشن */
.ep-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ep-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: .2s;
  white-space: nowrap;
}
.ep-btn:hover { transform: translateY(-1px); }
.ep-btn > span:first-child { font-size: 13px; }

.ep-btn-play {
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(255,45,135,.3);
}
.ep-btn-vlc {
  background: linear-gradient(135deg, #ff6600, #ff8800);
  color: #fff;
  border-color: transparent;
}
.ep-btn-dl {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-color: transparent;
}
.ep-btn-copy {
  padding: 7px 9px;
  min-width: 32px;
  justify-content: center;
}
.ep-btn-copy:hover { border-color: var(--neon); color: var(--neon); }

/* Responsive Seasons */
@media (max-width: 720px) {
  .seasons-summary {
    padding: 14px;
    gap: 16px;
  }
  .ss-icon { font-size: 22px; }
  .ss-num { font-size: 18px; }
  .ss-label { font-size: 10px; }

  .sp-toggle { padding: 12px 14px; }
  .sp-toggle-right { gap: 10px; }
  .sp-season-badge { width: 38px; height: 38px; font-size: 15px; flex-basis: 38px; }
  .sp-title { font-size: 13px; }
  .sp-ep-count { font-size: 11px; }
  .sp-arrow { width: 28px; height: 28px; font-size: 14px; }

  .sp-episodes-list { padding: 10px; gap: 6px; }
  .ep-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
  }
  .ep-num-tag { width: 34px; height: 34px; font-size: 13px; flex-basis: 34px; }
  .ep-row-title { font-size: 13px; }
  .ep-row-actions {
    justify-content: stretch;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .ep-btn {
    padding: 8px 4px;
    justify-content: center;
    font-size: 11px;
  }
  .ep-btn-txt { display: none; }
  .ep-btn > span:first-child { font-size: 15px; }
}

/* ============== Serial Picker (Legacy - نگه داشته برای سازگاری) ============== */
.serial-picker { margin-top: 8px; }

.picker-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 14px;
  margin-bottom: 20px;
}

.picker-item { display: flex; flex-direction: column; gap: 6px; }
.picker-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  padding-right: 4px;
}
.picker-select {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 44px 14px 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: .2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff2d87' stroke-width='3'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 18px center;
}
.picker-select:hover { border-color: var(--neon); }
.picker-select:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(255,45,135,.15);
}

.selected-episode-card {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--neon);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(255,45,135,.1);
  animation: slideUpIn .3s ease-out;
}
@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.sec-loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}
.sec-header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.sec-ep-num {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(255,45,135,.4);
  font-family: sans-serif;
}
.sec-info { flex: 1; min-width: 0; }
.sec-title { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.sec-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* Quick List */
.episodes-quick-list {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.ql-header {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.ql-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.ql-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: .15s;
  font-family: inherit;
  text-align: right;
  min-width: 0;
}
.ql-item:hover {
  border-color: var(--neon);
  background: rgba(255,45,135,.05);
  transform: translateY(-1px);
}
.ql-item.active {
  border-color: var(--neon);
  background: linear-gradient(135deg, rgba(255,45,135,.15), rgba(168,85,247,.08));
  box-shadow: 0 4px 12px rgba(255,45,135,.2);
}
.ql-num {
  flex: 0 0 26px; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-4);
  color: var(--neon);
  font-weight: 700;
  font-size: 11px;
  border-radius: 6px;
  font-family: sans-serif;
}
.ql-item.active .ql-num {
  background: var(--neon);
  color: #fff;
}
.ql-name {
  flex: 1; min-width: 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ql-size {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

/* ============ Access Required Banner ============ */
.access-required-banner {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, rgba(255,45,135,.15), rgba(168,85,247,.08));
  border: 1px solid var(--neon);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 20px 0;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(255,45,135,.1);
}
.arb-icon {
  font-size: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255,45,135,.5));
}
.arb-body { flex: 1; min-width: 220px; }
.arb-body h3 { margin: 0 0 6px; color: var(--neon); font-size: 17px; }
.arb-body p { margin: 0; font-size: 13px; }
.arb-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============== Access Required Banner ============== */
.access-required-banner {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, rgba(255,45,135,.15), rgba(168,85,247,.08));
  border: 1px solid var(--neon);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 20px 0;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(255,45,135,.1);
}
.arb-icon {
  font-size: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255,45,135,.5));
}
.arb-body { flex: 1; min-width: 220px; }
.arb-body h3 { margin: 0 0 6px; color: var(--neon); font-size: 17px; }
.arb-body p { margin: 0; font-size: 13px; }
.arb-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============== Serial Picker (منوی کشویی سریال) ============== */
.serial-picker { margin-top: 8px; }

.picker-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.picker-item { display: flex; flex-direction: column; gap: 6px; }
.picker-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  padding-right: 4px;
}
.picker-select {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: .2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff2d87' stroke-width='3'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 18px center;
  padding-left: 44px;
}
.picker-select:hover { border-color: var(--neon); }
.picker-select:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(255,45,135,.15);
}

/* Selected Episode Card */
.selected-episode-card {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--neon);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(255,45,135,.1);
  animation: slideUpIn .3s ease-out;
}
@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sec-loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

.sec-header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.sec-ep-num {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(255,45,135,.4);
  font-family: sans-serif;
}
.sec-info { flex: 1; min-width: 0; }
.sec-title { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.sec-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.sec-actions { display: flex; flex-direction: column; gap: 8px; }

.sec-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: .2s;
  width: 100%;
  text-align: right;
  position: relative;
}
.sec-btn:hover { transform: translateX(-3px); }
.sec-icon {
  flex: 0 0 32px; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--bg-4);
  font-size: 15px;
}
.sec-arrow {
  margin-right: auto;
  font-size: 12px;
  transition: transform .3s;
}
.sec-btn > span:not(.sec-icon):not(.sec-arrow) { flex: 1; }

.sec-btn-play {
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(255,45,135,.35);
}
.sec-btn-play .sec-icon { background: rgba(0,0,0,.25); }
.sec-btn-play:hover { box-shadow: 0 8px 26px rgba(255,45,135,.55); }

.sec-btn-mobile { border-right: 3px solid var(--neon-2); }
.sec-btn-mobile:hover { background: rgba(0,230,255,.08); }
.sec-btn-mobile .sec-icon { background: rgba(0,230,255,.15); color: var(--neon-2); }

.sec-btn-desktop { border-right: 3px solid var(--neon-purple); }
.sec-btn-desktop:hover { background: rgba(168,85,247,.08); }
.sec-btn-desktop .sec-icon { background: rgba(168,85,247,.15); color: var(--neon-purple); }

.sec-btn-download {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(34,197,94,.3);
}
.sec-btn-download .sec-icon { background: rgba(0,0,0,.25); }

.sec-btn-copy { border-right: 3px solid var(--muted); }
.sec-btn-copy:hover { background: rgba(154,154,168,.08); }

.sec-panel {
  padding: 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: -4px 0 0;
}
.sec-panel.hidden { display: none; }

/* Quick List */
.episodes-quick-list {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.ql-header {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.ql-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.ql-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: .15s;
  font-family: inherit;
  text-align: right;
  min-width: 0;
}
.ql-item:hover {
  border-color: var(--neon);
  background: rgba(255,45,135,.05);
  transform: translateY(-1px);
}
.ql-item.active {
  border-color: var(--neon);
  background: linear-gradient(135deg, rgba(255,45,135,.15), rgba(168,85,247,.08));
  box-shadow: 0 4px 12px rgba(255,45,135,.2);
}
.ql-num {
  flex: 0 0 26px; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-4);
  color: var(--neon);
  font-weight: 700;
  font-size: 11px;
  border-radius: 6px;
  font-family: sans-serif;
}
.ql-item.active .ql-num {
  background: var(--neon);
  color: #fff;
}
.ql-name {
  flex: 1; min-width: 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ql-size {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .picker-row { grid-template-columns: 1fr; gap: 10px; }
  .picker-select { padding: 12px 16px; padding-left: 40px; font-size: 13px; }
  .selected-episode-card { padding: 14px; }
  .sec-ep-num { width: 44px; height: 44px; font-size: 16px; flex-basis: 44px; }
  .sec-title { font-size: 14px; }
  .sec-btn { padding: 10px 12px; font-size: 13px; gap: 8px; }
  .ql-grid { grid-template-columns: 1fr 1fr; }
}

/* ============== Seasons (Legacy) ============== */
.season-block {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  transition: .2s;
}
.season-block:hover { border-color: rgba(255,45,135,.3); }

.season-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(255,45,135,.08), transparent);
  border-bottom: 1px solid var(--border);
}
.season-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  font-size: 16px;
  color: var(--neon);
}
.season-icon { font-size: 20px; }
.season-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: normal;
  margin-right: 8px;
}
.season-toggle {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px; height: 34px;
  border-radius: 8px;
  cursor: pointer;
  transition: .2s;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.season-toggle:hover { border-color: var(--neon); color: var(--neon); }
.toggle-arrow-season { font-size: 12px; transition: transform .3s; }

.season-body {
  padding: 14px;
  transition: max-height .4s ease, padding .3s;
  max-height: 4000px;
  overflow: hidden;
}
.season-body.collapsed { max-height: 0; padding-top: 0; padding-bottom: 0; }

.episodes-list {
  display: flex; flex-direction: column; gap: 8px;
}

/* ============== Episode Row (چیدمان لیستی مثل تصویر) ============== */
.episode-row {
  display: flex; gap: 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  transition: .2s;
  align-items: center;
}
.episode-row:hover {
  border-color: var(--neon);
  background: rgba(255,45,135,.03);
}

.ep-number-badge {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(255,45,135,.35);
  font-family: sans-serif;
}

.ep-body { flex: 1; min-width: 0; }

.ep-title-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.ep-name { color: var(--text); font-size: 14px; }
.ep-size {
  color: var(--muted);
  font-size: 12px;
  background: var(--bg-3);
  padding: 2px 8px;
  border-radius: 6px;
}
.ep-sub {
  color: var(--neon-2);
  font-size: 11px;
  background: rgba(0,230,255,.1);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0,230,255,.3);
}

.ep-actions-row {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.ep-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: .2s;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.ep-action-btn:hover { transform: translateY(-1px); }
.ep-action-btn span { font-size: 13px; }

.ep-action-btn.ep-a-play {
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  border-color: transparent;
  color: #fff;
}
.ep-action-btn.ep-a-external {
  background: linear-gradient(135deg, var(--neon-2), #2196f3);
  border-color: transparent;
  color: #fff;
}
.ep-action-btn.ep-a-download {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: transparent;
  color: #fff;
}

/* ============== Media Panel ============== */
.media-panel { margin-top: 24px; }
.media-panel h3 {
  margin: 14px 0 10px; color: var(--neon); font-size: 16px;
  border-right: 3px solid var(--neon); padding-right: 10px;
}

/* === کارت‌های کیفیت === */
.media-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.media-card {
  background: linear-gradient(145deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: .25s;
  position: relative;
}
.media-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,45,135,.03) 100%);
  pointer-events: none;
}
.media-card:hover {
  border-color: var(--neon);
  box-shadow: 0 12px 30px rgba(255,45,135,.15);
  transform: translateY(-2px);
}

.media-card-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255,45,135,.08), rgba(168,85,247,.04));
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}

.quality-info { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.quality-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 14px; border-radius: 8px;
  font-weight: 800; font-size: 13px;
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--border);
  letter-spacing: .5px;
}
.quality-badge.q-4k {
  background: linear-gradient(135deg, #ff2d87, #a855f7);
  color: #fff; border-color: transparent;
  box-shadow: 0 0 16px rgba(255,45,135,.5);
}
.quality-badge.q-1080 {
  background: linear-gradient(135deg, #ff2d87, #ff5722);
  color: #fff; border-color: transparent;
  box-shadow: 0 0 12px rgba(255,45,135,.3);
}
.quality-badge.q-720 {
  background: linear-gradient(135deg, #00e6ff, #3f51b5);
  color: #fff; border-color: transparent;
}
.quality-badge.q-480 {
  background: var(--bg-4); color: var(--muted);
}

.quality-size {
  font-size: 12px; color: var(--muted); padding: 4px 8px;
  background: rgba(0,0,0,.3); border-radius: 6px;
}
.quality-sub {
  font-size: 11px; color: var(--neon-2); padding: 3px 8px;
  background: rgba(0,230,255,.1); border-radius: 6px;
  border: 1px solid rgba(0,230,255,.3);
}

/* === ردیف‌های اکشن === */
.media-card-body { display: flex; flex-direction: column; }

.play-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-align: right;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
  width: 100%;
  font-family: inherit;
  position: relative;
}
.play-row:last-child { border-bottom: 0; }
.play-row:hover { background: rgba(255,255,255,.03); }
.play-row:hover .pr-arrow { transform: translateX(-4px); color: var(--neon); }

.pr-icon {
  flex: 0 0 44px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; border-radius: 10px;
  background: var(--bg-3); border: 1px solid var(--border);
}
.pr-label {
  flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.pr-label strong { font-size: 14px; color: var(--text); }
.pr-label small { font-size: 11px; color: var(--muted); }
.pr-arrow {
  flex: 0 0 auto; color: var(--muted); font-size: 18px;
  transition: .2s;
}

/* رنگ‌بندی هر نوع ردیف */
.play-row.play-site .pr-icon {
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(255,45,135,.4);
}
.play-row.play-site:hover {
  background: linear-gradient(90deg, rgba(255,45,135,.08), transparent);
}

.play-row.play-mobile .pr-icon {
  background: linear-gradient(135deg, #00e6ff, #2196f3);
  color: #fff; border-color: transparent;
}
.play-row.play-mobile:hover {
  background: linear-gradient(90deg, rgba(0,230,255,.08), transparent);
}

.play-row.play-desktop .pr-icon {
  background: linear-gradient(135deg, #a855f7, #7c4dff);
  color: #fff; border-color: transparent;
}
.play-row.play-desktop:hover {
  background: linear-gradient(90deg, rgba(168,85,247,.08), transparent);
}

.play-row.play-download .pr-icon {
  background: linear-gradient(135deg, #4caf50, #22c55e);
  color: #fff; border-color: transparent;
}
.play-row.play-download:hover {
  background: linear-gradient(90deg, rgba(34,197,94,.08), transparent);
}

.play-row.play-copy .pr-icon {
  background: linear-gradient(135deg, #607d8b, #455a64);
  color: #fff; border-color: transparent;
}
.play-row.play-copy:hover {
  background: linear-gradient(90deg, rgba(96,125,139,.08), transparent);
}

/* پلتفرم پیشنهادی (هایلایت بشه) */
.play-row.platform-suggested {
  background: rgba(255,45,135,.05);
}
.play-row.platform-suggested::after {
  content: '⭐ پیشنهادی';
  position: absolute;
  top: 6px; left: 8px;
  font-size: 10px;
  color: var(--neon);
  background: var(--bg-1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--neon);
}

/* === Panel که با Toggle باز می‌شود === */
.play-row-collapsible {
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--border);
}
.play-row-collapsible:last-child { border-bottom: 0; }
.play-row-collapsible > .play-row { border-bottom: 0; }

.toggle-arrow {
  transition: transform .3s;
  font-size: 14px !important;
}

.players-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  background: var(--bg-1);
}
.players-panel.open {
  max-height: 1500px;
}

.players-section {
  padding: 12px 16px;
  border-bottom: 1px dashed var(--border);
}
.players-section:last-child { border-bottom: 0; }
.players-section h5 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--neon);
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

/* === Mini Card هر پلیر === */
.player-mini-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: .2s;
  font-family: inherit;
  color: var(--text);
  position: relative;
  text-align: center;
}
.player-mini-card:hover {
  border-color: var(--neon);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,.4);
}
.player-mini-card .pmc-icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  border-radius: 10px;
  color: #fff;
  background: var(--bg-4);
}
.player-mini-card .pmc-name {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.player-mini-card .pmc-arrow {
  position: absolute;
  top: 6px; left: 6px;
  font-size: 10px;
  color: var(--muted);
  opacity: 0;
  transition: .2s;
}
.player-mini-card:hover .pmc-arrow { opacity: 1; color: var(--neon); }

/* ============ Episode Card v2 ============ */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.episode-card-v2 {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  transition: .25s;
  position: relative;
  overflow: hidden;
}
.episode-card-v2::before {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0;
  width: 3px; background: var(--neon);
  transform: scaleY(0); transform-origin: center;
  transition: .3s;
}
.episode-card-v2:hover {
  border-color: var(--neon);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.episode-card-v2:hover::before { transform: scaleY(1); }

.ep-number {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--neon), var(--neon-purple));
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(255,45,135,.3);
}
.ep-info { flex: 1; min-width: 0; }
.ep-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.ep-actions { display: flex; gap: 4px; }
.ep-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: .2s;
  font-family: inherit;
}
.ep-btn:hover { transform: translateY(-2px); }
.ep-btn.ep-play { background: linear-gradient(135deg, var(--neon), var(--neon-purple)); border-color: transparent; color: #fff; }
.ep-btn.ep-external { background: linear-gradient(135deg, #00e6ff, #2196f3); border-color: transparent; color: #fff; }
.ep-btn.ep-download { background: linear-gradient(135deg, #4caf50, #22c55e); border-color: transparent; color: #fff; }

/* ============== Player Modals ============== */
.player-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.player-modal.hidden { display: none; }
.player-modal-inner {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 14px; width: 100%; max-width: 1100px;
  max-height: 95vh; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.6);
}
.external-modal { max-width: 540px; }
.player-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.player-header span { font-weight: bold; color: var(--text); font-size: 14px; }
.player-close {
  background: var(--bg-3); border: 0; color: var(--text);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 20px; flex-shrink: 0;
}
.player-close:hover { background: var(--neon); }
#video-element {
  width: 100%; max-height: 75vh; background: #000; outline: none;
}
.player-footer {
  display: flex; gap: 8px; padding: 10px 16px;
  background: var(--bg-2); border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.external-content { padding: 18px; }
.external-content > p { margin: 0 0 14px; }
#external-players-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px; margin-bottom: 18px;
}
.external-player-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 10px;
  text-align: center; cursor: pointer; transition: .2s;
}
.external-player-card:hover {
  border-color: var(--neon); transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,45,135,.2);
}
.ep-icon { font-size: 30px; margin-bottom: 6px; }
.ep-name { font-size: 12px; color: var(--text); }

.copy-link-box {
  background: var(--bg-3); padding: 12px; border-radius: 10px;
  border: 1px solid var(--border);
}
.copy-link-box label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.copy-link-box input {
  flex: 1; background: var(--bg-1); border: 1px solid var(--border);
  color: var(--text); padding: 8px 10px; border-radius: 6px;
  font-size: 12px; direction: ltr; font-family: monospace; width: 100%;
}

/* ============== Site Player (Custom) ============== */
.sp-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.sp-modal.hidden { display: none; }

.sp-container {
  width: 100%; max-width: 1200px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.8);
}

.sp-titlebar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.3));
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  transition: opacity .3s;
}
.sp-title {
  color: #fff; font-weight: 600; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
.sp-titlebar-actions { display: flex; gap: 8px; }
.sp-btn-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border: 0;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: .2s;
  font-family: inherit;
}
.sp-btn-icon:hover { background: var(--neon); }

.sp-stage {
  position: relative;
  background: #000;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: calc(100vh - 80px);
  overflow: hidden;
}
.sp-stage video {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
  outline: none;
}

/* Loader */
.sp-loader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  color: #fff;
  background: rgba(0,0,0,.5);
  pointer-events: none;
}
.sp-spinner {
  width: 50px; height: 50px;
  border: 4px solid rgba(255,255,255,.15);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.sp-loader span { font-size: 13px; opacity: .8; }

/* Error */
.sp-error {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  color: #fff;
  background: rgba(0,0,0,.85);
  padding: 30px;
  text-align: center;
}
.sp-error.hidden { display: none; }
.sp-error-icon { font-size: 50px; }
.sp-error p { font-size: 16px; margin: 0; }
.sp-error small { color: var(--muted); font-size: 13px; max-width: 400px; }

/* Big play button */
.sp-big-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,45,135,.9);
  color: #fff;
  font-size: 32px;
  display: none;
  align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(255,45,135,.5);
  transition: .2s;
}
.sp-big-play.visible { display: flex; }
.sp-big-play:hover { transform: translate(-50%, -50%) scale(1.1); }

/* Seek feedback */
.sp-seek-feedback {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: 16px 24px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  pointer-events: none;
  opacity: 0;
}
.sp-seek-feedback.hidden { display: none; }
.sp-seek-feedback.animate { animation: seekPulse .6s ease-out; }
.sp-seek-fwd { right: 25%; }
.sp-seek-back { left: 25%; }
@keyframes seekPulse {
  0% { opacity: 0; transform: translateY(-50%) scale(.5); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
  100% { opacity: 0; transform: translateY(-50%) scale(1); }
}

/* Controls */
.sp-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 16px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  transition: opacity .3s, transform .3s;
}
.sp-stage.hide-controls .sp-controls,
.sp-stage.hide-controls .sp-titlebar {
  opacity: 0;
  pointer-events: none;
}
.sp-stage.hide-controls { cursor: none; }

/* Progress bar */
.sp-progress {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,.2);
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: height .2s;
}
.sp-progress:hover { height: 10px; }
.sp-progress-buffer {
  position: absolute; top: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.3);
  border-radius: 3px;
  width: 0;
  transition: width .2s;
}
.sp-progress-fill {
  position: absolute; top: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon));
  border-radius: 3px;
  width: 0;
  box-shadow: 0 0 8px rgba(255,45,135,.6);
}
.sp-progress-thumb {
  position: absolute; top: 50%;
  width: 14px; height: 14px;
  background: var(--neon);
  border-radius: 50%;
  transform: translate(50%, -50%);
  box-shadow: 0 0 10px rgba(255,45,135,.8);
  opacity: 0;
  transition: opacity .2s;
  right: 0;
  pointer-events: none;
}
.sp-progress:hover .sp-progress-thumb { opacity: 1; }
.sp-tooltip {
  position: absolute;
  bottom: 20px;
  transform: translateX(50%);
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  pointer-events: none;
  white-space: nowrap;
}
.sp-tooltip.hidden { display: none; }

/* Controls bar */
.sp-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sp-controls-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sp-btn {
  background: transparent;
  border: 0;
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: .15s;
  font-family: inherit;
  position: relative;
}
.sp-btn:hover { background: rgba(255,255,255,.15); color: var(--neon); }

#sp-play { font-size: 18px; }

.sp-time {
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 0 8px;
  white-space: nowrap;
}

/* Volume */
.sp-volume-wrap {
  display: flex; align-items: center;
  position: relative;
}
.sp-volume-slider {
  width: 0;
  overflow: hidden;
  transition: width .25s;
}
.sp-volume-wrap:hover .sp-volume-slider {
  width: 80px;
  padding: 0 8px;
}
.sp-volume-slider input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.sp-volume-slider input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--neon);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255,45,135,.6);
}
.sp-volume-slider input::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--neon);
  border-radius: 50%;
  cursor: pointer;
  border: 0;
}

/* Speed menu */
.sp-menu-wrap { position: relative; }
.sp-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: rgba(20,20,25,.97);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  min-width: 130px;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
  z-index: 20;
}
.sp-menu.hidden { display: none; }
.sp-menu button {
  display: block; width: 100%;
  padding: 8px 14px;
  background: transparent; border: 0;
  color: #fff;
  text-align: right;
  cursor: pointer;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}
.sp-menu button:hover { background: rgba(255,255,255,.08); }
.sp-menu button.active {
  background: var(--neon);
  color: #fff;
}

/* Fullscreen tweaks */
.sp-stage:fullscreen,
.sp-stage:-webkit-full-screen { max-height: 100vh; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .sp-container { border-radius: 0; height: 100vh; max-width: 100%; }
  .sp-stage { aspect-ratio: auto; height: calc(100vh - 0px); max-height: 100vh; }
  .sp-controls { padding: 6px 10px 10px; }
  .sp-btn { width: 34px; height: 34px; font-size: 15px; }
  .sp-time { font-size: 11px; padding: 0 4px; }
  .sp-titlebar { padding: 8px 12px; }
  .sp-title { font-size: 12px; }
  .sp-btn-icon { width: 32px; height: 32px; font-size: 14px; }
  .sp-volume-wrap:hover .sp-volume-slider { width: 60px; }
  .sp-big-play { width: 60px; height: 60px; font-size: 24px; }
  .sp-seek-fwd { right: 15%; }
  .sp-seek-back { left: 15%; }
  .sp-controls-bar { gap: 4px; }
  .sp-controls-group { gap: 2px; }
}

/* ============== Subscription Info Grid ============== */
.sub-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.sub-info-item {
  background: linear-gradient(135deg, rgba(255,45,135,.08), rgba(168,85,247,.04));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.sub-info-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.sub-info-value {
  font-size: 16px;
  color: var(--text);
}
.text-success { color: var(--success) !important; }
.text-warn { color: var(--warn) !important; }
.text-error { color: var(--error) !important; }

/* ============== Tickets / Chat View ============== */
.ticket-view { display: flex; flex-direction: column; gap: 14px; }
.ticket-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.ticket-meta-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }

.ticket-message {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  max-width: 85%;
  position: relative;
}
.ticket-message .msg-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; gap: 10px; flex-wrap: wrap;
}
.ticket-message .msg-header strong { color: var(--text); font-size: 13px; }
.ticket-message .msg-body {
  color: #d0d0db; line-height: 1.8; font-size: 14px;
  word-wrap: break-word;
}

/* پیام کاربر — سمت راست */
.ticket-message.user-msg {
  align-self: flex-start;
  border-right: 3px solid var(--neon-2);
}

/* پیام ادمین — سمت چپ + رنگ متفاوت */
.ticket-message.admin-msg {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(255,45,135,.08), rgba(168,85,247,.05));
  border: 1px solid rgba(255,45,135,.3);
  border-left: 3px solid var(--neon);
}
.ticket-message.admin-msg .msg-header strong { color: var(--neon); }

.ticket-reply-form {
  background: var(--bg-1);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
}

.ticket-controls {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 14px; background: var(--bg-3); border-radius: 10px;
  border: 1px solid var(--border); margin-top: 14px;
}
.ticket-controls strong { font-size: 13px; color: var(--muted); margin-left: 4px; }

@media (max-width: 720px) {
  .ticket-message { max-width: 100%; }
  .ticket-message.admin-msg { align-self: stretch; }
  .ticket-message.user-msg { align-self: stretch; }
  .ticket-controls { flex-direction: column; align-items: stretch; }
  .ticket-controls > span { margin-right: 0 !important; }
}

/* ============== Comments ============== */
.comments-list { display: flex; flex-direction: column; gap: 10px; }
.comment-item {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
  border-right: 3px solid var(--neon);
}
.comment-header { display: flex; justify-content: space-between; margin-bottom: 6px; align-items: center; }
.comment-header strong { color: var(--neon); }
.comment-item p { margin: 0; line-height: 1.7; }

/* ============== Auth ============== */
.auth-wrap { display: grid; place-items: center; min-height: 70vh; padding: 16px; }
.auth-card {
  width: 100%; max-width: 440px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  box-shadow: 0 0 0 1px rgba(255,45,135,.08), 0 30px 60px rgba(0,0,0,.5);
  position: relative;
}
.auth-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 16px;
  background: linear-gradient(135deg, var(--neon), var(--neon-2), var(--neon-purple));
  z-index: -1; opacity: .35; filter: blur(14px);
}
.auth-tabs {
  display: flex; gap: 4px; background: var(--bg-3); border-radius: 10px;
  padding: 4px; margin-bottom: 18px;
}
.auth-tab {
  flex: 1; padding: 10px; text-align: center; border-radius: 8px;
  cursor: pointer; color: var(--muted); transition: .2s; font-size: 13px;
}
.auth-tab.active { background: var(--neon); color: #fff; box-shadow: var(--shadow-neon); }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted);
}
.form-control {
  width: 100%; padding: 11px 14px; background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 14px; transition: .2s;
  min-height: 42px;
}
.form-control:focus {
  outline: none; border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(255,45,135,.18);
}
.alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 13px; }
.alert-error   { background: rgba(239,68,68,.12); color: #ff8e8e; border: 1px solid rgba(239,68,68,.3); }
.alert-success { background: rgba(34,197,94,.12); color: #6ee7b7; border: 1px solid rgba(34,197,94,.3); }
.alert-warning { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.alert-info    { background: rgba(0,230,255,.10);  color: #7dd3fc; border: 1px solid rgba(0,230,255,.3); }
.form-foot { text-align: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.form-foot a { color: var(--neon); }

/* ============== Captcha + Password Strength ============== */
.captcha-group {
  background: rgba(255,45,135,.05);
  border: 1px solid rgba(255,45,135,.2);
  padding: 12px;
  border-radius: 10px;
}
.captcha-group label {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
}
.captcha-q {
  display: inline-block;
  background: var(--bg-3);
  border: 2px dashed var(--neon);
  color: var(--neon);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  font-family: 'Vazirmatn', monospace;
  letter-spacing: 3px;
  text-align: center;
  direction: ltr;
  user-select: none;
  -webkit-user-select: none;
}
.captcha-refresh {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: transform .3s, color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.captcha-refresh:hover { color: var(--neon); border-color: var(--neon); }
.captcha-input {
  text-align: center;
  font-size: 16px;
  letter-spacing: 2px;
}

/* Password strength */
.password-strength {
  margin-top: 8px;
  display: flex; align-items: center; gap: 10px;
}
.pwd-bar-track {
  flex: 1; height: 6px;
  background: var(--bg-4);
  border-radius: 3px;
  overflow: hidden;
}
.pwd-bar-fill {
  height: 100%; width: 0;
  transition: width .3s, background .3s;
  border-radius: 3px;
}
.pwd-label {
  font-size: 12px;
  color: var(--muted);
  min-width: 100px;
  text-align: left;
  transition: color .3s;
}

.pwd-checklist {
  list-style: none;
  padding: 8px 0 0;
  margin: 8px 0 0;
  border-top: 1px dashed var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 4px;
}
.pwd-checklist li {
  font-size: 11px;
  color: var(--muted);
  padding: 2px 0;
  padding-right: 20px;
  position: relative;
  transition: color .2s;
}
.pwd-checklist li::before {
  content: '○';
  position: absolute;
  right: 0;
  color: var(--muted);
}
.pwd-checklist li.valid {
  color: var(--success);
}
.pwd-checklist li.valid::before {
  content: '✓';
  color: var(--success);
}

/* ============== Dashboard ============== */
.dash-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.dash-side {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; position: sticky; top: calc(var(--header-h) + 16px); height: fit-content;
}
.dash-side a {
  display: block; padding: 10px 12px; border-radius: 8px;
  margin-bottom: 4px; color: #d0d0db; transition: .2s; font-size: 14px;
}
.dash-side a:hover, .dash-side a.active {
  background: var(--bg-3); color: var(--neon);
}
.dash-content { display: flex; flex-direction: column; gap: 16px; }
.panel {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px;
}
.panel h2 { margin-top: 0; font-size: 17px; }
.stat-cards {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
}
.stat-card {
  background: linear-gradient(135deg, rgba(255,45,135,.12), rgba(168,85,247,.08));
  border: 1px solid var(--border); border-radius: 10px; padding: 14px;
}
.stat-card span { display: block; color: var(--muted); font-size: 12px; }
.stat-card strong { font-size: 18px; word-break: break-all; }

/* ============== Tables ============== */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 600px; }
.table th, .table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  text-align: right; font-size: 13px;
}
.table th { color: var(--muted); font-weight: 600; background: var(--bg-3); }
.table tr:hover { background: rgba(255,255,255,.02); }
.actions-cell { display: flex; gap: 4px; flex-wrap: wrap; }

.tag {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.tag-free    { background: rgba(154,154,168,.2); color: var(--muted); }
.tag-vip     { background: rgba(0,230,255,.15); color: var(--neon-2); }
.tag-premium { background: linear-gradient(135deg, var(--neon), var(--neon-purple)); color: #fff; }
.tag-admin   { background: rgba(255,213,74,.15); color: #ffd54a; }
.tag-active  { background: rgba(34,197,94,.15); color: #6ee7b7; }
.tag-blocked { background: rgba(239,68,68,.15); color: #ff8e8e; }
.tag-open    { background: rgba(0,230,255,.15); color: var(--neon-2); }
.tag-closed  { background: rgba(154,154,168,.2); color: var(--muted); }

/* ============== Ads ============== */
.floating-ad {
  position: fixed; bottom: 16px; left: 16px; z-index: 80;
  background: var(--bg-2); border: 1px solid var(--neon); border-radius: 12px;
  padding: 14px; max-width: 260px; box-shadow: var(--shadow-neon);
  animation: slideInLeft .4s ease-out;
  transition: opacity .3s, transform .3s;
}
.floating-ad.removing { opacity: 0; transform: translateX(-30px); }
.floating-ad .ad-close {
  position: absolute; top: 4px; left: 4px; background: transparent;
  border: 0; color: var(--muted); font-size: 20px; cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%;
}
.floating-ad .ad-close:hover { background: var(--bg-3); color: var(--text); }
.floating-ad a { color: var(--text); display: block; }
.floating-ad img { border-radius: 8px; width: 100%; }
.floating-ad strong { display: block; color: var(--neon); margin: 4px 0 6px; padding-left: 24px; }
.floating-ad p { margin: 0; font-size: 13px; color: var(--muted); }
@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.popup-ad-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.8); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .3s ease-out; transition: opacity .3s;
  padding: 16px;
}
.popup-ad-overlay.removing { opacity: 0; }
.popup-ad {
  position: relative; background: var(--bg-2);
  border: 1px solid var(--neon); border-radius: 16px;
  padding: 24px; max-width: 440px; width: 100%;
  text-align: center; box-shadow: var(--shadow-neon);
  animation: popIn .35s cubic-bezier(.34,1.56,.64,1);
}
.popup-ad .ad-close {
  position: absolute; top: 8px; left: 8px; background: var(--bg-3);
  border: 0; color: var(--text); width: 30px; height: 30px;
  border-radius: 50%; font-size: 18px; cursor: pointer;
}
.popup-ad img { max-width: 100%; border-radius: 10px; margin-bottom: 12px; }
.popup-ad h3 { margin: 0 0 10px; color: var(--neon); }
.popup-ad p { color: #d0d0db; margin: 0 0 16px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { transform: scale(.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.banner-ad {
  background: linear-gradient(90deg, var(--neon), var(--neon-purple));
  color: #fff; padding: 10px 0; position: relative; z-index: 70;
  animation: slideDown .4s ease-out;
}
.banner-ad-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.banner-ad strong { font-size: 14px; }
.banner-ad span { font-size: 13px; opacity: .95; }
.banner-ad a { color: #fff; text-decoration: underline; font-weight: bold; }
.banner-ad .ad-close {
  background: rgba(0,0,0,.2); border: 0; color: #fff;
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  margin-right: auto; font-size: 16px;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ============== Toast ============== */
#toast-container {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; padding: 0 16px; max-width: 100%;
}
.toast {
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 18px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(-20px); transition: .3s;
  min-width: 220px; max-width: 100%; text-align: center;
  pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-color: var(--success); }
.toast-error   { border-color: var(--error); }
.toast-info    { border-color: var(--neon); }

/* ============== Footer ============== */
.site-footer {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6));
  border-top: 1px solid var(--border); padding: 36px 0 0; margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding-bottom: 24px;
}
.footer-grid h4 { margin: 0 0 12px; color: var(--neon); font-size: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--neon); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 14px 0;
  color: var(--muted); font-size: 12px; text-align: center;
}

/* ============== Admin Layout ============== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--bg-1); border-left: 1px solid var(--border); padding: 16px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side h3 { margin: 0 0 12px; color: var(--neon); }
.admin-side a {
  display: block; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px;
  color: #d0d0db; transition: .2s; font-size: 14px;
}
.admin-side a:hover, .admin-side a.active {
  background: var(--bg-3); color: var(--neon); border-right: 3px solid var(--neon);
}
.admin-main { padding: 24px; min-width: 0; }
.admin-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.admin-head h1 { margin: 0; font-size: 20px; }
.admin-toggle {
  display: none; background: var(--bg-3); border: 1px solid var(--border);
  color: #fff; padding: 6px 10px; border-radius: 8px;
  position: fixed; top: 10px; right: 10px; z-index: 100;
}

/* ============== Skeleton ============== */
@keyframes skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================
 *  RESPONSIVE — Mobile First
 * ========================================================== */

/* === Tablet (≤ 1024px) === */
@media (max-width: 1024px) {
  .archive-grid { grid-template-columns: 1fr; }
  .filter-side { position: static; top: auto; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { position: static; top: auto; }
  .single-hero { grid-template-columns: 180px 1fr; gap: 16px; }
  .hero-content h1 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side {
    position: fixed; right: -260px; top: 0; bottom: 0; width: 240px;
    z-index: 200; transition: right .3s; box-shadow: -8px 0 24px rgba(0,0,0,.5);
  }
  .admin-side.open { right: 0; }
  .admin-toggle { display: block; }
  .admin-main { padding: 60px 16px 24px; }
}

/* === Mobile (≤ 720px) === */
@media (max-width: 720px) {
  html, body { font-size: 13px; }
  .container { padding: 0 12px; }
  :root { --header-h: 56px; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; right: 0; left: 0;
    background: var(--bg-2); flex-direction: column;
    padding: 14px; border-bottom: 1px solid var(--border);
    margin: 0; gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: 0; }

  .nav-actions .btn { display: none; }
  .nav-actions .btn-neon, .nav-actions .btn-neon-outline { display: inline-flex; padding: 6px 12px; font-size: 12px; min-height: 32px; }
  .search-wrap input { width: 140px; font-size: 12px; padding: 6px 10px; min-height: 32px; }
  .search-results { width: 100vw; right: -40px; max-width: 100vw; }
  .brand-text { display: none; }

  .hero-slider { height: 280px; }
  .hero-content { right: 14px; bottom: 14px; padding-left: 14px; }
  .hero-content h1 { font-size: 20px; }
  .hero-content p { font-size: 12px; }

  .single-hero { grid-template-columns: 1fr; }
  .single-poster { max-width: 220px; margin: 0 auto; }
  .single-info h1 { font-size: 22px; text-align: center; }
  .single-info .meta-row { justify-content: center; }
  .single-actions { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .brand { justify-content: center; }

  .card-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-title { font-size: 12px; min-height: 32px; }
  .card-imdb, .card-type { font-size: 10px; padding: 2px 6px; }

  .slider-card { flex: 0 0 140px; width: 140px; }
  .slider-nav { width: 32px; height: 32px; font-size: 18px; }
  .slider-prev { right: 4px; }
  .slider-next { left: 4px; }

  .section-head h2 { font-size: 17px; }
  .panel { padding: 14px; }
  .panel h2 { font-size: 15px; }

  .filter-bar { flex-direction: column; }
  .filter-bar select, .filter-bar .form-control { max-width: none; width: 100%; }

  .episodes-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .episode-card { padding: 10px; }

  .media-cards { grid-template-columns: 1fr; gap: 12px; }
  .media-card-header { padding: 12px; }
  .quality-badge { font-size: 12px; padding: 5px 10px; }
  .play-row { padding: 12px; gap: 10px; }
  .pr-icon { flex: 0 0 38px; width: 38px; height: 38px; font-size: 17px; }
  .pr-label strong { font-size: 13px; }
  .pr-label small { font-size: 10px; }
  .players-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; }
  .player-mini-card { padding: 8px 4px; }
  .player-mini-card .pmc-icon { width: 32px; height: 32px; font-size: 16px; }
  .player-mini-card .pmc-name { font-size: 10px; }
  .episodes-grid { grid-template-columns: 1fr; }
  .play-row.platform-suggested::after { font-size: 9px; padding: 1px 5px; }

  .player-modal { padding: 0; align-items: stretch; }
  .player-modal-inner { max-height: 100vh; border-radius: 0; }
  #video-element { max-height: 70vh; }

  .floating-ad { max-width: calc(100vw - 24px); left: 12px; right: 12px; }

  .stat-card strong { font-size: 16px; }
  .table { font-size: 12px; min-width: 500px; }
  .table th, .table td { padding: 8px 10px; }

  .toast { min-width: 200px; font-size: 13px; padding: 10px 14px; }

  .load-more-btn { min-width: auto; width: 100%; padding: 12px; }

  /* Featured banner mobile */
  .featured-banner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .fb-poster {
    padding: 20px 20px 0;
    order: -1;
  }
  .fb-poster img { max-width: 150px; }
  .fb-imdb { top: 26px; left: auto; right: calc(50% + 55px); padding: 3px 8px; font-size: 11px; }
  .fb-info { padding: 16px 20px 20px; text-align: center; }
  .fb-badges { justify-content: center; }
  .fb-title { font-size: 20px; margin-bottom: 10px; }
  .fb-meta-row { justify-content: center; }
  .fb-meta-label { min-width: auto; }
  .fb-summary { font-size: 12px; -webkit-line-clamp: 3; margin-bottom: 12px; }
  .fb-actions { justify-content: center; }
  .fb-btn { flex: 1; justify-content: center; padding: 10px 14px; font-size: 12px; }
}

/* === Small Mobile (≤ 380px) === */
@media (max-width: 380px) {
  .card-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .search-wrap input { width: 100px; }
  .hero-slider { height: 240px; }
  .hero-content h1 { font-size: 18px; }
  .nav-bar { gap: 6px; padding: 8px 10px; }
}

/* === Smart TV / Large screens (≥ 1600px) === */
@media (min-width: 1600px) {
  .container { max-width: 1500px; }
  .card-row { grid-template-columns: repeat(6, 1fr); }
  .slider-card { flex: 0 0 200px; width: 200px; }
}

/* === Windows / Desktop optimization === */
@media (min-width: 1025px) and (hover: hover) {
  .card:hover .card-poster img { transform: scale(1.05); transition: .4s; }
  .card-poster img { transition: .3s; }
}

/* === High contrast / accessibility === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* === Print === */
@media print {
  .site-header, .site-footer, .floating-ad, .popup-ad-overlay, .nav-actions, .filter-side {
    display: none !important;
  }
}

/* ==========================================================
 *  ADMIN & DASHBOARD — Enhanced Mobile Responsive (v2)
 *  اضافه شده در آخرین آپدیت — بازنویسی UI موبایل
 * ========================================================== */

/* === بهبود Sidebar موبایل ادمین === */
@media (max-width: 1024px) {
  .admin-side {
    width: 280px;
    max-width: 85vw;
    padding: 20px 14px;
  }
  .admin-side::before {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: -1;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
  }
  .admin-side.open::before {
    opacity: 1; pointer-events: auto;
  }
  .admin-side a {
    padding: 12px 14px;
    font-size: 15px;
    min-height: 44px; /* touch-friendly */
    display: flex; align-items: center;
  }
  .admin-toggle {
    top: 12px; right: 12px;
    padding: 10px 14px;
    font-size: 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--neon), var(--neon-purple));
    color: white;
    border: 0;
    box-shadow: 0 4px 14px rgba(255,45,135,0.4);
    min-width: 44px; min-height: 44px;
  }
  .admin-main {
    padding: 68px 12px 24px !important;
  }
  .admin-head {
    padding: 12px 14px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .admin-head h1 {
    font-size: 17px;
  }
}

/* === Dashboard کاربر ریسپانسیو === */
@media (max-width: 1024px) {
  .dash-side {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 10px;
    margin-bottom: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .dash-side::-webkit-scrollbar { height: 4px; }
  .dash-side::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
  .dash-side h3 { display: none; }
  .dash-side a {
    white-space: nowrap;
    padding: 10px 14px;
    margin-bottom: 0;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 13px;
    min-height: 40px;
    display: flex; align-items: center;
    background: var(--bg-3);
  }
  .dash-side a.active {
    background: linear-gradient(135deg, var(--neon), var(--neon-purple));
    color: white;
  }
}

/* === Big Stats داشبورد ادمین — موبایل === */
@media (max-width: 720px) {
  .big-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .big-stat {
    padding: 14px 12px !important;
    border-radius: 12px !important;
  }
  .big-stat .value {
    font-size: 20px !important;
  }
  .big-stat .label {
    font-size: 11px !important;
  }
  .big-stat .icon {
    font-size: 18px !important;
    left: 10px; top: 10px;
  }
  .big-stat .delta {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }

  .quick-actions {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .qa-btn {
    padding: 12px 6px !important;
  }
  .qa-btn .emoji {
    font-size: 20px !important;
  }
  .qa-btn .txt {
    font-size: 10px !important;
  }
}

@media (max-width: 480px) {
  .big-stats {
    grid-template-columns: 1fr 1fr !important;
  }
  .quick-actions {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* === Stat Cards عمومی — موبایل === */
@media (max-width: 720px) {
  .stat-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .stat-card {
    padding: 10px !important;
    border-radius: 10px;
  }
  .stat-card span {
    font-size: 11px !important;
  }
  .stat-card strong {
    font-size: 14px !important;
  }
}
@media (max-width: 380px) {
  .stat-cards {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* === Tables — Wrap در جدول‌های داخل panel === */
.panel table, .panel .table {
  min-width: 100%;
}
@media (max-width: 900px) {
  .panel > table, .panel > .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* === Form های ادمین در موبایل === */
@media (max-width: 720px) {
  .form-group input,
  .form-group select,
  .form-group textarea,
  .form-control {
    font-size: 16px !important; /* جلوگیری از zoom خودکار iOS */
    padding: 12px !important;
    min-height: 44px;
  }
  .form-group label {
    font-size: 13px;
  }
  .btn {
    padding: 12px 18px;
    min-height: 44px;
    font-size: 14px;
  }
  .btn-sm {
    padding: 8px 12px;
    min-height: 36px;
    font-size: 12px;
  }
  /* Grid form های ادمین که 2-3 ستون هستند */
  .form-row,
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* === Tabs — قابل اسکرول افقی در موبایل === */
@media (max-width: 720px) {
  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a {
    white-space: nowrap;
    padding: 10px 14px !important;
    font-size: 13px;
    flex-shrink: 0;
  }
}

/* === Templates page — Grid 2 ستونه به 1 ستون === */
@media (max-width: 900px) {
  [style*="grid-template-columns:220px 1fr"],
  [style*="grid-template-columns: 220px 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* === Alert های داخل ادمین === */
@media (max-width: 720px) {
  .alert-success, .alert-error, .alert-warning, .alert-info,
  .alert-inline {
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 10px;
  }
  .alert-inline {
    flex-wrap: wrap;
  }
  .alert-inline a {
    margin-right: 0 !important;
    width: 100%;
    text-align: center;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    text-decoration: none;
  }
}

/* === Log rows در ادمین === */
@media (max-width: 720px) {
  .log-row-error, .log-row-warn, .log-row-failed {
    /* در موبایل جدول scroll افقی می‌شود */
  }
  .smtp-log, .email-view {
    max-height: 300px !important;
    font-size: 10px !important;
    padding: 10px !important;
  }
}

/* === Panel spacing در موبایل === */
@media (max-width: 720px) {
  .panel {
    padding: 12px !important;
    border-radius: 12px;
    margin-bottom: 12px;
  }
  .panel h2 {
    font-size: 15px !important;
    margin-top: 0;
  }
  .panel h3 {
    font-size: 14px !important;
  }
  .panel h4 {
    font-size: 13px !important;
  }
}

/* === Auth تب کلید API === */
@media (max-width: 720px) {
  #qrBox img {
    max-width: 200px !important;
  }
  #baseUrl, #apiKey {
    font-size: 11px !important;
    padding: 8px !important;
  }
}

/* === Sub-navigation در داشبورد === */
.dash-side .btn,
.dash-side .qa-btn {
  min-height: 44px;
}

/* === Dashboard grid داشبورد ادمین === */
@media (max-width: 1024px) {
  .dash-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* === Cards responsive === */
@media (max-width: 720px) {
  .card-row {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  }
}

/* === Touch feedback عمومی === */
@media (hover: none) {
  .btn:active {
    transform: scale(0.97);
  }
  .qa-btn:active {
    transform: scale(0.95);
  }
}

/* === Backup page grid === */
@media (max-width: 720px) {
  [style*="grid-template-columns:repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
  }
}

/* === Padding اصلی صفحه داشبورد کاربر در موبایل === */
@media (max-width: 720px) {
  .container {
    padding: 0 10px !important;
  }
  .dash-content {
    gap: 12px;
  }
}

/* === Overflow-x fix عمومی === */
body { overflow-x: hidden; }


/* ==========================================================
 *  AUTH PAGE — Full-page Login/Register (نسخه ۲۶)
 * ========================================================== */

.auth-page {
  min-height: calc(100vh - var(--header-h, 60px) - 100px);
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at top left, rgba(255,45,135,0.08), transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(168,85,247,0.08), transparent 50%);
}

.auth-container {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: linear-gradient(180deg, rgba(18,18,18,0.85), rgba(10,10,10,0.9));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5),
              0 0 0 1px rgba(168,85,247,0.15);
  animation: authIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Side (Brand) ===== */
.auth-side {
  padding: 40px 32px;
  background: linear-gradient(135deg, rgba(255,45,135,0.12), rgba(168,85,247,0.08));
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,45,135,0.15), transparent 70%);
  filter: blur(40px);
  animation: authOrb 12s ease-in-out infinite;
}
@keyframes authOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 40px); }
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: bold; color: #fff;
  margin-bottom: 24px;
}
.auth-side-logo .brand-mark {
  color: #FF2D87;
  font-size: 26px;
  filter: drop-shadow(0 0 8px rgba(255,45,135,0.5));
}
.auth-side-title {
  font-size: 24px; line-height: 1.6;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #FF2D87, #A855F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-side-sub {
  color: #9ca3af;
  line-height: 1.9;
  font-size: 14px;
  margin: 0 0 24px;
}
.auth-side-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-side-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d0d0db;
  font-size: 13px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}
.auth-side-features span {
  font-size: 18px;
  min-width: 24px;
}

/* ===== Panel (Form) ===== */
.auth-panel {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
  position: relative;
}
.auth-panel-head {
  text-align: center;
  margin-bottom: 24px;
}
.auth-panel-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  background: linear-gradient(135deg, #FF2D87, #A855F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-panel-head p {
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
}

/* ===== Steps ===== */
.auth-step { display: none; }
.auth-step.is-active { display: block; animation: authStepIn 0.3s ease-out; }
@keyframes authStepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== Back Button ===== */
.auth-back {
  background: transparent;
  border: 0;
  color: #9ca3af;
  cursor: pointer;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
  font-family: inherit;
  margin-bottom: 16px;
  transition: all 0.2s;
}
.auth-back:hover {
  background: rgba(255,255,255,0.05);
  color: #FF2D87;
}

/* ===== Alert Box ===== */
.auth-alert-box:empty { display: none; }
.auth-alert-box { margin-bottom: 14px; }
.auth-alert-box .alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  animation: authAlertIn 0.3s ease-out;
}
@keyframes authAlertIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Form ===== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Field ===== */
.auth-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #050505;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 2px 12px;
  transition: all 0.2s;
}
.auth-field:focus-within {
  border-color: #FF2D87;
  box-shadow: 0 0 0 3px rgba(255,45,135,0.15);
}
.auth-field .auth-icon {
  font-size: 15px;
  opacity: 0.7;
  flex-shrink: 0;
}
.auth-field input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #f5f5f5;
  padding: 12px 4px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  min-height: 44px;
  min-width: 0;
}
.auth-field input::placeholder { color: #6b7280; }

.auth-toggle-pwd {
  background: transparent;
  border: 0;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 14px;
  border-radius: 6px;
}
.auth-toggle-pwd:hover { color: #FF2D87; }

/* ===== Captcha Row ===== */
.auth-captcha-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.auth-captcha-row .auth-field { flex: 1; }
.auth-captcha-q {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,230,255,0.05);
  border: 1px solid rgba(0,230,255,0.15);
  border-radius: 10px;
  padding: 0 12px;
  font-weight: bold;
  color: #00e6ff;
  font-size: 14px;
  white-space: nowrap;
  min-height: 48px;
}
.auth-captcha-q button {
  background: transparent;
  border: 0;
  color: #9ca3af;
  cursor: pointer;
  font-size: 13px;
  transition: transform 0.3s;
  padding: 4px;
}
.auth-captcha-q button:hover {
  color: #FF2D87;
  transform: rotate(180deg);
}

/* ===== Button ===== */
.auth-btn {
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  min-height: 48px;
  margin-top: 4px;
}
.auth-btn-primary {
  background: linear-gradient(135deg, #FF2D87, #A855F7);
  color: white;
  box-shadow: 0 4px 14px rgba(255,45,135,0.3);
}
.auth-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,45,135,0.5);
}
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-spinner { display: none; animation: authSpin 1s linear infinite; }
.auth-btn.is-loading .auth-spinner { display: inline-block; }
.auth-btn.is-loading .auth-btn-text { display: none; }
@keyframes authSpin { to { transform: rotate(360deg); } }

/* ===== Foot Link ===== */
.auth-foot {
  text-align: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}
.auth-foot a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.auth-foot a:hover { color: #FF2D87; }

/* ===== OTP inputs ===== */
.auth-otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  direction: ltr;
  margin: 12px 0;
}
.auth-otp-inputs input {
  width: 50px; height: 56px;
  border: 2px solid rgba(255,255,255,0.08);
  background: #050505;
  color: #f5f5f5;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s;
  font-family: monospace;
}
.auth-otp-inputs input:focus {
  border-color: #FF2D87;
  box-shadow: 0 0 0 3px rgba(255,45,135,0.15);
  transform: scale(1.05);
}

/* ===== Resend ===== */
.auth-resend {
  text-align: center;
  margin-top: 8px;
  color: #6b7280;
  font-size: 13px;
}
.auth-link-btn {
  background: transparent;
  border: 0;
  color: #FF2D87;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  font-family: inherit;
  padding: 6px;
  margin-top: 6px;
}

/* ===== Success ===== */
.auth-success-anim {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 42px;
  font-weight: bold;
  margin: 0 auto 20px;
  animation: authSuccessPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 30px rgba(34,197,94,0.4);
}
@keyframes authSuccessPop {
  from { transform: scale(0) rotate(-180deg); }
  to { transform: scale(1) rotate(0); }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .auth-page { padding: 16px 12px; }
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .auth-side {
    padding: 24px 20px;
    border-left: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .auth-side-title { font-size: 18px; }
  .auth-side-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .auth-side-features li {
    font-size: 11px;
    padding: 8px 10px;
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
  .auth-panel {
    padding: 24px 20px;
    min-height: auto;
  }
  .auth-panel-head h2 { font-size: 19px; }
  .auth-captcha-row { flex-direction: column; }
  .auth-captcha-q { justify-content: center; padding: 10px; }
  .auth-otp-inputs input { width: 42px; height: 50px; font-size: 20px; }
}

@media (max-width: 380px) {
  .auth-side-features { grid-template-columns: 1fr; }
  .auth-otp-inputs { gap: 6px; }
  .auth-otp-inputs input { width: 40px; height: 48px; font-size: 18px; }
}

/* ==========================================================
 *  MOBILE-FIRST RESPONSIVE — Final Overrides (نسخه 27)
 *  تضمین ریسپانسیو تمام صفحات
 * ========================================================== */

/* === Overflow Prevention === */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* === Container Padding === */
@media (max-width: 720px) {
  .container {
    padding: 0 12px !important;
    max-width: 100%;
  }
}

/* === All Tables Responsive === */
@media (max-width: 900px) {
  table, .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    max-width: 100%;
  }
  table thead, .table thead { position: sticky; top: 0; z-index: 1; }
}

/* === All Grid Overrides for Mobile === */
@media (max-width: 720px) {
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  [style*="display:grid"] { gap: 10px !important; }
}

/* === Inputs — prevent iOS zoom === */
input, textarea, select {
  font-size: 16px !important;
  max-width: 100%;
}
@media (min-width: 768px) {
  input, textarea, select { font-size: 14px !important; }
}

/* === Buttons Touch-Friendly === */
.btn, button {
  min-height: 44px;
  min-width: 44px;
}
.btn-sm { min-height: 36px; }

/* === Panels === */
@media (max-width: 720px) {
  .panel { padding: 14px !important; border-radius: 12px; margin-bottom: 12px; }
  .panel h1 { font-size: 18px !important; }
  .panel h2 { font-size: 16px !important; }
  .panel h3 { font-size: 14px !important; }
}

/* === Cards Grid === */
@media (max-width: 720px) {
  .card-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}
@media (max-width: 400px) {
  .card-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
}

/* === Stat Cards === */
@media (max-width: 720px) {
  .stat-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .stat-card { padding: 10px !important; }
  .stat-card span { font-size: 11px !important; }
  .stat-card strong { font-size: 14px !important; }
}

/* === Big Stats (admin dashboard) === */
@media (max-width: 720px) {
  .big-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .big-stat { padding: 12px !important; }
  .big-stat .value { font-size: 18px !important; }
  .big-stat .label { font-size: 10px !important; }
  .big-stat .icon { font-size: 16px !important; left: 8px; top: 8px; }
  .big-stat .delta { font-size: 9px !important; padding: 1px 6px !important; }
}

/* === Quick Actions === */
@media (max-width: 720px) {
  .quick-actions {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .qa-btn { padding: 10px 4px !important; }
  .qa-btn .emoji { font-size: 18px !important; }
  .qa-btn .txt { font-size: 10px !important; }
}
@media (max-width: 400px) {
  .quick-actions { grid-template-columns: repeat(2, 1fr) !important; }
}

/* === Tabs (scroll-x) === */
.tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap !important;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .tabs a, .tabs button {
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
}

/* === Alerts === */
@media (max-width: 720px) {
  .alert, .alert-error, .alert-success, .alert-warning, .alert-info {
    padding: 10px 12px !important;
    font-size: 13px !important;
    border-radius: 8px;
  }
  .alert-inline {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  .alert-inline a {
    margin-right: 0 !important;
    width: 100%;
    text-align: center;
    padding: 6px;
  }
}

/* === Dashboard User === */
@media (max-width: 1024px) {
  .dash-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .dash-side {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
    padding: 10px !important;
    position: static !important;
    height: auto !important;
    margin-bottom: 12px;
    gap: 6px;
  }
  .dash-side::-webkit-scrollbar { display: none; }
  .dash-side h3 { display: none; }
  .dash-side a {
    white-space: nowrap;
    padding: 8px 14px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 13px;
    min-height: 40px;
    display: flex !important;
    align-items: center;
    background: var(--bg-3);
  }
  .dash-side a.active {
    background: linear-gradient(135deg, var(--neon), var(--neon-purple)) !important;
    color: white !important;
  }
}

/* === Admin Sidebar Mobile === */
@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side {
    position: fixed !important;
    right: -300px;
    top: 0; bottom: 0;
    width: 280px;
    max-width: 85vw;
    z-index: 1000;
    padding: 20px 14px !important;
    transition: right 0.3s ease;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.6);
  }
  .admin-side.open { right: 0; }
  .admin-side.open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: -1;
  }
  .admin-side a {
    padding: 12px 14px !important;
    font-size: 14px !important;
    min-height: 44px;
    display: flex !important;
    align-items: center;
  }
  .admin-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 12px; right: 12px;
    z-index: 999;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--neon), var(--neon-purple)) !important;
    color: white !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    box-shadow: 0 4px 14px rgba(255, 45, 135, 0.4);
  }
  .admin-main {
    padding: 68px 12px 20px !important;
  }
  .admin-head {
    padding: 12px !important;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .admin-head h1 { font-size: 16px !important; }
}

/* === Forms Mobile === */
@media (max-width: 720px) {
  .form-group { margin-bottom: 12px; }
  .form-group label { font-size: 13px; }
  .form-control {
    padding: 12px !important;
    min-height: 44px;
  }
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* === Header Mobile === */
@media (max-width: 720px) {
  .site-header {
    padding: 8px 0 !important;
  }
  .nav-bar {
    padding: 6px 10px !important;
    gap: 8px;
  }
  .brand-mark { font-size: 18px; }
  .brand-text {
    display: none;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-height: 36px;
  }
}

/* === Footer Mobile === */
@media (max-width: 720px) {
  .site-footer {
    padding: 20px 0 !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 20px;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    padding: 0;
  }
}

/* === Player Modal Mobile === */
@media (max-width: 720px) {
  .player-modal {
    padding: 0 !important;
    align-items: stretch !important;
  }
  .player-modal-inner {
    max-height: 100vh;
    border-radius: 0;
    width: 100%;
  }
}

/* === Auth Page Mobile === */
@media (max-width: 768px) {
  .auth-container {
    grid-template-columns: 1fr !important;
    max-width: 460px;
    margin: 0 auto;
  }
  .auth-side {
    padding: 24px 20px !important;
    border-left: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .auth-side-title { font-size: 18px !important; }
  .auth-side-features {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .auth-side-features li {
    font-size: 11px !important;
    padding: 8px !important;
    flex-direction: column !important;
    text-align: center;
  }
  .auth-panel {
    padding: 20px !important;
    min-height: auto !important;
  }
  .auth-otp-inputs input {
    width: 44px !important;
    height: 50px !important;
    font-size: 20px !important;
  }
}

/* === Details Page === */
@media (max-width: 720px) {
  .single-hero {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .single-poster {
    max-width: 200px;
    margin: 0 auto;
  }
  .single-info h1 {
    font-size: 20px !important;
    text-align: center;
  }
  .single-info .meta-row { justify-content: center; }
  .single-actions { justify-content: center; }
}

/* === Touch Feedback === */
@media (hover: none) {
  .btn:active, button:active, a.btn:active {
    transform: scale(0.97);
    transition: transform 0.1s;
  }
}

/* === Safe Area (Notched devices) === */
@supports (padding: max(0px)) {
  .site-header, .admin-head {
    padding-top: max(env(safe-area-inset-top), 8px);
  }
  .site-footer {
    padding-bottom: max(env(safe-area-inset-bottom), 8px);
  }
}

/* ==========================================================
 *  GLOBAL ANIMATIONS — نسخه ۲۸
 *  انیمیشن حرفه‌ای برای همه اجزاء
 * ========================================================== */

/* === Fade In === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === Scale === */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

/* === Slide === */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* === Special === */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 45, 135, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 45, 135, 0.6); }
}

/* === Auto Apply Animation Classes === */
.animate-fadeIn { animation: fadeIn 0.5s ease-out; }
.animate-fadeInUp { animation: fadeInUp 0.5s ease-out; }
.animate-fadeInDown { animation: fadeInDown 0.5s ease-out; }
.animate-fadeInLeft { animation: fadeInLeft 0.5s ease-out; }
.animate-fadeInRight { animation: fadeInRight 0.5s ease-out; }
.animate-scaleIn { animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.animate-bounceIn { animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.animate-slideUp { animation: slideUp 0.5s ease-out; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* === Auto Animation on Panels === */
.panel { animation: fadeInUp 0.5s ease-out backwards; }
.panel:nth-child(2) { animation-delay: 0.1s; }
.panel:nth-child(3) { animation-delay: 0.2s; }
.panel:nth-child(4) { animation-delay: 0.3s; }

/* === Cards Hover === */
.card, .plan-card, .stat-card, .big-stat, .qa-btn {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.card:hover, .plan-card:hover, .stat-card:hover, .big-stat:hover, .qa-btn:hover {
  transform: translateY(-3px);
}

/* === Buttons Ripple Effect === */
.btn, button {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:active, button:active {
  transform: scale(0.97);
}

/* === Table Rows === */
.table tbody tr {
  transition: background-color 0.2s, transform 0.2s;
  animation: fadeInUp 0.3s ease-out backwards;
}
.table tbody tr:nth-child(1) { animation-delay: 0.02s; }
.table tbody tr:nth-child(2) { animation-delay: 0.04s; }
.table tbody tr:nth-child(3) { animation-delay: 0.06s; }
.table tbody tr:nth-child(4) { animation-delay: 0.08s; }
.table tbody tr:nth-child(5) { animation-delay: 0.10s; }

/* === Skeleton Loading === */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* === Demo Banner === */
.demo-banner {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: white;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInDown 0.5s ease-out;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}
.demo-banner .demo-badge {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 10px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 11px;
  animation: pulse 2s infinite;
}
.demo-banner a {
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}
.demo-banner a:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* === Loading Spinner === */
.loader {
  width: 40px; height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #FF2D87;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}
.loader-sm { width: 20px; height: 20px; border-width: 2px; }

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
