.sr-wrap { max-width: 1240px; margin: 0 auto; padding: 22px 28px 52px; }

.sr-crumbs {
  position: absolute;
  top: 24px;
  right: 28px;
  left: 28px;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #C7CCD2;
}
.sr-crumbs a { color: #A7ADB4; }
.sr-crumbs a:hover { color: var(--ac); }
.sr-crumbs .sep { color: #6C727A; display: flex; }
.sr-crumbs .cur { color: var(--ac); font-weight: 700; }

.sr-hero {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: var(--card);
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  margin-bottom: 26px;
  contain: layout paint;
}
.sr-hero .bg,
.sr-hero .bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.sr-hero .grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(11, 12, 14, .97) 8%, rgba(11, 12, 14, .5) 46%, rgba(11, 12, 14, .05) 100%),
    linear-gradient(to bottom, rgba(11, 12, 14, .8) 0%, rgba(11, 12, 14, .35) 12%, rgba(11, 12, 14, 0) 24%);
  pointer-events: none;
}
.sr-hero-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.sr-hero-body .badge {
  align-self: flex-start;
  background: var(--ac);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 8px;
}
.sr-hero-body h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.35;
  color: #F6F7F8;
  text-wrap: balance;
}
.sr-hero-body .ex { margin: 0; font-size: 15.5px; color: #C4C9CF; }

.sr-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 6px;
  font-size: 12.5px;
  color: #C4C9CF;
}
.sr-meta .m { display: flex; align-items: center; gap: 6px; }
.sr-meta .ava {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ac);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.sr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 24px;
  align-items: start;
  direction: ltr;
}
.sr-main { direction: rtl; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.sr-aside {
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 78px;
  min-width: 0;
}

.sr-h { display: flex; align-items: center; gap: 9px; }
.sr-h .bar { width: 5px; height: 20px; border-radius: 3px; background: var(--ac); flex-shrink: 0; }
.sr-h h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--tx); }

.sr-video-sec { display: flex; flex-direction: column; gap: 14px; }
.sr-video {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--ac);
  aspect-ratio: 16 / 9;
  background: #000;
}
.sr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.sr-entry { font-size: 14.5px; line-height: 2.15; color: var(--tx-2); text-align: justify; }
.sr-entry p { margin: 0 0 18px; }
.sr-entry > *:last-child { margin-bottom: 0; }
.sr-entry a { color: var(--ac); }
.sr-entry img { max-width: 100%; height: auto; border-radius: 12px; }
.sr-entry ul, .sr-entry ol { padding-inline-start: 20px; margin: 0 0 18px; }
.sr-entry li { margin-bottom: 8px; }
.sr-entry blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-inline-start: 3px solid var(--ac);
  background: var(--card);
  border-radius: 10px;
}

.sr-entry h2, .sr-entry h3 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 30px 0 12px;
  font-weight: 800;
  color: var(--tx);
  text-align: right;
}
.sr-entry h2 { font-size: 19px; }
.sr-entry h3 { font-size: 16px; }
.sr-entry h2::before, .sr-entry h3::before {
  content: "";
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: var(--ac);
  flex-shrink: 0;
}
.sr-entry h3::before { height: 17px; width: 4px; }

.sr-entry table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 18px;
}
.sr-entry thead tr { background: var(--card-h); }
.sr-entry th {
  padding: 12px 14px;
  text-align: center;
  font-weight: 800;
  color: var(--tx);
  border-inline-start: 1px solid var(--line);
}
.sr-entry th:last-child { color: var(--ac); border-inline-start: 0; }
.sr-entry td {
  padding: 11px 14px;
  text-align: center;
  color: var(--tx-2);
  border-inline-start: 1px solid var(--line-2);
  border-top: 1px solid var(--line-2);
}
.sr-entry td:last-child { font-weight: 700; color: var(--tx); border-inline-start: 0; }
.sr-entry tbody tr:nth-child(odd) { background: var(--card); }
.sr-entry tbody tr:nth-child(even) { background: var(--panel); }
.sr-table-scroll { overflow-x: auto; }

.sr-gallery-sec { display: flex; flex-direction: column; gap: 14px; }
.sr-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.sr-gallery a {
  position: relative;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: block;
  transition: border-color .18s;
}
.sr-gallery a:hover { border-color: var(--ac); }
.sr-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-more { text-align: center; }
.sr-more a { font-size: 12.5px; font-weight: 700; color: var(--ac); }

.sr-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sr-pc-box { border-radius: 14px; padding: 16px 18px; }
.sr-pc-box.pros { background: rgba(31, 138, 91, .08); border: 1px solid rgba(31, 138, 91, .32); }
.sr-pc-box.cons { background: rgba(224, 49, 58, .08); border: 1px solid rgba(224, 49, 58, .32); }
.sr-pc-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sr-pc-h h3 { margin: 0; font-size: 15px; font-weight: 800; }
.sr-pc-box.pros .sr-pc-h h3 { color: #4FCB86; }
.sr-pc-box.cons .sr-pc-h h3 { color: #F26169; }
.sr-pc-list { display: flex; flex-direction: column; gap: 10px; }
.sr-pc-list div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--tx-2);
}
.sr-pc-list svg { flex-shrink: 0; }

.sr-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(90deg, var(--card-h), var(--card));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.sr-cta-img { width: 92px; height: 78px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.sr-cta-img img { width: 100%; height: 100%; object-fit: cover; }
.sr-cta-txt { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sr-cta-txt h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--tx); }
.sr-cta-txt p { margin: 0; font-size: 12.5px; color: var(--tx-2); }
.sr-cta-btns { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.sr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--ac);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(242, 102, 31, .3);
  transition: background .18s;
}
.sr-btn:hover { background: var(--ac-h); color: #fff; }
.sr-btn.ghost {
  height: 34px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--tx-2);
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}
.sr-btn.ghost:hover { border-color: var(--ac); color: var(--ac); background: transparent; }

.sr-related { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.sr-related-head { display: flex; align-items: center; justify-content: space-between; }
.sr-nav { display: flex; gap: 8px; }
.sr-nav button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-h);
  border: 1px solid var(--line);
  color: var(--tx);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.sr-nav button:hover { background: var(--ac); border-color: var(--ac); color: #fff; }
.sr-nav button[disabled] { opacity: .4; cursor: default; }
.sr-nav button[disabled]:hover { background: var(--card-h); border-color: var(--line); color: var(--tx); }

.sr-rel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 42px) / 4);
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.sr-rel-track::-webkit-scrollbar { display: none; }

.sr-rel-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .18s;
}
.sr-rel-card:hover { border-color: var(--ac); }
.sr-rel-media { position: relative; height: 100px; }
.sr-rel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-rel-media .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--ac);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  pointer-events: none;
}
.sr-rel-body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.sr-rel-body .t { font-size: 12.5px; font-weight: 700; line-height: 1.85; color: var(--tx); }
.sr-rel-body .t:hover { color: var(--ac); }
.sr-rel-body .d {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-size: 10px;
  color: var(--tx-3);
}

.sr-searchbox { position: relative; display: flex; align-items: center; }
.sr-searchbox .ic { position: absolute; right: 15px; color: var(--tx-3); display: flex; }
.sr-searchbox input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--tx);
  font-family: inherit;
  font-size: 12.5px;
  padding: 0 44px 0 14px;
  outline: none;
  box-sizing: border-box;
}
.sr-searchbox input:focus { border-color: var(--ac); }

.sr-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.sr-box.grad { background: linear-gradient(180deg, var(--card-h), var(--card)); }
.sr-box-h { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.sr-box-h.between { justify-content: space-between; }
.sr-box-h h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--tx); }
.sr-box-h .chip {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(242, 102, 31, .14);
  color: var(--ac);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sr-box-h .chip.sm { width: 26px; height: 26px; border-radius: 8px; }
.sr-box-h .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); }

.sr-quick-list { display: flex; flex-direction: column; gap: 9px; }
.sr-quick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--card-h);
  border: 1px solid var(--line-2);
  transition: border-color .18s;
}
.sr-quick:hover { border-color: var(--ac); }
.sr-quick .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-2);
  flex-shrink: 0;
}
.sr-quick .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sr-quick .t { font-size: 12.5px; font-weight: 700; color: var(--tx); }
.sr-quick .s { font-size: 10px; color: var(--tx-3); }

.sr-brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sr-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  border-radius: 12px;
  background: var(--card-h);
  border: 1px solid var(--line-2);
  transition: border-color .18s;
}
.sr-brand:hover { border-color: var(--ac); }
.sr-brand .lg {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ac);
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
}
.sr-brand .lg img { width: 100%; height: 100%; object-fit: contain; }
.sr-brand .nm { font-size: 11px; font-weight: 700; color: var(--tx-2); text-align: center; }
.sr-box-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin-top: 12px;
  border-radius: 11px;
  background: var(--card-h);
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ac);
  transition: border-color .18s;
}
.sr-box-btn:hover { border-color: var(--ac); }

.sr-box.videos { padding-bottom: 8px; }
.sr-vid {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
}
.sr-vid-thumb { position: relative; width: 74px; height: 50px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.sr-vid-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-vid-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.sr-vid-play span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(13, 14, 16, .55);
  border: 1px solid rgba(255, 255, 255, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.sr-vid-dur {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(13, 14, 16, .85);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  direction: ltr;
  pointer-events: none;
}
.sr-vid .t { flex: 1; font-size: 12px; font-weight: 700; line-height: 1.75; color: var(--tx); }
.sr-vid .t:hover { color: var(--ac); }
.sr-box.videos .sr-more { padding: 12px 0; }

.sr-follow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.sr-follow a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 12px;
  background: var(--card-h);
  border: 1px solid var(--line-2);
  color: var(--tx-2);
  transition: border-color .18s, color .18s;
}
.sr-follow a:hover { border-color: var(--ac); color: var(--ac); }

.sr-main .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-main .tags a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--tx-2);
  font-size: 12px;
  font-weight: 600;
}
.sr-main .tags a:hover { background: var(--ac); border-color: var(--ac); color: #fff; }
/* padding را صفر نکنید؛ وگرنه محتوا به بردر باکس می‌چسبد */
.sr-main .comments { max-width: none; margin: 26px 0 0; }

:root[data-theme="light"] .sr-hero .grad {
  background:
    linear-gradient(to top, rgba(244, 245, 247, .97) 8%, rgba(244, 245, 247, .55) 46%, rgba(244, 245, 247, .05) 100%),
    linear-gradient(to bottom, rgba(20, 22, 25, .55) 0%, rgba(20, 22, 25, .2) 12%, rgba(20, 22, 25, 0) 24%);
}
:root[data-theme="light"] .sr-crumbs { color: #E9ECEF; }
:root[data-theme="light"] .sr-crumbs a { color: #D3D8DD; }
:root[data-theme="light"] .sr-hero-body h1 { color: #16181B; }
:root[data-theme="light"] .sr-hero-body .ex,
:root[data-theme="light"] .sr-meta { color: #44505A; }
:root[data-theme="light"] .sr-pc-box.pros { background: rgba(31, 138, 91, .07); }
:root[data-theme="light"] .sr-pc-box.cons { background: rgba(224, 49, 58, .06); }
:root[data-theme="light"] .sr-pc-box.pros .sr-pc-h h3 { color: #1F8A5B; }
:root[data-theme="light"] .sr-pc-box.cons .sr-pc-h h3 { color: #D02832; }

@media (max-width: 1100px) {
  .sr-layout { grid-template-columns: minmax(0, 1fr); direction: rtl; }
  .sr-aside { position: static; }
  .sr-rel-track { grid-auto-columns: calc((100% - 14px) / 2); }
}

@media (max-width: 900px) {
  .sr-wrap { padding: 16px 18px 40px; }
  .sr-hero { height: 320px; }
  .sr-hero-body { padding: 22px 20px; }
  .sr-hero-body h1 { font-size: 26px; }
  .sr-gallery { grid-template-columns: repeat(3, 1fr); }
  .sr-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .sr-cta-img { width: 100%; height: 130px; }
  .sr-cta-btns { flex-direction: row; }
  .sr-btn { flex: 1; }
}

@media (max-width: 640px) {
  .sr-hero { height: 260px; }
  .sr-hero-body h1 { font-size: 21px; }
  .sr-hero-body .ex { display: none; }
  .sr-meta { gap: 12px; font-size: 11.5px; }
  .sr-pc { grid-template-columns: minmax(0, 1fr); }
  .sr-gallery { grid-template-columns: repeat(2, 1fr); }
  .sr-rel-track { grid-auto-columns: 78%; }
  .sr-crumbs { font-size: 11px; }
  .sr-crumbs .hide-sm { display: none; }
}

.dl-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dl-modal[hidden] { display: none; }
.dl-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 9, 11, .78); backdrop-filter: blur(3px); }
.dl-modal-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.dl-modal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
}
.dl-modal-h h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--tx); }
.dl-modal-x {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--tx-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .18s, color .18s;
}
.dl-modal-x:hover { border-color: var(--ac); color: var(--ac); }
.dl-modal-body {
  padding: 18px 20px 22px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.dl-modal-body .sr-brand .ct { font-size: 10px; color: var(--tx-3); }

.sr-box-btn { width: 100%; font-family: inherit; cursor: pointer; }

@media (max-width: 560px) {
  .dl-modal { padding: 14px; }
  .dl-modal-body { grid-template-columns: repeat(2, 1fr); }
}
