@import url("../assets/fonts/fonts.css");

:root {
  --bg: #0a0a0c;
  --bg-2: #101116;
  --surface: #17181f;
  --surface-2: #1f2029;
  --line: rgba(243, 238, 230, 0.1);
  --line-strong: rgba(243, 238, 230, 0.18);
  --text: #f3eee6;
  --muted: #a8a29a;
  --faint: #6f6a64;
  --crimson: #e11d2e;
  --crimson-d: #b01220;
  --crimson-soft: rgba(225, 29, 46, 0.16);
  --gold: #d4a017;
  --gold-soft: #e8c56b;
  --cream: #f3eee6;
  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --arabic: "Amiri", "Noto Naskh Arabic", serif;
  --max: 1180px;
  --nav-h: 76px;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sr-only {
  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(var(--max), calc(100% - 40px)); margin-inline: auto; }
.wrap-wide { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10, 10, 12, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  display: flex; align-items: baseline; gap: 0;
}
.logo .dotcom { color: var(--crimson); font-weight: 600; }

.nav {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.nav a {
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--cream);
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface); }
.nav a[aria-current="page"] { color: var(--gold-soft); }

.btn-study {
  background: var(--gold);
  color: #1a1200 !important;
  font-weight: 700 !important;
  padding: 10px 16px !important;
  border-radius: 8px;
  letter-spacing: 0.01em;
}
.btn-study:hover { filter: brightness(1.08); background: var(--gold-soft) !important; }

.search-form {
  display: flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 4px 2px 14px;
  min-width: 200px;
}
.search-form input {
  background: transparent; border: 0; outline: 0;
  width: 160px; padding: 8px 0;
  font-size: 0.95rem;
}
.search-form input::placeholder { color: var(--faint); }
.search-form button {
  background: transparent; border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--cream);
}
.search-form button:hover { background: var(--surface-2); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent; border: 1px solid var(--line);
  width: 44px; height: 44px; border-radius: 10px;
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #000;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.95) contrast(1.05);
  transform: scale(1.04);
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.35) 0%, rgba(10,10,12,0.15) 30%, rgba(10,10,12,0.92) 100%),
    linear-gradient(90deg, rgba(10,10,12,0.65) 0%, rgba(10,10,12,0.2) 55%, rgba(10,10,12,0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 56px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 16px;
}
.kicker::before {
  content: "";
  width: 28px; height: 3px;
  background: var(--crimson);
  border-radius: 2px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 600;
  max-width: 16ch;
  margin-bottom: 16px;
}
.hero .lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--cream);
  max-width: 42ch;
  margin-bottom: 28px;
  opacity: 0.92;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(0,0,0,0.35);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream);
}
.chip a:hover { color: var(--gold-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  border: 1px solid transparent;
}
.btn-play {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 29, 46, 0.35);
}
.btn-play:hover { background: #f12537; }
.btn-ghost {
  background: rgba(243,238,230,0.08);
  border-color: var(--line-strong);
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(243,238,230,0.14); }
.btn-gold {
  background: var(--gold);
  color: #1a1200;
}
.btn-gold:hover { background: var(--gold-soft); }
.play-icon {
  width: 22px; height: 22px;
  display: inline-block;
}

/* Sections */
.section { padding: 72px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 46ch; }
.link-more { color: var(--gold-soft); font-weight: 600; font-size: 1rem; }
.link-more:hover { text-decoration: underline; }

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .dur {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(0,0,0,0.82);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.thumb .play-badge {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover .play-badge { opacity: 1; }
.play-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--crimson);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.card-body { padding: 16px 16px 18px; }
.card-body h3 { font-size: 1.25rem; margin: 0 0 8px; font-weight: 600; }
.card:hover h3 { color: var(--gold-soft); }
.card-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cat-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  min-height: 180px;
}
.cat-card:hover { border-color: var(--gold); }
.cat-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.cat-card p { color: var(--muted); margin: 0 0 14px; font-size: 1.02rem; }
.cat-card .count { color: var(--gold-soft); font-weight: 600; font-size: 0.95rem; }
.cat-card.soon {
  opacity: 0.7;
  background: var(--bg-2);
}
.cat-card.soon:hover { border-color: var(--line-strong); }
.soon-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Shorts */
.shorts-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 220px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.short-card {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.short-card:hover { border-color: var(--line-strong); }
.short-card .thumb {
  aspect-ratio: 9/16;
}
.short-card h3 {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
  padding: 12px 12px 14px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.short-flag {
  position: absolute; left: 10px; top: 10px;
  background: var(--crimson);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Study CTA */
.cta {
  background:
    radial-gradient(800px 240px at 10% 0%, rgba(212,160,23,0.14), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 28px;
  align-items: center;
}
.cta h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 10px; }
.cta p { color: var(--muted); margin: 0; max-width: 52ch; font-size: 1.1rem; }

/* Subscribe / newsletter */
.subscribe-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.panel h2, .panel h3 { font-size: 1.6rem; }
.signup {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px;
}
.signup input[type="email"] {
  flex: 1; min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 52px;
}
.signup input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form-note { font-size: 0.9rem; color: var(--faint); margin-top: 10px; }
.form-ok { color: #8dcf8a; font-weight: 600; margin-top: 10px; display: none; }
.form-ok.show { display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  background: #070709;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.footer-brand .dotcom { color: var(--crimson); }
.site-footer h3 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a:hover { color: var(--gold-soft); }
.cookie-note {
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  max-width: 80ch;
}
.legal-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 18px;
  color: var(--faint);
  font-size: 0.92rem;
}

/* Video page */
.video-main { padding: 28px 0 0; }
.player-stage {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.facade-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.facade-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.facade-play .play-circle {
  width: 88px; height: 88px;
  transition: transform 0.15s;
}
.facade:hover .play-circle { transform: scale(1.06); }
.facade-label {
  position: absolute; left: 16px; bottom: 16px;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: rgba(0,0,0,0.78);
  padding: 8px 14px;
  border-radius: 999px;
}
.player-stage iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
}
.video-title-block { padding: 28px 0 10px; }
.video-title-block h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 12px; }
.share-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.share-btn, .share-bar a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 500;
}
.share-btn:hover, .share-bar a:hover { border-color: var(--gold); color: var(--gold-soft); }
.prose { max-width: 70ch; font-size: 1.12rem; color: var(--cream); }
.prose a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.block { margin: 36px 0; }
.block h2 { font-size: 1.7rem; margin-bottom: 14px; }

.transcript {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 0;
  max-height: 520px;
  overflow: auto;
}
.cue {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}
.cue:last-child { border-bottom: 0; }
.cue time { color: var(--gold-soft); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.cue p { margin: 0; }
.cue .ar {
  font-family: var(--arabic);
  font-size: 1.35rem;
  line-height: 1.8;
  direction: rtl;
  text-align: right;
}
.cue .en-tr { color: var(--muted); font-size: 1rem; }

.sources { list-style: none; padding: 0; margin: 0; }
.sources li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.sources li:last-child { border-bottom: 0; }

.study-links { display: grid; gap: 10px; }
.study-link {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.study-link:hover { border-color: var(--gold); }
.study-link strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.study-link span { color: var(--muted); font-size: 0.95rem; }

.next-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* Search */
.search-hero { padding: 40px 0 10px; }
.search-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.search-page-form { margin: 16px 0 8px; max-width: 640px; }
.search-page-form .search-form { min-width: 0; width: 100%; padding: 4px 6px 4px 18px; }
.search-page-form input { width: 100%; font-size: 1.1rem; padding: 12px 0; }
.group-label {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.group-label h2 { font-size: 1.5rem; margin: 0; }
.example-banner {
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.35);
  color: var(--gold-soft);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.98rem;
  margin-bottom: 16px;
}
.example-banner strong { color: var(--cream); }
.result { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.result img { width: 200px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.result h3 { font-size: 1.3rem; margin: 0 0 6px; }
.result:hover h3 { color: var(--gold-soft); }
.study-result {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.kind {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.empty { color: var(--muted); padding: 12px 0 24px; }

/* Forms / pages */
.page-hero { padding: 48px 0 10px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero .lede { font-size: 1.25rem; color: var(--muted); max-width: 50ch; }
.contact-form, .article {
  max-width: 680px;
}
.field { margin: 0 0 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 52px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 1rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--crimson); }

.article h2 { font-size: 1.6rem; margin-top: 1.4em; }
.article p, .article li { color: var(--cream); font-size: 1.12rem; }
.article a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

/* Mobile */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .header-inner { width: calc(100% - 24px); gap: 12px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav, .search-form.header-search {
    display: none;
  }
  .header-inner.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,12,0.97);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    gap: 4px;
  }
  .header-inner.is-open .search-form.header-search {
    display: flex;
    position: absolute;
    top: calc(var(--nav-h) + 8px);
    left: 16px; right: 16px;
    z-index: 2;
    width: auto;
    min-width: 0;
  }
  .header-inner.is-open .nav { padding-top: 70px; }
  .video-grid, .cat-grid, .subscribe-block, .footer-grid, .cta, .next-grid {
    grid-template-columns: 1fr;
  }
  .result { grid-template-columns: 1fr; }
  .result img { width: 100%; }
  .hero { min-height: 86vh; }
  .hero-content { width: calc(100% - 32px); padding: 72px 0 40px; }
  .wrap, .wrap-wide { width: calc(100% - 32px); }
  .section { padding: 52px 0; }
  .cta { padding: 28px 22px; }
  .btn { min-height: 50px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .play-circle, .thumb .play-badge { transition: none; }
}


/* Pinned videos */
.pin-star {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  margin-right: 0.35em;
  vertical-align: -0.1em;
}
.pin-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.86);
  color: var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.pin-badge svg, .pin-star svg { display: block; }
