/*
 * VANTARA CINEMA — الهوية.
 *
 * أسود محمرّ وأحمر دموي واحد. الصورة تُعرض كما هي: لا شارات ولا نصوص فوقها،
 * والكلام تحتها. حواف حادة (6px) بدل استدارة الأنمي، وعناوين قوية بلا
 * توهّج ولا زجاج ولا تدرّجات ملوّنة. الأحمر للفعل الأساسي والتقدّم فقط.
 * المتغيّرات العامة للقسم في anime.css (`[data-section='cinema']`).
 */

.v35 [data-tone='cinema'] {
  --bg: #0a0707;
  --bg-raised: #0f0b0b;
  --surface-1: #141010;
  --surface-2: #1b1515;
  --surface-3: #251c1c;
  --line: rgba(255, 200, 200, 0.07);
  --line-strong: rgba(255, 200, 200, 0.13);
  --text-2: #cbbdbd;
  --text-3: #978787;
  --text-4: #5e5252;
  --accent: #c1121f;
  --accent-press: #9a0e18;
  --accent-text: #f26b6b;
  --accent-soft: rgba(193, 18, 31, 0.16);
  --accent-line: rgba(193, 18, 31, 0.45);
  --accent-glow: transparent;
  accent-color: #c1121f;
}

.v35 .cinema-home,
.v35 .cinema-page {
  --cn-r: 6px;
  --cn-gutter: 16px;
  --cn-gold: #f5c518;
}

/* ───────────── قطع مشتركة ───────────── */

.v35 .cn-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.v35 .cn-img.loaded {
  opacity: 1;
}
.v35 .cn-img.failed {
  visibility: hidden;
}
.v35 .cn-skel {
  background: var(--surface-1);
  border-radius: var(--cn-r);
  animation: cn-pulse 1.4s ease-in-out infinite;
}
@keyframes cn-pulse {
  50% {
    background: var(--surface-2);
  }
}
.v35 .cn-skel-poster {
  aspect-ratio: 2 / 3;
  width: 124px;
  flex: none;
}
.v35 .cn-grid .cn-skel-poster {
  width: auto;
}
.v35 .cn-skel-line {
  height: 14px;
  margin: 14px var(--cn-gutter) 0;
  width: 60%;
}
.v35 .cn-skel-line.short {
  width: 35%;
}
.v35 .cn-skel-btn {
  height: 50px;
  margin-top: 18px;
}

.v35 .cn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--cn-r);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease;
}
.v35 .cn-btn:active {
  transform: scale(0.97);
}
.v35 .cn-btn svg {
  flex: none;
}
.v35 .cn-btn--play {
  background: var(--accent);
}
.v35 .cn-btn--play:active {
  background: var(--accent-press);
}
.v35 .cn-btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.v35 .cn-btn--icon {
  width: 46px;
  padding: 0;
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.v35 .cn-btn--block {
  display: flex;
  width: 100%;
  min-height: 50px;
  font-size: 16px;
  margin-top: 18px;
}
.v35 .cn-link {
  border: 0;
  background: none;
  padding: 4px 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-text);
  cursor: pointer;
}

.v35 .cn-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 13px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.v35 .cn-facts > span + span:not(.cn-imdb)::before,
.v35 .cn-facts > .cn-imdb + span::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-inline-end: 12px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--text-4);
}
.v35 .cn-imdb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  direction: ltr;
}
.v35 .cn-imdb b {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--cn-gold);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2px;
}
.v35 .cn-imdb span {
  color: var(--text);
  font-weight: 700;
}

.v35 .cn-mark {
  position: relative;
}
.v35 .cn-mark-text {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
}
.v35 .cn-mark-logo {
  display: block;
  max-width: min(70%, 280px);
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: right center;
}
.v35 .cn-mark.has-logo .cn-mark-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.v35 .cn-mark:not(.has-logo) .cn-mark-logo {
  display: none;
}

.v35 .cn-progress {
  display: block;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.v35 .cn-progress i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.v35 .cn-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 56px 32px;
  text-align: center;
  color: var(--text-3);
}
.v35 .cn-empty h3 {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--text);
}
.v35 .cn-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.v35 .cn-empty .cn-btn {
  margin-top: 12px;
}
.v35 .cn-note,
.v35 .cn-credit {
  margin: 24px var(--cn-gutter) 8px;
  font-size: 12px;
  color: var(--text-4);
  text-align: center;
}

/* ───────────── الرئيسية ───────────── */

.v35 .cn-home {
  padding-bottom: 24px;
}
.v35 .cn-kinds {
  display: flex;
  gap: 22px;
  padding: 2px var(--cn-gutter) 12px;
}
.v35 .cn-kind {
  position: relative;
  border: 0;
  background: none;
  padding: 6px 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.2s ease;
}
.v35 .cn-kind::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.v35 .cn-kind.active {
  color: var(--text);
}
.v35 .cn-kind.active::after {
  transform: scaleX(1);
}
.v35 .cn-kinds--inline {
  padding-top: 4px;
}

/* الواجهة الكبرى: الصورة بعرض الشاشة بلا إطار، والكلام تحتها */
.v35 .cn-bill {
  margin-bottom: 8px;
}
.v35 .cn-bill-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  /* أسفل الإطار بلون الصفحة: يتصل بالذوبان بلا حافة (انظر قص الصورة أدناه) */
  background: linear-gradient(to top, var(--bg) 3px, var(--surface-1) 3px);
  touch-action: pan-y;
  cursor: pointer;
}
.v35 .cn-bill-stage.cn-skel {
  border-radius: 0;
}
.v35 .cn-bill-img {
  position: absolute;
  inset: 0;
  /* كل خلفية تملأ الإطار نفسه (16/10) مهما كان مقاسها، ومركزها أعلى قليلًا حيث الوجوه */
  object-position: 50% 30%;
  /* الصورة طبقة متحركة تُرسم على حافة كسرية غير حافة الذوبان: على كثافة 2.625 (S23)
     كان صف بكسل منها يظهر خطًا فاتحًا تحت الذوبان. قصّ أسفلها يلغيه */
  clip-path: inset(0 0 2px 0);
  --from: 0;
  --to: 0;
  --drag: 0px;
  transform: translateX(var(--drag)) scale(1.001);
  transition: opacity 0.9s ease, transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
/* الداخلة: من جهة التقليب، أكبر قليلًا، ثم تستقر */
.v35 .cn-bill-img.cn-bill-enter {
  transform: translateX(calc(var(--from) * 7%)) scale(1.05);
}
/* الخارجة: تبقى ظاهرة تحتها وتنزاح للجهة الأخرى حتى تغطيها الجديدة */
.v35 .cn-bill-img.cn-bill-leave {
  transform: translateX(calc(var(--to) * 4%)) scale(1.02);
}
.v35 .cn-bill.dragging .cn-bill-img,
.v35 .cn-bill.dragging .cn-bill-info {
  transition: none;
}
.v35 .cn-bill-info {
  --shift: 0px;
  --drag: 0px;
  transform: translateX(var(--drag));
  transition: opacity 0.32s ease, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.v35 .cn-bill-info.is-out {
  opacity: 0;
  transform: translateX(var(--shift));
}
.v35 .cn-bill-info.no-anim {
  transition: none;
}
/* ذوبان رفيع في أسفل الصورة فقط ليتصل بالخلفية، لا ظلّ فوق المشهد */
.v35 .cn-bill-stage::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(to top, var(--bg), rgba(10, 7, 7, 0));
  pointer-events: none;
}
.v35 .cn-bill-info {
  display: grid;
  gap: 10px;
  padding: 4px var(--cn-gutter) 0;
  /* ارتفاع ثابت لكل شريحة: الشعار والسطور والأزرار في نفس المكان دائمًا */
  height: var(--cn-bill-info-h);
  align-content: start;
  --cn-bill-info-h: 196px;
}
.v35 .cn-bill-top {
  display: grid;
  gap: 10px;
}
/* خانة الشعار ثابتة الارتفاع: الشعار (أو الاسم) يجلس على قاعدتها مهما كان مقاسه */
.v35 .cn-bill-mark {
  height: 72px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.v35 .cn-bill-mark .cn-mark-logo {
  max-height: 100%;
  object-position: right bottom;
}
.v35 .cn-bill-mark .cn-mark-text {
  font-size: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v35 .cn-bill .cn-facts {
  height: 20px;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}
.v35 .cn-bill-genres {
  margin: -2px 0 0;
  height: 18px;
  line-height: 18px;
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v35 .cn-bill-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  height: 46px;
}
.v35 .cn-bill-actions .cn-btn--play {
  flex: 1;
}
/* «قائمتي» و«التفاصيل» بلا صناديق: أيقونة فوق كلمة صغيرة، و«شاهد» الأحمر وحده زر ممتلئ */
.v35 .cn-bill-actions .cn-btn--ghost,
.v35 .cn-bill-actions .cn-btn--icon {
  flex: none;
  flex-direction: column;
  gap: 3px;
  width: 64px;
  min-height: 46px;
  padding: 0;
  background: none;
  box-shadow: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
}
.v35 .cn-bill-actions .cn-btn--ghost svg,
.v35 .cn-bill-actions .cn-btn--icon svg {
  color: var(--text);
}
.v35 .cn-bill-actions .cn-btn--ghost:active,
.v35 .cn-bill-actions .cn-btn--icon:active {
  background: none;
  opacity: 0.7;
}
.v35 .cn-bill-ticks {
  display: flex;
  gap: 4px;
  height: 18px;
  padding: 16px var(--cn-gutter) 0;
}
.v35 .cn-tick {
  flex: 1;
  height: 2px;
  background: var(--surface-3);
  overflow: hidden;
}
.v35 .cn-tick i {
  display: block;
  height: 100%;
  background: var(--text-2);
  transform: scaleX(0);
  transform-origin: right center;
}

/* ── البانر البديل (cn-hero-alt): خيار يُقبل أو يُرفض بحذف الصنف وحده ──
   الصورة بعرض الشاشة من أعلاها تحت الترويسة، الترويسة شفافة ثم معتمة مع التمرير،
   والشعار فوق أسفل الصورة على ستار داكن ناعم (تمويه بلا توهّج). المقاسات ثابتة كالأصل. */
.v35[data-section='cinema'] #home:has(> #cinemaHome:not([hidden]) > .cn-hero-alt) > .header {
  position: sticky;
  top: 0;
  z-index: 30;
  /* طبقة رسم مستقلة فوق الصورة المتحركة تحتها: WebView أندرويد يرتّب مناطق اللمس
     بطبقات المعالج، وبدونها قد يذهب لمس زرَّي القائمة والبحث إلى البانر */
  transform: translateZ(0);
  background: transparent;
  transition: background-color 0.25s ease;
}
.v35[data-section='cinema'].cn-scrolled #home:has(> #cinemaHome:not([hidden]) > .cn-hero-alt) > .header {
  background: var(--bg);
}
.v35 .cn-hero-alt {
  position: relative;
  margin-top: calc(-1 * (var(--top-h) + var(--safe-top)));
}
.v35 .cn-hero-alt > .cn-kinds {
  position: absolute;
  top: calc(var(--top-h) + var(--safe-top));
  inset-inline: 0;
  z-index: 3;
}
.v35 .cn-hero-alt > .cn-kinds .cn-kind:not(.active) {
  color: rgba(255, 255, 255, 0.72);
}
.v35 .cn-hero-alt .cn-bill-stage {
  aspect-ratio: 4 / 3;
}
/* ستار علوي متدرّج تحت الترويسة والتبويبات ليُقرآ فوق أي صورة، حتى الفاتحة */
.v35 .cn-hero-alt .cn-bill-stage::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 40%;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.62) 30%,
    rgba(0, 0, 0, 0.3) 62%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}
/* أسفل الصورة: ظلّ متدرّج ناعم بلا تمويه يذوب في الخلفية خلف الشعار */
.v35 .cn-hero-alt .cn-bill-stage::after {
  height: 50%;
  z-index: 1;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(8, 7, 12, 0.86) 22%,
    rgba(8, 7, 12, 0.55) 48%,
    rgba(8, 7, 12, 0.22) 74%,
    rgba(8, 7, 12, 0) 100%
  );
}
/* الشعار وما تحته يصعدان فوق أسفل الصورة؛ الارتفاع الثابت نفسه */
.v35 .cn-hero-alt .cn-bill-info {
  position: relative;
  z-index: 2;
  margin-top: -84px;
}

/* الشاشة العريضة (ويندوز والكمبيوتر): 4/3 بعرض الشاشة كان أطول من الشاشة نفسها فلا يظهر
   تحته شيء. ارتفاع محسوب من الشاشة، والشعار والأزرار بعرض مقروء في جهة البداية */
@media (min-width: 900px) {
  .v35 .cn-hero-alt .cn-bill-stage {
    aspect-ratio: auto;
    height: clamp(380px, 62vh, 640px);
  }
  .v35 .cn-hero-alt .cn-bill-info {
    max-width: 560px;
    margin-top: -120px;
  }
}

/* أزرار الترويسة في السينما (الجوال): الجرس والبحث في كبسولة داكنة شفيفة واحدة،
   والقائمة في دائرة بنفس المادة — تُقرأ فوق أي صورة. الشعار ومبدّل الأقسام كما هما.
   لا تُثبَّت داخل البانر المتحرك: ترويسات مستقلة على مستوى الشاشة حتى لا
   تُحسب منطقة اللمس ضمن طبقة الصورة/التمرير في Android WebView. */
@media (max-width: 699px) {
  .v35[data-section='cinema'] #home:has(> #cinemaHome:not([hidden]) > .cn-hero-alt) > .header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    width: min(100%, 520px);
    margin-inline: auto;
    z-index: 100;
    transform: none;
    isolation: isolate;
  }
  /* كانت الترويسة sticky تشغل ارتفاعها في التخطيط؛ fixed لا تشغله.
     إزالة الهامش السالب تبقي بداية صورة البانر في الموضع نفسه. */
  .v35 .cn-hero-alt {
    margin-top: 0;
  }
  /* زر الرجوع ثابت مستقل عن طبقة الصورة المتحركة. لا نترك حاويته
     pointer-events:none ثم نطلب من الأبناء إصلاح اللمس داخل WebView. */
  .v35 #cinema.active .cn-detail-bar {
    position: fixed;
    inset-inline: 0;
    top: 0;
    width: min(100%, 520px);
    margin-inline: auto;
    margin-bottom: 0;
    z-index: 100;
    transform: none;
    pointer-events: auto;
  }
  .v35[data-section='cinema'] #home > .header {
    padding-inline: 12px;
  }
  .v35[data-section='cinema'] #home > .header .header-end,
  .v35[data-section='cinema'] #home > .header .header-start .icon-btn {
    background: rgba(18, 18, 21, 0.58);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-radius: 999px;
  }
  .v35[data-section='cinema'] #home > .header .header-end {
    gap: 2px;
    padding-inline: 6px;
  }
  .v35[data-section='cinema'] #home > .header .header-end .icon-btn,
  .v35[data-section='cinema'] #home > .header .header-start .icon-btn {
    width: 42px;
    height: 42px;
  }
  .v35[data-section='cinema'] #home > .header .icon-btn .icon {
    width: 22px;
    height: 22px;
  }
  .v35[data-section='cinema'] #home > .header .notify-dot {
    top: 9px;
    inset-inline-end: 10px;
    box-shadow: none;
  }
}

/* الأشرطة */
.v35 .cn-rail {
  margin-top: 28px;
}
.v35 .cn-rail-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 var(--cn-gutter) 12px;
}
.v35 .cn-rail-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}
.v35 .cn-rail-sub {
  font-size: 12px;
  color: var(--text-3);
}
.v35 .cn-rail-more {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
}
.v35 .cn-rail-more svg {
  transform: scaleX(-1);
}
.v35 .cn-strip {
  display: flex;
  gap: 10px;
  padding: 0 var(--cn-gutter);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--cn-gutter);
  scrollbar-width: none;
}
.v35 .cn-strip::-webkit-scrollbar {
  display: none;
}

.v35 .cn-poster {
  flex: none;
  width: 124px;
  display: grid;
  gap: 6px;
  /* بطاقات الصف تتمدد لأطولها: السطور تبقى من الأعلى فيبدأ كل اسم من نفس الخط */
  align-content: start;
  border: 0;
  padding: 0;
  background: none;
  text-align: start;
  font: inherit;
  color: inherit;
  scroll-snap-align: start;
  cursor: pointer;
}
.v35 .cn-poster-art {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--cn-r);
  overflow: hidden;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.18s ease;
}
/* الرئيسية واكتشف: الملصق صورته وحدها بلا خط إطار حوله (صفحة العمل كما هي) */
.v35 .cn-home .cn-poster-art,
.v35 .cn-discover .cn-poster-art {
  box-shadow: none;
}
.v35 .cn-poster:active .cn-poster-art {
  transform: scale(0.97);
}
.v35 .cn-poster-title {
  /* الاسم الإنجليزي (dir=auto) يبدأ من يساره فيبدو موسّطًا في سطرين: يمين دائمًا كبقية الصف */
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v35 .cn-poster-meta {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-top: -3px;
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.v35 .cn-poster-meta > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.v35 .cn-poster-rate {
  color: var(--text-2);
}

.v35 .cn-wide {
  flex: none;
  width: 248px;
  display: grid;
  gap: 4px;
  border: 0;
  padding: 0;
  background: none;
  text-align: start;
  font: inherit;
  color: inherit;
  scroll-snap-align: start;
  cursor: pointer;
}
.v35 .cn-wide-art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--cn-r);
  overflow: hidden;
  background: var(--surface-1);
  margin-bottom: 4px;
}
.v35 .cn-wide-art .cn-progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
}
.v35 .cn-wide-title {
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v35 .cn-wide-sub {
  font-size: 12px;
  color: var(--text-3);
  /* سطر واحد يُقصّ بـ«…» داخل البطاقة، لا يفيض تحت البطاقة المجاورة */
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* الاسم وبجانبه ⋮ (المفضلة، قائمتي، الحذف) */
.v35 .cn-wide .cw-name {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.v35 .cn-wide .cw-name .cn-wide-title {
  flex: 0 1 auto;
  min-width: 0;
}
/* ⋮ يلي الاسم مباشرة داخل حدود بطاقته، لا على حافتها قرب البطاقة المجاورة */
.v35 .cn-wide .cw-name .cw-more {
  margin: -4px 0 0;
}

/* قائمة IMDb: ثلاثة صفوف في كل عمود، تمرير أفقي */
.v35 .cn-chart-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  grid-auto-columns: 84%;
  gap: 10px 14px;
  margin: 0;
  padding: 0 var(--cn-gutter);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--cn-gutter);
  scrollbar-width: none;
}
.v35 .cn-chart-grid::-webkit-scrollbar {
  display: none;
}
.v35 .cn-chart-grid li {
  scroll-snap-align: start;
}
.v35 .cn-chart-row {
  display: grid;
  grid-template-columns: 34px 52px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  text-align: start;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.v35 .cn-chart-rank {
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  color: var(--text-3);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.v35 .cn-chart-art {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-1);
}
.v35 .cn-chart-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.v35 .cn-chart-copy b {
  text-align: right;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v35 .cn-chart-copy span {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* الأنواع: بلاطات نصية، العربي كبير والإنجليزي همس */
.v35 .cn-genres {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 var(--cn-gutter);
}
.v35 .cn-genre {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 84px;
  padding: 0 12px 10px;
  border: 0;
  border-radius: var(--cn-r);
  overflow: hidden;
  background: var(--surface-1);
  font: inherit;
  text-align: start;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.15s ease;
}
/* صورة العمل خلفية البلاطة، وتدرّج داكن من الأسفل يحمل الاسم فوق أي صورة */
.v35 .cn-genre-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.v35 .cn-genre-art .cn-img {
  object-position: 50% 30%;
}
.v35 .cn-genre::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 7, 12, 0.88) 0%, rgba(8, 7, 12, 0.45) 55%, rgba(8, 7, 12, 0.15) 100%);
}
.v35 .cn-genre b {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.v35 .cn-genre:active {
  transform: scale(0.98);
}

/* ───────────── صفحة العمل ───────────── */

.v35 .cinema-page {
  padding-bottom: 32px;
}
.v35 .cn-detail {
  position: relative;
}
.v35 .cn-detail-bar {
  /* يبقى مع التمرير بلا أن يحجز مكانًا فوق الصورة. ارتفاعه حقيقي (والهامش السالب يعيد
     المكان): بارتفاع 0 كان الزر يطفح خارج طبقة بلا حدود، وWebView أندرويد يحسب مناطق
     اللمس من حدود الطبقة فيذهب اللمس للصورة المتحركة تحته — زر الرجوع لا ينضغط */
  --cn-bar-h: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + var(--tap) + 16px);
  position: sticky;
  top: 0;
  height: var(--cn-bar-h);
  margin-bottom: calc(-1 * var(--cn-bar-h));
  z-index: 5;
  padding: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 8px) 10px 0;
  transform: translateZ(0);
  pointer-events: none;
}
.v35 .cn-detail-bar > * {
  pointer-events: auto;
}
.v35 .cn-detail-bar .icon-btn {
  position: relative;
  flex: none;
  background: rgba(10, 7, 7, 0.62);
  color: #fff;
  transition: background-color 0.22s ease, color 0.22s ease;
}
/* انطوت الخلفية: ترويسة صلبة (لا شيء يظهر من خلفها) والشعار صغيرًا فيها */
.v35 .cn-detail-bar {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.v35 .cn-detail-bar::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + var(--tap) + 16px);
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.v35 .cn-detail-bar.collapsed::before {
  opacity: 1;
}
.v35 .cn-detail-bar.collapsed .icon-btn {
  background: transparent;
  color: var(--text);
}
.v35 .cn-bar-title {
  position: relative;
  flex: 1;
  min-width: 0;
  height: var(--tap);
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transform-origin: right center;
  transition: opacity 0.24s ease, transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.v35 .cn-detail-bar.collapsed .cn-bar-title {
  opacity: 1;
  transform: none;
}
.v35 .cn-bar-logo {
  display: block;
  max-height: 28px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: right center;
}
.v35 .cn-bar-title:not(.has-logo) .cn-bar-logo,
.v35 .cn-bar-title.has-logo .cn-bar-text {
  display: none;
}
.v35 .cn-bar-text {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.v35 .cn-detail-art > .cn-img {
  transform-origin: 50% 0;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .v35 .cn-bar-title {
    transition: none;
  }
}
.v35 .cn-detail-art {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-1);
  overflow: hidden;
}
/* نفس عمق الأنمي مربوطًا بالتمرير على خيط الرسم (انظر anime.css) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .v35 .cn-detail-art > .cn-img {
      animation: cn-art-depth linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 var(--hero-span, 62vw);
    }
  }
}
@keyframes cn-art-depth {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, calc(var(--hero-span, 62vw) * 0.5), 0) scale(1.12); }
}
.v35 .cn-detail-art::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(to top, var(--bg), rgba(10, 7, 7, 0));
}
.v35 .cn-detail-body {
  padding: 2px var(--cn-gutter) 0;
}
.v35 .cn-detail-mark .cn-mark-text {
  font-size: 30px;
}
.v35 .cn-original {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-3);
  text-align: right;
}
.v35 .cn-detail-body > .cn-facts {
  margin-top: 12px;
}
.v35 .cn-genre-line {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-3);
}
.v35 .cn-resume {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
}
.v35 .cn-resume .cn-progress {
  flex: 1;
  border-radius: 2px;
}
.v35 .cn-actions {
  display: flex;
  gap: 28px;
  margin-top: 18px;
  padding-inline: 4px;
}
.v35 .cn-action {
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 2px 0;
  font: inherit;
  font-size: 11.5px;
  color: var(--text-2);
  cursor: pointer;
}
.v35 .cn-action[aria-pressed='true'] {
  color: var(--text);
}
.v35 .cn-action--more {
  min-width: 44px;
}
.v35 .cn-action[aria-pressed='true'] svg {
  color: var(--accent-text);
}
.v35 .cn-sources {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 0;
  border-block: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.v35 .cn-sources:empty {
  display: none;
}
.v35 .cn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-4);
  flex: none;
}
.v35 .cn-sources[data-state='found'] .cn-dot {
  background: #34d399;
}
.v35 .cn-sources[data-state='loading'] .cn-dot {
  animation: cn-blink 1s ease-in-out infinite;
}
@keyframes cn-blink {
  50% {
    opacity: 0.25;
  }
}
.v35 .cn-sources .cn-link {
  margin-inline-start: auto;
}
.v35 .cn-about {
  margin-top: 18px;
}
.v35 .cn-tagline {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
}
.v35 .cn-synopsis {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}
.v35 .cn-synopsis.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v35 .cn-episodes {
  margin-top: 28px;
}
.v35 .cn-eps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.v35 .cn-eps-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}
.v35 .cn-season-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--cn-r);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.v35 .cn-season-btn svg {
  transform: rotate(-90deg);
}
.v35 .cn-season-btn:disabled svg {
  display: none;
}
.v35 .cn-eps {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v35 .cn-ep-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  width: 100%;
  border: 0;
  padding: 8px 0;
  background: none;
  text-align: start;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.v35 .cn-ep-row:disabled {
  cursor: default;
  opacity: 0.55;
}
.v35 .cn-ep-art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-1);
  align-self: start;
}
.v35 .cn-ep-play {
  position: absolute;
  inset-inline-start: 6px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(10, 7, 7, 0.7);
  color: #fff;
}
.v35 .cn-ep-art .cn-progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
}
.v35 .cn-ep-copy {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
}
.v35 .cn-ep-top {
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}
.v35 .cn-ep-no {
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.v35 .cn-ep-title {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v35 .cn-ep-sub {
  font-size: 12px;
  color: var(--text-3);
}
.v35 .cn-ep.seen .cn-ep-sub {
  color: var(--accent-text);
}
.v35 .cn-ep-over {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v35 .cn-cast {
  margin-top: 28px;
}
.v35 .cn-cast .cn-section-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}
.v35 .cn-cast-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  margin-inline: calc(var(--cn-gutter) * -1);
  padding-inline: var(--cn-gutter);
  scrollbar-width: none;
}
.v35 .cn-cast-strip::-webkit-scrollbar {
  display: none;
}
.v35 .cn-person {
  flex: 0 0 74px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  text-align: center;
}
.v35 .cn-face {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 22px;
  font-weight: 700;
}
.v35 .cn-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.v35 .cn-person-name {
  max-width: 100%;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.3;
  color: var(--text-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v35 .cn-credits {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 28px 0 0;
  font-size: 13px;
}
.v35 .cn-credits dt {
  color: var(--text-3);
}
.v35 .cn-credits dd {
  margin: 0;
  color: var(--text-2);
  line-height: 1.6;
}
.v35 .cn-similar .cn-rail {
  margin-inline: calc(var(--cn-gutter) * -1);
}

.v35 .cn-season-list {
  display: grid;
  gap: 6px;
  padding: 4px 0 8px;
}
.v35 .cn-season-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--cn-r, 6px);
  background: var(--surface-2);
  font: inherit;
  color: var(--text);
  cursor: pointer;
}
.v35 .cn-season-row span {
  font-size: 13px;
  color: var(--text-3);
}
.v35 .cn-season-row.active {
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.v35 .cn-season-row.active b {
  color: var(--accent-text);
}

/* ───────────── اكتشف والمكتبة ───────────── */

.v35 #cinemaDiscover,
.v35 #cinemaLibrary {
  --cn-r: 6px;
  --cn-gutter: 16px;
}
.v35 .cn-discover.page-body {
  /* عناصر السينما تحمل هامشها (--cn-gutter): لا هامش مضاعف، والبحث بعرض الشبكة */
  padding-inline: 0;
}
.v35 .cn-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px var(--cn-gutter) 8px;
}
.v35 .cn-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 46px;
  border-radius: var(--cn-r);
  background: var(--surface-1);
  color: var(--text-3);
}
.v35 .cn-search:focus-within {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.v35 .cn-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: 15px;
  color: var(--text);
}
.v35 .cn-filter-btn {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--cn-r);
  background: var(--surface-1);
  color: var(--text);
  cursor: pointer;
}
.v35 .cn-filter-btn b {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
.v35 .cn-filters[hidden] {
  display: none;
}
.v35 .cn-chips {
  display: flex;
  gap: 6px;
  padding: 4px var(--cn-gutter) 14px;
  overflow-x: auto;
  scrollbar-width: none;
  /* يتلاشى عند الحافتين بدل أن تُقصّ الرقاقة */
  -webkit-mask-image: linear-gradient(to left, transparent, #000 var(--cn-gutter), #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to left, transparent, #000 var(--cn-gutter), #000 calc(100% - 28px), transparent);
}
.v35 .cn-chips::-webkit-scrollbar {
  display: none;
}
.v35 .cn-chip {
  flex: none;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--cn-r);
  background: var(--surface-1);
  font: inherit;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.v35 .cn-chip.active {
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}
/* ما قبل الكتابة: بقطع بحث المانجا نفسها، بهامش السينما */
.v35 .cn-discover-body > .search-head,
.v35 .cn-discover-body > .search-recent,
.v35 .cn-discover-body > .search-trend {
  margin-inline: var(--cn-gutter);
}
.v35 .cn-discover-body > .search-head:first-child {
  margin-top: 8px;
}
.v35 .cn-trend {
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.v35 .cn-trend .search-trend-row {
  padding-inline: 0;
}
.v35 .cn-trend .search-trend-row + .search-trend-row::before {
  inset-inline: 76px 0;
}
.v35 .cn-discover-genres {
  margin-bottom: 8px;
}
.v35 .cn-discover-body > .cn-rail-head {
  margin-top: 28px;
}
.v35 .cn-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 var(--cn-gutter) 12px;
  font-size: 13px;
  color: var(--text-2);
}
.v35 .cn-list-head {
  padding-top: 4px;
}
.v35 .cn-more {
  height: 1px;
}
.v35 .cn-more.loading {
  height: 56px;
  background: radial-gradient(circle, var(--text-4) 2px, transparent 3px) center / 14px 14px no-repeat;
}
/* ورقة التصفية */
.v35 .cn-fs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.v35 .cn-fs-head h3 {
  margin: 0;
}
.v35 .cn-fs-group {
  margin-top: 16px;
}
.v35 .cn-fs-group h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
}
.v35 .cn-fs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.v35 .cn-fs-years {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
}
.v35 .cn-fs-select {
  flex: 1;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--cn-r);
  background: var(--surface-1);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.v35 .cn-fs-apply {
  width: 100%;
  margin-top: 20px;
}
.v35 .cn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 10px;
  padding: 0 var(--cn-gutter);
}
.v35 .cn-grid .cn-poster {
  width: auto;
}
.v35 .cn-wide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 10px;
  padding: 0 var(--cn-gutter);
}
.v35 .cn-wide-grid .cn-wide {
  width: auto;
}

@media (min-width: 700px) {
  .v35 .cn-bill-stage,
  .v35 .cn-detail-art {
    aspect-ratio: 21 / 9;
  }
  .v35 .cn-poster {
    width: 150px;
  }
  .v35 .cn-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  /* مكتبة السينما: بطاقتان عريضتان بنصف الشاشة كانتا ضخمتين على الكمبيوتر */
  .v35 .cn-wide-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px 16px;
  }
  .v35 .cn-chart-grid {
    grid-auto-columns: 46%;
  }
  .v35 .cn-genres {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v35 .cn-bill-img,
  .v35 .cn-bill-info,
  .v35 .cn-img,
  .v35 .cn-kind::after {
    transition: none;
  }
}

/* القصة وهي تُعرَّب: سطور هيكلية بدل نص إنجليزي يومض ثم يتبدّل */
.v35 .cn-pending {
  display: block;
  color: transparent;
  border-radius: 4px;
  background: repeating-linear-gradient(to bottom, var(--surface-2) 0 0.95em, transparent 0.95em 1.75em);
  animation: cn-blink 1.4s ease-in-out infinite;
}
.v35 .cn-synopsis.cn-pending {
  height: 5.1em;
}
.v35 .cn-ep-over.cn-pending {
  height: 2.7em;
  width: 92%;
}

/* لم يُعثر عليه: سبب واضح، نتائج قريبة يختارها الشخص، وفحص المصادر */
.v35 .cn-sources[data-state='none'] {
  display: grid;
  gap: 10px;
}
.v35 .cn-sources-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v35 .cn-sources-row .cn-link {
  margin-inline-start: auto;
}
.v35 .cn-near {
  display: grid;
  gap: 6px;
}
.v35 .cn-near-label {
  font-size: 12px;
  color: var(--text-3);
}
.v35 .cn-near-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  color: var(--text);
  text-align: start;
  cursor: pointer;
}
.v35 .cn-near-item b {
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v35 .cn-near-item span {
  flex: none;
  font-size: 11px;
  color: var(--text-3);
}
.v35 .cn-diag-open {
  justify-self: start;
}
.v35 .cn-diag {
  display: grid;
  gap: 16px;
  padding-bottom: 12px;
}
.v35 .cn-diag-src h4 {
  margin: 0 0 8px;
  font-size: 14px;
}
.v35 .cn-diag-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v35 .cn-diag-steps li {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-2);
  border-inline-start: 3px solid var(--text-4);
}
.v35 .cn-diag-steps li b {
  font-size: 12.5px;
  color: var(--text);
}
.v35 .cn-diag-steps li span {
  word-break: break-word;
}
.v35 .cn-diag-steps .cn-diag-ok {
  border-inline-start-color: #34d399;
}
.v35 .cn-diag-steps .cn-diag-warn {
  border-inline-start-color: #fbbf24;
}
.v35 .cn-diag-steps .cn-diag-fail {
  border-inline-start-color: #f87171;
}

/* ───────────── أداء المصادر (تشخيص) ───────────── */

.v35 .cn-perf-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0 4px;
}
.v35 .cn-perf-status {
  min-height: 18px;
  margin: 6px 0;
  font-size: 12px;
  color: var(--text-3);
}
.v35 .cn-perf h4 {
  margin: 18px 0 8px;
  font-size: 14px;
}
.v35 .cn-perf-sum {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: var(--cn-r, 6px);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.v35 .cn-perf-sum b {
  font-size: 15px;
}
.v35 .cn-perf-sum span {
  font-size: 12px;
  color: var(--text-3);
}
.v35 .cn-perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.v35 .cn-perf-table th,
.v35 .cn-perf-table td {
  padding: 7px 4px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}
.v35 .cn-perf-table th {
  color: var(--text-3);
  font-weight: 600;
}
.v35 .cn-perf-table td:first-child,
.v35 .cn-perf-table th:first-child {
  text-align: start;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v35 .cn-perf-err {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-3);
}
