/* Search-engine readable parts of the site (server/seo.py, 2026-10-28).
   App pages: the login heading (now h2, so it is not the page's h1), the title summary's
   breadcrumb and related titles, and the site footer. /browse and /genre pages: the
   whole standalone archive page. */

/* Same look the login heading had as the global h1 (style.css "h1" + #screen-login rule). */
#screen-login .login-head h2#login-title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.5;
}

.poster-link { color: inherit; text-decoration: none; }
.poster-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.seo-crumbs { font-size: 13px; color: var(--text-dim, #a9a9b8); margin: 0 0 10px; }
.seo-crumbs a { color: var(--accent, #f5b544); text-decoration: none; }
.seo-crumbs a:hover { text-decoration: underline; }

.seo-grid {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 16px 12px;
}
.seo-card { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.seo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #1b1b26;
}
.seo-card-name { font-weight: 700; font-size: 14px; line-height: 1.6; }
.seo-card-en { font-size: 12px; color: var(--text-dim, #a9a9b8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-card-facts { font-size: 12px; color: var(--text-dim, #a9a9b8); }
.seo-card:hover .seo-card-name, .seo-card:focus-visible .seo-card-name { color: var(--accent, #f5b544); }
.seo-title .seo-grid { clear: both; }
.seo-title h2 { font-size: 18px; margin: 18px 0 4px; }

.seo-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 20px 16px calc(96px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text, #f1f1f6);
  font-size: 14px;
  line-height: 1.7;
  text-align: right;
}
.seo-footer *, .seo-footer *::before, .seo-footer *::after { box-sizing: border-box; }
.seo-footer .seo-footer__groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px; align-items: start; }
.seo-footer .seo-footer__group {
  min-width: 0; margin: 0; padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.seo-footer h2 { font-size: 16px; margin: 0 0 12px; font-weight: 800; line-height: 1.5; }
.seo-footer .seo-footer__links {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.seo-footer .seo-footer__genres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seo-footer .seo-footer__links li { min-width: 0; display: flex; }
.seo-footer a { color: inherit; text-decoration: none; }
.seo-footer .seo-footer__links a {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; width: 100%; min-height: 44px; padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 14px; line-height: 1.65; text-align: center;
  white-space: normal; overflow-wrap: break-word; overflow-wrap: anywhere;
}
.seo-footer .seo-footer__links a:hover { color: var(--accent, #f5b544); background: rgba(245, 181, 68, 0.08); }
.seo-footer a:focus-visible { outline: 2px solid var(--accent, #f5b544); outline-offset: 3px; }
.seo-footer .seo-footer__meta {
  display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap;
  padding-top: 18px; margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.seo-footer .seo-footer__brand { min-height: 44px; display: inline-flex; align-items: center; font-weight: 800; color: var(--accent, #f5b544); }
.seo-footer .seo-footer__meta p { flex: 1 1 260px; margin: 0; color: var(--text-dim, #b9b8c6); font-size: 13px; line-height: 1.9; }
html[data-theme="light"] .seo-footer,
html[data-theme="light"] .seo-footer .seo-footer__group,
html[data-theme="light"] .seo-footer .seo-footer__links a,
html[data-theme="light"] .seo-footer .seo-footer__meta { border-color: rgba(15, 23, 42, 0.13); }
html[data-theme="light"] .seo-footer .seo-footer__group,
html[data-theme="light"] .seo-footer .seo-footer__links a { background: rgba(15, 23, 42, 0.025); }
html[data-theme="light"] .seo-footer .seo-footer__brand,
html[data-theme="light"] .seo-footer .seo-footer__links a:hover { color: var(--text, #182030); }
html[data-theme="light"] .seo-footer a:focus-visible { outline-color: var(--text, #182030); }
@media (max-width: 860px) {
  .seo-footer .seo-footer__groups { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .seo-footer .seo-footer__shelves { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .seo-footer { padding-inline: 12px; }
  .seo-footer .seo-footer__group { padding: 12px; border-radius: 12px; }
  .seo-footer .seo-footer__shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-footer .seo-footer__genres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seo-footer .seo-footer__meta { gap: 4px; flex-direction: column; align-items: stretch; }
  .seo-footer .seo-footer__meta p { flex: initial; }
}
@media (max-width: 359px) {
  .seo-footer .seo-footer__genres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- standalone archive pages (/browse/<shelf>, /genre/<genre>) ---------- */
body.seo-page {
  margin: 0;
  background: #0b0b12;
  color: #f1f1f6;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.7;
  --text: #f1f1f6;
  --text-dim: #a9a9b8;
  --accent: #f5b544;
}
.seo-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(11, 11, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.seo-brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 800; font-size: 17px; }
.seo-brand img { border-radius: 10px; }
.seo-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: #f5b544;
  color: #1a1206;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.seo-main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.seo-main h1 { font-size: 24px; margin: 4px 0; }
.seo-summary { margin: 0 0 8px; color: var(--text-dim); font-size: 14px; }
.seo-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 24px 0; }
.seo-pager a, .seo-pager span[aria-current] {
  min-width: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
}
.seo-pager a:hover { background: rgba(245, 181, 68, 0.18); }
.seo-pager span[aria-current] { background: #f5b544; color: #1a1206; font-weight: 800; }
body.seo-page .seo-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (max-width: 560px) {
  .seo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .seo-card-name { font-size: 12.5px; }
  .seo-main h1 { font-size: 20px; }
  .seo-cta { padding: 7px 10px; font-size: 12px; }
}

/* 2026-11-13: the about page (/about) and the title page's «پرسش‌های رایج». */
.seo-about h2 { font-size: 17px; margin: 22px 0 6px; color: var(--accent, #f5b544); }
.seo-about p, .seo-about li { font-size: 15px; line-height: 2; }
.seo-about ul { margin: 0; padding-inline-start: 20px; }
.seo-about a { color: var(--accent, #f5b544); }
.seo-title h3 { font-size: 15px; margin: 12px 0 2px; }


/* ==================================================================== 2026-11-14: footer redesign (.amf)
   The footer the server writes (seo.site_footer). Colours come from the لوکس tokens when the page
   has them (dark or light), with the dark look as the fallback on the standalone pages. */
#seo-footer.amf {
  --f-text: var(--lux-text, #f6f3ec);
  --f-text-2: var(--lux-text-2, rgba(246, 243, 236, 0.72));
  --f-text-3: var(--lux-text-3, rgba(246, 243, 236, 0.48));
  --f-gold: var(--lux-gold, #e6b869);
  --f-gold-hi: var(--lux-gold-hi, #f7dc9c);
  --f-gold-soft: var(--lux-gold-soft, rgba(230, 184, 105, 0.14));
  --f-gold-line: var(--lux-gold-line, rgba(230, 184, 105, 0.38));
  --f-line: var(--lux-line, rgba(255, 255, 255, 0.075));
  --f-fill: var(--lux-fill, rgba(255, 255, 255, 0.045));
}
html body #seo-footer.amf {
  position: relative;
  box-sizing: border-box;
  width: calc(100% - 40px) !important;
  max-width: 1400px !important;
  margin: 64px auto 0 !important;
  padding: 48px 8px calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--f-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--f-text-2) !important;
  font-size: 14px;
  line-height: 1.8;
}
html body #seo-footer.amf::before {
  content: ""; position: absolute; top: -1px; left: 50%; width: min(420px, 60%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--f-gold), transparent);
}
html body #seo-footer.amf > .igf-footer,
html body #seo-footer.amf > .mz-apps { display: none !important; }
html body #seo-footer.amf .amf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: start;
}
/* brand */
html body #seo-footer.amf .amf-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
html body #seo-footer.amf .amf-logo img {
  width: 52px; height: 52px; border-radius: 15px; display: block;
  box-shadow: 0 0 0 1px var(--f-gold-line), 0 10px 26px rgba(230, 184, 105, 0.16);
}
html body #seo-footer.amf .amf-logo span { display: flex; flex-direction: column; line-height: 1.35; }
html body #seo-footer.amf .amf-logo b { color: var(--f-text) !important; font-size: 20px; font-weight: 900; }
html body #seo-footer.amf .amf-logo small { color: var(--f-gold) !important; font-size: 12px; font-weight: 700; }
html body #seo-footer.amf .amf-brand p { margin: 18px 0 22px; max-width: 34ch; color: var(--f-text-2); font-size: 14px; line-height: 2; }
html body #seo-footer.amf .amf-social { display: flex; gap: 10px; }
html body #seo-footer.amf .amf-soc {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--f-fill); border: 1px solid var(--f-line); color: var(--f-text-2) !important;
  transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
html body #seo-footer.amf .amf-soc svg { width: 20px; height: 20px; }
html body #seo-footer.amf .amf-soc:hover { transform: translateY(-3px); color: #fff !important; border-color: transparent; }
html body #seo-footer.amf .amf-soc--tg:hover { background: #229ed9; }
html body #seo-footer.amf .amf-soc--ig:hover { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
html body #seo-footer.amf .amf-soc--chat:hover { background: var(--f-gold); color: #1c1304 !important; }
/* columns */
html body #seo-footer.amf h2 {
  position: relative; margin: 6px 0 20px; padding-bottom: 12px;
  color: var(--f-text) !important; font-size: 15px; font-weight: 800; line-height: 1.5;
}
html body #seo-footer.amf h2::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--f-gold-hi), var(--f-gold));
}
html body #seo-footer.amf ul { list-style: none; margin: 0; padding: 0; }
html body #seo-footer.amf .amf-links { display: grid; gap: 11px; }
html body #seo-footer.amf .amf-links--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
html body #seo-footer.amf .amf-links a {
  display: inline-block; color: var(--f-text-2) !important; font-size: 14px; text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
html body #seo-footer.amf .amf-links a:hover { color: var(--f-gold-hi) !important; transform: translateX(-3px); }
html body #seo-footer.amf .amf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
html body #seo-footer.amf .amf-tags a {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--f-fill); border: 1px solid var(--f-line);
  color: var(--f-text-2) !important; font-size: 13px; line-height: 1.6; text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
html body #seo-footer.amf .amf-tags a:hover { color: var(--f-gold-hi) !important; background: var(--f-gold-soft); border-color: var(--f-gold-line); }
html body #seo-footer.amf a:focus-visible { outline: 2px solid var(--f-gold); outline-offset: 3px; border-radius: 6px; }
/* bottom line */
html body #seo-footer.amf .amf-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--f-line);
  color: var(--f-text-3); font-size: 12.5px;
}
@media (max-width: 1100px) {
  html body #seo-footer.amf .amf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
  html body #seo-footer.amf .amf-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  html body #seo-footer.amf .amf-brand p { margin: 0; max-width: none; }
}
@media (max-width: 720px) {
  html body #seo-footer.amf { width: calc(100% - 32px) !important; padding-top: 36px !important; }
  html body #seo-footer.amf .amf-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  html body #seo-footer.amf .amf-brand { display: block; text-align: center; }
  html body #seo-footer.amf .amf-brand p { margin: 14px auto 18px; }
  html body #seo-footer.amf .amf-social { justify-content: center; }
  html body #seo-footer.amf .amf-links:not(.amf-links--two) { display: flex; flex-wrap: wrap; gap: 10px 20px; }
  html body #seo-footer.amf .amf-bottom { justify-content: center; text-align: center; margin-top: 32px; }
}
/* In the app on touch screens the dock floats over the page bottom. */
@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  html body.d26 #seo-footer.amf { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ==================================================================== 2026-11-14: about page (.amb) */
body.amb-page {
  --b-text: #f6f3ec; --b-text-2: rgba(246, 243, 236, 0.74); --b-text-3: rgba(246, 243, 236, 0.5);
  --b-gold: #e6b869; --b-gold-hi: #f7dc9c; --b-gold-lo: #c9973f;
  --b-gold-soft: rgba(230, 184, 105, 0.12); --b-gold-line: rgba(230, 184, 105, 0.36);
  --b-line: rgba(255, 255, 255, 0.08); --b-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  background: radial-gradient(1100px 520px at 50% -120px, rgba(230, 184, 105, 0.13), transparent 70%), #060709 !important;
  color: var(--b-text);
}
.amb { box-sizing: border-box; max-width: 1100px; margin: 0 auto; padding: 8px 20px 0; }
.amb *, .amb *::before, .amb *::after { box-sizing: border-box; }
.amb .seo-crumbs { margin: 6px 0 18px; }
.amb-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 56px 28px 50px; border-radius: 28px; border: 1px solid var(--b-line);
  background: radial-gradient(600px 260px at 50% 0, rgba(230, 184, 105, 0.16), transparent 75%), var(--b-card);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.amb-hero-logo {
  width: 88px; height: 88px; border-radius: 24px; display: block; margin: 0 auto 18px;
  box-shadow: 0 0 0 1px var(--b-gold-line), 0 18px 44px rgba(230, 184, 105, 0.25);
}
.amb-kicker {
  display: inline-block; margin: 0 0 14px; padding: 4px 14px; border-radius: 999px;
  background: var(--b-gold-soft); border: 1px solid var(--b-gold-line); color: var(--b-gold-hi); font-size: 12.5px; font-weight: 800;
}
.amb-hero h1 {
  text-wrap: balance;
  margin: 0 auto 16px; max-width: 760px; font-size: clamp(24px, 4vw, 38px); font-weight: 900; line-height: 1.55;
  background: linear-gradient(180deg, #fff 30%, var(--b-gold-hi) 130%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.amb-lead { margin: 0 auto; max-width: 640px; color: var(--b-text-2); font-size: 16px; line-height: 2.1; }
.amb-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.amb-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 140px; padding: 12px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--b-gold-hi), var(--b-gold) 45%, var(--b-gold-lo)); color: #1c1304; font-weight: 900; font-size: 15px;
  text-decoration: none; box-shadow: 0 12px 30px rgba(230, 184, 105, 0.28); transition: transform 0.2s, box-shadow 0.2s;
}
.amb-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(230, 184, 105, 0.38); }
.amb-btn--ghost { background: rgba(255, 255, 255, 0.04); color: var(--b-text); border: 1px solid var(--b-line); box-shadow: none; }
.amb-btn--ghost:hover { border-color: var(--b-gold-line); color: var(--b-gold-hi); box-shadow: none; }
.amb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.amb-stat {
  padding: 22px 16px; border-radius: 20px; text-align: center; border: 1px solid var(--b-line); background: var(--b-card);
}
.amb-stat b {
  display: block; font-size: 30px; font-weight: 900; line-height: 1.4;
  background: linear-gradient(180deg, var(--b-gold-hi), var(--b-gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.amb-stat span { color: var(--b-text-3); font-size: 13px; }
.amb-section { margin-top: 64px; }
.amb-section > h2 {
  position: relative; margin: 0 0 22px; padding-right: 16px; font-size: 22px; font-weight: 900; color: var(--b-text);
}
.amb-section > h2::before {
  content: ""; position: absolute; right: 0; top: 50%; width: 5px; height: 22px; margin-top: -11px; border-radius: 4px;
  background: linear-gradient(180deg, var(--b-gold-hi), var(--b-gold-lo));
}
.amb-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.amb-feature {
  padding: 24px 20px; border-radius: 22px; border: 1px solid var(--b-line); background: var(--b-card);
  transition: border-color 0.25s, transform 0.25s;
}
.amb-feature:hover { border-color: var(--b-gold-line); transform: translateY(-3px); }
.amb-feature i {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 15px;
  background: var(--b-gold-soft); border: 1px solid var(--b-gold-line); font-style: normal; color: var(--b-gold-hi);
}
.amb-feature i svg { width: 24px; height: 24px; }
.amb-feature h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--b-text); }
.amb-feature p { margin: 0; color: var(--b-text-2); font-size: 14px; line-height: 1.95; }
.amb-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.amb-plan { padding: 26px 26px 14px; border-radius: 24px; border: 1px solid var(--b-line); background: var(--b-card); }
.amb-plan--plus {
  border-color: var(--b-gold-line);
  background: radial-gradient(420px 180px at 100% 0, rgba(230, 184, 105, 0.14), transparent 70%), var(--b-card);
  box-shadow: 0 20px 50px rgba(230, 184, 105, 0.08);
}
.amb-plan header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.amb-plan h3 { margin: 0; font-size: 21px; font-weight: 900; color: var(--b-text); }
.amb-badge {
  padding: 3px 12px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 800; color: #1c1304;
  background: linear-gradient(135deg, var(--b-gold-hi), var(--b-gold));
}
.amb-plan > p { margin: 4px 0 14px; color: var(--b-text-3); font-size: 13.5px; }
.amb-plan ul { list-style: none; margin: 0; padding: 0; }
.amb-plan li { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--b-line); }
.amb-plan li span { color: var(--b-text-2); font-size: 15px; }
.amb-plan li b { color: var(--b-gold-hi); font-size: 19px; font-weight: 900; }
.amb-plan li small { color: var(--b-text-3); font-size: 12px; font-weight: 600; }
.amb-note {
  margin: 16px 0 0; padding: 12px 18px; border-radius: 16px; text-align: center;
  background: var(--b-gold-soft); border: 1px dashed var(--b-gold-line); color: var(--b-text-2); font-size: 14px;
}
.amb-note b { color: var(--b-gold-hi); }
.amb-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.amb-chips a {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--b-line); background: rgba(255, 255, 255, 0.035);
  color: var(--b-text-2); font-size: 14px; text-decoration: none; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.amb-chips a:hover { color: var(--b-gold-hi); border-color: var(--b-gold-line); background: var(--b-gold-soft); }
.amb-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.amb-contact {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 22px; text-decoration: none;
  border: 1px solid var(--b-line); background: var(--b-card); transition: transform 0.25s, border-color 0.25s;
}
.amb-contact:hover { transform: translateY(-3px); border-color: var(--b-gold-line); }
.amb-contact i { flex: 0 0 52px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; }
.amb-contact i svg { width: 24px; height: 24px; }
.amb-contact--tg i { background: linear-gradient(135deg, #37aee2, #1e96c8); }
.amb-contact--ig i { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.amb-contact span { display: flex; flex-direction: column; min-width: 0; line-height: 1.6; }
.amb-contact b { color: var(--b-text); font-size: 15px; font-weight: 800; }
.amb-contact em { color: var(--b-gold-hi); font-style: normal; font-size: 13.5px; text-align: right; }
.amb-contact small { color: var(--b-text-3); font-size: 12.5px; }
@media (max-width: 960px) {
  .amb-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amb-contacts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .amb { padding-inline: 16px; }
  .amb-hero { padding: 40px 18px 36px; border-radius: 24px; }
  .amb-hero-logo { width: 72px; height: 72px; border-radius: 20px; }
  .amb-lead { font-size: 15px; }
  .amb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .amb-stat b { font-size: 24px; }
  .amb-section { margin-top: 48px; }
  .amb-features, .amb-plans { grid-template-columns: minmax(0, 1fr); }
  .amb-plan { padding: 22px 20px 10px; }
}
/* site-polish.css pulls the footer up (margin-top 0, padding-top 10px !important); the new footer keeps its air. */
html:root:root:root body.d26.d26.d26 #seo-footer.amf { margin-top: 64px !important; padding-top: 48px !important; }
@media (max-width: 720px) { html:root:root:root body.d26.d26.d26 #seo-footer.amf { margin-top: 40px !important; padding-top: 36px !important; } }

/* ---------------------------------------------------------------- 2026-11-14 v2: phones (owner: «توی اپ گوشی و مرورگر گوشی خوب نیست»)
   One compact column: brand in a row, every link group as tidy pills, no tall lists. */
@media (max-width: 720px) {
  html body #seo-footer.amf { width: calc(100% - 24px) !important; padding-inline: 4px !important; font-size: 13px; }
  html:root:root:root body.d26.d26.d26 #seo-footer.amf, html body.seo-page #seo-footer.amf { margin-top: 28px !important; padding-top: 26px !important; }
  html body #seo-footer.amf .amf-grid { gap: 22px; }
  html body #seo-footer.amf .amf-brand {
    display: grid !important; grid-template-columns: auto 1fr; align-items: center; gap: 12px 12px; text-align: right;
    padding: 16px; border-radius: 20px; border: 1px solid var(--f-line); background: var(--f-fill);
  }
  html body #seo-footer.amf .amf-logo img { width: 44px; height: 44px; border-radius: 13px; }
  html body #seo-footer.amf .amf-logo b { font-size: 17px; }
  html body #seo-footer.amf .amf-logo small { font-size: 11px; }
  html body #seo-footer.amf .amf-social { justify-content: flex-end; gap: 8px; }
  html body #seo-footer.amf .amf-soc { width: 38px; height: 38px; }
  html body #seo-footer.amf .amf-soc svg { width: 18px; height: 18px; }
  html body #seo-footer.amf .amf-brand p { grid-column: 1 / -1; margin: 0; max-width: none; font-size: 13px; line-height: 1.95; }
  html body #seo-footer.amf h2 { margin: 0 0 12px; padding-bottom: 9px; font-size: 14px; }
  html body #seo-footer.amf .amf-links,
  html body #seo-footer.amf .amf-links:not(.amf-links--two) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html body #seo-footer.amf .amf-links:not(.amf-links--two) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body #seo-footer.amf .amf-links li { display: flex; min-width: 0; }
  html body #seo-footer.amf .amf-links a {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; padding: 6px 8px;
    border-radius: 12px; border: 1px solid var(--f-line); background: var(--f-fill);
    font-size: 12.5px; line-height: 1.5; text-align: center;
  }
  html body #seo-footer.amf .amf-links a:hover { transform: none; border-color: var(--f-gold-line); background: var(--f-gold-soft); }
  html body #seo-footer.amf .amf-tags { gap: 6px; }
  html body #seo-footer.amf .amf-tags a { padding: 5px 12px; font-size: 12.5px; }
  html body #seo-footer.amf .amf-bottom { margin-top: 22px; padding-top: 16px; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; }
}
@media (max-width: 360px) {
  html body #seo-footer.amf .amf-links, html body #seo-footer.amf .amf-links--two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* about page on phones: shorter hero, side-by-side feature rows, tighter cards. */
@media (max-width: 640px) {
  .amb { padding-inline: 14px; }
  .amb .seo-crumbs { margin: 4px 0 12px; font-size: 13px; }
  .amb-hero { padding: 30px 16px 26px; border-radius: 22px; }
  .amb-hero-logo { width: 62px; height: 62px; border-radius: 18px; margin-bottom: 12px; }
  .amb-kicker { margin-bottom: 10px; font-size: 11.5px; padding: 3px 12px; }
  .amb-hero h1 { font-size: 21px; margin-bottom: 10px; }
  .amb-lead { font-size: 14px; line-height: 2; }
  .amb-actions { margin-top: 20px; gap: 10px; }
  .amb-btn { min-width: 0; flex: 1 1 0; padding: 11px 14px; font-size: 14px; }
  .amb-stats { margin-top: 12px; gap: 8px; }
  .amb-stat { padding: 14px 10px; border-radius: 16px; }
  .amb-stat b { font-size: 21px; }
  .amb-stat span { font-size: 12px; }
  .amb-section { margin-top: 38px; }
  .amb-section > h2 { font-size: 18px; margin-bottom: 14px; padding-right: 13px; }
  .amb-section > h2::before { width: 4px; height: 18px; margin-top: -9px; }
  .amb-features { gap: 10px; }
  .amb-feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 15px 16px; border-radius: 18px; }
  .amb-feature i { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; border-radius: 13px; }
  .amb-feature i svg { width: 21px; height: 21px; }
  .amb-feature h3 { margin: 1px 0 3px; font-size: 15px; }
  .amb-feature p { font-size: 13px; line-height: 1.85; }
  .amb-plans { gap: 12px; }
  .amb-plan { padding: 18px 18px 6px; border-radius: 20px; }
  .amb-plan h3 { font-size: 18px; }
  .amb-plan li { padding: 11px 0; }
  .amb-plan li b { font-size: 17px; }
  .amb-note { font-size: 13px; padding: 10px 14px; }
  .amb-chips { gap: 8px; }
  .amb-chips a { padding: 7px 14px; font-size: 13px; }
  .amb-contacts { gap: 10px; }
  .amb-contact { padding: 13px 14px; gap: 12px; border-radius: 18px; }
  .amb-contact i { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
}


/* ==================================================================== 2026-11-14: list pages (.aml) and the schedule (.ams) */
.aml { box-sizing: border-box; max-width: 1100px; margin: 0 auto; padding: 8px 20px 0; }
.aml *, .aml *::before, .aml *::after { box-sizing: border-box; }
.aml .seo-crumbs { margin: 6px 0 18px; }
.aml-head {
  padding: 34px 28px 30px; border-radius: 26px; border: 1px solid var(--b-line);
  background: radial-gradient(560px 220px at 100% 0, rgba(230, 184, 105, 0.14), transparent 72%), var(--b-card);
}
.aml-head h1 { margin: 0 0 10px; font-size: clamp(22px, 3.4vw, 32px); font-weight: 900; line-height: 1.55; color: var(--b-text); text-wrap: balance; }
.aml-intro { margin: 0; max-width: 760px; color: var(--b-text-2); font-size: 15px; line-height: 2.05; }
.aml-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.aml-item a {
  position: relative; display: flex; gap: 14px; height: 100%; padding: 12px; border-radius: 20px; text-decoration: none;
  border: 1px solid var(--b-line); background: var(--b-card); transition: border-color 0.25s, transform 0.25s;
}
.aml-item a:hover { border-color: var(--b-gold-line); transform: translateY(-2px); }
.aml-item img { flex: 0 0 92px; width: 92px; height: 138px; object-fit: cover; border-radius: 13px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
.aml-rank {
  position: absolute; top: 8px; right: 8px; z-index: 1; min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center;
  border-radius: 999px; background: linear-gradient(135deg, var(--b-gold-hi), var(--b-gold)); color: #1c1304; font-size: 13px; font-weight: 900;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.aml-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 2px; }
.aml-body b { color: var(--b-text); font-size: 16px; font-weight: 800; line-height: 1.6; }
.aml-en { color: var(--b-text-3); font-size: 12.5px; text-align: right; }
.aml-facts { color: var(--b-text-2); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.aml-imdb { padding: 1px 8px; border-radius: 6px; background: #f5c518; color: #121212; font-size: 11.5px; font-weight: 900; }
.aml-story { margin-top: 4px; color: var(--b-text-3); font-size: 13px; line-height: 1.9;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aml-index a small { margin-inline-start: 4px; color: var(--b-gold); font-size: 12px; }
/* schedule */
.ams-jump { margin-top: 18px; }
.ams-jump a { padding: 6px 14px; font-size: 13px; }
.ams-day > h2 small, .aml .amb-section > h2 small { margin-inline-start: 8px; color: var(--b-text-3); font-size: 13px; font-weight: 600; }
.ams-today > h2 { color: var(--b-gold-hi); }
.ams-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ams-card a {
  display: flex; gap: 12px; align-items: center; height: 100%; padding: 10px; border-radius: 16px; text-decoration: none;
  border: 1px solid var(--b-line); background: var(--b-card); transition: border-color 0.25s;
}
.ams-today .ams-card a { border-color: var(--b-gold-line); }
.ams-card a:hover { border-color: var(--b-gold-line); }
.ams-card img { flex: 0 0 52px; width: 52px; height: 78px; object-fit: cover; border-radius: 10px; }
.ams-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ams-body b { color: var(--b-text); font-size: 14.5px; font-weight: 800; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ams-facts { color: var(--b-text-3); font-size: 12px; }
.ams-ep { color: var(--b-gold-hi); font-size: 12.5px; font-weight: 700; }
.ams-when { color: var(--b-text-3); font-size: 11.5px; }
.ams-empty { grid-column: 1 / -1; padding: 14px; border-radius: 14px; border: 1px dashed var(--b-line); color: var(--b-text-3); font-size: 13.5px; }
@media (max-width: 900px) {
  .ams-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .aml { padding-inline: 14px; }
  .aml-head { padding: 24px 16px 20px; border-radius: 22px; }
  .aml-head h1 { font-size: 20px; }
  .aml-intro { font-size: 14px; line-height: 2; }
  .aml-list { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
  .aml-item a { padding: 10px; gap: 12px; border-radius: 18px; }
  .aml-item img { flex-basis: 78px; width: 78px; height: 117px; }
  .aml-body b { font-size: 15px; }
  .ams-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ams-jump { gap: 6px; }
  .ams-jump a { padding: 5px 11px; font-size: 12.5px; }
}


/* 2026-11-29: archive and genre links as even chips, not a ragged wrap. */
html body #seo-footer.amf .amf-links--two {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
html body #seo-footer.amf .amf-links a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--f-line);
  background: var(--f-fill);
  text-align: center;
  line-height: 1.5;
  transform: none !important;
}
html body #seo-footer.amf .amf-tags {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
}
html body #seo-footer.amf .amf-tags a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 12px;
  text-align: center;
}
@media (min-width: 721px) {
  html body #seo-footer.amf .amf-links:not(.amf-links--two) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
  }
  html body #seo-footer.amf .amf-tags { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  html body #seo-footer.amf .amf-links,
  html body #seo-footer.amf .amf-links--two,
  html body #seo-footer.amf .amf-links:not(.amf-links--two) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

html body #seo-footer.amf .amf-links a,
html body #seo-footer.amf .amf-tags a { height: 100%; box-sizing: border-box; }


/* 2026-11-29: the air above the club logo was a hole on phones. */
@media (max-width: 720px) {
  html:root:root:root body.d26.d26.d26 #seo-footer.amf {
    margin-top: 0 !important;
    padding-top: 4px !important;
  }
  html body #seo-footer.amf .amf-brand { padding-top: 0 !important; }
}
