.p-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 5%;
  border-bottom: 1px solid var(--border);
}
.p-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; color: var(--text);
}
.p-back:hover { color: var(--primary); }

.p-wrap {
  width: min(880px, 92%);
  margin: 60px auto 100px;
  text-align: center;
}
.p-wrap #pCategory { margin-bottom: 10px; }
.p-wrap h1 {
  font-family: var(--font-en-heading);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html[lang="ar"] .p-wrap h1 { font-family: var(--font-ar); }
.p-desc { color: var(--text-dim); font-size: 1rem; line-height: 1.9; max-width: 620px; margin: 0 auto 20px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }

.p-frame-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 24px;
  margin-bottom: 36px;
}
.p-frame {
  width: 100%; height: 560px;
  border: none; border-radius: 12px;
  background: #fff;
}
.p-frame-img { object-fit: contain; background: var(--bg-alt, #111); }
.p-no-preview {
  padding: 60px 20px;
  color: var(--text-dim);
  font-size: .95rem;
}

.p-notfound { padding-top: 40px; }
.p-monogram {
  width: 64px; height: 64px; margin: 0 auto 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en-heading); font-weight: 700; font-size: 1.5rem;
  background: var(--accent-bg); color: var(--accent-text);
}
.p-notfound p { color: var(--text-dim); margin-bottom: 28px; }

@media (max-width: 640px) {
  .p-frame { height: 420px; }
}
