.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 46px 0;
}

.player-shell {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.video-player-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(239, 0, 0, 0.18), transparent 34%),
    #05070b;
  color: var(--muted);
  text-align: center;
}

.video-player-empty p {
  max-width: 520px;
  margin: 0;
}

.article-card,
.sidebar-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--soft-shadow);
}

.article-card {
  margin-top: 20px;
  padding: 26px;
}

.article-card h1 {
  margin: 0;
  color: var(--heading);
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.article-card h2 {
  margin: 30px 0 10px;
  color: var(--heading);
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  letter-spacing: -0.035em;
}

[dir="rtl"] .article-card h1,
[dir="rtl"] .article-card h2 {
  font-family: Vazirmatn, Inter, sans-serif;
  letter-spacing: 0;
}

.article-card p,
.article-card li,
.sidebar-card p {
  color: var(--muted);
}

.article-card ul {
  padding-left: 22px;
}

[dir="rtl"] .article-card ul {
  padding-left: 0;
  padding-right: 22px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.sidebar-card {
  padding: 20px;
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 0 0 14px;
  color: var(--heading);
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
}

.related-item:hover {
  border-color: rgba(239, 0, 0, 0.36);
}

.related-item strong {
  color: var(--heading);
  font-size: 14px;
}

.related-item span {
  color: var(--muted);
  font-size: 12px;
}

/* Medium */

@media (max-width: 1180px) {
  .tutorial-layout {
    grid-template-columns: 1fr;
  }
}

.seo-outline {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.seo-outline-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.seo-outline-item h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 18px;
}

.seo-outline-item p {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--heading);
  font-weight: 850;
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
}

.seo-inline-link {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 62%, transparent);
}

.seo-inline-link a {
  color: var(--red-2);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.seo-inline-link a:hover {
  color: var(--red-3);
}
