/*
 * ورقة السيرفرات — الأنمي (أزرق) والسينما (أحمر) بالمكوّن نفسه (server-sheet.js).
 *
 * هادئة وناضجة: لا توهّج، لا حدود نيون، لا رقائق ملوّنة، لا صناديق حول كل شيء.
 * لون القسم (--accent) للفعل الأساسي والمختار وحدهما؛ البقية درجات النص الأربع.
 *
 * الهاتف: صفحة كاملة تُمرَّر — صورة الحلقة بالشعار، سطر معلومات والوصف، ثم
 * المصادر. مع التمرير تنكمش الصورة ويظهر الشعار في شريط علوي مضغوط؛ الحركة
 * تحويل وشفافية فقط عبر --ss-y و--ss-p و--ss-bar (يكتبها server-sheet.js).
 * الشاشة العريضة (≥ 900px): لوحتان بعرض الشاشة كلها — الصورة الكبيرة بالشعار
 * والوصف في جهة البداية، والمصادر بمرشّحاتها وزرّها في الجهة الأخرى.
 */

/* أقوى من نافذة الشاشة العريضة (wide.css): هنا الشاشة كلها لا نافذة في الوسط */
.v35 .sheet-backdrop.sheet-backdrop--full {
  padding: 0;
  place-items: stretch;
  background: var(--bg);
}
.v35 .sheet-backdrop.sheet-backdrop--full > .sheet {
  width: 100%;
  max-width: none;
  max-height: none;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--bg);
  transform: translateY(12px);
}
.v35 .sheet-backdrop.sheet-backdrop--full.show > .sheet {
  transform: none;
}

.v35 .an-pick {
  --ss-y: 0px;
  --ss-p: 0;
  --ss-bar: 0;
  --ss-bar-h: calc(var(--safe-top) + 56px);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ── الشريط العلوي: شفاف فوق الصورة، يمتلئ ويظهر فيه الشعار حين تنكمش ── */
.v35 .ss-bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--ss-bar-h);
  padding: var(--safe-top) 6px 0;
  pointer-events: none;
}
.v35 .ss-bar > * {
  pointer-events: auto;
}
.v35 .ss-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
  opacity: var(--ss-bar);
}
.v35 .an-pick-back {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
}
/* دائرة داكنة خلف السهم فوق الصورة فقط، تختفي حين يمتلئ الشريط */
.v35 .an-pick-back::before {
  content: '';
  position: absolute;
  inset: 4px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  opacity: calc(1 - var(--ss-bar));
}
.v35 .an-pick-back:active {
  background: rgba(255, 255, 255, 0.08);
}
.v35 .ss-bar-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  opacity: var(--ss-bar);
  transform: translateY(calc((1 - var(--ss-bar)) * 6px));
}
.v35 .ss-bar-logo {
  flex: none;
  height: 26px;
  max-width: 132px;
  object-fit: contain;
  object-position: right center;
}
.v35 .ss-bar--logo .ss-bar-title {
  display: none;
}
.v35 .ss-bar-title {
  overflow: hidden;
  font-size: var(--fs-body-lg);
  font-weight: 700;
  color: var(--text-1);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v35 .ss-bar-sub {
  flex: none;
  font-size: var(--fs-meta);
  color: var(--text-3);
  white-space: nowrap;
}

.v35 .an-pick-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.v35 .an-pick-scroll::-webkit-scrollbar {
  display: none;
}

/* ── الصورة والشعار ── */
.v35 .ss-info {
  position: relative;
}
.v35 .ss-art,
.v35 .ss-brand {
  aspect-ratio: 5 / 4;
}
.v35 .ss-art {
  position: relative;
  overflow: hidden;
  background: var(--surface-1);
}
.v35 .ss-art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translate3d(0, calc(var(--ss-y) * 0.5), 0) scale(calc(1 + var(--ss-p) * 0.06));
  transform-origin: center top;
  transition: opacity var(--dur-slow) var(--ease);
  will-change: transform;
}
.v35 .ss-art-img.loaded {
  opacity: calc(1 - var(--ss-p) * 0.65);
}
/* تعتيم أعلى (للسهم) وذوبان أسفل في الخلفية — لا لمعان */
.v35 .ss-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 26%),
    linear-gradient(to top, var(--bg) 2%, color-mix(in srgb, var(--bg) 55%, transparent) 34%, transparent 62%);
}
.v35 .ss-art--none::after {
  background: none;
}
.v35 .ss-brand {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 28px 10px;
  opacity: calc(1 - var(--ss-p) * 1.5);
  transform: translate3d(0, calc(var(--ss-y) * 0.3), 0) scale(calc(1 - var(--ss-p) * 0.22));
  transform-origin: center bottom;
  pointer-events: none;
}
.v35 .ss-logo {
  max-width: min(74%, 300px);
  max-height: 96px;
  object-fit: contain;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}
.v35 .ss-logo.loaded {
  opacity: 1;
}
.v35 .ss-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.v35 .ss-brand--logo .ss-title {
  display: none;
}

/* ── سطر المعلومات والعنوان والوصف ── */
.v35 .ss-about {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 8px var(--gutter) 0;
}
.v35 .ss-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--text-2);
}
.v35 .ss-fact + .ss-fact::before {
  content: '·';
  margin-inline: 8px;
  color: var(--text-4);
}
.v35 .ss-fact--rate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--text-1);
}
.v35 .ss-fact--rate .icon {
  color: var(--text-2);
}
.v35 .ss-rate-src {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-3);
}
.v35 .ss-ep {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  font-size: var(--fs-meta);
  color: var(--text-3);
}
.v35 .ss-ep-code {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.v35 .ss-ep-code + .ss-ep-no::before {
  content: '·';
  margin-inline-end: 8px;
  color: var(--text-4);
}
.v35 .ss-ep-title {
  margin: -2px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-1);
}
.v35 .sheet .ss-desc {
  width: 100%;
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-2);
  text-align: start;
  unicode-bidi: plaintext;
}
.v35 .sheet .ss-desc.clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.v35 .ss-more {
  margin-top: -4px;
  padding: 2px 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.v35 .ss-more[hidden] {
  display: none;
}
.v35 .ss-resume {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
}
.v35 .ss-resume .icon {
  color: var(--text-3);
}

/* ── المصادر: رأس ومرشّحات نصّية ثابتة عند التمرير ── */
.v35 .ss-src {
  padding: 0 var(--gutter) 24px;
}
.v35 .ss-tools {
  position: sticky;
  top: var(--ss-bar-h);
  z-index: 2;
  margin-top: 20px;
  background: var(--bg);
}
.v35 .ss-tools-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.v35 .ss-tools-head > b {
  flex: none;
  font-size: var(--fs-title-sm);
  font-weight: 700;
  color: var(--text-1);
}
.v35 .an-srv-status {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-inline-start: auto;
  font-size: var(--fs-meta);
  color: var(--text-3);
}
.v35 .an-srv-status > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v35 .an-srv-status[hidden] {
  display: none;
}
.v35 .an-srv-status.ss-status--warn {
  color: var(--text-2);
}
.v35 .an-pick-filters {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  box-shadow: inset 0 -1px 0 var(--line);
  scrollbar-width: none;
}
.v35 .an-pick-filters.ss-filters--more {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 36px);
  mask-image: linear-gradient(to right, transparent, #000 36px);
}
.v35 .an-pick-filters::-webkit-scrollbar {
  display: none;
}
.v35 .an-pick-filters[hidden] {
  display: none;
}
.v35 .ss-tabs {
  display: flex;
  flex: none;
  gap: 16px;
}
.v35 .ss-tabs + .ss-tabs {
  padding-inline-start: 18px;
  border-inline-start: 1px solid var(--line-strong);
}
.v35 .ss-tab {
  position: relative;
  padding: 11px 0 12px;
  border: 0;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
}
.v35 .ss-tab.on {
  color: var(--text-1);
}
.v35 .ss-tab.on::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.v35 .ss-addon {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  margin-inline-start: auto;
}
.v35 .ss-addon-select {
  max-width: 150px;
  padding-block: 11px 12px;
  padding-inline: 0 20px;
  border: 0;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  text-overflow: ellipsis;
  appearance: none;
  field-sizing: content;
  cursor: pointer;
}
.v35 .ss-addon-select option {
  background: var(--surface-2);
  color: var(--text-1);
}
.v35 .ss-addon-chev {
  position: absolute;
  inset-inline-end: 0;
  color: var(--text-3);
  transform: rotate(-90deg);
  pointer-events: none;
}

/* ── القائمة ── */
.v35 .an-srv-list {
  display: grid;
}
.v35 .an-srv-group {
  display: grid;
}
.v35 .an-srv-group[hidden] {
  display: none;
}
.v35 .an-srv-q {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 2px;
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--text-3);
}
.v35 .an-srv-q b {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}
.v35 .ss-count {
  color: var(--text-4);
}
.v35 .ss-sub {
  margin-inline-start: auto;
  color: var(--text-4);
}
.v35 .an-srv-grid {
  display: grid;
}

.v35 .ss-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: calc(100% + 16px);
  min-height: 64px;
  margin-inline: -8px;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
}
/* فاصل شعري بين الصفوف لا صناديق */
.v35 .ss-row + .ss-row::before {
  content: '';
  position: absolute;
  inset: 0 8px auto;
  height: 1px;
  background: var(--line);
}
.v35 .ss-row:not(:disabled):active {
  background: var(--surface-1);
}
.v35 .ss-row:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: -2px;
}
@media (hover: hover) {
  .v35 .ss-row:not(:disabled):hover {
    background: var(--surface-1);
  }
  .v35 .ss-row:hover::before,
  .v35 .ss-row:hover + .ss-row::before {
    opacity: 0;
  }
  .v35 .ss-row:not(:disabled):hover .ss-play {
    color: var(--text-1);
  }
}
.v35 .ss-q {
  display: grid;
  justify-items: start;
  gap: 1px;
}
.v35 .ss-q b {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.v35 .ss-q small {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.v35 .ss-q small:empty {
  display: none;
}
.v35 .ss-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.v35 .ss-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.v35 .ss-name {
  flex: none;
  max-width: 60%;
  overflow: hidden;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-1);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v35 .ss-host {
  min-width: 0;
  overflow: hidden;
  font-size: var(--fs-meta);
  color: var(--text-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v35 .ss-host[hidden],
.v35 .ss-tag[hidden] {
  display: none;
}
/* المقترح: كلمة صغيرة بلون القسم، لا بطاقة ولا إطار */
.v35 .ss-tag {
  flex: none;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--accent-text);
}
.v35 .ss-meta {
  display: flex;
  min-width: 0;
  overflow: hidden;
  font-size: var(--fs-meta);
  color: var(--text-3);
  white-space: nowrap;
}
.v35 .ss-chip {
  flex: none;
}
.v35 .ss-chip + .ss-chip::before {
  content: '·';
  margin-inline: 6px;
  color: var(--text-4);
}
.v35 .ss-chip--ar,
.v35 .ss-chip--lang,
.v35 .ss-chip--prefer {
  color: var(--text-2);
}
.v35 .ss-chip--cam {
  color: var(--warning);
}
.v35 .ss-end {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  font-size: var(--fs-meta);
  color: var(--text-3);
}
.v35 .ss-end small {
  font-size: var(--fs-caption);
  white-space: nowrap;
}
.v35 .ss-end .ss-bad {
  color: var(--text-4);
}
.v35 .an-srv-seeds {
  min-width: 2.2em;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  text-align: end;
}
.v35 .an-srv--swarm-dead .an-srv-seeds {
  color: var(--text-4);
}
/* صحة السرب: أعمدة رمادية صغيرة — مؤشر لا إشارة مرور */
.v35 .ss-meter {
  direction: ltr;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.v35 .ss-meter i {
  width: 3px;
  border-radius: 1px;
  background: var(--surface-3);
}
.v35 .ss-meter i.on {
  background: var(--text-3);
}
.v35 .ss-meter i:nth-child(1) { height: 4px; }
.v35 .ss-meter i:nth-child(2) { height: 6px; }
.v35 .ss-meter i:nth-child(3) { height: 8.5px; }
.v35 .ss-meter i:nth-child(4) { height: 11px; }
.v35 .ss-play {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--text-4);
}

/* يبدأ التشغيل من هذا الصف: الحالة المختارة بلون القسم */
.v35 .ss-row--busy {
  background: var(--accent-soft);
}
.v35 .ss-row--busy .ss-end {
  color: var(--accent-text);
}
.v35 .ss-row.an-srv--resolving .ss-main,
.v35 .ss-row.an-srv--resolving .ss-q,
.v35 .ss-row.an-srv--failed .ss-main,
.v35 .ss-row.an-srv--failed .ss-q,
.v35 .ss-row.an-srv--unavailable .ss-main,
.v35 .ss-row.an-srv--unavailable .ss-q {
  opacity: 0.5;
}

.v35 .ss-spin {
  flex: none;
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1.75px solid var(--surface-3);
  border-top-color: var(--text-2);
  border-radius: 50%;
  animation: ss-spin 0.8s linear infinite;
}
@keyframes ss-spin {
  to { transform: rotate(360deg); }
}

/* ── المطويّات: نسخ إضافية · تُجهَّز بالخلفية · غير متاح ── */
.v35 .cn-srv-dead[hidden] {
  display: none;
}
.v35 .cn-srv-dead > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  list-style: none;
  cursor: pointer;
}
.v35 .cn-srv-dead > summary::-webkit-details-marker {
  display: none;
}
.v35 .cn-srv-dead > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.v35 .cn-srv-dead[open] > summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.v35 .an-srv-list > .cn-srv-dead {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

/* ── التحميل والحالات الفارغة ── */
.v35 .ss-skel-list {
  display: grid;
  padding-top: 8px;
}
.v35 .ss-skel {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 64px;
}
.v35 .ss-skel + .ss-skel {
  border-top: 1px solid var(--line);
}
.v35 .ss-skel > span {
  display: grid;
  gap: 8px;
}
.v35 .ss-shim {
  position: relative;
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-1);
}
.v35 .ss-shim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.035) 50%, transparent 80%);
  transform: translateX(100%);
  animation: ss-shimmer 1.6s ease-in-out infinite;
}
@keyframes ss-shimmer {
  to { transform: translateX(-100%); }
}
.v35 .ss-shim--q {
  width: 40px;
  height: 14px;
}
.v35 .ss-shim--a {
  width: 42%;
}
.v35 .ss-shim--b {
  width: 68%;
}
.v35 .ss-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 0 8px;
  color: var(--text-3);
}
.v35 .ss-note .icon {
  flex: none;
  margin-top: 2px;
}
.v35 .ss-note b {
  display: block;
  font-size: var(--fs-body-lg);
  font-weight: 600;
  color: var(--text-1);
}
.v35 .sheet .ss-note p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.v35 .sheet .ss-none {
  margin: 0;
  padding: 28px 0;
  font-size: 13.5px;
  color: var(--text-3);
  text-align: center;
}

/* ── أسفل الصفحة: فعل أساسي واحد هادئ، ومشاهدة مع الأصدقاء ثانوية ── */
.v35 .an-pick-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px var(--gutter) calc(var(--safe-bottom) + 10px);
  background: var(--bg);
  box-shadow: 0 -1px 0 var(--line);
}
.v35 .an-pick-best {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-body-lg);
  font-weight: 700;
}
.v35 .an-pick-best:not(:disabled):active {
  background: var(--accent-press);
}
.v35 .an-pick-best.waiting {
  background: var(--surface-2);
  color: var(--text-1);
}
.v35 .an-pick-best:disabled {
  background: var(--surface-1);
  color: var(--text-3);
}
.v35 .an-pick-best .icon {
  flex: none;
}
.v35 .ss-best-copy {
  display: grid;
  justify-items: start;
  min-width: 0;
  line-height: 1.25;
  text-align: start;
}
.v35 .ss-best-copy > span,
.v35 .ss-best-copy small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v35 .ss-best-copy small {
  font-size: var(--fs-caption);
  font-weight: 500;
  opacity: 0.8;
}
.v35 .an-pick-together {
  display: flex;
  flex: none;
  align-items: center;
  gap: 7px;
  height: 48px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
}
.v35 .an-pick-together:active {
  background: var(--surface-1);
  color: var(--text-1);
}
@media (hover: hover) {
  .v35 .an-pick-together:hover {
    background: var(--surface-1);
    color: var(--text-1);
  }
  .v35 .an-pick-best:not(:disabled):hover {
    background: var(--accent-press);
  }
}
@media (max-width: 370px) {
  .v35 .an-pick-together span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v35 .ss-art-img,
  .v35 .ss-brand,
  .v35 .ss-bar-mark {
    transform: none;
  }
  .v35 .ss-art-img,
  .v35 .ss-logo {
    transition: none;
  }
  .v35 .ss-spin,
  .v35 .ss-shim::after {
    animation: none;
  }
}

/* ───────── الشاشة العريضة: لوحتان بعرض الشاشة ───────── */
@media (min-width: 900px) {
  .v35 .an-pick {
    --ss-bar: 0;
    display: grid;
    /* المصادر في جهة البداية (يمين الواجهة العربية) والصورة في الجهة الأخرى */
    grid-template-columns: clamp(420px, 36vw, 560px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      'src info'
      'foot info';
  }
  /* لا تمرير مشترك: اللوحتان عنصرا الشبكة، والمصادر تُمرَّر وحدها */
  .v35 .an-pick-scroll {
    display: contents;
  }
  /* الرجوع في الزاوية العليا بجوار «المصادر»، لا معلّقًا وسط الشاشة */
  .v35 .ss-bar {
    grid-area: src;
    height: auto;
    padding: calc(var(--safe-top) + 14px) 14px 0;
  }
  .v35 .an-pick-back {
    color: var(--text-1);
  }
  .v35 .an-pick-back::before {
    opacity: 0;
  }
  .v35 .an-pick-back:hover {
    background: var(--surface-2);
  }
  .v35 .ss-bar::before,
  .v35 .ss-bar-mark {
    display: none;
  }
  .v35 .ss-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
    overflow: hidden;
    padding: 0 clamp(40px, 5vw, 80px) clamp(36px, 6vh, 64px);
  }
  .v35 .ss-art {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
  .v35 .ss-art-img,
  .v35 .ss-art-img.loaded {
    transform: none;
  }
  .v35 .ss-art-img.loaded {
    opacity: 1;
  }
  /* ذوبان أسفل اللوحة (للوصف) ونحو لوحة المصادر (يمينًا في الواجهة العربية) */
  .v35 .ss-art::after {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 22%),
      linear-gradient(to top, var(--bg) 4%, color-mix(in srgb, var(--bg) 70%, transparent) 36%, transparent 68%),
      linear-gradient(to left, var(--bg) 0, color-mix(in srgb, var(--bg) 60%, transparent) 14%, transparent 42%);
  }
  .v35 .ss-brand {
    position: relative;
    inset: auto;
    aspect-ratio: auto;
    justify-content: flex-start;
    margin-bottom: 22px;
    padding: 0;
    opacity: 1;
    transform: none;
  }
  .v35 .ss-logo {
    max-width: min(440px, 70%);
    max-height: 150px;
    object-position: right bottom;
  }
  .v35 .ss-title {
    font-size: 44px;
    text-align: start;
  }
  .v35 .ss-about {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding: 0;
  }
  .v35 .ss-facts {
    font-size: var(--fs-body-lg);
  }
  .v35 .ss-ep {
    font-size: var(--fs-body);
  }
  .v35 .ss-ep-title {
    font-size: var(--fs-title-lg);
  }
  .v35 .sheet .ss-desc {
    font-size: var(--fs-body-lg);
    line-height: 1.7;
    color: var(--text-1);
    opacity: 0.86;
  }
  .v35 .sheet .ss-desc.clamped {
    -webkit-line-clamp: 4;
  }
  .v35 .ss-src {
    grid-area: src;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 28px 28px;
    background: var(--bg-raised);
    box-shadow: inset 1px 0 0 var(--line);
    scrollbar-width: thin;
    scrollbar-color: var(--surface-3) transparent;
  }
  .v35 .ss-tools {
    top: 0;
    margin-top: 0;
    padding-top: calc(var(--safe-top) + 22px);
    background: var(--bg-raised);
  }
  .v35 .ss-tools-head {
    min-height: 36px;
    padding-top: 0;
    padding-inline-start: 36px;
    border-top: 0;
  }
  .v35 .ss-tools-head > b {
    font-size: var(--fs-title);
  }
  .v35 .an-pick-foot {
    grid-area: foot;
    padding: 14px 28px calc(var(--safe-bottom) + 18px);
    background: var(--bg-raised);
    box-shadow: inset 1px 0 0 var(--line), 0 -1px 0 var(--line);
  }
}
/* الشاشة العريضة تُقرأ من مسافة أبعد: خطوط أكبر ودرجات رمادي أفتح داخل الورقة وحدها
   (الرمادي الأغمق كان يكاد يختفي على الأسود، والوصف ومعلومات التورنت صغيرة) */
@media (min-width: 900px) {
  .v35 .an-pick {
    --text-2: #d9d6e2;
    --text-3: #b3aec4;
    --text-4: #8f8aa3;
    --fs-caption: 13px;
    --fs-meta: 14.5px;
    --fs-body: 16px;
    --fs-body-lg: 17px;
    --fs-title-sm: 18px;
    --fs-title: 21px;
    --fs-title-lg: 27px;
  }
  .v35 .sheet .ss-desc {
    font-size: 18px;
    opacity: 1;
    color: var(--text-2);
  }
  .v35 .ss-facts {
    font-size: var(--fs-body-lg);
  }
  .v35 .ss-rate-src {
    font-size: 12.5px;
  }
  .v35 .ss-more,
  .v35 .ss-resume,
  .v35 .an-srv-q b,
  .v35 .cn-srv-dead > summary,
  .v35 .sheet .ss-note p {
    font-size: 15px;
  }
  .v35 .ss-tab,
  .v35 .ss-addon-select,
  .v35 .sheet .ss-none,
  .v35 .an-pick-together {
    font-size: 15.5px;
  }
  .v35 .ss-q b {
    font-size: 17px;
  }
  .v35 .ss-q small {
    font-size: 12.5px;
  }
}
/* الشاشات الكبيرة: لوحة المصادر تبقى بعرض قراءة مريح (مثل 1200px) والصورة تأخذ الباقي؛
   قلب العمودين كان يمد المصادر بعرض الشاشة كلها ويحشر الصورة في 600px */
@media (min-width: 1500px) {
  .v35 .an-pick {
    grid-template-columns: clamp(480px, 32vw, 600px) minmax(0, 1fr);
  }
}
