:root {
  --bg: #0a0a0a;
  --card: #111115;
  --panel: #0f0f12;
  --accent: #e11931;
  --accent-2: #ff3b4d;
  --text: #f5f5f5;
  --muted: #a8adb8;
  --border: #1f2026;
  --glow: 0 0 40px rgba(225, 25, 49, 0.35);
}

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

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(225, 25, 49, 0.08), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(255, 59, 77, 0.12), transparent 30%), var(--bg);
  color: var(--text);
  font-family: 'IRANSans', 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.page {
  width: min(1200px, 95vw);
  margin: 0 auto 64px;
  padding: 16px 0 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 32px) 8px;
  width: 100%;
  max-width: min(1200px, 95vw);
  margin: 0 auto;
  position: relative;
  border-radius: 14px;
}

.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.8) 100%);
  backdrop-filter: blur(12px);
  z-index: -1;
  pointer-events: none;
  border-radius: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  height: 34px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.brand__divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.brand__festival {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cta-link {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  color: var(--text);
  transition: all 0.2s ease;
}

.cta-link:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--glow);
}

.hero {
  margin: 32px 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  background: linear-gradient(135deg, rgba(17, 17, 21, 0.9), rgba(14, 14, 16, 0.85));
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 70% 20%, rgba(225, 25, 49, 0.1), transparent 35%);
  z-index: 0;
}

.hero__content,
.hero__visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(225, 25, 49, 0.12);
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 12px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 36px);
}

.lede {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 18px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 13px;
}

.tag--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.poster {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
}

.poster img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.poster__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(225, 25, 49, 0.2), transparent 50%);
  pointer-events: none;
}

.panel {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.panel#categories {
  display: none;
}

#scroll-to-categories {
  display: none;
}

.panel__header h2 {
  margin: 0 0 6px;
}

.panel__header .muted {
  margin: 0;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 14px;
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(145deg, #111016, #0d0d10);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 25, 49, 0.4);
  box-shadow: var(--glow);
}

.card__eyebrow {
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 8px;
}

.card h3 {
  margin: 0 0 6px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.form-hint {
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0c0c0f;
}

.field span {
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #1b1c23;
  background: #121218;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(225, 25, 49, 0.7);
  box-shadow: 0 0 0 4px rgba(225, 25, 49, 0.12);
}

.field--file input {
  padding: 10px;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.captcha {
  gap: 10px;
}

.captcha__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.captcha__body {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.captcha__body span {
  color: var(--muted);
  flex: 1;
}

.captcha__body input {
  width: 120px;
  min-width: 100px;
  height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  color: #fff;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: rgba(225, 25, 49, 0.5);
}

.link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

.status {
  min-height: 32px;
  font-size: 14px;
  color: var(--muted);
}

.status--error {
  color: #ff8a8a;
}

.status--success {
  color: #7ddc82;
}

.terms-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0c0c0f;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
}

.terms-box__header {
  font-weight: 700;
}

.terms-box__body {
  border: 1px solid #1b1c23;
  border-radius: 10px;
  padding: 10px;
  background: #121218;
  color: var(--muted);
  max-height: 180px;
  overflow-y: auto;
  line-height: 1.7;
  font-size: 14px;
  white-space: pre-wrap;
}

.footer {
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .poster {
    margin: 0 auto;
    max-width: 360px;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .page {
    width: 94vw;
  }
  .topbar {
    position: static;
    padding: 10px 14px;
    border-radius: 10px;
  }
  .hero {
    padding: 20px;
    gap: 18px;
  }
  .hero__cta {
    gap: 10px;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .poster {
    max-width: 300px;
  }
  .poster img {
    max-height: 420px;
  }
  .field {
    padding: 10px;
  }
  .actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel {
    padding: 18px;
  }
}
