/*
 * VANTARA — أساس الواجهة.
 *
 * هوية v35 (الأسود العميق، البنفسجي، البانر الدائري، الشرائط) بنظامٍ واحد:
 * كل لون ومسافة وحجم خط من المتغيّرات أدناه، لا أرقامٌ متناثرة. والبنفسجي
 * لغةُ «الفعل الأساسي» و«المختار» وحدهما — ليس زينةً على كل رابط، فإن كان
 * في كل مكان لم يعد يدلّ على شيء.
 */

.v35 {
  /* ── الأسطح: من الأعمق إلى الأقرب للإصبع ── */
  /* أسود مائل للبنفسجي جدًا: البنفسجي الصريح للأزرار والمختار وحدهما */
  --bg: #08070c;
  --bg-raised: #0c0b12;
  --surface-1: #121019;
  --surface-2: #18161f;
  --surface-3: #211e2b;
  --line: rgba(255, 255, 255, 0.065);
  --line-strong: rgba(255, 255, 255, 0.12);

  /* ── النص: أربع درجات لا أكثر ── */
  --text-1: #f3f4f8;
  --text-2: #bab6c6;
  --text-3: #85809a;
  --text-4: #57536a;

  /* ── اللون الأساسي ── */
  --accent: #8f5cff;
  --accent-press: #7a47f0;
  --accent-text: #bba2ff;
  --accent-soft: rgba(143, 92, 255, 0.14);
  --accent-line: rgba(143, 92, 255, 0.4);

  /* ── الحالات ── */
  --success: #5fd49a;
  --warning: #f2b75b;
  --danger: #ff6b7d;
  --danger-soft: rgba(255, 107, 125, 0.12);
  --gold: #ffbd55;

  /* ── المقاسات ── */
  --gutter: 16px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --tap: 44px;
  --nav-h: 64px;
  --top-h: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* ── الخط ── */
  --fs-caption: 11.5px;
  --fs-meta: 12.5px;
  --fs-body: 14px;
  --fs-body-lg: 15px;
  --fs-title-sm: 16px;
  --fs-title: 19px;
  --fs-title-lg: 23px;

  /* ── الحركة: قصيرة، تشرح ولا تؤخّر ── */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 320ms;

  /* أسماء قديمة تستعملها طبقة الأصدقاء والملف إلى أن تُنقل */
  --surface: var(--surface-1);
  --surface2: var(--surface-2);
  --surface3: var(--surface-3);
  --line2: var(--line-strong);
  --text: var(--text-1);
  --muted: var(--text-3);
  --muted2: var(--text-4);
  --purple: var(--accent);
  --purple2: var(--accent-press);
  --purpleSoft: var(--accent-text);
  --good: var(--success);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);

  margin: 0;
  min-height: 100%;
  color: var(--text-1);
  background: var(--bg);
  font-family: 'Vantara Sans', system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.v35 *,
.v35 *::before,
.v35 *::after {
  box-sizing: border-box;
}
/* Android WebView: نص الواجهة لا يدخل ActionMode والتظليل الأصلي.
   حقول التحرير وحدها تحتفظ بالتحديد الحقيقي. */
.v35, .v35 * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.v35 input, .v35 textarea, .v35 [contenteditable='true'] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
.v35 .copy-preview {
  margin: 12px 16px;
  color: var(--text-2);
  font-size: var(--fs-body);
  line-height: 1.6;
  max-height: 6.4em;
  overflow: hidden;
}
.v35 button,
/*
 * لا تظليل أزرق عند اللمس، في أي مكان. أندرويد يرسمه فوق كل ما يُنقر (بطاقة،
 * صف، بانر) ولون التطبيق ليس أزرق: الضغط يُرى من حالة :active لكل عنصر.
 */
html,
body,
.v35,
.v35 * {
  -webkit-tap-highlight-color: transparent;
}
/* مؤشر الكتابة والمنزلقات ومربعات الاختيار الأصلية بلون التطبيق، لا أزرق المتصفح */
html,
.v35 {
  accent-color: #8f5cff;
  caret-color: #bba2ff;
}
/*
 * نبرة المحتوى: ورقة أو بطاقة عمل تلبس لون نوعه لا لون القسم المفتوح —
 * مانهوا تُعرض من المجلس وأنت في قسم الأنمي تبقى بنفسجية، وأنمي في قسم
 * المانجا يبقى أزرق.
 */
.v35 [data-tone='manga'] {
  --bg: #08070c;
  --bg-raised: #0c0b12;
  --surface-1: #121019;
  --surface-2: #18161f;
  --surface-3: #211e2b;
  --line: rgba(255, 255, 255, 0.065);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text-2: #bab6c6;
  --text-3: #85809a;
  --text-4: #57536a;
  --accent: #8f5cff;
  --accent-press: #7a47f0;
  --accent-text: #bba2ff;
  --accent-soft: rgba(143, 92, 255, 0.14);
  --accent-line: rgba(143, 92, 255, 0.4);
  --accent-glow: transparent; /* لا توهّج ملوّن تحت الأزرار */
  accent-color: #8f5cff;
}
.v35 [data-tone='anime'] {
  --bg: #05070d;
  --bg-raised: #080b14;
  --surface-1: #0d111b;
  --surface-2: #131826;
  --surface-3: #1b2233;
  --line: rgba(160, 190, 255, 0.07);
  --line-strong: rgba(160, 190, 255, 0.14);
  --text-2: #b4bdd0;
  --text-3: #7d879d;
  --text-4: #4e576b;
  --accent: #3b82f6;
  --accent-press: #2563eb;
  --accent-text: #8fb8ff;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --accent-line: rgba(59, 130, 246, 0.42);
  --accent-glow: transparent; /* لا توهّج ملوّن تحت الأزرار */
  accent-color: #3b82f6;
}
/* النص المحدَّد بلون التطبيق لا أزرق النظام */
::selection {
  background: rgba(143, 92, 255, 0.32);
  color: inherit;
}
.v35 input,
.v35 select,
.v35 textarea {
  font: inherit;
  color: inherit;
}
.v35 button,
.v35 [role='button'],
.v35 label.setting {
  cursor: pointer;
  touch-action: manipulation;
  /* الضغط المطوّل لا يحدّد نص الزر */
  -webkit-user-select: none;
  user-select: none;
}
.v35 button:disabled {
  cursor: default;
  opacity: 0.45;
}
.v35 :focus {
  outline: none;
}
.v35 :focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 2px;
}
.v35 ::selection {
  background: var(--accent-soft);
}
.v35 [dir='auto'] {
  unicode-bidi: plaintext;
  text-align: right;
}
/* `hidden` يغلب أي display: بلاه يظهر شريط التنقل فوق صفحة العمل */
.v35 [hidden] {
  display: none !important;
}

/* ───────────────────────── الإطار ───────────────────────── */

.v35 .app {
  width: min(100%, 520px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: auto;
  position: relative;
  overflow-x: clip;
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px);
}
.v35 .page {
  display: none;
  min-height: 100vh;
}
.v35 .page.active {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .v35 *,
  .v35 *::before,
  .v35 *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* ───────────────────────── الأيقونات والأزرار ───────────────────────── */

.v35 .icon {
  width: 24px;
  height: 24px;
  flex: none;
}
.v35 .icon-sm {
  width: 18px;
  height: 18px;
  flex: none;
}

/* زر أيقونة: 44 للمس، والدائرة الظاهرة عند الضغط وحدها */
.v35 .icon-btn {
  position: relative;
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-1);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.v35 .icon-btn .icon {
  width: 24px;
  height: 24px;
}
.v35 .icon-btn:active {
  background: var(--surface-3);
}
@media (hover: hover) {
  .v35 .icon-btn:hover {
    background: var(--surface-2);
  }
}
.v35 .icon-btn[aria-pressed='true'] {
  color: var(--accent-text);
}
.v35 .icon-btn--danger[aria-pressed='true'] {
  color: var(--danger);
}

/* نقطة «جديد» فوق الجرس */
.v35 .notify-dot {
  position: absolute;
  top: 9px;
  inset-inline-end: 10px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
}

.v35 .btn {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--fs-body);
  font-weight: 650;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.v35 .btn:active {
  transform: scale(0.98);
}
.v35 .btn .icon {
  width: 20px;
  height: 20px;
}
.v35 .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.v35 .btn-primary:active {
  background: var(--accent-press);
}
.v35 .btn-secondary {
  background: var(--surface-2);
  color: var(--text-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.v35 .btn-secondary:active {
  background: var(--surface-3);
}
.v35 .btn-block {
  width: 100%;
}
.v35 .btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ───────────────────────── الترويسة ───────────────────────── */

.v35 .header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--top-h) + var(--safe-top));
  padding: var(--safe-top) 6px 0;
}
.v35 .header-start,
.v35 .header-end {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}
.v35 .brand-box {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: var(--top-h);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.v35 .brand {
  font-size: 14px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: 3px;
  color: var(--text-1);
  direction: ltr;
}

/* مبدّل الأقسام: VANTARA وتحته اسم القسم بلونه؛ الضغط يُنزل لوحة الأقسام */
.v35 .brand-switch {
  pointer-events: auto;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 4px 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  direction: ltr;
  -webkit-tap-highlight-color: transparent;
}
.v35 .brand-switch:active .brand {
  opacity: 0.7;
}
.v35 .brand-section {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--accent-text);
}
.v35 .brand-caret {
  display: inline-flex;
  opacity: 0.8;
  transform: rotate(-90deg);
  transition: transform 0.25s ease;
}
.v35 .brand-caret .icon {
  width: 10px;
  height: 10px;
  stroke-width: 2.6;
}
.v35 .brand-switch[aria-expanded='true'] .brand-caret {
  transform: rotate(90deg);
}

.v35 .section-scrim {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(4, 4, 8, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.v35 .section-scrim.open {
  opacity: 1;
}
.v35 .section-menu {
  position: absolute;
  top: calc(var(--top-h) + var(--safe-top) + 2px);
  inset-inline: 0;
  margin-inline: auto;
  z-index: 40;
  width: min(248px, calc(100vw - 32px));
  display: grid;
  gap: 2px;
  padding: 6px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-1) 88%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.55);
  transform-origin: top center;
  opacity: 0;
}
.v35 .section-menu.open {
  opacity: 1;
}
/* display:grid كان يتجاوز [hidden] في UA stylesheet؛ يمنع قائمة شفافة
   من البقاء فوق شريط الأزرار مع أنها تبدو مغلقة. */
.v35 .section-menu[hidden] {
  display: none;
}
.v35 .section-scrim:not(.open) {
  pointer-events: none;
}
.v35 .section-item {
  --tone: #8f5cff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text-1);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s ease;
}
.v35 .section-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 22%, transparent), color-mix(in srgb, var(--tone) 6%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.v35 .section-item[aria-checked='true']::before {
  opacity: 1;
}
.v35 .section-item:active {
  transform: scale(0.97);
}
.v35 .section-item--anime {
  --tone: #3b82f6;
}
.v35 .section-item--cinema {
  --tone: #e0303a;
}
.v35 .section-lockup {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 3px;
  direction: ltr;
  line-height: 1;
}
.v35 .section-kicker {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-inline-end: -3px;
  color: rgba(255, 255, 255, 0.45);
}
.v35 .section-word {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 4px;
  margin-inline-end: -4px; /* يلغي تباعد آخر حرف لتتحاذى الكلمتان */
  color: color-mix(in srgb, var(--tone) 62%, #fff);
}
.v35 .section-sub {
  position: relative;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.v35 .section-item[aria-disabled='true'] .section-word {
  color: color-mix(in srgb, var(--tone) 35%, rgba(255, 255, 255, 0.3));
}
.v35 .section-item[aria-disabled='true'] .section-kicker,
.v35 .section-item[aria-disabled='true'] .section-sub {
  color: rgba(255, 255, 255, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .v35 .section-menu,
  .v35 .section-scrim,
  .v35 .brand-caret {
    transition: none;
  }
}

/* ترويسة الصفحات الفرعية: رجوع في البداية (يمين)، العنوان، أفعال في النهاية */
.v35 .page-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: var(--tap) 1fr var(--tap);
  align-items: center;
  gap: 4px;
  min-height: calc(var(--top-h) + var(--safe-top));
  padding: var(--safe-top) 6px 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.v35 .page-top h1 {
  margin: 0;
  font-size: var(--fs-title-sm);
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.v35 .page-top-left,
.v35 .page-top-right {
  display: flex;
  align-items: center;
}
.v35 .page-top-left {
  justify-content: flex-end;
}
.v35 .page-body {
  padding: 16px var(--gutter) 28px;
}
/* نخفف الزجاج المتكرر على Android؛ بنر الغلاف يحتفظ بضبابيته المقصودة.
   غطاء الاجتماع كان هيكل الصورة المطلق خارج حاويته، وقد عولج في mountImage. */
.v35.native-android *,
.v35.native-android *::before,
.v35.native-android *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.v35.native-android .detail-glow i {
  filter: none !important;
}
.v35.native-android .page-top,
.v35.native-android .bottom-nav {
  background: var(--bg);
}

/* البانر والفهرس (هوية المانجا) في manga.css */

/* ───────────────────────── الأقسام والبطاقات ───────────────────────── */

.v35 .section {
  padding: 26px 0 0;
}
.v35 .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--gutter);
  margin-bottom: 12px;
}
.v35 .section-head h2 {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 750;
  line-height: 1.3;
}
/* «الكل» بلون النص الهادئ وسهم: الرابط ثانوي، والبطاقات هي المحتوى */
.v35 .link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 36px;
  padding: 0 4px 0 0;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: var(--fs-meta);
  font-weight: 600;
}
.v35 .link .icon {
  width: 18px;
  height: 18px;
}
.v35 .link:active {
  color: var(--text-1);
}

.v35 .card-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gutter) * 2 - 20px) / 3.15);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 4px;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.v35 .card-strip::-webkit-scrollbar {
  display: none;
}
.v35 .card-strip > * {
  scroll-snap-align: start;
}

.v35 .work-card {
  min-width: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.v35 .work-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.v35 .work-card-frame { position: relative; }
.v35 .poster {
  position: relative;
  aspect-ratio: 0.7;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--dur-fast) var(--ease);
}
.v35 .work-score {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  color: var(--text-2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.v35 .work-score b {
  font-weight: 600;
}
.v35 .work-score .icon { width: 11px; height: 11px; color: var(--gold); }
.v35 .work-score[hidden] { display: none; }
.v35 .work-card:active .poster {
  transform: scale(0.97);
}
.v35 .poster > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* A reused image must never fade again during source or sync updates. */
  animation: none;
}
@keyframes v35-fade {
  from {
    opacity: 0;
  }
}
/* الإطار الداخلي فوق الصورة لا تحتها: حافة الغلاف الأبيض لا تذوب في الخلفية */
.v35 .poster::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.v35 .poster-badge {
  position: absolute;
  z-index: 2;
  top: 6px;
  inset-inline-start: 6px;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(8px);
}
.v35 .poster-progress {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
}
.v35 .poster-progress > i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.v35 .work-title {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
  color: var(--text-1);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: calc(13px * 1.35 * 2);
  /* العنوان اللاتيني يُرتَّب لاتينيًّا لكنه يبقى على يمين البطاقة مع حالته */
  unicode-bidi: plaintext;
  text-align: right;
}
.v35 .work-meta {
  margin-top: 2px;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--accent-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v35 .work-meta:empty {
  display: none;
}
.v35 .work-facts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  min-height: 15px;
  color: var(--text-3);
  font-size: var(--fs-caption);
}
.v35 .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 10px;
}
@media (min-width: 480px) {
  .v35 .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ───────────────────────── التحميل والصور ───────────────────────── */

.v35 .skeleton {
  position: absolute;
  inset: 0;
  /* هادئ: نبضة خفيفة لا لمعة تعبر الغلاف */
  background: var(--surface-2);
  animation: v35-pulse 1.6s ease-in-out infinite;
}
.v35 .skeleton-line {
  display: block;
  height: 10px;
  margin-top: 10px;
  border-radius: 6px;
  background: var(--surface-2);
}
.v35 .skeleton-line + .skeleton-line {
  width: 60%;
  margin-top: 6px;
}
@keyframes v35-pulse {
  50% {
    opacity: 0.6;
  }
}
/* صورةٌ تعذّرت: الحرف الأول من العنوان على لون هادئ، لا شعار التطبيق */
.v35 .image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--surface-3), var(--surface-1));
  color: var(--text-4);
}
.v35 .image-fallback span {
  font-size: 28px;
  font-weight: 750;
  color: var(--text-3);
}

/* ───────────────────────── التنقّل السفلي ─────────────────────────
 * مؤشّر حبّة خلف الأيقونة المختارة (لغة أندرويد الحديثة) بدل خطٍ رفيع فوقها:
 * يُرى بطرف العين، ولا يحتاج لون النص كله ليقول «أنت هنا». */

.v35 .bottom-nav {
  position: fixed;
  z-index: 50;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 520px);
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: color-mix(in srgb, var(--bg-raised) 92%, transparent);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-top: 1px solid var(--line);
}
.v35 .nav {
  position: relative;
  border: 0;
  background: none;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.v35 .nav-pill {
  width: 56px;
  height: 30px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  transition: background var(--dur) var(--ease);
}
.v35 .nav .icon {
  width: 23px;
  height: 23px;
}
.v35 .nav.active {
  color: var(--text-1);
}
/* ───────────────────────── التنقّل ─────────────────────────
 * علامة التحديد مشتركة: شرطة بلون القسم فوق الأيقونة، بلا خلفية حولها. */

.v35 .nav.active .nav-pill {
  background: none;
  color: var(--text-1);
}
.v35 .nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 22px;
  height: 2px;
  margin-left: -11px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease-out);
}
.v35 .nav.active::before {
  transform: scaleX(1);
}

.v35 .nav .notify-dot {
  top: 7px;
  inset-inline-end: calc(50% - 22px);
}

/* ───────────────────────── صفحة العمل ─────────────────────────
 * التسلسل من ملف القارئ الذكي: الهوية ← اقرأ ← التقدّم ← المصادر ← الفصول
 * ← المعلومات. صفحة واحدة تُمرَّر بلا تبويبات: الفصول هي سبب الزيارة، فلا
 * تُخبّأ خلف لمسة. */

.v35 #detail {
  position: relative;
  isolation: isolate;
}
.v35 .detail-glow {
  /* خلفية الغلاف المضبّبة المتوهّجة أُزيلت: صفحة العمل على خلفيتها العادية */
  display: none;
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 360px;
  overflow: hidden;
  pointer-events: none;
}
.v35 .detail-glow i {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center 25%;
  filter: blur(40px) saturate(1.3) brightness(0.45);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}
.v35 .detail-glow i.ready {
  opacity: 1;
}
.v35 .detail-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.2), var(--bg) 92%);
}
.v35 .detail-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--top-h) + var(--safe-top));
  padding: var(--safe-top) 6px 0;
  transition: background var(--dur) var(--ease);
}
.v35 .detail-top.scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.v35 .detail-top-title {
  flex: 1;
  min-width: 0;
  padding: 0 6px;
  font-size: var(--fs-title-sm);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  unicode-bidi: plaintext;
}
.v35 .detail-top.scrolled .detail-top-title {
  opacity: 1;
}
.v35 .detail-actions {
  display: flex;
}
.v35 .detail-head {
  position: relative;
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 16px;
  align-items: end;
  padding: 4px var(--gutter) 0;
}
.v35 .detail-cover {
  position: relative;
  aspect-ratio: 0.7;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.v35 .detail-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v35 .detail-meta {
  min-width: 0;
  padding-bottom: 2px;
}
.v35 .detail-meta h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 780;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  unicode-bidi: plaintext;
  text-align: right;
}
.v35 .detail-sub {
  margin-top: 6px;
  font-size: var(--fs-meta);
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.v35 .detail-sub:empty {
  display: none;
}
.v35 .status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.v35 .status-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--text-3);
}
.v35 .status-dot[data-status='RELEASING']::before {
  background: var(--success);
}
.v35 .status-dot[data-status='HIATUS']::before {
  background: var(--warning);
}
.v35 .status-dot[data-status='CANCELLED']::before {
  background: var(--danger);
}
.v35 .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.v35 .chips:empty {
  display: none;
}
.v35 .chip {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-caption);
  color: var(--text-2);
}

.v35 .detail-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 20px var(--gutter) 0;
}
.v35 .read-cta {
  min-height: 52px;
  justify-content: center;
}
.v35 .read-cta small {
  font-size: var(--fs-meta);
  font-weight: 500;
  opacity: 0.8;
}
.v35 .read-cta small::before {
  content: '·';
  margin-inline-end: 8px;
}
.v35 .read-cta small:empty {
  display: none;
}
.v35 .toggle-btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-1);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.v35 .toggle-btn:active {
  background: var(--surface-3);
}
.v35 .toggle-btn[aria-pressed='true'] {
  color: var(--accent-text);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.v35 .detail-progress {
  margin: 14px var(--gutter) 0;
}
.v35 .detail-progress[hidden] {
  display: none;
}
.v35 .progress-bar {
  height: 4px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}
.v35 .progress-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  transition: width var(--dur-slow) var(--ease-out);
}
.v35 .progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: var(--fs-meta);
  color: var(--text-3);
}
.v35 .rate {
  display: flex;
  direction: ltr;
  gap: 0;
}
.v35 .rate button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: none;
  color: var(--text-4);
}
.v35 .rate button .icon {
  width: 20px;
  height: 20px;
}
.v35 .rate button.on {
  color: var(--gold);
}

.v35 .block {
  padding: 26px var(--gutter) 0;
}
.v35 .block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.v35 .block-head h2 {
  margin: 0;
  font-size: var(--fs-title-sm);
  font-weight: 750;
}
.v35 .block-head .count {
  color: var(--text-3);
  font-weight: 500;
  margin-inline-start: 6px;
}

/* المصدر تحت زرّ القراءة مباشرة: «القارئ الذكي» يدمج أفضل نسخة لكل فصل،
   وبجانبه مصدران، والباقي خلف «كل المصادر» */
.v35 .source-switch {
  padding: 12px var(--gutter) 0;
}
.v35 .source-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
}
.v35 .source-row::-webkit-scrollbar {
  display: none;
}
.v35 .source-chip {
  flex: none;
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: var(--fs-meta);
  font-weight: 600;
}
.v35 .source-chip b {
  font-weight: 500;
  color: var(--text-3);
}
.v35 .source-chip[aria-pressed='true'] {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  color: var(--text-1);
}
.v35 .source-chip[aria-pressed='true'] b {
  color: var(--accent-text);
}
.v35 .source-chip .icon {
  width: 16px;
  height: 16px;
}
.v35 .source-chip--smart[aria-pressed='true'] .icon {
  color: var(--accent-text);
}
.v35 .source-chip--all {
  color: var(--text-1);
}
.v35 .source-chip--failed {
  color: var(--text-4);
}
.v35 .source-chip--failed .icon {
  width: 16px;
  height: 16px;
  color: var(--warning);
}

.v35 .summary {
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-body);
  line-height: 1.85;
  unicode-bidi: plaintext;
  text-align: right;
  white-space: pre-line;
}
.v35 .summary.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v35 .more-toggle {
  margin-top: 4px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-1);
  font-size: var(--fs-meta);
  font-weight: 650;
}

/* الفصول: قائمةٌ كثيفة بفواصل، لا بطاقة لكل فصل */
.v35 .chapter-locked-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.7;
  opacity: .75;
}
.v35 .chapter-locked-note svg { width: 16px; height: 16px; flex: none; }
.v35 .chapter-list {
  margin: 0 calc(var(--gutter) * -1);
}
.v35 .chapter-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 60px;
  padding: 0 var(--gutter) 0 6px;
  position: relative;
}
.v35 .chapter-row + .chapter-row::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: var(--gutter) var(--gutter);
  height: 1px;
  background: var(--line);
}
.v35 .chapter-open {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 0;
  border: 0;
  background: none;
  text-align: start;
}
.v35 .chapter-open:active {
  opacity: 0.6;
}
.v35 .chapter-no {
  font-size: var(--fs-body);
  font-weight: 650;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  unicode-bidi: plaintext;
  text-align: right;
}
.v35 .chapter-note {
  font-size: var(--fs-caption);
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v35 .chapter-row.is-read .chapter-no {
  color: var(--text-3);
  font-weight: 500;
}
.v35 .chapter-row.is-next .chapter-no::after {
  content: 'التالي';
  margin-inline-start: 8px;
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}

/* عين الفصل: رمادية هادئة لما لم يُقرأ، بنفسجية بعلامة صح لما قُرئ */
.v35 .chapter-eye {
  position: relative;
  flex: none;
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--text-4);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.v35 .chapter-eye:active {
  background: var(--surface-3);
}
.v35 .chapter-eye .icon {
  width: 22px;
  height: 22px;
}
.v35 .chapter-eye--read {
  color: var(--accent-text);
}
.v35 .chapter-eye__check {
  position: absolute;
  bottom: 9px;
  inset-inline-end: 7px;
  width: 14px;
  height: 14px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 2px var(--bg);
  animation: v35-pop var(--dur) var(--ease-out);
}
.v35 .chapter-eye__check .icon {
  width: 10px;
  height: 10px;
  stroke-width: 3;
}
@keyframes v35-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
.v35 .chapter-more {
  width: 100%;
  margin-top: 8px;
}

.v35 .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 0 0 1px var(--line);
}
.v35 .info-box {
  background: var(--bg);
  padding: 12px 14px;
  min-width: 0;
}
.v35 .info-label {
  font-size: var(--fs-caption);
  color: var(--text-3);
}
.v35 .info-value {
  margin-top: 3px;
  font-size: var(--fs-meta);
  color: var(--text-1);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.v35 .no-data {
  padding: 28px 12px;
  text-align: center;
  color: var(--text-3);
  font-size: var(--fs-meta);
  line-height: 1.8;
}

/* ───────────────────────── القوائم والأدوات ───────────────────────── */

.v35 .toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.v35 .segmented {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 14px;
  padding: 0 var(--gutter);
}
.v35 .segmented::-webkit-scrollbar {
  display: none;
}
/*
 * ألسنة «مكتبتي» في الأقسام الثلاثة: كلمة وخط تحت المختار بلون القسم، بلا
 * حبوب ولا صناديق (لغة السينما، موحّدة). العدد بجانب الكلمة بهدوء.
 */
.v35 .library-tabs {
  gap: 24px;
}
.v35 .library-tab {
  position: relative;
  flex: none;
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.v35 .library-tab::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.v35 .library-tab b {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-4);
  margin-inline-start: 5px;
  font-variant-numeric: tabular-nums;
}
.v35 .library-tab.active {
  color: var(--text-1);
}
.v35 .library-tab.active::after {
  transform: scaleX(1);
}
.v35 .library-tab.active b {
  color: var(--text-3);
}
.v35 .select {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 99px;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: var(--fs-meta);
}
.v35 .load-more {
  width: 100%;
  margin-top: 20px;
}

.v35 .search-bar {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.v35 .search-bar .icon {
  position: absolute;
  inset-inline-start: 14px;
  width: 20px;
  height: 20px;
  color: var(--text-3);
  pointer-events: none;
}
.v35 .search-input {
  flex: 1;
  min-height: 48px;
  padding: 0 44px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-1);
  font-size: var(--fs-body);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.v35 .search-input::placeholder {
  color: var(--text-3);
}
.v35 .search-input:focus,
.v35 .search-input:focus-visible {
  /* حدّ واحد هادئ: حلقة التركيز العامة (outline بلون القسم) فوق حدّ ملوّن كانت إطارين ثقيلين */
  outline: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-1) 22%, transparent);
}
.v35 .search-input::-webkit-search-cancel-button {
  display: none;
}
.v35 .search-clear {
  position: absolute;
  inset-inline-end: 2px;
  width: var(--tap);
  height: var(--tap);
  color: var(--text-3);
}
.v35 .search-clear[hidden] {
  display: none;
}

.v35 .category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.v35 .category {
  --hue: 265;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 96px;
  padding: 14px;
  border: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, hsl(var(--hue) 42% 24%), hsl(var(--hue) 36% 11%) 75%);
  box-shadow: inset 0 0 0 1px hsl(var(--hue) 50% 60% / 0.14);
  display: flex;
  align-items: flex-start;
  text-align: start;
  color: #fff;
}
.v35 .category:active {
  transform: scale(0.98);
}
.v35 .category strong {
  position: relative;
  z-index: 2;
  font-size: 16px;
  font-weight: 750;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
/* غلافان مائلان في الزاوية: التصنيف يُعرف بأعماله */
.v35 .category-art {
  position: absolute;
  z-index: 1;
  inset-inline-end: -6px;
  bottom: -14px;
  width: 92px;
  height: 90px;
  pointer-events: none;
}
.v35 .category-art img {
  position: absolute;
  bottom: 0;
  width: 52px;
  aspect-ratio: 0.7;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  animation: v35-fade var(--dur) var(--ease);
}
.v35 .category-art img:first-child {
  inset-inline-end: 8px;
  transform: rotate(-12deg);
  z-index: 2;
}
.v35 .category-art img:nth-child(2) {
  inset-inline-end: 42px;
  bottom: -6px;
  transform: rotate(-24deg);
  opacity: 0.85;
}

/* ───────────────────────── الحالات الفارغة والأخطاء ───────────────────────── */

.v35 .empty {
  grid-column: 1 / -1;
  min-height: 46vh;
  display: grid;
  place-items: center;
  padding: 28px 24px;
  text-align: center;
}
.v35 .empty-art {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
}
.v35 .empty-art .icon {
  width: 28px;
  height: 28px;
}
.v35 .empty--error .empty-art {
  color: var(--warning);
}
.v35 .empty h3 {
  margin: 0 0 6px;
  font-size: var(--fs-title-sm);
  font-weight: 700;
  color: var(--text-1);
}
.v35 .empty p {
  margin: 0 auto;
  max-width: 280px;
  font-size: var(--fs-meta);
  line-height: 1.8;
  color: var(--text-3);
}
.v35 .empty .btn {
  margin-top: 18px;
}
.v35 .inline-error {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 var(--gutter);
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: var(--fs-meta);
}
.v35 .inline-error .icon {
  color: var(--warning);
  width: 20px;
  height: 20px;
}
.v35 .inline-error span {
  flex: 1;
}

/* ───────────────────────── الإعدادات ───────────────────────── */

.v35 .settings-list {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.v35 .setting {
  min-height: 60px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  border: 0;
  background: none;
  width: 100%;
  text-align: start;
}
.v35 .setting + .setting::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 50px 0;
  height: 1px;
  background: var(--line);
}
.v35 .setting > .icon {
  width: 22px;
  height: 22px;
  color: var(--text-2);
}
.v35 .setting > div {
  flex: 1;
  min-width: 0;
}
.v35 .setting strong {
  display: block;
  font-size: var(--fs-body);
  font-weight: 600;
}
.v35 .setting small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: var(--fs-caption);
  line-height: 1.6;
}
.v35 .setting .value {
  color: var(--text-3);
  font-size: var(--fs-meta);
}
.v35 .setting .chev {
  color: var(--text-4);
  width: 18px;
  height: 18px;
}
.v35 .settings-group-label {
  margin: 22px 4px 8px;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--text-3);
}
.v35 .settings-group-label:first-child {
  margin-top: 0;
}

/* ───────────────────────── الدرج ───────────────────────── */

.v35 .drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  /* السحب على الخلفية المعتمة أو رأس القائمة لا يمرّر الصفحة خلفها */
  touch-action: none;
  overscroll-behavior: contain;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.v35 .drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.v35 .drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(84vw, 340px);
  background: var(--bg-raised);
  border-inline-start: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform var(--dur-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-top) + 8px) 10px calc(var(--safe-bottom) + 12px);
}
.v35 .drawer-backdrop.open .drawer {
  transform: none;
}
.v35 .drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 12px;
}
.v35 .drawer-me {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
}
.v35 .drawer-me {
  flex: 1;
  margin-inline-end: 8px;
  padding: 10px 12px 10px 10px !important;
  border-radius: var(--r-lg) !important;
  background: var(--surface-1) !important;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-1);
}
.v35 .drawer-me:active {
  background: var(--surface-2) !important;
}
.v35 .drawer-me > div {
  flex: 1;
  min-width: 0;
}
.v35 .drawer-me strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  unicode-bidi: plaintext;
  text-align: right;
}
.v35 .drawer-me > .icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--text-4);
}
.v35 .drawer-me img,
.v35 .drawer-me .avatar-letter {
  width: 48px;
  height: 48px;
  box-shadow: 0 0 0 2px var(--bg-raised), 0 0 0 3.5px var(--accent-line);
  border-radius: 99px;
  object-fit: cover;
  flex: none;
}
.v35 .drawer-me strong {
  display: block;
  font-size: var(--fs-body-lg);
  font-weight: 700;
}
.v35 .drawer-me small {
  display: block;
  font-size: var(--fs-caption);
  color: var(--text-3);
}
.v35 .avatar-letter {
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--text-2);
  font-weight: 700;
}
.v35 .drawer-scroll {
  overflow: auto;
  /* حافة القائمة لا تنقل التمرير إلى الصفحة خلفها (scroll chaining) */
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  flex: 1;
}
.v35 .drawer-group {
  padding: 8px 0;
}
.v35 .drawer-group + .drawer-group {
  border-top: 1px solid var(--line);
}
.v35 .drawer-label {
  margin: 4px 12px 4px;
  font-size: var(--fs-caption);
  color: var(--text-4);
  font-weight: 700;
}
.v35 .drawer-item {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: transparent;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  color: var(--text-1);
  font-size: var(--fs-body-lg);
  font-weight: 550;
  text-align: start;
}
.v35 .drawer-item .icon {
  width: 22px;
  height: 22px;
  color: var(--text-2);
}
.v35 .drawer-item:active {
  background: var(--surface-2);
}
/* «أنت هنا»: شرطة بلون القسم في البداية ونصّ أقوى، لا صندوق ملوّن */
.v35 .drawer-item {
  position: relative;
}
.v35 .drawer-item.active {
  background: none;
  font-weight: 700;
}
.v35 .drawer-item.active::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.v35 .drawer-item.active .icon {
  color: var(--accent-text);
}
.v35 .drawer-label {
  margin: 8px 12px 6px;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  color: var(--text-4);
}

/* الأقسام في رأس القائمة: ثلاث خانات بكلمة كل قسم بلونه */
.v35 .drawer-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px 2px 12px;
}
.v35 .drawer-section {
  --tone: #8f5cff;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 58px;
  padding: 10px 4px 9px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-3);
  font: inherit;
  overflow: hidden;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.v35 .drawer-section--anime {
  --tone: #3b82f6;
}
.v35 .drawer-section--cinema {
  --tone: #e0303a;
}
.v35 .drawer-section b {
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: 2.4px;
  margin-inline-end: -2.4px;
  color: color-mix(in srgb, var(--tone) 55%, var(--text-2));
}
.v35 .drawer-section small {
  font-size: 10.5px;
}
.v35 .drawer-section[aria-checked='true'] {
  background: color-mix(in srgb, var(--tone) 14%, var(--surface-1));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 45%, transparent);
  color: var(--text-2);
}
.v35 .drawer-section[aria-checked='true'] b {
  color: color-mix(in srgb, var(--tone) 70%, #fff);
}
.v35 .drawer-section:active {
  transform: scale(0.97);
}
.v35 .drawer-item .badge {
  margin-inline-start: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}
.v35 .drawer-version {
  padding: 12px 12px 0;
  color: var(--text-4);
  font-size: var(--fs-caption);
  direction: ltr;
  text-align: end;
}

/* ───────────────────────── الأوراق السفلية والرسائل ───────────────────────── */

.v35 .modal-backdrop,
.v35 .sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: end center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.v35 .modal-backdrop.show,
.v35 .sheet-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
/* The shared server sheet has interactive descendants with pointer-events:auto.
   When it closes, make the entire subtree non-interactive regardless of those rules. */
.v35 .sheet-backdrop[hidden] {
  display: none;
}
.v35 .sheet-backdrop[inert],
.v35 .sheet-backdrop[inert] * {
  pointer-events: none !important;
}
.v35 .sheet {
  width: min(100%, 520px);
  max-height: 86vh;
  overflow: auto;
  background: var(--bg-raised);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -1px 0 var(--line-strong);
  padding: 8px var(--gutter) calc(var(--safe-bottom) + 16px);
  transform: translateY(24px);
  transition: transform var(--dur-slow) var(--ease-out);
}
.v35 .show > .sheet {
  transform: none;
}
.v35 .sheet-handle {
  width: 36px;
  height: 4px;
  margin: 2px auto 12px;
  border-radius: 99px;
  background: var(--surface-3);
}
.v35 .sheet h3 {
  margin: 0 0 4px;
  font-size: var(--fs-title-sm);
  font-weight: 700;
}
.v35 .sheet p {
  margin: 0;
  font-size: var(--fs-meta);
  color: var(--text-3);
  line-height: 1.7;
}
.v35 .sheet-item {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  font-size: var(--fs-body-lg);
  text-align: start;
}
.v35 .sheet-item:active {
  background: var(--surface-2);
}
.v35 .sheet-item .icon {
  width: 22px;
  height: 22px;
  color: var(--text-2);
}
.v35 .sheet-item[aria-pressed='true'] .icon {
  color: var(--accent-text);
}
.v35 .sheet-item .trail {
  margin-inline-start: auto;
  color: var(--accent-text);
}
/* ⋮ بجانب اسم بطاقة «آخر المشاهدات» (الأنمي والسينما): صغير هادئ، ولمسه واسع */
.v35 .cw-more {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -4px -4px 0;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--text-3);
  cursor: pointer;
}
.v35 .cw-more:active {
  background: var(--surface-2);
  color: var(--text-1);
}
.v35 .sheet-item--danger,
.v35 .sheet-item--danger .icon {
  color: var(--danger);
}
.v35 .sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.v35 .sheet-actions .btn {
  flex: 1;
}

.v35 .toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 14px);
  max-width: calc(100% - 32px);
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 16px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px var(--line);
  color: var(--text-1);
  font-size: var(--fs-meta);
  font-weight: 550;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.v35 .toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 370px) {
  .v35 {
    --gutter: 14px;
  }
}
@media (min-width: 700px) {
  .v35 .app {
    margin: 24px auto;
    min-height: calc(100vh - 48px);
    border-radius: 28px;
    box-shadow: 0 0 0 1px var(--line), 0 35px 100px rgba(0, 0, 0, 0.45);
  }
  .v35 .bottom-nav {
    bottom: 24px;
    border-radius: 0 0 28px 28px;
  }
}

/* ───────────────────────── المشاركة ───────────────────────── */

.v35 .share-head {
  margin-bottom: 14px;
}
.v35 .share-head p {
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.v35 .share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
  padding-bottom: 6px;
}
.v35 .share-person {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--text-2);
}
.v35 .share-person:active {
  background: var(--surface-2);
}
.v35 .share-person span {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.v35 .share-person > img,
.v35 .share-person > .avatar-letter {
  box-shadow: 0 0 0 2px var(--bg-raised), 0 0 0 3px var(--line-strong);
}
.v35 .share-everyone {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.v35 .share-step-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 -6px 12px;
}
.v35 .share-to {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-body-lg);
}
.v35 .share-work-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.v35 .share-work-cover {
  position: relative;
  flex: none;
  width: 52px;
  aspect-ratio: 0.7;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.v35 .share-work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v35 .share-work-card strong {
  display: block;
  font-size: var(--fs-body);
  text-align: right;
}
.v35 .share-work-card span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-caption);
  color: var(--text-3);
}
.v35 .share-note {
  width: 100%;
  min-height: 0;
  margin-top: 12px;
  padding: 12px 14px;
  resize: none;
  line-height: 1.7;
}
.v35 .share-hide {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-body);
}
.v35 .share-hide span {
  flex: 1;
}
.v35 .share-send {
  margin-top: 16px;
}

/* مفتاح تشغيل وإطفاء: مربّع الاختيار نفسه مرسومًا، فيبقى للوصول دلالته */
.v35 .switch-input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 99px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.v35 .switch-input::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 99px;
  background: var(--text-2);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease);
}
.v35 .switch-input:checked {
  background: var(--accent);
  box-shadow: none;
}
.v35 .switch-input:checked::after {
  transform: translateX(-18px);
  background: #fff;
}

/* ───────────────────────── الإشعارات ───────────────────────── */

.v35 .notif-body {
  padding-inline: 0;
}
.v35 .notif-body .settings-group-label {
  margin-inline: var(--gutter);
}
.v35 .notif-list {
  display: grid;
}
.v35 .notif {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 10px var(--gutter);
  border: 0;
  background: transparent;
  text-align: start;
  transition: background var(--dur-fast) var(--ease);
}
.v35 .notif:active {
  background: var(--surface-2);
}
.v35 .notif--unread {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.v35 .notif--unread::before {
  content: '';
  position: absolute;
  inset-inline-start: 6px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 99px;
  background: var(--accent);
}
.v35 .notif-face {
  position: relative;
  flex: none;
}
.v35 .notif-kind {
  position: absolute;
  bottom: -2px;
  inset-inline-end: -4px;
  width: 20px;
  height: 20px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--text-1);
  box-shadow: 0 0 0 2px var(--bg);
}
.v35 .notif-kind--frame,
.v35 .notif-kind--recommendation {
  background: var(--accent);
  color: #fff;
}
.v35 .notif-kind .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}
.v35 .notif-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-2);
}
.v35 .notif-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v35 .notif-name,
.v35 .notif-title {
  color: var(--text-1);
  font-weight: 700;
}
.v35 .notif-title {
  font-weight: 600;
}
.v35 .notif--unread .notif-text {
  color: var(--text-1);
}
.v35 .notif-text time {
  font-size: var(--fs-caption);
  color: var(--text-3);
}
.v35 .notif-cover {
  flex: none;
  width: 40px;
  height: 54px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.v35 .notif-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ───────────────────────── البحث قبل الكتابة ───────────────────────── */

.v35 .search-idle[hidden],
.v35 #searchGrid[hidden] {
  display: none;
}
.v35 .search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 10px;
}
.v35 .search-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
}
.v35 .text-btn {
  min-height: 36px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  font-size: var(--fs-meta);
  font-weight: 650;
}
.v35 .search-recent {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v35 .search-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 38px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 99px;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font: inherit;
  font-size: var(--fs-meta);
}
.v35 .search-chip .icon {
  flex: none;
  color: var(--text-4);
}
.v35 .search-chip bdi {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v35 .search-chip:active {
  background: var(--surface-2);
}
.v35 .search-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v35 .search-genre {
  --hue: 265;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 99px;
  background: hsl(var(--hue) 40% 20%);
  box-shadow: inset 0 0 0 1px hsl(var(--hue) 50% 60% / 0.2);
  color: hsl(var(--hue) 80% 88%);
  font: inherit;
  font-size: var(--fs-meta);
  font-weight: 650;
}
.v35 .search-genre:active {
  transform: scale(0.97);
}
.v35 .search-trend {
  display: grid;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.v35 .search-trend-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: inherit;
  text-align: start;
}
.v35 .search-trend-row + .search-trend-row::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 94px 0;
  height: 1px;
  background: var(--line);
}
.v35 .search-trend-row:active {
  background: var(--surface-2);
}
.v35 .search-trend-rank {
  flex: none;
  width: 24px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.v35 .search-trend-row:first-child .search-trend-rank {
  color: var(--gold);
}
.v35 .search-trend-cover {
  position: relative;
  flex: none;
  width: 40px;
  aspect-ratio: 0.7;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.v35 .search-trend-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v35 .search-trend-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.v35 .search-trend-title {
  font-size: var(--fs-body);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.v35 .search-trend-meta {
  font-size: var(--fs-caption);
  color: var(--text-3);
}
.v35 .search-count {
  margin: 14px 0 10px;
  font-size: var(--fs-meta);
  color: var(--text-3);
}
.v35 .search-count[hidden] {
  display: none;
}
.v35 .search-count bdi {
  color: var(--text-1);
  font-weight: 650;
}

/* ───────────────────────── الإعدادات: الحالة والحقول ───────────────────────── */

.v35 .settings-note {
  margin: 8px 4px 0;
  font-size: var(--fs-caption);
  line-height: 1.7;
  color: var(--text-3);
}
.v35 .setting .value--ok {
  color: var(--success);
}
.v35 .setting .value--warn {
  color: var(--warning);
}
.v35 label.setting {
  cursor: pointer;
}
.v35 label.setting .switch-input {
  margin-inline-start: auto;
  flex: none;
}
.v35 .field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}
.v35 .field-label {
  font-size: var(--fs-meta);
  font-weight: 650;
  color: var(--text-2);
}
.v35 .field-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text-1);
  font: inherit;
  font-size: var(--fs-body);
  text-align: left;
  outline: none;
}
.v35 .field-input:focus {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.v35 .sheet .field + .btn,
.v35 .sheet .share-note + .btn {
  margin-top: 18px;
}
.v35 .report-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}
.v35 .chip-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 99px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font: inherit;
  font-size: var(--fs-meta);
  font-weight: 600;
}
.v35 .chip-btn[aria-pressed='true'] {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent-line);
  color: var(--accent-text);
}

/* ───────────────────────── الإعدادات: النظام ومنطقة الخطر ───────────────────────── */

.v35 .system-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  margin-top: 28px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--r-lg);
  background: none;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  text-align: start;
}
.v35 .system-toggle > .icon:first-child {
  flex: none;
  color: var(--text-3);
}
.v35 .system-toggle > span {
  flex: 1;
  display: grid;
  gap: 2px;
}
.v35 .system-toggle strong {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text-1);
}
.v35 .system-toggle small {
  font-size: var(--fs-caption);
  color: var(--text-3);
}
.v35 .system-toggle .chev {
  transform: rotate(-90deg);
  transition: transform var(--dur) var(--ease);
}
.v35 .system-toggle.open .chev {
  transform: rotate(90deg);
}
.v35 .system-toggle:active {
  background: var(--surface-1);
}
.v35 .settings-group-label.danger-zone-label {
  color: var(--danger);
}
.v35 .settings-list.danger-zone {
  background: color-mix(in srgb, var(--danger) 5%, var(--surface-1));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 35%, transparent);
}
.v35 .setting--danger > .icon:first-child,
.v35 .setting--danger strong {
  color: var(--danger);
}

/* بحث العمل في باقي المصادر: شريحة هادئة لا تُضغط */
.v35 .source-chip--busy {
  gap: 8px;
  color: var(--text-3);
  background: none;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}
.v35 .spinner {
  width: 14px;
  height: 14px;
  border-radius: 99px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent-text);
  animation: v35-spin 0.8s linear infinite;
}
@keyframes v35-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── آخر المشاهدات: قائمة بغلاف واسم وفصل ووقت ── */
.v35 .hist-list { display: flex; flex-direction: column; gap: 14px; padding-block: 4px 12px; }
.v35 .hist-row {
  display: flex; align-items: center; gap: 10px;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.v35 .hist-row--gone { opacity: 0; transform: translateX(-24px); }
.v35 .hist-open {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px;
  background: none; border: 0; padding: 0; color: inherit; text-align: start; cursor: pointer;
}
.v35 .hist-cover {
  flex: none; width: 74px; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2); position: relative;
}
.v35 .hist-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v35 .hist-copy { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.v35 .hist-title {
  font-size: var(--fs-title-sm); font-weight: 650; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.v35 .hist-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  color: var(--text-3); font-size: var(--fs-meta);
}
.v35 .hist-chapter { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.v35 .hist-chapter .icon { color: var(--text-3); }
.v35 .hist-dot { color: var(--text-4); }
.v35 .hist-side { flex: none; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.v35 .hist-ring {
  --p: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0);
  position: relative;
}
.v35 .hist-ring::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg); }
.v35 .hist-ring b { position: relative; font-size: 10.5px; font-weight: 700; color: var(--accent-text); }
.v35 .hist-del {
  width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%;
  background: none; border: 0; color: var(--text-4); cursor: pointer;
}
.v35 .hist-del:active { color: var(--danger); background: var(--danger-soft); }

/* إيصالات المجلس */
.v35 .mj-receipt--pending { color: var(--text-3); }
.v35 .mj-receipt--pending .spinner { width: 12px; height: 12px; }
.v35 .mj-receipt--got { opacity: .8; }
.v35 .mj-receipt--sent { opacity: .55; }

/* ── الاجتماع: أربعة أقسام في شريط واحد ثابت تحت العنوان ── */
.v35 .social-tabs {
  position: sticky;
  top: calc(var(--top-h) + var(--safe-top));
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0 var(--gutter);
  padding: 4px;
  border-radius: 99px;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.v35 .social-tab {
  position: relative;
  min-height: 38px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--text-3);
  font-size: var(--fs-meta);
  font-weight: 650;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.v35 .social-tab.active {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.v35 .social-tab-dot {
  position: absolute;
  top: 7px;
  inset-inline-end: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── الأصدقاء ── */
.v35 .pal-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
}
.v35 .pal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.v35 .pal-face {
  position: relative;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
}
.v35 .pal-row--reading .pal-face > :first-child {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
.v35 .pal-dot {
  position: absolute;
  bottom: 1px;
  inset-inline-end: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2.5px var(--surface-1);
}
.v35 .pal-row--reading .pal-dot {
  background: var(--accent);
}
.v35 .pal-row--idle .pal-dot {
  background: var(--warning);
}
.v35 .pal-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}
.v35 .pal-name {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-1);
  font-size: var(--fs-title-sm);
  font-weight: 700;
}
.v35 .pal-line {
  max-width: 100%;
  font-size: var(--fs-meta);
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v35 .pal-work {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  font-weight: 650;
}
.v35 .pal-on {
  color: var(--success);
}
.v35 .pal-go {
  flex: none;
  color: var(--text-4);
}
.v35 .pal-idle {
  color: var(--warning);
}

/* فحص المصادر */
.v35 .check-list { display: flex; flex-direction: column; gap: 8px; max-height: 58vh; overflow-y: auto; }
.v35 .check-row { padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line); }
.v35 .check-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v35 .check-state .spinner { width: 14px; height: 14px; }
.v35 .check-ok { color: var(--success); font-size: var(--fs-meta); font-weight: 650; }
.v35 .check-bad { color: var(--danger); font-size: var(--fs-meta); font-weight: 650; }
.v35 .check-steps { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
.v35 .check-step { font-size: var(--fs-caption); }
.v35 .check-step--ok { color: var(--text-3); }
.v35 .check-step--bad { color: var(--danger); }
.v35 .check-why { flex-basis: 100%; color: var(--text-3); font-size: var(--fs-caption); }

/* ورقة «أضف إلى أفضل 5»: خمس خانات تختار منها */
.v35 .top-slots { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.v35 .top-slot {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px;
  border: 0; border-radius: var(--r-md); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-1); text-align: start;
}
.v35 .top-slot--here { box-shadow: inset 0 0 0 1.5px var(--accent); }
.v35 .top-slot--empty .top-slot-title { color: var(--text-4); }
.v35 .top-slot-no {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-3); font-weight: 800; font-size: 14px;
}
.v35 .top-slot-no--gold { background: var(--gold); color: #1a1205; }
.v35 .top-slot-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.v35 .top-slot-hint { flex: none; font-size: var(--fs-caption); color: var(--text-3); }

/* ── آخر المشاهدات: بطاقات بالأيام، بهوية VANTARA ── */
.v35 .rv-list { display: flex; flex-direction: column; gap: 22px; padding: 6px 0 16px; }
.v35 .rv-day {
  margin: 10px 2px 2px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-3);
}
.v35 .rv-day:first-child { margin-top: 2px; }
/* سطر حديث بلا صناديق (على نهج Mihon وWebtoon وApple Books): الغلاف هو البطل،
   العنوان ثم الفصل بلون التطبيق، ثم المدة وآخر مرة بهدوء؛ والمسافة وحدها تفصل الأعمال */
.v35 .rv-row {
  position: relative;
  display: flex;
  align-items: center;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.v35 .rv-row--gone { opacity: 0; transform: translateX(-24px); }
.v35 .rv-open {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 18px;
  padding: 4px 0; border: 0; background: none; color: inherit; text-align: start;
  transition: transform 160ms var(--ease);
}
.v35 .rv-open:active { transform: scale(.985); }
.v35 .rv-cover {
  position: relative; flex: none; width: 104px; aspect-ratio: 3 / 4; border-radius: 16px;
  overflow: hidden; background: var(--surface-2);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .75), 0 2px 6px rgba(0, 0, 0, .35);
}
.v35 .rv-cover::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.v35 .rv-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v35 .rv-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.v35 .rv-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; color: var(--text-1);
  overflow: hidden; overflow-wrap: anywhere; max-width: 100%;
}
.v35 .rv-meta { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
.v35 .rv-chapter {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  color: var(--accent-text, var(--text-1)); font-size: 15px; font-weight: 700;
}
.v35 .rv-chapter svg { flex: none; }
.v35 .rv-chapter bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v35 .rv-duration, .v35 .rv-time { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.v35 .rv-duration svg, .v35 .rv-time svg { opacity: .75; }
.v35 .rv-duration:empty { display: none; }
.v35 .rv-progress {
  --p: 0%;
  display: block; height: 3px; border-radius: 99px; background: var(--surface-3); position: relative; overflow: hidden;
}
.v35 .rv-progress::after {
  content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p);
  background: linear-gradient(90deg, var(--accent), var(--accent-text)); border-radius: inherit;
}
.v35 .rv-del {
  flex: none; align-self: center; width: var(--tap); height: var(--tap); margin-inline-start: 6px; display: grid; place-items: center;
  border: 0; border-radius: 14px; background: none; color: var(--text-4);
}
.v35 .rv-del:active { color: var(--danger); background: var(--danger-soft); }

/* إحصائيات المتابعة: صفحة الإعدادات وحدها، من دون كروت متراكبة. */
/* The background follows the existing section accents and fades near the header. */
.v35 .insights-body { --insights-accent: var(--accent); min-height: 100%; padding-bottom: calc(var(--safe-bottom) + 32px); background-color: var(--bg); }
.v35 .insights-body[data-kind='all'] { background-image: radial-gradient(ellipse 90% 340px at 100% 0, rgba(126, 83, 205, .12), transparent 80%), radial-gradient(ellipse 75% 280px at 0 80px, rgba(59, 130, 246, .08), transparent 85%), radial-gradient(ellipse 70% 180px at 50% 220px, rgba(234, 139, 61, .035), transparent 85%); }
.v35 .insights-body[data-kind='manga'] { background-image: radial-gradient(ellipse 110% 400px at 85% 0, rgba(139, 92, 246, .12), transparent 80%); }
.v35 .insights-body[data-kind='anime'] { --insights-accent: #3b82f6; background-image: radial-gradient(ellipse 110% 400px at 85% 0, rgba(59, 130, 246, .12), transparent 80%); }
.v35 .insights-total { min-height: 120px; display: flex; align-items: center; padding: 24px 4px; font-size: clamp(38px, 10vw, 64px); line-height: 1.2; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--text-1); }
.v35 .insights-total--short { font-size: 32px; }
.v35 .insights-total.insights-loading::after { content: ''; width: 55%; height: 48px; border-radius: 12px; background: var(--surface-2); }
.v35 .insights-people { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 22px; }
.v35 .insights-person { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 44px; max-width: 185px; padding: 6px 10px; border: 0; border-radius: 99px; background: var(--surface-1); color: var(--text-3); font-weight: 650; font-size: 12px; }
.v35 .insights-person.active { color: var(--text-1); background: color-mix(in srgb, var(--insights-accent) 17%, var(--surface-2)); }
.v35 .insights-person img, .v35 .insights-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--surface-3); color: var(--text-1); flex: none; }
.v35 .insights-person span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v35 .insights-filters { display: flex; gap: 4px; padding: 4px; border-radius: 15px; background: var(--surface-1); margin-bottom: 26px; }
.v35 .insights-filters button { flex: 1; min-width: 0; min-height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--text-3); font-size: 11px; font-weight: 750; letter-spacing: .04em; display: flex; align-items: center; justify-content: center; gap: 4px; transition: background-color .18s ease, color .18s ease; }
.v35 .insights-filters button.active { color: var(--text-1); background: var(--surface-3); }
.v35 .insights-filters button:disabled { opacity: .45; }
.v35 .insights-ranking { display: grid; gap: 16px; }
.v35 .insights-rank { width: 100%; min-height: 64px; border: 0; background: transparent; color: inherit; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 14px; padding: 0; text-align: start; animation: insights-enter .22s ease both; }
.v35 .insights-rank:active { opacity: .75; }
.v35 .insights-track { display: flex; min-width: 0; padding-inline-end: 18px; }
.v35 .insights-bar { --insight-color: #434059; position: relative; height: 48px; min-width: 2px; display: flex; align-items: center; background: var(--insight-color); border-radius: 8px; transition: width .28s ease, background-color .28s ease; }
.v35 .insights-cover { position: absolute; inset-inline-end: -18px; width: 38px; height: 56px; border-radius: 7px; overflow: hidden; background: var(--surface-2); }
.v35 .insights-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v35 .insights-rank-copy { display: grid; min-width: 0; gap: 6px; }
.v35 .insights-rank-copy strong { color: var(--text-1); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v35 .insights-rank-copy small { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.v35 .insights-empty, .v35 .insights-retry { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 36px 8px; color: var(--text-3); font: inherit; font-size: 13px; border: 0; background: transparent; }
.v35 .insights-placeholder { height: 56px; border-radius: 9px; background: var(--surface-1); }
.v35 .insights-person:focus-visible, .v35 .insights-filters button:focus-visible, .v35 .insights-rank:focus-visible, .v35 .insights-retry:focus-visible { outline: 2px solid var(--insights-accent); outline-offset: 3px; }
@keyframes insights-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .v35 .insights-rank { animation: none; } .v35 .insights-bar, .v35 .insights-filters button { transition: none; } }
.v35 .work-insights { display: grid; gap: 8px; margin: 8px var(--gutter) 12px; color: var(--text-3); font-size: var(--fs-caption); }
.v35 .work-insights-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v35 .work-insights-line span { display: inline-flex; gap: 4px; align-items: center; }
.v35 .work-insights-line .icon { width: 16px; height: 16px; }
.v35 .work-insights-person { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: inherit; font: inherit; padding: 3px 0; }
.v35 .work-insights-person img, .v35 .work-insights-person .insights-avatar { width: 22px; height: 22px; }

/* «ترجمة تلقائية» بجانب العين: مقفلة رمادية، ومفعّلة بلون التطبيق */
.v35 .detail-tl[hidden] { display: none; }
.v35 .detail-tl.detail-tl--on {
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}

/* الزر يدور بهدوء ما دامت فصول هذا العمل تُترجم في الخلفية */
.v35 .detail-tl.detail-tl--busy { animation: tl-busy 1.6s ease-in-out infinite; }
@keyframes tl-busy { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .v35 .detail-tl.detail-tl--busy { animation: none; } }

/* ترجمة الفصول مقدمًا: بطاقة مهمة (تقدّم + أزرار) وورقة الإعداد */
.v35 .tl-job {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
}
.v35 .tl-job__head { display: flex; flex-direction: column; gap: 2px; }
.v35 .tl-job__head small { color: var(--text-3); }
.v35 .tl-job__bar {
  height: 6px;
  margin: 10px 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-3) 25%, transparent);
  overflow: hidden;
}
.v35 .tl-job__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.4s ease;
}
.v35 .tl-job__state { margin: 0 0 10px; color: var(--text-3); font-size: var(--fs-meta); }
.v35 .tl-job__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.v35 .tl-job__actions .btn { flex: 1 1 auto; min-width: 0; }
.v35 .tl-ahead__range { display: flex; gap: 10px; }
.v35 .tl-ahead__range .field { flex: 1 1 0; min-width: 0; }
.v35 .tl-ahead__sources { margin-bottom: 12px; }
.v35 .tl-ahead__note { margin: 6px 0 12px; color: var(--text-3); font-size: var(--fs-meta); line-height: 1.6; }
.v35 .tl-ahead__summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
}
.v35 .tl-ahead__summary small { color: var(--text-3); line-height: 1.6; }
.v35 .tl-ahead__summary .tl-ahead__warn { color: var(--danger); }

/* أزرار الاختيار داخل .segmented (وضع الترجمة، مصدرها): بمظهر شرائح المكتبة */
.v35 .segmented > button[aria-pressed] {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 99px;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font: inherit;
  font-size: var(--fs-meta);
  font-weight: 600;
  white-space: nowrap;
}
.v35 .segmented > button[aria-pressed='true'] {
  background: var(--text-1);
  box-shadow: none;
  color: var(--bg);
}
.v35 .tl-ahead__label { display: block; margin: 10px 0 8px; }
/* داخل صف إعداد: بلا هوامش الصفحة، فلا يُقصّ الزر الأخير عند الحافة */
.v35 .setting .segmented { flex: none; margin: 0; padding: 0; gap: 6px; overflow: visible; }
.v35 .setting .segmented > button[aria-pressed] { padding: 0 12px; }

/* ───────────── آخر التحديثات: خط VANTARA الزمني (مشترك بين الأقسام) ─────────────
 * نفس البنية في المانجا والأنمي والسينما: ثلاث بطاقات في الصف بوقتها،
 * واللون من رموز القسم وحدها. */
.v35 .grid.up-feed,
.v35 .up-feed {
  display: block;
}
.v35 .up-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
}
.v35 .up-day {
  grid-column: 1 / -1;
  margin: 10px 0 -4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
}
.v35 .up-day:first-child {
  margin-top: 0;
}
.v35 .up-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: start;
  cursor: pointer;
}
.v35 .up-art {
  display: block;
  aspect-ratio: 2 / 3;
  margin-bottom: 4px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  transition: transform 0.15s ease;
}
.v35 .up-card:active .up-art {
  transform: scale(0.97);
}
.v35 .up-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.v35 .up-img.loaded {
  opacity: 1;
}
.v35 .up-title {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v35 .up-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.v35 .up-plus {
  flex: none;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.v35 .up-unit,
.v35 .up-when {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v35 .up-unit {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.v35 .up-when {
  font-size: 11px;
  color: var(--text-3);
}
.v35 .up-sources {
  color: var(--text-4);
}
.v35 .up-skel {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: var(--surface-1);
}
.v35 .up-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  min-height: 24px;
  padding: 12px 0 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}
.v35 .up-status { flex-basis: 100%; }
@media (min-width: 700px) {
  .v35 .up-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

.v35 .up-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v35 .feed-refresh { border: 0; background: transparent; color: var(--accent); font: inherit; font-size: .75rem; cursor: pointer; }

/* ───────────────────────── الإعدادات: بلا صناديق ─────────────────────────
   خطوط شعرية كالسينما والرئيسية: رأس هو أنت، وعناوين بكلمة لاتينية صغيرة،
   وصفوف خفيفة. لا خلفيات ولا إطارات حول المجموعات. */

.v35 #settingsBody {
  padding-top: 8px;
}
.v35 #settingsBody .settings-me {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 6px 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text-1);
  text-align: start;
  font: inherit;
  cursor: pointer;
}
.v35 #settingsBody .settings-me-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.v35 #settingsBody .settings-me-text strong {
  font-size: 20px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v35 #settingsBody .settings-me-text small {
  color: var(--text-3);
  font-size: var(--fs-meta);
  text-align: end;
  justify-self: start;
}
.v35 #settingsBody .settings-me-cta {
  color: var(--accent-text);
  font-size: var(--fs-meta);
  font-weight: 650;
}
.v35 #settingsBody .settings-me .chev {
  width: 16px;
  height: 16px;
  color: var(--accent-text);
}

.v35 #settingsBody .settings-group-label {
  display: grid;
  gap: 2px;
  margin: 30px 0 4px;
  color: var(--text-1);
}
.v35 #settingsBody .settings-group-label:first-child {
  margin-top: 4px;
}
.v35 #settingsBody .settings-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
}
.v35 #settingsBody .settings-eyebrow::after {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.v35 #settingsBody .settings-title {
  font-size: 19px;
  font-weight: 750;
}
/* عنوان فرعي داخل المجموعة («ما تراه أنت»): أصغر وبلا كلمة لاتينية */
.v35 #settingsBody .settings-sublabel {
  margin-top: 18px;
}
.v35 #settingsBody .settings-sublabel .settings-title {
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--text-3);
}

.v35 #settingsBody .settings-list {
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.v35 #settingsBody .setting {
  min-height: 58px;
  padding: 13px 0;
  gap: 14px;
}
.v35 #settingsBody .setting + .setting::before {
  inset-inline: 36px 0;
}
.v35 #settingsBody .setting > .icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--text-3);
}
.v35 #settingsBody .setting strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.v35 #settingsBody .setting small {
  margin-top: 1px;
  font-size: 12.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v35 #settingsBody .setting .value {
  flex: none;
  max-width: 40%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v35 #settingsBody button.setting:active {
  background: none;
  opacity: 0.7;
}
.v35 #settingsBody .switch-input {
  width: 40px;
  height: 24px;
}
.v35 #settingsBody .switch-input::after {
  width: 18px;
  height: 18px;
}
.v35 #settingsBody .switch-input:checked::after {
  transform: translateX(-16px);
}
.v35 #settingsBody .settings-note {
  margin: 4px 0 0;
  padding-inline-start: 34px;
  font-size: 12px;
  color: var(--text-4, var(--text-3));
}

/* النظام: صف شعري يُطوى، لا صندوق */
.v35 #settingsBody .system-toggle {
  min-height: 58px;
  margin-top: 30px;
  padding: 13px 0;
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.v35 #settingsBody .settings-list.danger-zone {
  background: none;
  box-shadow: none;
}

/* المجلس في الدرج بصورته كخادم ديسكورد: مربّع مستدير بدل الأيقونة */
.v35 .drawer-room-pic {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-3);
  color: var(--text-1);
  font-size: 13px;
  font-weight: 750;
}
.v35 .drawer-room-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v35 .drawer-item.active .drawer-room-pic {
  box-shadow: 0 0 0 2px var(--accent);
}

/* «ما الجديد»: سطر لكل بند، ونوعه كلمة صغيرة قبله (بلا صناديق) */
.whats-new { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 10px; }
.whats-new li { display: flex; gap: 10px; align-items: baseline; line-height: 1.6; font-size: 14px; }
.whats-new__kind { flex: none; font-size: 11px; font-weight: 700; color: var(--accent, #c9a6ff); min-width: 34px; }
.whats-new__kind--fix { color: #7fd1a7; }
.whats-new__kind--improve { color: #8fb8ff; }
