/* عيلتنا أقوى — dark, the show's red as the single accent, Alyamama for text. */
@font-face { font-family: 'Alyamama'; src: url('/assets/fonts/Alyamama-arabic.woff2') format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'Alyamama'; src: url('/assets/fonts/Alyamama-latin.woff2') format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #0e0e11; --surface: #17171c; --surface-2: #202027; --line: #2a2a33;
  --text: #f2f2f4; --muted: #a1a1ab;
  --red: #c62a3a; --red-hover: #e0384a; --red-soft: rgba(198, 42, 58, .16);
  --radius: 12px; --radius-lg: 18px; --container: 1180px; --gap: 22px;
  --font: 'Alyamama', 'Noto Naskh Arabic', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; }
svg { display: inline-block; fill: currentColor; }
:focus-visible { outline: 2px solid var(--red-hover); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -48px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 14, 17, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.site-logo img { height: 38px; width: auto; }
.site-nav { margin-inline-start: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a { display: block; padding: 10px 14px; font-weight: 600; border-radius: 999px; transition: background .2s, color .2s; }
.site-nav a:hover { background: var(--red-soft); color: #fff; }
.menu-toggle { display: none; margin-inline-start: auto; width: 42px; height: 42px; border: 0; background: none; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 18px; }
}

/* hero */
.hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; background: var(--surface); isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to top, rgba(14, 14, 17, 1) 0%, rgba(14, 14, 17, .7) 38%, rgba(14, 14, 17, .15) 100%),
  linear-gradient(to left, rgba(14, 14, 17, .94) 0%, rgba(14, 14, 17, .7) 42%, rgba(14, 14, 17, .1) 78%); }
.hero-title { font-size: clamp(38px, 6vw, 68px); }
.hero-inner { padding: 60px 20px 48px; max-width: 760px; margin-inline-start: 0; }
.hero-kicker { color: var(--red-hover); font-weight: 700; margin: 0 0 8px; letter-spacing: .01em; }
.hero-title { font-size: clamp(38px, 6vw, 68px); line-height: 1.1; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.hero-text { color: var(--muted); font-size: 18px; max-width: 560px; margin: 14px 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: transform .2s var(--ease), background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); border-color: var(--red); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn-ghost { background: rgba(255, 255, 255, .06); }

/* seasons */
.season-pills { position: sticky; top: 68px; z-index: 40; background: rgba(14, 14, 17, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); margin: 12px -20px 0; padding: 10px 20px; }
.season-pills ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.season-pills ul::-webkit-scrollbar { display: none; }
.season-pills a { display: block; white-space: nowrap; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; transition: background .2s, border-color .2s; }
.season-pills a:hover { border-color: var(--red); background: var(--red-soft); }
.section-header { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 18px; }
.section-title { font-size: 26px; padding-inline-start: 14px; position: relative; }
.section-title::before { content: ''; position: absolute; inset-inline-start: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--red); }
.section-subtitle { color: var(--muted); margin: 0; font-size: 15px; }
.card-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card-grid-small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; }
.card-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-play, .player-play { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 54px; height: 54px; border-radius: 50%; background: rgba(198, 42, 58, .92); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: transform .2s var(--ease); }
.card-play::after, .player-play::after { content: ''; position: absolute; inset: 50% auto auto 50%; translate: -35% -50%; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.card:hover .card-play { transform: scale(1.1); }
.card-body { display: flex; flex-direction: column; gap: 3px; }
.card-kicker { color: var(--red-hover); font-size: 13px; font-weight: 700; }
.card-title { font-weight: 700; font-size: 16.5px; line-height: 1.45; }

/* watch page */
.watch { padding-top: 18px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13.5px; }
.breadcrumbs li + li::before { content: '›'; margin-inline-end: 6px; display: inline-block; transform: scaleX(-1); }
.watch-title { font-size: clamp(24px, 3.4vw, 36px); margin: 10px 0 18px; }
.player { position: relative; margin: 0; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 60px -30px rgba(0, 0, 0, .9); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster { position: absolute; inset: 0; display: block; }
.player-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s var(--ease); }
.player-poster:hover img { transform: scale(1.02); }
.player-play { width: 84px; height: 84px; }
.player-play::after { border-width: 14px 0 14px 24px; }
.player-poster:hover .player-play { transform: scale(1.08); }
.watch-nav { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 8px; }

/* pages */
.page { padding-top: 26px; max-width: 800px; }
.page-header { margin-bottom: 20px; }
.page-title { font-size: clamp(28px, 4vw, 40px); padding-inline-start: 16px; position: relative; }
.page-title::before { content: ''; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 3px; background: var(--red); }
.lead { color: var(--muted); font-size: 18px; }
.prose { font-size: 17.5px; line-height: 1.9; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4 { margin: 1.5em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-inline-start: 1.5em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--red-hover); }
.prose a { color: var(--red-hover); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }

/* footer */
.site-footer { margin-top: 80px; padding: 48px 0 24px; background: #08080a; border-top: 1px solid var(--line); font-size: 15px; }
.site-footer-grid { display: grid; gap: 32px; grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 760px) { .site-footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 15px; margin-bottom: 12px; color: #fff; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--red-hover); }
.footer-brand img { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); margin: 0; max-width: 420px; }
.footer-brand a { color: #fff; border-bottom: 1px solid var(--red); }
.footer-social ul { display: flex; gap: 10px; }
.footer-social li { margin: 0; }
.footer-social a { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); transition: background .2s, transform .2s var(--ease); }
.footer-social a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.site-footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer-bottom p { margin: 0; }
