/* ============================================================
   فیلمینو — استایل اصلی (RTL، تم تیره)
   ============================================================ */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900; font-display: swap;
}

:root {
  --bg:        #0a0a0f;
  --bg-soft:   #101018;
  --card:      #16161f;
  --card-2:    #1d1d2a;
  --line:      #26263a;
  --text:      #f2f2f5;
  --muted:     #9a9aac;
  --accent:    #ff1e56;
  --accent-2:  #ff7a45;
  --green:     #16a34a;
  --amber:     #f59e0b;
  --grad:      linear-gradient(135deg, #ff1e56 0%, #ff7a45 100%);
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 10px 40px rgba(0,0,0,.45);
  --nav-h:     68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c2c40; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a52; }

::selection { background: rgba(255,30,86,.4); }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
  transition: all .2s ease; white-space: nowrap; user-select: none;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(255,30,86,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,30,86,.45); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { border: 1.5px solid var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: #7f1d1d; color: #fecaca; }
.btn-danger:hover { background: #991b1b; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 32px; font-size: 17px; border-radius: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--muted);
  font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all .18s;
}
.chip:hover { color: var(--text); border-color: #3a3a55; }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }

.badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  padding: 3px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 700;
  color: #fff; background: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.badge.free   { background: var(--green); }
.badge.soon   { background: var(--amber); color: #1a1205; }
.badge.kids   { background: #7c3aed; }
.badge.online { background: #0ea5e9; }

/* ---------- نوبار ---------- */
#navbar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 900; height: var(--nav-h);
  display: flex; align-items: center; gap: 22px; padding: 0 28px;
  background: linear-gradient(180deg, rgba(10,10,15,.92), rgba(10,10,15,0));
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled, body.player-open #navbar { background: rgba(10,10,15,.97); box-shadow: 0 4px 24px rgba(0,0,0,.4); backdrop-filter: blur(10px); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; }
.nav-logo img { width: 38px; height: 38px; border-radius: 11px; }
.nav-logo span b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; align-items: center; flex: 1; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; color: var(--muted);
  font-weight: 500; font-size: 15px; transition: all .18s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-links a.active { color: #fff; background: rgba(255,30,86,.18); }
.nav-links a.kids-link.active { background: rgba(124,58,237,.25); }

.nav-search { position: relative; }
.nav-search .search-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07); border: 1px solid transparent;
  border-radius: 12px; padding: 8px 14px; transition: all .25s; width: 210px;
}
.nav-search .search-box:focus-within { width: 300px; border-color: var(--accent); background: rgba(255,255,255,.1); }
.nav-search input { background: none; border: none; outline: none; color: var(--text); width: 100%; font-size: 14px; }
.nav-search input::placeholder { color: var(--muted); }
.nav-search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; right: -60px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; max-height: 420px; overflow-y: auto; display: none;
}
.search-dropdown.open { display: block; }
.search-dropdown .sd-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; cursor: pointer; }
.search-dropdown .sd-item:hover { background: var(--card-2); }
.search-dropdown .sd-item img { width: 42px; height: 63px; border-radius: 8px; object-fit: cover; }
.search-dropdown .sd-title { font-size: 14px; font-weight: 700; }
.search-dropdown .sd-meta { font-size: 12px; color: var(--muted); }
.search-dropdown .sd-head { font-size: 12px; color: var(--muted); padding: 6px 8px 2px; font-weight: 700; }

.nav-side { display: flex; align-items: center; gap: 12px; }
.nav-avatar {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; border: 2px solid transparent; transition: border-color .2s;
}
.nav-avatar:hover { border-color: var(--accent); }
.avatar-menu {
  position: absolute; top: calc(var(--nav-h) - 6px); left: 20px; z-index: 950;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 230px; padding: 8px; display: none;
}
.avatar-menu.open { display: block; }
.avatar-menu .am-head { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.avatar-menu a, .avatar-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--text); text-align: right;
}
.avatar-menu a:hover, .avatar-menu button:hover { background: var(--card-2); }
.avatar-menu svg { width: 18px; height: 18px; color: var(--muted); }
.avatar-menu .am-danger { color: #fca5a5; }
.avatar-menu .am-danger svg { color: #fca5a5; }

.hamburger { display: none; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; background: rgba(255,255,255,.07); }
.hamburger svg { width: 22px; height: 22px; }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.6); display: none;
}
.mobile-drawer.open { display: block; }
.mobile-drawer .md-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: var(--bg-soft); padding: 22px; overflow-y: auto; animation: slideIn .28s ease;
}
.mobile-drawer .md-panel a { display: block; padding: 13px 12px; border-radius: 12px; font-weight: 500; }
.mobile-drawer .md-panel a:hover { background: var(--card); }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ---------- صفحه اصلی: هیرو ---------- */
#view { min-height: 60vh; padding-top: 0; }
.hero {
  position: relative; height: clamp(440px, 72vh, 640px); overflow: hidden; margin-bottom: 12px;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide .hs-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide .hs-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,15,.25) 0%, rgba(10,10,15,.55) 45%, rgba(10,10,15,.95) 80%),
              linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}
.hero-slide .hs-content {
  position: absolute; bottom: 12%; right: 6%; max-width: 560px; z-index: 2;
  animation: heroIn .7s ease;
}
@keyframes heroIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.hs-badges { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.hs-title { font-size: clamp(30px, 4.4vw, 54px); font-weight: 900; line-height: 1.35; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.hs-meta { display: flex; gap: 14px; align-items: center; margin: 12px 0; color: var(--muted); font-size: 14.5px; flex-wrap: wrap; }
.hs-meta .rate { color: #fbbf24; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.hs-synopsis { color: #d5d5e0; font-size: 15px; line-height: 2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 26px; left: 6%; display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.3); transition: all .25s; }
.hero-dots button.active { background: var(--accent); width: 28px; }
.countdown-pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.4); color: #fcd34d; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
}
.countdown-pill b { font-variant-numeric: tabular-nums; }

/* ---------- ردیف‌ها و کارت‌ها ---------- */
.row-section { padding: 26px 0 6px; }
.row-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4%; margin-bottom: 14px; }
.row-head h2 { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.row-head h2::before { content: ''; width: 5px; height: 24px; background: var(--grad); border-radius: 4px; }
.row-head a { color: var(--muted); font-size: 13.5px; font-weight: 500; transition: color .2s; }
.row-head a:hover { color: var(--accent); }

.rail-wrap { position: relative; }
.rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
  padding: 8px 4% 22px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-arrow {
  position: absolute; top: 0; bottom: 22px; width: 56px; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, transparent, rgba(10,10,15,.85));
  opacity: 0; transition: opacity .25s; color: #fff;
}
.rail-arrow svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.rail-wrap:hover .rail-arrow { opacity: 1; }
.rail-arrow.prev { left: 0; background: linear-gradient(90deg, rgba(10,10,15,.85), transparent); }
.rail-arrow.next { right: 0; }
.rail-arrow.next svg { transform: rotate(180deg); }

.card { width: 190px; flex-shrink: 0; position: relative; cursor: pointer; }
.card.wide { width: 300px; }
.card-poster {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 2/3; background: var(--card); transition: transform .25s ease, box-shadow .25s;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.card.wide .card-poster { aspect-ratio: 16/9; }
.card-poster img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-poster { transform: scale(1.05); box-shadow: 0 14px 40px rgba(0,0,0,.55); z-index: 4; }
.card-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px; gap: 6px; background: linear-gradient(0deg, rgba(5,5,10,.92) 0%, transparent 55%);
  opacity: 0; transition: opacity .25s;
}
.card:hover .card-overlay { opacity: 1; }
.card-overlay .co-title { font-size: 14px; font-weight: 700; line-height: 1.6; }
.card-overlay .co-meta { font-size: 11.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.card-overlay .co-actions { display: flex; gap: 8px; margin-top: 4px; }
.co-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 4px; border-radius: 10px; font-size: 12.5px; font-weight: 700; transition: all .18s;
}
.co-btn.play { background: var(--grad); color: #fff; }
.co-btn.plus { background: rgba(255,255,255,.14); color: #fff; flex: 0 0 38px; }
.co-btn.plus:hover { background: rgba(255,255,255,.25); }
.co-btn svg { width: 16px; height: 16px; }
.card-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: rgba(255,255,255,.18); z-index: 3; }
.card-progress i { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.card-watch-label {
  position: absolute; top: 10px; left: 10px; z-index: 3; font-size: 11px; font-weight: 700;
  background: rgba(0,0,0,.65); padding: 3px 9px; border-radius: 8px; backdrop-filter: blur(4px);
}
.card-title-line { margin-top: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card:hover .card-title-line { color: var(--text); }

/* ---------- اسکلت لودینگ ---------- */
.skel { background: linear-gradient(100deg, var(--card) 40%, var(--card-2) 50%, var(--card) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-card { width: 190px; aspect-ratio: 2/3; flex-shrink: 0; }
.skel-row { display: flex; gap: 14px; padding: 8px 4%; }

/* ---------- صفحات فهرست (مرور) ---------- */
.page { padding: calc(var(--nav-h) + 26px) 4% 60px; max-width: 1600px; margin: 0 auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 27px; font-weight: 900; display: flex; align-items: center; gap: 12px; }
.page-head h1 .count-pill { font-size: 13px; color: var(--muted); font-weight: 500; background: var(--card); padding: 4px 14px; border-radius: 999px; }
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; padding: 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-bar select {
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 14px; font-size: 14px; outline: none; cursor: pointer;
}
.genre-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px 16px;
}
.grid .card { width: 100%; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 36px; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state svg { width: 72px; height: 72px; opacity: .35; margin: 0 auto 18px; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }

/* ---------- صفحه جزئیات ---------- */
.detail-hero { position: relative; min-height: 560px; padding-top: var(--nav-h); }
.detail-hero .dh-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.detail-hero .dh-shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 4%, rgba(10,10,15,.55) 45%, rgba(10,10,15,.35) 100%), linear-gradient(270deg, transparent 55%, rgba(10,10,15,.85)); }
.detail-content { position: relative; z-index: 2; display: flex; gap: 34px; padding: 60px 5% 40px; max-width: 1500px; margin: 0 auto; }
.detail-poster { width: 250px; flex-shrink: 0; }
.detail-poster img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; }
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 900; line-height: 1.4; }
.detail-info .di-en { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.meta-line { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.meta-pill { font-size: 13px; color: #d7d7e2; background: rgba(255,255,255,.08); padding: 4px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); }
.meta-pill.age { border: 1px solid var(--muted); }
.meta-pill.rate { color: #fbbf24; font-weight: 700; }
.meta-pill a:hover { color: var(--accent); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 13px; background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center; transition: all .2s; border: 1px solid transparent;
}
.icon-btn:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.icon-btn.on { background: var(--grad); }
.icon-btn svg { width: 22px; height: 22px; }
.detail-synopsis { color: #d2d2dd; font-size: 15.5px; line-height: 2.1; max-width: 760px; }
.detail-credits { margin-top: 18px; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.detail-credits b { color: var(--text); font-weight: 700; }

.detail-body { max-width: 1500px; margin: 0 auto; padding: 10px 5% 70px; }
.section-title { font-size: 21px; font-weight: 800; margin: 38px 0 18px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 5px; height: 22px; background: var(--grad); border-radius: 4px; }

.cast-list { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.cast-list::-webkit-scrollbar { display: none; }
.cast-item { text-align: center; width: 96px; flex-shrink: 0; }
.cast-avatar {
  width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--card-2); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  transition: border-color .2s;
}
.cast-item:hover .cast-avatar { border-color: var(--accent); }
.cast-name { font-size: 13px; font-weight: 700; line-height: 1.7; }
.cast-role { font-size: 11.5px; color: var(--muted); }

/* فصل و قسمت */
.season-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.episode-list { display: grid; gap: 12px; }
.episode-card {
  display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; cursor: pointer; transition: all .2s;
}
.episode-card:hover { border-color: #3a3a55; background: var(--card-2); transform: translateX(-4px); }
.ep-thumb { position: relative; width: 168px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--card-2); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.ep-thumb .ep-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); opacity: 0; transition: opacity .2s;
}
.episode-card:hover .ep-play { opacity: 1; }
.ep-play span { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; }
.ep-play svg { width: 20px; height: 20px; margin-right: -2px; }
.ep-num { font-size: 12px; color: var(--muted); font-weight: 700; }
.ep-info { flex: 1; min-width: 0; }
.ep-info h4 { font-size: 15.5px; font-weight: 700; margin: 2px 0; }
.ep-info p { font-size: 13px; color: var(--muted); line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 6px; align-items: center; }
.ep-lock svg { width: 16px; height: 16px; color: var(--amber); }
.ep-progress { width: 90px; height: 5px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.ep-progress i { display: block; height: 100%; background: var(--accent); }

/* نظرات */
.comment-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 22px; }
.comment-form textarea {
  width: 100%; min-height: 92px; background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; resize: vertical; outline: none;
}
.comment-form textarea:focus { border-color: var(--accent); }
.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.star-rate { display: flex; align-items: center; gap: 3px; direction: ltr; }
.star-rate button { font-size: 21px; color: #3a3a50; transition: transform .12s, color .12s; line-height: 1; }
.star-rate button.on { color: #fbbf24; }
.star-rate button:hover { transform: scale(1.25); }
.star-rate .sr-label { font-size: 12.5px; color: var(--muted); margin-right: 8px; direction: rtl; }

.comment-list { display: grid; gap: 14px; }
.comment-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.cc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cc-avatar { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.cc-name { font-weight: 700; font-size: 14.5px; }
.cc-date { font-size: 12px; color: var(--muted); }
.cc-rating { margin-right: auto; color: #fbbf24; font-size: 13px; font-weight: 700; background: rgba(251,191,36,.1); padding: 3px 10px; border-radius: 999px; }
.cc-text { font-size: 14.5px; color: #d5d5e0; line-height: 2; }
.cc-actions { display: flex; gap: 16px; margin-top: 10px; }
.cc-actions button { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.cc-actions button:hover { color: var(--accent); }
.cc-actions svg { width: 15px; height: 15px; }
.cc-replies { margin-top: 14px; padding-right: 18px; border-right: 2px solid var(--line); display: grid; gap: 12px; }
.cc-replies .comment-card { background: var(--bg-soft); }
.reply-form { display: flex; gap: 10px; margin-top: 12px; }
.reply-form input { flex: 1; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; color: var(--text); font-size: 13.5px; outline: none; }
.reply-form input:focus { border-color: var(--accent); }

/* ---------- پخش‌کننده ---------- */
.watch-page { position: fixed; inset: 0; z-index: 1200; background: #000; }
.watch-page video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; transition: opacity .3s; }
.player-ui.hidden { opacity: 0; pointer-events: none; }
.player-top {
  display: flex; align-items: center; gap: 16px; padding: 20px 26px;
  background: linear-gradient(180deg, rgba(0,0,0,.75), transparent);
}
.player-top .pt-back { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.player-top .pt-back:hover { background: rgba(255,255,255,.22); }
.player-top .pt-back svg { width: 22px; height: 22px; }
.pt-title { font-weight: 800; font-size: 17px; }
.pt-sub { font-size: 13px; color: #c9c9d4; }
.pt-live { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 8px; }
.pt-live i { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.player-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 60px; }
.pc-btn { width: 74px; height: 74px; border-radius: 50%; background: rgba(20,20,28,.55); display: flex; align-items: center; justify-content: center; transition: all .2s; backdrop-filter: blur(4px); }
.pc-btn:hover { background: rgba(255,255,255,.16); transform: scale(1.08); }
.pc-btn.main { width: 96px; height: 96px; background: rgba(255,30,86,.9); }
.pc-btn.main:hover { background: var(--accent); }
.pc-btn svg { width: 34px; height: 34px; }
.pc-btn.main svg { width: 42px; height: 42px; }

.player-bottom { background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); padding: 30px 26px 18px; }
.seek-row { display: flex; align-items: center; gap: 14px; }
.seek-wrap { flex: 1; position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; }
.seek-bg { position: absolute; left: 0; right: 0; height: 5px; background: rgba(255,255,255,.22); border-radius: 99px; overflow: visible; }
.seek-buffer { position: absolute; top: 0; bottom: 0; right: 0; background: rgba(255,255,255,.35); border-radius: 99px; width: 0; }
.seek-fill { position: absolute; top: 0; bottom: 0; right: 0; background: var(--grad); border-radius: 99px; width: 0; }
.seek-knob {
  position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #fff;
  transform: translateX(50%); right: 0; opacity: 0; transition: opacity .2s; box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.seek-wrap:hover .seek-knob { opacity: 1; }
.seek-wrap:hover .seek-bg { height: 7px; }
.time-label { font-size: 12.5px; color: #d7d7e2; font-variant-numeric: tabular-nums; min-width: 46px; text-align: center; direction: ltr; }
.ctrl-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ctrl-btn { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #e8e8f0; transition: background .2s; position: relative; }
.ctrl-btn:hover { background: rgba(255,255,255,.14); }
.ctrl-btn svg { width: 23px; height: 23px; }
.ctrl-btn.on { color: var(--accent); }
.ctrl-spacer { flex: 1; }
.volume-wrap { display: flex; align-items: center; gap: 4px; }
.volume-slider { width: 0; transition: width .25s; overflow: hidden; display: flex; align-items: center; }
.volume-wrap:hover .volume-slider { width: 90px; }
.volume-slider input { width: 86px; accent-color: var(--accent); cursor: pointer; }
.ctrl-menu { position: relative; }
.ctrl-menu .cm-panel {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: rgba(16,16,24,.97); border: 1px solid var(--line); border-radius: 12px;
  min-width: 160px; padding: 6px; display: none; box-shadow: var(--shadow);
}
.ctrl-menu.open .cm-panel { display: block; }
.cm-panel button { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 9px 13px; border-radius: 9px; font-size: 13.5px; color: #ddd; }
.cm-panel button:hover { background: rgba(255,255,255,.1); }
.cm-panel button.sel { color: var(--accent); font-weight: 700; }
.cm-panel .cm-head { font-size: 11.5px; color: var(--muted); padding: 6px 13px; font-weight: 700; }

.next-overlay {
  position: absolute; bottom: 110px; left: 26px; z-index: 30;
  background: rgba(16,16,24,.94); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; display: none; gap: 16px; align-items: center; box-shadow: var(--shadow);
  animation: heroIn .4s ease; max-width: 420px;
}
.next-overlay.show { display: flex; }
.next-overlay .no-count {
  width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(var(--accent) 0deg, rgba(255,255,255,.15) 0deg);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; flex-shrink: 0; position: relative;
}
.next-overlay .no-count::after { content: ''; position: absolute; inset: 5px; background: #14141d; border-radius: 50%; }
.next-overlay .no-count b { position: relative; z-index: 1; }
.no-text small { color: var(--muted); font-size: 12.5px; }
.no-text h4 { font-size: 15.5px; font-weight: 800; margin: 2px 0 8px; }
.no-text .btn { padding: 6px 16px; font-size: 13px; }

.player-big-msg {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(5,5,10,.94); z-index: 40; gap: 14px; text-align: center; padding: 20px;
}
.player-big-msg h2 { font-size: 26px; }
.player-big-msg p { color: var(--muted); max-width: 480px; }

.ep-rail {
  position: absolute; top: 0; bottom: 0; right: -380px; width: 380px; z-index: 35;
  background: rgba(12,12,18,.97); border-left: 1px solid var(--line);
  transition: right .3s ease; display: flex; flex-direction: column;
}
.ep-rail.open { right: 0; }
.ep-rail-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ep-rail-head h3 { font-size: 16.5px; }
.ep-rail-body { overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; }
.ep-rail-item { display: flex; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; align-items: center; }
.ep-rail-item:hover { background: rgba(255,255,255,.07); }
.ep-rail-item.current { background: rgba(255,30,86,.16); outline: 1px solid rgba(255,30,86,.4); }
.ep-rail-item img { width: 92px; aspect-ratio: 16/9; border-radius: 8px; object-fit: cover; }
.ep-rail-item h5 { font-size: 13.5px; font-weight: 700; }
.ep-rail-item small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 720px) { .ep-rail { width: min(340px, 92vw); right: -100%; } }

/* ---------- احراز هویت ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 30px) 20px 60px; position: relative; }
.auth-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 20%, rgba(255,30,86,.14), transparent 55%), radial-gradient(ellipse at 20% 80%, rgba(109,40,217,.12), transparent 55%); }
.auth-card { position: relative; width: min(430px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 36px 32px; box-shadow: var(--shadow); }
.auth-card .logo-big { width: 62px; height: 62px; margin: 0 auto 14px; }
.auth-card h1 { text-align: center; font-size: 23px; font-weight: 900; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: #cfcfda; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 15px; color: var(--text); font-size: 15px; outline: none; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field input[dir="ltr"] { text-align: left; direction: ltr; font-variant-numeric: tabular-nums; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--accent); font-weight: 700; }
.demo-btns { display: flex; gap: 10px; margin-top: 20px; }
.demo-btns .btn { flex: 1; font-size: 13px; }

/* ---------- پروفایل‌ها ---------- */
.profiles-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 40px) 20px 60px; gap: 34px; }
.profiles-page h1 { font-size: clamp(22px, 3.4vw, 34px); font-weight: 900; }
.profiles-grid { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.profile-card { text-align: center; cursor: pointer; position: relative; }
.profile-ava {
  width: clamp(96px, 14vw, 140px); height: clamp(96px, 14vw, 140px); border-radius: 26px;
  display: flex; align-items: center; justify-content: center; font-size: clamp(44px, 6vw, 64px);
  border: 3px solid transparent; transition: all .22s; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.profile-card:hover .profile-ava { border-color: #fff; transform: scale(1.06); }
.profile-name { margin-top: 12px; font-weight: 700; color: var(--muted); font-size: 15px; }
.profile-card:hover .profile-name { color: #fff; }
.profile-edit {
  position: absolute; top: -8px; left: -8px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--card-2); border: 1px solid var(--line); display: none; align-items: center; justify-content: center;
}
.profile-card:hover .profile-edit { display: flex; }
.profile-edit svg { width: 16px; height: 16px; }
.profile-add .profile-ava { background: var(--card); border: 3px dashed var(--line); color: var(--muted); font-size: 52px; }
.emoji-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.emoji-picker button { font-size: 24px; padding: 6px; border-radius: 10px; border: 2px solid transparent; }
.emoji-picker button.sel { border-color: var(--accent); background: rgba(255,30,86,.12); }
.color-picker { display: flex; gap: 8px; margin-top: 10px; }
.color-picker button { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid transparent; }
.color-picker button.sel { border-color: #fff; transform: scale(1.12); }

/* ---------- پنل کاربری ---------- */
.panel-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; max-width: 1400px; margin: 0 auto; }
.panel-side { display: grid; gap: 6px; align-content: start; position: sticky; top: calc(var(--nav-h) + 24px); }
.panel-side a {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 13px;
  color: var(--muted); font-weight: 600; font-size: 14.5px; transition: all .18s; border: 1px solid transparent;
}
.panel-side a:hover { color: var(--text); background: var(--card); }
.panel-side a.active { color: #fff; background: var(--card); border-color: var(--line); }
.panel-side a.active svg { color: var(--accent); }
.panel-side svg { width: 20px; height: 20px; }
.panel-main { min-width: 0; }
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.sub-status { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sub-icon { width: 60px; height: 60px; border-radius: 17px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.sub-icon.off { background: var(--card-2); }
.sub-info { flex: 1; min-width: 200px; }
.sub-info h4 { font-size: 16px; font-weight: 800; }
.sub-info p { font-size: 13px; color: var(--muted); }
.progress-line { height: 8px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress-line i { display: block; height: 100%; background: var(--grad); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.stat-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 13px; padding: 16px; text-align: center; }
.stat-box b { display: block; font-size: 24px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-box span { font-size: 12.5px; color: var(--muted); }
.hist-item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 13px; background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 10px; }
.hist-item img { width: 74px; aspect-ratio: 2/3; border-radius: 9px; object-fit: cover; }
.hist-info { flex: 1; min-width: 0; }
.hist-info h4 { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-info small { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: right; padding: 11px 13px; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; }
.tbl td { padding: 11px 13px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.tbl tr:hover td { background: rgba(255,255,255,.03); }
.tbl .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-ok { color: #4ade80; background: rgba(22,163,74,.12); padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-no { color: #f87171; background: rgba(220,38,38,.12); padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-mute { color: var(--muted); background: var(--card-2); padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.switch { position: relative; width: 44px; height: 24px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--card-2); border-radius: 99px; transition: .25s; border: 1px solid var(--line); }
.switch .slider::before { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); top: 3px; right: 4px; transition: .25s; }
.switch input:checked + .slider { background: var(--grad); border-color: transparent; }
.switch input:checked + .slider::before { transform: translateX(-19px); background: #fff; }

/* ---------- پلن‌ها ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1200px; margin: 30px auto 0; }
.plan-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 28px 24px; position: relative; transition: all .25s; display: flex; flex-direction: column; }
.plan-card:hover { transform: translateY(-6px); border-color: #3a3a55; box-shadow: var(--shadow); }
.plan-card.popular { border-color: var(--accent); background: linear-gradient(180deg, rgba(255,30,86,.08), var(--card) 40%); }
.plan-popular-tag { position: absolute; top: -14px; right: 24px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 16px; border-radius: 999px; box-shadow: 0 4px 14px rgba(255,30,86,.4); }
.plan-name { font-size: 17px; font-weight: 800; }
.plan-price { margin: 14px 0 4px; font-size: 31px; font-weight: 900; }
.plan-price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan-old { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.plan-feats { margin: 18px 0 22px; display: grid; gap: 9px; flex: 1; }
.plan-feats li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: #cfcfda; }
.plan-feats svg { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; margin-top: 4px; }

/* ---------- پخش زنده ---------- */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.live-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; transition: all .25s; position: relative; background: var(--card); }
.live-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.live-thumb { aspect-ratio: 16/9; position: relative; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.live-thumb .lt-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 60%); }
.live-badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800; padding: 4px 11px; border-radius: 8px; display: flex; gap: 6px; align-items: center; }
.live-badge i { width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: blink 1.2s infinite; }
.live-info { padding: 15px 17px; }
.live-info h3 { font-size: 16px; font-weight: 800; }
.live-info p { font-size: 13px; color: var(--muted); }
.schedule-list { margin-top: 12px; display: grid; gap: 7px; }
.schedule-list .sch { display: flex; gap: 12px; font-size: 13px; padding: 8px 12px; background: var(--bg-soft); border-radius: 10px; border: 1px solid var(--line); }
.schedule-list .sch b { color: var(--accent); font-variant-numeric: tabular-nums; }
.live-player { margin-bottom: 30px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; position: relative; aspect-ratio: 21/9; }
.live-player video { width: 100%; height: 100%; object-fit: cover; }
.live-player .lp-info { position: absolute; top: 16px; right: 18px; display: flex; gap: 12px; align-items: center; }

/* ---------- مودال / توست ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 1400; background: rgba(4,4,8,.78); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(5px); animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto; padding: 26px;
  box-shadow: var(--shadow); animation: modalIn .28s ease; position: relative;
}
.modal-box.wide { width: min(860px, 100%); }
@keyframes modalIn { from { transform: translateY(26px) scale(.97); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { font-size: 19px; font-weight: 800; }
.modal-close { width: 38px; height: 38px; border-radius: 11px; background: var(--card-2); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.modal-close:hover { background: #2c2c40; }
.modal-close svg { width: 18px; height: 18px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-start; }
.trailer-video { width: 100%; aspect-ratio: 16/9; border-radius: 14px; background: #000; }

#toast-wrap { position: fixed; bottom: 26px; left: 26px; z-index: 1600; display: grid; gap: 10px; max-width: min(380px, 92vw); }
.toast {
  background: var(--card-2); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  padding: 13px 18px; border-radius: 13px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow);
  animation: toastIn .3s ease; display: flex; gap: 10px; align-items: center;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: #dc2626; }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(20px); opacity: 0; } }

/* ---------- صفحه‌های استاتیک ---------- */
.static-page { max-width: 860px; margin: 0 auto; }
.static-page h1 { font-size: 29px; font-weight: 900; margin-bottom: 8px; }
.static-page .sub { color: var(--muted); margin-bottom: 28px; }
.static-page h2 { font-size: 19px; margin: 26px 0 10px; }
.static-page p { color: #d2d2dd; line-height: 2.15; margin-bottom: 12px; }
.static-page ul { list-style: disc; padding-right: 22px; color: #d2d2dd; line-height: 2.2; }
.tech-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.tech-badges span { background: var(--card); border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; font-weight: 700; font-size: 15px; text-align: right; }
.faq-q svg { width: 18px; height: 18px; transition: transform .25s; color: var(--muted); }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 20px 17px; color: var(--muted); font-size: 14px; line-height: 2.1; }

/* ---------- فوتر ---------- */
#footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 60px; padding: 44px 5% 26px; }
body.player-open #footer, body.hide-chrome #footer, body.hide-chrome #navbar { display: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; max-width: 1400px; margin: 0 auto 30px; }
.footer-grid h4 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--muted); font-size: 13.5px; padding: 5px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--accent); }
.footer-about { color: var(--muted); font-size: 13.5px; line-height: 2.1; max-width: 420px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; margin-bottom: 12px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; background: var(--card); display: flex; align-items: center; justify-content: center; transition: all .2s; border: 1px solid var(--line); }
.footer-social a:hover { background: var(--grad); border-color: transparent; transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; text-align: center; color: var(--muted); font-size: 12.5px; max-width: 1400px; margin: 0 auto; }
.footer-note { max-width: 700px; margin: 10px auto 0; font-size: 11.5px; color: #5f5f70; line-height: 2; }

/* ---------- حالت کودک ---------- */
body.kids-mode { --bg: #fdf6ec; --bg-soft: #fff9ef; --card: #ffffff; --card-2: #fff3dd; --line: #f3dfb8; --text: #3b2f1e; --muted: #9c8560; --accent: #f97316; --accent-2: #fb923c; --grad: linear-gradient(135deg, #f97316, #fbbf24); }
body.kids-mode .card-poster { border-radius: 22px; }
body.kids-mode .rail-arrow { background: linear-gradient(90deg, transparent, rgba(253,246,236,.9)); }
body.kids-mode .rail-arrow.prev { background: linear-gradient(90deg, rgba(253,246,236,.9), transparent); }
body.kids-mode #navbar { background: rgba(253,246,236,.95); }
.kids-exit { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 950; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1100px) {
  .detail-poster { width: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-search .search-box { width: 160px; }
  .nav-search .search-box:focus-within { width: 200px; }
  .panel-layout { grid-template-columns: 1fr; }
  .panel-side { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
  .panel-side a span.lbl { display: none; }
}
@media (max-width: 720px) {
  #navbar { padding: 0 16px; gap: 12px; }
  .nav-search { display: none; }
  .detail-content { flex-direction: column; align-items: center; text-align: center; padding-top: 40px; }
  .detail-poster { width: min(230px, 60vw); }
  .detail-actions, .hs-actions { justify-content: center; }
  .meta-line { justify-content: center; }
  .hero-slide .hs-content { right: 5%; left: 5%; max-width: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 12px; }
  .card { width: 150px; }
  .episode-card { flex-wrap: wrap; }
  .ep-thumb { width: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
  .pc-btn { width: 58px; height: 58px; }
  .pc-btn.main { width: 76px; height: 76px; }
  .player-center { gap: 26px; }
  .avatar-menu { left: 8px; right: 8px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .auth-card { padding: 28px 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- متفرقه ---------- */
.fade-in { animation: fadeInUp .35s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; }
.hidden { display: none !important; }
.spinner { width: 42px; height: 42px; border: 4px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-processing { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 34px 10px; }
.pay-success { text-align: center; padding: 20px 10px; }
.pay-success .big-icon { width: 76px; height: 76px; border-radius: 50%; background: rgba(22,163,74,.15); color: #4ade80; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 38px; }
.ref-code { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 18px; display: inline-block; margin-top: 10px; font-weight: 700; letter-spacing: 1px; direction: ltr; }

/* ============================================================
   موج دوم امکانات: اعلان‌ها، تاپ۱۰، مجله، کالکشن، پین، نمودار
   ============================================================ */

/* ---------- زنگوله اعلان‌ها ---------- */
.bell-wrap { position: relative; }
.bell-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.bell-btn:hover { background: rgba(255,255,255,.15); }
.bell-btn svg { width: 21px; height: 21px; }
.bell-count { position: absolute; top: -5px; left: -5px; min-width: 19px; height: 19px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; box-shadow: 0 2px 8px rgba(255,30,86,.5); }
.notif-panel {
  position: absolute; top: calc(var(--nav-h) - 6px); left: 20px; z-index: 960;
  width: min(380px, calc(100vw - 24px)); max-height: 480px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); display: none; padding: 8px;
}
.notif-panel.open { display: block; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.notif-head b { font-size: 15px; }
.notif-head button { font-size: 12px; color: var(--accent); font-weight: 700; }
.notif-item { display: flex; gap: 12px; padding: 11px 12px; border-radius: 12px; cursor: pointer; align-items: flex-start; }
.notif-item:hover { background: var(--card-2); }
.notif-item.unread { background: rgba(255,30,86,.07); }
.notif-item .ni-icon { font-size: 20px; line-height: 1.4; }
.notif-item .ni-text { font-size: 13.5px; line-height: 1.9; flex: 1; }
.notif-item .ni-when { font-size: 11px; color: var(--muted); white-space: nowrap; }
.notif-empty { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 13.5px; }

/* ---------- تاپ ۱۰ ---------- */
.card.top10 { display: flex; align-items: flex-end; width: 250px; }
.top10-num {
  font-size: 110px; font-weight: 900; line-height: .78; width: 88px; flex-shrink: 0; text-align: center;
  color: transparent; -webkit-text-stroke: 3px #6a6a80; margin-left: -14px; margin-bottom: 34px;
  font-style: italic; user-select: none; transition: -webkit-text-stroke-color .25s;
}
.card.top10:hover .top10-num { -webkit-text-stroke-color: var(--accent); }
.card.top10 .card-poster { flex: 1; }

/* ---------- مجله ---------- */
.article-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; padding: 0 4%; }
.article-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: all .25s; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #3a3a55; }
.article-cover { aspect-ratio: 16/8; position: relative; display: flex; align-items: flex-end; padding: 14px; }
.article-cover .ac-cat { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.article-cover h3 { color: #fff; font-size: 16px; font-weight: 800; line-height: 1.8; text-shadow: 0 2px 10px rgba(0,0,0,.6); z-index: 1; }
.article-cover .ac-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent 65%); }
.article-body-preview { padding: 13px 16px; }
.article-body-preview p { font-size: 13px; color: var(--muted); line-height: 2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-body-preview .ab-meta { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.article-read { max-width: 820px; margin: 0 auto; }
.ar-hero { border-radius: 20px; overflow: hidden; margin-bottom: 26px; position: relative; min-height: 240px; display: flex; align-items: flex-end; padding: 26px; }
.ar-hero h1 { color: #fff; font-size: clamp(22px, 3.4vw, 34px); font-weight: 900; line-height: 1.7; z-index: 1; position: relative; text-shadow: 0 3px 14px rgba(0,0,0,.6); }
.ar-hero .ac-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.15)); }
.article-read .ar-meta { display: flex; gap: 14px; color: var(--muted); font-size: 13.5px; margin-bottom: 22px; flex-wrap: wrap; }
.article-read .ar-text p { color: #d8d8e2; font-size: 16px; line-height: 2.3; margin-bottom: 18px; text-align: justify; }
.article-read .ar-text p::first-letter { font-size: 1.1em; }

/* ---------- کالکشن ---------- */
.collection-hero { border-radius: 22px; padding: 40px 34px; margin-bottom: 28px; position: relative; overflow: hidden; }
.collection-hero h1 { font-size: clamp(24px, 3.6vw, 38px); font-weight: 900; color: #fff; z-index: 1; position: relative; }
.collection-hero p { color: rgba(255,255,255,.82); z-index: 1; position: relative; max-width: 640px; }
.collection-hero .ch-emoji { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); font-size: 110px; opacity: .22; }
.collections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.collection-card { border-radius: 18px; padding: 26px 24px; cursor: pointer; transition: all .25s; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.collection-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.collection-card h3 { color: #fff; font-size: 19px; font-weight: 800; z-index: 1; position: relative; }
.collection-card p { color: rgba(255,255,255,.75); font-size: 13px; z-index: 1; position: relative; line-height: 2; }
.collection-card .cc-emoji { position: absolute; left: 18px; bottom: 12px; font-size: 58px; opacity: .3; }

/* ---------- صفحه هنرمند ---------- */
.person-head { display: flex; gap: 26px; align-items: center; margin-bottom: 30px; flex-wrap: wrap; }
.person-avatar { width: 120px; height: 120px; border-radius: 50%; background: var(--card-2); border: 3px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 54px; flex-shrink: 0; }
.person-head h1 { font-size: 30px; font-weight: 900; }
.person-head p { color: var(--muted); }

/* ---------- هیستوگرام امتیاز ---------- */
.rating-hist { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; max-width: 420px; }
.rating-hist .rh-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13.5px; font-weight: 700; }
.rating-hist .rh-big { font-size: 30px; font-weight: 900; color: #fbbf24; line-height: 1; }
.rh-row { display: flex; align-items: center; gap: 9px; margin: 3px 0; font-size: 11px; color: var(--muted); }
.rh-row b { width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.rh-bar { flex: 1; height: 7px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.rh-bar i { display: block; height: 100%; background: linear-gradient(90deg, #fbbf24, #f59e0b); border-radius: 99px; }

/* ---------- یادآوری / لایک ---------- */
.reminder-btn.on { background: rgba(245,158,11,.2); border-color: var(--amber); color: var(--amber); }
.cc-actions .like-btn.liked { color: var(--accent) !important; }
.cc-actions .like-count { font-variant-numeric: tabular-nums; }

/* ---------- رد کردن تیتراژ ---------- */
.skip-intro {
  position: absolute; bottom: 130px; left: 30px; z-index: 25;
  background: rgba(20,20,28,.85); border: 1.5px solid rgba(255,255,255,.5); color: #fff;
  padding: 11px 26px; border-radius: 10px; font-weight: 800; font-size: 15px;
  backdrop-filter: blur(6px); transition: all .2s; display: none; animation: heroIn .3s ease;
}
.skip-intro.show { display: block; }
.skip-intro:hover { background: #fff; color: #111; }

/* ---------- ورود OTP ---------- */
.otp-tabs { display: flex; background: var(--bg-soft); border-radius: 13px; padding: 5px; margin-bottom: 22px; border: 1px solid var(--line); }
.otp-tabs button { flex: 1; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); transition: all .2s; }
.otp-tabs button.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(255,30,86,.3); }
.otp-code-display { background: rgba(255,30,86,.1); border: 1px dashed var(--accent); border-radius: 12px; padding: 12px 16px; text-align: center; margin-bottom: 16px; font-size: 14px; }
.otp-code-display b { font-size: 26px; letter-spacing: 6px; direction: ltr; display: inline-block; color: var(--accent); font-weight: 900; }
.otp-code-input { text-align: center !important; font-size: 24px !important; letter-spacing: 10px; font-weight: 800; }

/* ---------- پین ---------- */
.pin-pad { display: flex; gap: 10px; justify-content: center; direction: ltr; margin: 18px 0; }
.pin-pad input { width: 52px; height: 62px; text-align: center; font-size: 26px; font-weight: 800; background: var(--bg-soft); border: 2px solid var(--line); border-radius: 14px; color: var(--text); outline: none; transition: border-color .2s; }
.pin-pad input:focus { border-color: var(--accent); }
.pin-lock-icon { font-size: 54px; text-align: center; margin-bottom: 6px; }

/* ---------- دستگاه‌ها ---------- */
.device-item { display: flex; gap: 14px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; margin-bottom: 10px; flex-wrap: wrap; }
.device-item .dv-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.device-item .dv-info { flex: 1; min-width: 180px; }
.device-item .dv-info b { font-size: 14.5px; }
.device-item .dv-info small { display: block; color: var(--muted); font-size: 12px; }
.current-pill { font-size: 11px; background: rgba(22,163,74,.15); color: #4ade80; padding: 2px 10px; border-radius: 999px; font-weight: 700; }

/* ---------- نمودارهای ادمین ---------- */
.chart-box { display: flex; align-items: flex-end; gap: 5px; height: 130px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart-col .bar { width: 100%; max-width: 26px; background: var(--grad); border-radius: 6px 6px 2px 2px; min-height: 3px; transition: height .5s ease; position: relative; }
.chart-col .bar.alt { background: linear-gradient(180deg, #0ea5e9, #6d28d9); }
.chart-col .bar:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--card-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 8px; font-size: 11px; white-space: nowrap; z-index: 2; }
.chart-col small { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.admin-cols { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .admin-cols { grid-template-columns: 1fr !important; } }

/* ---------- کوپن / هدیه ---------- */
.coupon-row { display: flex; gap: 10px; margin: 12px 0; }
.coupon-row input { flex: 1; background: var(--bg-soft); border: 1.5px dashed var(--line); border-radius: 12px; padding: 11px 14px; color: var(--text); font-size: 14px; outline: none; direction: ltr; text-align: center; letter-spacing: 2px; font-weight: 700; }
.coupon-row input:focus { border-color: var(--accent); }
.coupon-ok { color: #4ade80; font-size: 13px; font-weight: 700; margin-top: 4px; }
.gift-result { text-align: center; padding: 14px 6px; }
.gift-code-big { font-size: 27px; font-weight: 900; letter-spacing: 3px; direction: ltr; background: linear-gradient(135deg, rgba(255,30,86,.15), rgba(255,122,69,.15)); border: 1.5px dashed var(--accent); border-radius: 14px; padding: 14px 20px; margin: 14px auto; display: inline-block; color: var(--accent); user-select: all; }
.redeem-box { max-width: 560px; margin: 26px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.redeem-box h3 { font-size: 16px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }

/* ---------- جست‌وجوهای پرطرفدار ---------- */
.trend-chips { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
.trend-chips .chip svg { width: 14px; height: 14px; }

/* ---------- اپ‌ها ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 28px 0; }
.app-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px; text-align: center; transition: all .25s; }
.app-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.app-card .ap-icon { font-size: 46px; margin-bottom: 12px; }
.app-card h3 { font-size: 17px; margin-bottom: 6px; }
.app-card p { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 2; }

/* ---------- نشان اعتماد ---------- */
.trust-badges { display: flex; gap: 12px; margin-top: 16px; }
.trust-badge { width: 76px; height: 86px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 10px; color: var(--muted); text-align: center; padding: 6px; line-height: 1.6; }
.trust-badge svg { width: 28px; height: 28px; color: var(--accent); }

/* ---------- فرم ساخت اثر (ادمین) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .field.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.genre-checks { display: flex; flex-wrap: wrap; gap: 7px; max-height: 130px; overflow-y: auto; padding: 4px; }
.genre-checks label { font-size: 12.5px; }
.toggle-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.toggle-row label { display: flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; }
.ep-mgr-item { display: flex; gap: 12px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; padding: 9px 13px; margin-bottom: 7px; font-size: 13px; }
.ep-mgr-item b { min-width: 74px; }
.ep-mgr-item .muted { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* لینک هنرمند */
.person-link { color: var(--text); border-bottom: 1px dashed var(--muted); transition: color .2s; }
.person-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cc-actions .like-btn svg { width: 15px; height: 15px; }
