@font-face {
  font-family: "IRANSansX";
  src: url("/site/fonts/IRANSansX-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* پالت سفید دودی و خنثی؛ بدون رنگ تأکیدی */
:root {
  --bg: #f4f4f2;
  --surface: #fbfbfa;
  --ink: #1c1c1e;
  --muted: #6b6b70;
  --faint: #a1a1a6;
  --line: #e0e0dc;
  --line-strong: #cfcfca;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "IRANSansX", Tahoma, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* شبکه‌ی کم‌رنگ پس‌زمینه */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 10%, transparent 75%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .page {
    padding: 3rem 1.5rem;
  }
}

/* ── سربرگ ── */
.brand {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: rise 0.7s ease-out both;
}

.brand__logo {
  display: block;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  box-shadow: 0 10px 30px -12px rgba(20, 20, 20, 0.35);
}

.brand__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.brand__title h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.brand__line {
  height: 1px;
  width: 3.5rem;
}

.brand__line--start {
  background: linear-gradient(to left, var(--line-strong), transparent);
}

.brand__line--end {
  background: linear-gradient(to right, var(--line-strong), transparent);
}

.brand__tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── کارت‌ها ── */
.grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 56rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .grid {
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .grid {
    gap: 1.25rem;
  }
}

.grid > li {
  display: flex;
  flex: 0 0 calc((100% - 0.85rem) / 2);
  min-width: 0;
  animation: rise 0.6s ease-out both;
}

.grid > li:nth-child(2) { animation-delay: 0.06s; }
.grid > li:nth-child(3) { animation-delay: 0.12s; }
.grid > li:nth-child(4) { animation-delay: 0.18s; }
.grid > li:nth-child(5) { animation-delay: 0.24s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.card__media {
  height: 150px;
  overflow: hidden;
  background: var(--bg);
}

@media (min-width: 640px) {
  .card__media {
    height: 170px;
  }
}

.card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
  transition: transform 0.7s, filter 0.5s;
}

.card__title {
  margin: 0;
  padding: 0.95rem 0.5rem 1.05rem;
  font-size: 0.925rem;
  font-weight: 700;
}

/* فعال */
.card--live:hover,
.card--live:focus-visible {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 2px 4px rgba(20, 20, 20, 0.04), 0 24px 40px -20px rgba(20, 20, 20, 0.25);
}

.card--live:hover .card__media img,
.card--live:focus-visible .card__media img {
  transform: scale(1.06);
  filter: grayscale(0);
}

.card--live:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* به‌زودی */
.card--soon {
  cursor: not-allowed;
}

.card--soon .card__media img {
  filter: grayscale(1);
  opacity: 0.4;
}

.card--soon .card__title {
  color: var(--faint);
}

.card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.15rem 0.7rem;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.footer {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 640px) {
  .grid > li {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (min-width: 1024px) {
  .grid > li {
    flex-basis: calc((100% - 3.75rem) / 4);
  }
}
