* { box-sizing: border-box; } body { margin: 0; background: var(--bg); color: var(--text); font-family: Vazirmatn, Tahoma, sans-serif; min-height: 100vh; } button, input { font: inherit; } button { cursor: pointer; } .app-shell { max-width: 800px; margin: auto; padding: calc(18px + env(safe-area-inset-top)) 16px calc(30px + env(safe-area-inset-bottom)); }
.topbar, .section-heading, .meta { display: flex; align-items: center; justify-content: space-between; } .topbar { margin-bottom: 22px; } .eyebrow { letter-spacing: 2px; color: var(--accent); font-weight: 800; font-size: 11px; margin: 0 0 2px; direction: ltr; text-align: right; } h1, h2, h3, p { margin: 0; } h1 { font-size: 23px; } h2 { font-size: 15px; } .icon-button { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 13px; font-size: 25px; line-height: 1; width: 43px; height: 43px; }
.search-wrap { height: 53px; display: flex; gap: 8px; align-items: center; padding: 0 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; } .search-wrap span { font-size: 29px; color: var(--muted); transform: rotate(-20deg); } .search-wrap input { border: 0; outline: 0; background: transparent; color: var(--text); width: 100%; font-size: 14px; } .search-wrap input::placeholder { color: var(--muted); }
.tabs { display: flex; gap: 7px; margin: 18px 0 24px; } .tab, .chip { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13px; } .tab.active, .chip.active { color: var(--accent-text); background: var(--accent); border-color: var(--accent); } .genre-area { margin-bottom: 27px; } .section-heading { margin-bottom: 11px; } .section-heading span, .text-button { color: var(--muted); font-size: 12px; } .text-button { border: 0; background: none; padding: 0; } .chips { display: flex; gap: 8px; overflow-x: auto; padding: 3px 0; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; } .chip { white-space: nowrap; padding: 7px 13px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; } .project-card { text-align: right; padding: 0; border: 0; color: var(--text); background: transparent; min-width: 0; } .poster { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 2 / 2.9; background: linear-gradient(145deg, #31364b, #161925); } .poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; } .project-card:active img { transform: scale(1.04); } .type-badge { position: absolute; top: 9px; right: 9px; padding: 4px 8px; border-radius: 7px; background: rgba(10,10,15,.75); backdrop-filter: blur(4px); font-size: 10px; }.card-copy { padding: 9px 3px 0; overflow: hidden; } h3 { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.english-title { height: 21px; color: var(--muted); font-size: 11px; direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.meta { font-size: 11px; color: var(--muted); }.rating { color: #ffc15c; }.rating b { font-weight: 600; }.load-more { width: 100%; margin: 24px 0 4px; padding: 13px; border: 0; color: var(--accent-text); background: var(--accent); border-radius: 13px; font-weight: 700; }.empty-state { padding: 54px 10px; text-align: center; color: var(--muted); }.hidden { display: none !important; }
.detail-topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; margin: 0 0 14px; padding: calc(10px + env(safe-area-inset-top)) 0 0; background: transparent; } .back-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; } .back-arrow { font-size: 15px; line-height: 1; } .detail { position: relative; } .detail-hero { height: 265px; background: #242838; position: relative; overflow: hidden; border-radius: 16px; }.detail-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }.detail-body { padding: 18px 0 0; }.detail-body h2 { font-size: 22px; }.detail-subtitle { color: var(--muted); font-size: 13px; margin-top: 5px; direction: ltr; text-align: right; }.detail-meta { color: var(--muted); font-size: 13px; margin-top: 5px; }.detail-ratings { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }.score { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; color: var(--muted); font-size: 11px; }.score strong { color: var(--text); margin-right: 4px; }.rating-count { color: var(--muted); font-size: 12px; margin: -8px 0 0; }.detail-plot { line-height: 2; color: #d7d7df; font-size: 14px; margin-top: 18px; }.detail-plot-en { direction: ltr; text-align: right; color: var(--muted); font-size: 13px; line-height: 1.9; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }.detail-genres { color: var(--accent); margin-top: 15px; font-size: 13px; }.seasons { margin-top: 18px; }.season-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }.season { background: var(--surface); border: 1px solid var(--line); padding: 7px 11px; border-radius: 9px; font-size: 12px; } .detail-empty { color: var(--muted); font-size: 13px; margin-top: 9px; } .detail-loading { padding: 46px 0; text-align: center; color: var(--muted); }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .app-shell { padding-inline: 22px; } }
.score { display: flex; align-items: center; gap: 10px; direction: ltr; padding: 11px 13px; } .score-icon { width: 22px; text-align: center; font-size: 17px; line-height: 1; } .score-name { font-size: 12px; font-weight: 600; } .score strong { margin-inline-start: auto; font-size: 15px; direction: ltr; }
.detail-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 9px; margin: 16px 0 0; } .stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px 10px; text-align: center; } .stat b { display: block; font-size: 19px; color: var(--accent); font-weight: 800; } .stat span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.seasons { margin-top: 22px; } .seasons h3 { font-size: 16px; margin-bottom: 10px; } .season-chips { display: flex; gap: 8px; overflow-x: auto; padding: 3px 0 10px; scrollbar-width: none; } .season-chips::-webkit-scrollbar { display: none; } .season-chip { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--surface); border: 1px solid var(--line); color: var(--text); padding: 9px 16px; border-radius: 13px; font-size: 13px; font-weight: 700; transition: background .2s, border-color .2s, transform .15s; } .season-chip small { font-size: 10px; font-weight: 500; color: var(--muted); } .season-chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); } .season-chip.active small { color: inherit; opacity: .85; } .season-chip:active { transform: scale(.95); }
.season-drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.4, 0, .2, 1); } .season-drawer.open { grid-template-rows: 1fr; } .season-drawer-inner { overflow: hidden; min-height: 0; } .episode-list { display: flex; flex-direction: column; gap: 7px; padding: 2px 0 4px; opacity: 0; transform: translateY(10px); transition: opacity .3s ease .1s, transform .3s ease .1s; } .season-drawer.open .episode-list { opacity: 1; transform: none; }
.batch-download { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 2px 0 9px; padding: 11px 13px; border: 1px solid rgba(167, 139, 250, .32); border-radius: 13px; background: rgba(139, 92, 246, .16); color: #ded5ff; font-size: 13px; font-weight: 700; text-decoration: none; opacity: 0; transform: translateY(10px); transition: opacity .3s ease .1s, transform .3s ease .1s, background .16s ease; }
.season-drawer.open .batch-download { opacity: 1; transform: none; }.batch-download span { font-size: 18px; line-height: 1; }.batch-download:active { background: rgba(139, 92, 246, .3); }
.episode { display: flex; align-items: center; gap: 12px; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; color: var(--text); text-decoration: none; transition: background .18s, transform .12s; } .episode:active { transform: scale(.98); } .episode.is-upcoming { opacity: .55; } .episode-num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; } .episode-title { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .episode-arrow { flex: none; color: var(--accent); font-size: 14px; } .episode-tag { flex: none; font-size: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .09); color: var(--muted); } .episode-loading, .episode-error { padding: 20px 0; text-align: center; font-size: 13px; } .episode-loading { color: var(--muted); } .episode-error { color: #ff8080; }

/* سیستم بصری ثابت و یکدست برای وب‌سایت. */
:root {
  --bg: #0b1020;
  --surface: #151d33;
  --surface-raised: #1c2742;
  --text: #f7f8fc;
  --muted: #a7b0c5;
  --accent: #8b5cf6;
  --accent-strong: #6d42e8;
  --accent-text: #ffffff;
  --line: rgba(173, 190, 255, .14);
}

body {
  background:
    radial-gradient(circle at 88% -8%, rgba(139, 92, 246, .28), transparent 30%),
    radial-gradient(circle at 8% 35%, rgba(34, 211, 238, .11), transparent 25%),
    var(--bg);
}

.app-shell { max-width: 840px; }
.topbar { margin-bottom: 26px; }
.eyebrow { color: #b9a5ff; letter-spacing: 3px; }
h1 { font-size: 25px; letter-spacing: -.4px; }

.icon-button,
.search-wrap,
.back-button,
.season-chip,
.episode,
.stat {
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.icon-button {
  display: grid;
  place-items: center;
  background: rgba(28, 39, 66, .85);
  border-color: rgba(185, 165, 255, .24);
  border-radius: 15px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.icon-button:active { transform: rotate(-25deg) scale(.93); }

.search-wrap {
  height: 57px;
  padding: 0 17px;
  background: rgba(21, 29, 51, .88);
  border-color: rgba(185, 165, 255, .18);
  border-radius: 18px;
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 14px 30px rgba(0,0,0,.16);
}
.search-wrap:focus-within { border-color: rgba(167, 139, 250, .75); box-shadow: 0 0 0 4px rgba(139, 92, 246, .14); }

.tabs { gap: 9px; margin: 21px 0 27px; }
.tab, .chip {
  border-color: rgba(185, 165, 255, .17);
  background: rgba(21, 29, 51, .62);
  transition: transform .16s ease, color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.tab { padding: 9px 18px; font-weight: 600; }
.chip { padding: 8px 14px; }
.tab.active, .chip.active {
  background: linear-gradient(135deg, #9b6cff, #7044e8);
  border-color: transparent;
  box-shadow: 0 7px 18px rgba(112, 68, 232, .32);
}
.tab:active, .chip:active, .season-chip:active { transform: scale(.95); }
.text-button { color: #b9a5ff; font-weight: 600; }

.project-card { border-radius: 18px; padding: 5px; transition: transform .2s ease, background .2s ease; }
.project-card:active { transform: scale(.97); background: rgba(255,255,255,.04); }
.poster { border-radius: 15px; box-shadow: 0 11px 23px rgba(0,0,0,.26); -webkit-touch-callout: none; user-select: none; }
.poster img, .detail-hero img { -webkit-touch-callout: none; user-select: none; -webkit-user-drag: none; }
.type-badge { background: rgba(11, 16, 32, .78); border: 1px solid rgba(255,255,255,.12); padding: 5px 9px; border-radius: 9px; backdrop-filter: blur(10px); }
.card-copy { padding: 11px 4px 3px; }
h3 { font-size: 14px; }
.rating { color: #ffd166; }

.load-more {
  background: linear-gradient(135deg, #9b6cff, #7044e8);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 12px 22px rgba(112, 68, 232, .28);
  transition: transform .16s ease, box-shadow .16s ease;
}
.load-more:active { transform: scale(.98); box-shadow: 0 5px 12px rgba(112, 68, 232, .2); }

.back-button { background: rgba(28, 39, 66, .9); border-color: rgba(185, 165, 255, .21); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
.detail-hero { border-radius: 20px; box-shadow: 0 18px 35px rgba(0,0,0,.25); }
.detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,16,32,.36), transparent 55%); pointer-events: none; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.fact { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgba(185, 165, 255, .17); border-radius: 10px; background: rgba(28, 39, 66, .7); color: #c9d0e2; font-size: 11px; font-weight: 600; }
.fact b { color: var(--muted); font-size: 10px; font-weight: 500; }.fact-type { color: #ded5ff; background: rgba(139, 92, 246, .18); border-color: rgba(167, 139, 250, .32); }.fact-status { color: #9eead4; background: rgba(45, 212, 191, .10); border-color: rgba(94, 234, 212, .2); }.fact-day { color: #f9d58d; }
.detail-genre-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }.detail-genre-chips span { padding: 6px 11px; border: 1px solid rgba(125, 211, 252, .2); border-radius: 999px; background: rgba(14, 116, 144, .14); color: #a5e5fb; font-size: 11px; font-weight: 600; }
.share-project { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 9px 13px; border: 1px solid rgba(185, 165, 255, .24); border-radius: 12px; background: rgba(139, 92, 246, .12); color: #d8ccff; font-size: 12px; font-weight: 700; transition: transform .16s ease, background .16s ease; }
.share-project span { font-size: 16px; line-height: 1; }.share-project:active { transform: scale(.96); background: rgba(139, 92, 246, .25); }
.detail-ratings { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 20px 0; direction: ltr; }
.score { width: 100%; background: rgba(28, 39, 66, .8); border-color: rgba(185, 165, 255, .16); border-radius: 13px; }
.stat { background: linear-gradient(145deg, rgba(28,39,66,.96), rgba(21,29,51,.96)); border-color: rgba(185, 165, 255, .16); border-radius: 16px; }
.stat b, .detail-genres, .episode-arrow { color: #b9a5ff; }
.stat-download { display: grid; place-items: center; min-height: 67px; color: inherit; text-decoration: none; background: linear-gradient(135deg, #9b6cff, #7044e8); border-color: transparent; box-shadow: 0 10px 22px rgba(112, 68, 232, .28); transition: transform .16s ease, box-shadow .16s ease; }
.stat-download b { color: #fff; font-size: 15px; }
.stat-download:active { transform: scale(.96); box-shadow: 0 5px 12px rgba(112, 68, 232, .2); }
.season-chip { background: rgba(28, 39, 66, .88); border-color: rgba(185, 165, 255, .17); border-radius: 14px; }
.season-chip.active { background: linear-gradient(135deg, #9b6cff, #7044e8); box-shadow: 0 8px 18px rgba(112, 68, 232, .28); }
.episode { background: rgba(28, 39, 66, .8); border-color: rgba(185, 165, 255, .14); border-radius: 15px; }
.episode-num { background: rgba(11,16,32,.7); border-color: rgba(185, 165, 255, .14); }
