:root {
  --navy: #071422;
  --navy-2: #0c1c31;
  --navy-3: #132844;
  --gold: #e0b15a;
  --gold-2: #c4923a;
  --cream: #f6f1e6;
  --paper: #fffaf3;
  --ink: #1b2430;
  --muted: #5c6570;
  --line: rgba(224, 177, 90, 0.45);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --arabic: "Amiri", "Palatino Linotype", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.6;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; }
[lang="ar"] { font-family: var(--arabic); line-height: 1.7; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: #f0ddb0; color: #1a1408; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 50;
  background: var(--gold);
  color: #1a1408;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
}
.skip-link:focus { top: 0.6rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 20, 34, 0.96);
  color: #f7f1e4;
  border-bottom: 1px solid rgba(224, 177, 90, 0.28);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 92px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}
.logo-img {
  height: 78px;
  width: auto;
  display: block;
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.site-nav a {
  color: #f4efe6;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}
.site-nav a[aria-current="page"] {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.header-tools { display: flex; align-items: center; gap: 0.7rem; margin-left: auto; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #f7f1e4;
  display: grid;
  place-items: center;
}
.icon-btn svg { width: 20px; height: 20px; }

.donate-btn, .btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(#f3d48a, #d7a44a);
  color: #2a1c08;
}
.donate-btn svg, .btn-gold svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(224, 177, 90, 0.4);
  background: transparent;
  color: #f7f1e4;
}
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #f7f1e4;
  position: relative;
  content: "";
}
.nav-toggle-lines::before, .nav-toggle-lines::after { position: absolute; left: 0; }
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }
.site-header.is-open .nav-toggle-lines { background: transparent; }
.site-header.is-open .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }

.search-drawer {
  border-top: 1px solid rgba(224, 177, 90, 0.25);
  padding: 0.8rem 0 1rem;
  background: #071422;
}
.search-drawer[hidden] { display: none; }
.search-bar input, .subscribe input, .field input, .field textarea, .field select, .search input {
  width: 100%;
  border: 1px solid rgba(224, 177, 90, 0.45);
  background: #fffaf3;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.75rem 1rem;
}
.search-results { display: grid; gap: 0.35rem; margin-top: 0.7rem; }
.search-hit {
  display: block;
  text-decoration: none;
  color: #f7f1e4;
  padding: 0.45rem 0.2rem;
  border-bottom: 1px solid rgba(243, 230, 196, 0.12);
}

.night {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(40, 78, 130, 0.35), transparent 46%),
    var(--navy);
  color: #f7f1e4;
}

.hero-wrap { padding: 1.2rem 0 2.2rem; }

.hero-frame {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(224, 177, 90, 0.75);
  background:
    linear-gradient(90deg, rgba(6, 14, 28, 0.86) 0%, rgba(6, 14, 28, 0.42) 32%, rgba(6, 14, 28, 0.08) 58%),
    url("../assets/hero-night.jpg") right center / cover no-repeat;
  box-shadow: inset 0 0 0 8px rgba(7, 20, 34, 0.28), 0 20px 50px rgba(0, 0, 0, 0.28);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 20px;
  border: 1px solid rgba(224, 177, 90, 0.35);
  pointer-events: none;
  z-index: 3;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-art svg { width: 100%; height: 100%; }

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 3.2rem 2.4rem 2.6rem;
}
.wave {
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
  height: 18px;
  margin-bottom: 0.35rem;
}
.wave i {
  display: block;
  width: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.wave i:nth-child(1) { height: 7px; }
.wave i:nth-child(2) { height: 14px; }
.wave i:nth-child(3) { height: 18px; }
.wave i:nth-child(4) { height: 11px; }
.wave i:nth-child(5) { height: 6px; }

.hero-ar {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--gold);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  margin: 0.2rem 0 0.35rem;
}
.hero-copy h1 {
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3.1rem);
}
.hero-sub {
  margin-top: 0.8rem;
  max-width: 34rem;
  color: #efe6d4;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(224, 177, 90, 0.8);
  color: #f7f1e4;
  background: rgba(7, 20, 34, 0.35);
}
.btn-ghost svg, .btn-line svg { width: 16px; height: 16px; }

.features {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}
.feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(224, 177, 90, 0.4);
  border-radius: 16px;
  padding: 0.95rem 0.9rem;
  background: rgba(8, 22, 40, 0.55);
}
.feature svg { width: 28px; height: 28px; flex: none; color: var(--gold); }
.feature strong { display: block; font-family: var(--serif); font-size: 0.98rem; }
.feature span { display: block; color: #d9d0c0; font-size: 0.86rem; margin-top: 0.15rem; }

.section { padding: 2.6rem 0; }
.section-next { padding-top: 0; }
.section-player { padding-top: 0.6rem; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.15rem;
}
.section-title::before, .section-title::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.media-row, .media-grid {
  display: grid;
  gap: 0.9rem;
}
.media-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #102033;
  border: 1px solid rgba(224, 177, 90, 0.28);
}
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 12, 22, 0.05) 20%, rgba(5, 12, 22, 0.82) 100%);
}
.media-time {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(7, 16, 28, 0.72);
  border: 1px solid rgba(224, 177, 90, 0.45);
  color: #f7f1e4;
  border-radius: 8px;
  padding: 0.12rem 0.4rem;
  font-size: 0.75rem;
}
.media-play {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(7, 16, 28, 0.45);
}
.media-play::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  border-style: solid;
  border-width: 7px 0 7px 10px;
  border-color: transparent transparent transparent #f3d48a;
}
.media-copy {
  position: absolute;
  left: 0.8rem;
  right: 3rem;
  bottom: 0.7rem;
}
.media-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
}
.media-by { display: block; margin-top: 0.15rem; color: #e7d7b0; font-style: normal; font-size: 0.82rem; }

.center-link { display: flex; justify-content: center; margin-top: 1.15rem; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--gold);
  color: #f3e6c4;
}
.cream .btn-outline, .page-cream .btn-outline { color: #6d5014; }

.about-grid, .split, .contact-grid {
  display: grid;
  gap: 1.3rem;
}
.arch {
  min-height: 280px;
  border-radius: 150px 150px 16px 16px;
  border: 2px solid var(--gold);
  overflow: hidden;
  background: #102844;
}
.arch img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 0.7rem; }
.about-copy h2 em { color: var(--gold); font-style: normal; }
.gold { color: var(--gold); }
.about-points {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.about-points article { text-align: center; }
.about-points svg { width: 28px; height: 28px; color: var(--gold); }
.about-points strong { display: block; margin-top: 0.25rem; }

.connect {
  display: grid;
  gap: 1rem;
  align-items: center;
  background: var(--cream);
  color: var(--ink);
}
.connect-lead { display: flex; gap: 0.8rem; align-items: center; }
.connect-lead svg { width: 36px; height: 36px; color: #8a6230; flex: none; }
.subscribe { display: flex; gap: 0.55rem; align-items: center; }
.subscribe input { border-radius: 999px; background: #fff; }
.subscribe .btn-gold { white-space: nowrap; }
.form-success, #subscribe-note {
  background: #efe4c8;
  color: #3d2c10;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}

.site-footer {
  background: var(--navy);
  color: #f7f1e4;
  padding: 0.85rem 0 0.7rem;
  border-top: 1px solid rgba(224, 177, 90, 0.45);
}
.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}
.site-footer .logo-img { height: 96px; }
.footer-nav, .socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.15rem;
}
.footer-nav a, .socials a { text-decoration: none; color: #f4efe6; }
.footer-nav a:hover, .socials a:hover { color: var(--gold); }
.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(224, 177, 90, 0.55);
}
.socials svg { width: 15px; height: 15px; }
.legal {
  text-align: center;
  color: #c9bfae;
  font-size: 0.85rem;
  margin: 0.85rem 0 0.2rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(224, 177, 90, 0.22);
}

.page-banner { padding: 2.4rem 0 1.2rem; }
.page-banner h1 { font-size: clamp(2rem, 4vw, 3rem); }
.kicker {
  color: var(--gold-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.night .kicker, .band .kicker { color: var(--gold); }
.lede { margin-top: 0.7rem; max-width: 40rem; color: #efe6d4; }
.soft, .soft-block { color: var(--muted); }
.soft-block { max-width: 40rem; margin-top: 0.7rem; }

.band {
  background-color: var(--navy);
  background-image: url("../assets/pattern-light.svg");
  background-size: 240px;
  color: #f7f1e4;
}

.page-intro { padding: 2rem 0 0.4rem; }
.page-intro h1, .page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); max-width: 16ch; }
.page-hero { padding: 3rem 0; }

.cinema { display: grid; gap: 0.9rem; }
.cinema-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #071422;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(224, 177, 90, 0.35);
}
.cinema-screen iframe, .poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { padding: 0; background: #071422; }
.poster img, .thumb img, .mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 250, 243, 0.94);
  display: grid;
  place-items: center;
}
.play-icon::before {
  content: "";
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #1a1408;
  margin-left: 3px;
}
.play-icon-lg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
}
.poster-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.cinema-side {
  background: var(--navy-2);
  color: #f7f1e4;
  border-radius: 18px;
  padding: 1.1rem;
  border: 1px solid rgba(224, 177, 90, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cinema-title { font-size: 1.6rem; }
.cinema-arabic { color: var(--gold); font-size: 1.4rem; }
.cinema-meta, .cinema-note { color: #d9d0c0; font-size: 0.9rem; }
.light-link { color: var(--gold); }
.text-link { color: var(--gold-2); font-weight: 600; }
.up-next-label { margin-top: 0.4rem; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; color: var(--gold); }
.up-next-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.65rem;
  width: 100%;
  padding: 0.3rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
}
.mini-thumb { display: block; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #071422; }
.up-next-title { font-family: var(--serif); }

.toolbar { display: grid; gap: 0.7rem; margin: 1rem 0; }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  border: 1px solid rgba(196, 146, 58, 0.45);
  background: transparent;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}
.chip.is-active, .chip.is-active:hover { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.video-count { color: var(--muted); }
.video-grid { display: grid; gap: 0.9rem; }
.video-card {
  background: var(--paper);
  border: 1px solid rgba(196, 146, 58, 0.28);
  border-radius: 16px;
  overflow: hidden;
}
.video-card.is-current { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.video-card-hit {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
}
.thumb { position: relative; display: block; aspect-ratio: 16/9; background: var(--navy); overflow: hidden; }
.thumb .play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; }
.badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--gold);
  color: #1a1408;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.card-body { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.8rem 0.9rem 1rem; }
.card-kicker { color: var(--gold-2); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.card-title { font-family: var(--serif); font-size: 1.15rem; }
.card-arabic { color: var(--gold-2); }
.card-meta { color: var(--muted); font-size: 0.88rem; }
.empty {
  background: var(--paper);
  border: 1px solid rgba(196, 146, 58, 0.28);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}
.video-grid .empty { grid-column: 1 / -1; }
.empty-ar { color: var(--gold-2); font-size: 1.8rem; }

.prose p + p, .contact-copy p + p { margin-top: 0.8rem; }
.pull {
  margin: 0;
  padding: 1.4rem 1.2rem;
  border-radius: 140px 140px 18px 18px;
  background: var(--navy);
  color: #f7f1e4;
}
.pull p:first-child { font-family: var(--arabic); font-size: 1.8rem; }
.pull footer { margin-top: 0.6rem; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.values, .paths { display: grid; gap: 0.8rem; }
.value, .path, .faq details, .form {
  background: var(--paper);
  border: 1px solid rgba(196, 146, 58, 0.28);
  border-radius: 16px;
}
.value, .path { padding: 1rem; }
.faq details { padding: 0.85rem 1rem; }
.faq details + details { margin-top: 0.55rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.path-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3e6c8;
  color: #6d5014;
  margin-bottom: 0.4rem;
}
.path-icon svg { width: 22px; height: 22px; }
.contact-list { display: grid; gap: 0.3rem; margin-top: 0.8rem; }
.contact-list a { color: #6d5014; font-weight: 600; }
.form { padding: 1rem; display: grid; gap: 0.75rem; }
.field { display: grid; gap: 0.3rem; }
.field span { font-weight: 600; }
.field textarea { min-height: 130px; border-radius: 16px; resize: vertical; }
.field-error { color: #8e2f2a; font-size: 0.88rem; }
[aria-invalid="true"] { border-color: #8e2f2a; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.stack { display: grid; gap: 1rem; }
.reflection {
  background: var(--paper);
  border: 1px solid rgba(196, 146, 58, 0.28);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
}
.reflection + .reflection { margin-top: 0.8rem; }
.reflection h2 { font-size: 1.45rem; margin-bottom: 0.4rem; }

#listen, #stage, #latest { scroll-margin-top: 5.5rem; }

@media (min-width: 720px) {
  .features, .media-row, .media-grid, .video-grid, .values, .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-points { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .features, .media-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .media-grid.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .about-grid, .split, .contact-grid { grid-template-columns: 0.9fr 1.2fr; align-items: center; }
  .footer-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    text-align: left;
  }
  .footer-nav { justify-content: center; }
  .socials { justify-self: end; }
  .cinema { grid-template-columns: 1.7fr 0.85fr; }
  .toolbar { grid-template-columns: minmax(220px, 280px) 1fr auto; align-items: center; }
  .connect { grid-template-columns: 1fr 1.1fr; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 92px;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1.1rem 0.9rem;
    background: #071422;
    border-bottom: 1px solid rgba(224, 177, 90, 0.3);
  }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { padding: 0.8rem 0; border-bottom: 1px solid rgba(243, 230, 196, 0.1); }
  .subscribe { flex-direction: column; align-items: stretch; }
  .hero-copy { padding: 1.6rem 1.1rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
