/* ==========================================================================
   Arab Wrestling - Enhanced Features (Live Search, Bookmarks, Spoilers, Auto-Tags)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Superstar Auto-Tag Links (ربط أسماء المصارعين بالوسوم تلقائياً)
   -------------------------------------------------------------------------- */
.star-mention-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--teal, #0e9594);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  font-weight: 700;
}
.star-mention-link:hover {
  color: var(--teal, #0e9594);
  text-decoration-color: var(--gold, #f2a53c);
}
html.arw-dark .star-mention-link {
  text-decoration-color: var(--teal, #1cb5b3);
}
html.arw-dark .star-mention-link:hover {
  color: var(--teal, #1cb5b3);
  text-decoration-color: var(--gold, #f4b352);
}

/* --------------------------------------------------------------------------
   3. Watch Later / Bookmarks (المفضلة وقائمة المشاهدة لاحقاً)
   -------------------------------------------------------------------------- */
.bookmarks-btn {
  position: relative;
}
.bookmark-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  background: var(--coral, #ff6f59);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  line-height: 1;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.post-bookmark-wrap {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
}

.post-bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.post-bookmark-btn:hover {
  border-color: var(--gold, #f2a53c);
  color: var(--gold, #f2a53c);
  transform: translateY(-1px);
}
.post-bookmark-btn .bm-icon-filled {
  display: none;
  color: var(--gold, #f2a53c);
}
.post-bookmark-btn.bookmarked {
  border-color: var(--gold, #f2a53c);
  background: var(--gold-soft, #fdf1de);
  color: #b58509;
}
html.arw-dark .post-bookmark-btn.bookmarked {
  color: var(--gold, #f4b352);
  background: rgba(244, 179, 82, 0.15);
}
.post-bookmark-btn.bookmarked .bm-icon-empty {
  display: none;
}
.post-bookmark-btn.bookmarked .bm-icon-filled {
  display: inline-block;
}

/* Slide-in Drawer Modal */
.bookmarks-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99995;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.bookmarks-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.bookmarks-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  z-index: 99996;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  direction: ltr;
  font-family: 'Tajawal', sans-serif;
}
.bookmarks-drawer.active {
  transform: translateX(0);
}
.bookmarks-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.bookmarks-drawer-title {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bookmarks-drawer-title svg {
  color: var(--gold, #f2a53c);
}
.bookmarks-drawer-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.bookmarks-drawer-close:hover {
  background: var(--line);
  color: var(--ink);
}
.bookmarks-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bookmark-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.bookmark-card:hover {
  border-color: var(--teal);
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.bookmark-card-thumb {
  width: 72px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}
.bookmark-card-info {
  flex: 1;
  min-width: 0;
}
.bookmark-card-title {
  font-family: 'Cairo', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.bookmark-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.bookmark-badge-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.bookmark-badge-show {
  background: var(--gold-soft);
  color: #b58509;
}
.bookmark-badge-recap {
  background: rgba(124, 110, 232, 0.15);
  color: var(--violet);
}
.bookmark-badge-news {
  background: var(--coral-soft);
  color: var(--coral);
}
.bookmark-card-remove {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.bookmark-card-remove:hover {
  color: var(--coral);
  background: var(--coral-soft);
}
.bookmarks-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
}
.bookmarks-empty svg {
  width: 48px;
  height: 48px;
  color: var(--line);
  margin-bottom: 14px;
}
.bookmarks-empty p {
  font-size: 13.5px;
  line-height: 1.6;
}
.bookmarks-drawer-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}
.bookmarks-clear-btn {
  background: transparent;
  border: none;
  color: var(--coral);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}
.bookmarks-clear-btn:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   4. Instant Live Search Dropdown (البحث الفوري المنسدل)
   -------------------------------------------------------------------------- */
.site-search {
  position: relative !important;
  /* The form is its own layer (it is transformed), so without this the header's bottom line
     (header::after, dark mode) was painted across the results dropdown. */
  z-index: 2;
}
@media (min-width: 1581px) {
  .site-search {
    flex: 0 1 400px !important;
    width: 400px !important;
    max-width: 460px !important;
    min-width: 240px !important;
  }
}
@media (min-width: 1341px) and (max-width: 1580px) {
  .site-search {
    flex: 0 1 240px !important;
    width: 240px !important;
    max-width: 260px !important;
    min-width: 160px !important;
  }
}
@media (min-width: 1151px) and (max-width: 1340px) {
  .site-search {
    flex: 0 1 185px !important;
    width: 185px !important;
    max-width: 200px !important;
    min-width: 140px !important;
  }
}
@media (max-width: 1150px) {
  .site-search {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}

.instant-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.05);
  z-index: 9999;
  overflow: hidden;
  overflow-x: hidden !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  direction: ltr !important;
  text-align: left !important;
  font-family: 'Tajawal', sans-serif;
  box-sizing: border-box;
}
.instant-search-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.instant-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  direction: ltr;
  text-align: left;
}
.instant-search-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  direction: ltr;
  text-align: left;
}
.instant-search-item {
  width: 100%;
  box-sizing: border-box;
}
.instant-search-item a {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background 0.15s ease, transform 0.15s ease;
  direction: ltr !important;
  text-align: left !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}
.instant-search-item a:hover,
.instant-search-item.selected a {
  background: var(--teal-soft);
  transform: translateX(3px);
}
.instant-search-thumb {
  width: 62px !important;
  height: 42px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #181c24;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  order: 1 !important;
  margin: 0 !important;
}
.instant-search-info {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  direction: ltr !important;
  text-align: left !important;
  overflow: hidden !important;
  order: 2 !important;
}
.instant-search-title {
  font-family: 'Cairo', sans-serif;
  font-size: 13.5px !important;
  font-weight: 700;
  line-height: 1.45 !important;
  color: var(--ink);
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  text-overflow: unset !important;
  overflow: visible !important;
  direction: ltr !important;
  text-align: left !important;
}
.instant-search-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 11px;
  color: var(--muted);
  direction: ltr !important;
  text-align: left !important;
}
.instant-search-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.instant-search-badge.badge-show {
  background: var(--gold-soft);
  color: #b58509;
}
.instant-search-badge.badge-recap {
  background: rgba(124, 110, 232, 0.15);
  color: var(--violet);
}
.instant-search-badge.badge-news {
  background: var(--coral-soft);
  color: var(--coral);
}
.instant-search-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  text-align: center;
}
.instant-search-all-btn {
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.instant-search-all-btn:hover {
  text-decoration: underline;
}
.instant-search-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.instant-search-loading {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.instant-search-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: search-spin 0.6s linear infinite;
}
@keyframes search-spin {
  to { transform: rotate(-360deg); }
}

@media (max-width: 600px) {
  .bookmarks-drawer {
    max-width: 100%;
  }
}

@media (max-width: 768px), (orientation: landscape) and (max-height: 550px), (max-height: 500px) {
  /* تموضع زر حفظ للمشاهدة في المنتصف تماماً في نسخة الموبايل */
  .post-bookmark-wrap {
    flex-basis: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 10px 0 2px 0 !important;
    order: 99 !important;
  }
  .post-bookmark-btn {
    margin: 0 auto !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 6px 20px !important;
    font-size: 13px !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  }
}

/* ═══ Share bar (news / shows / recaps) ═══ */
.arw-share{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:4px 0 18px; }
.arw-share-btns{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.arw-share-btns a, .arw-share-btns button{ display:inline-flex; align-items:center; justify-content:center; gap:7px; height:38px; min-width:38px; padding:0 11px; border-radius:12px; border:1px solid var(--line); background:var(--card); color:var(--ink); font:700 13px 'Tajawal',sans-serif; text-decoration:none; cursor:pointer; transition:transform .2s cubic-bezier(0.16,1,0.3,1), background .2s ease, color .2s ease, border-color .2s ease; }
.arw-share-btns a:hover, .arw-share-btns button:hover{ transform:translateY(-2px); color:#fff; border-color:transparent; }
.arw-share-btns .sh-wa:hover{ background:#25d366; } .arw-share-btns .sh-tg:hover{ background:#24a1de; } .arw-share-btns .sh-fb:hover{ background:#1877f2; }
.arw-share-btns .sh-x:hover{ background:#111; } .arw-share-btns .sh-copy:hover, .arw-share-btns .sh-native:hover{ background:var(--teal); }
.arw-share-btns .sh-wa{ color:#1ea952; } .arw-share-btns .sh-tg{ color:#1d8fc7; } .arw-share-btns .sh-fb{ color:#1877f2; }
html.arw-dark .arw-share-btns .sh-x{ color:#fff; }
.arw-share-btns .sh-copy.copied{ background:var(--teal); color:#fff; border-color:transparent; }
.arw-share .sh-native{ display:none; }
html.arw-can-share .arw-share .sh-native{ display:inline-flex; }
.arw-share--top .sh-copy-text:empty{ display:none; }
.arw-share--bottom{ flex-direction:column; align-items:stretch; gap:12px; margin:26px 0 8px; padding:18px; border-radius:18px; background:var(--card); border:1px solid var(--line); }
.arw-share-label{ font-family:'Cairo',sans-serif; font-weight:900; font-size:15.5px; color:var(--ink); }
.arw-share--bottom .arw-share-btns a, .arw-share--bottom .arw-share-btns button{ flex:1 1 auto; height:42px; white-space:nowrap; padding:0 8px; }
@media (max-width: 768px), (orientation: landscape) and (max-height: 550px), (max-height: 500px){
  /* Phones: WhatsApp and the phone's own share sheet first — that's how people share here. */
  html.arw-can-share .arw-share--top .sh-fb, html.arw-can-share .arw-share--top .sh-x{ display:none; }
  .arw-share--bottom .arw-share-btns{ display:grid; grid-template-columns:repeat(3, 1fr); }
}

/* ═══ Breadcrumbs ═══ */
.arw-crumbs{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 14px; font-size:13px; font-weight:700; color:var(--muted); }
/* Hover only turns the link green — no dashed line under it (the owner's choice) */
.arw-crumbs a{ color:var(--muted); text-decoration:none; padding:2px 0; transition:color .2s ease; }
.arw-crumbs a:hover{ color:var(--teal); text-decoration:none; }
.arw-crumbs a:last-child{ color:var(--ink); }
.arw-crumbs span{ opacity:.55; }

/* ═══ Previous / next news ═══ */
.news-pn{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:18px 0 6px; }
.news-pn-item{ display:flex; flex-direction:column; gap:6px; padding:14px 16px; border-radius:16px; background:var(--card); border:1px solid var(--line); text-decoration:none; color:var(--ink); transition:transform .2s cubic-bezier(0.16,1,0.3,1), border-color .2s ease, box-shadow .2s ease; }
.news-pn-item:hover{ transform:translateY(-2px); border-color:var(--teal); box-shadow:0 10px 22px rgba(0,0,0,.07); }
.news-pn-next{ text-align:right; }
.news-pn-label{ font-size:12px; font-weight:800; color:var(--teal); }
.news-pn-title{ font-family:'Cairo',sans-serif; font-size:14.5px; font-weight:800; line-height:1.55; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
@media (max-width:560px){ .news-pn{ grid-template-columns:1fr; } .news-pn-next{ text-align:left; } }

/* ═══ Permanent Sticky Header (الهيدر العلوي ثابت دائماً لا يختفي أبداً عند التمرير لأعلى أو لأسفل عبر كافة الأجهزة) ═══ */
html body header,
html body header.header-hidden {
  position: sticky !important;
  top: 0 !important;
  transform: none !important;
  -webkit-transform: none !important;
  z-index: 999 !important;
}

/* ═══ Phone header (fixed at the top) + bottom navigation ═══ */
.arw-bottom-nav, .arw-more-sheet, .arw-more-overlay, .arw-search-toggle{ display:none; }
@media (max-width: 768px), (orientation: landscape) and (max-height: 550px), (max-height: 500px){
  html body header{ transition:box-shadow .3s ease !important; }
  html body header.arw-scrolled{ box-shadow:0 6px 18px rgba(0,0,0,.08); }
  /* The header stays put on phones: the pages' older hide-on-scroll script is overruled. */
  html body header,
  html body header.header-hidden{ position:sticky !important; top:0 !important; transform:none !important; -webkit-transform:none !important; }
  html body header .nav{ flex-wrap:nowrap !important; justify-content:space-between !important; padding:9px 14px !important; gap:10px !important; }
  html body header .brand{ font-size:20px !important; }
  html body header .site-search{ display:none !important; }
  html body header.arw-search-open .nav{ flex-wrap:wrap !important; }
  html body header.arw-search-open .site-search{ display:flex !important; order:5 !important; flex-basis:100% !important; height:40px !important; }
  html body header #navMenu{ display:flex !important; flex:0 0 auto !important; width:auto !important; margin:0 !important; padding:0 !important; gap:0 !important; flex-wrap:nowrap !important; overflow:visible !important; }
  html body header #navMenu > li:not(.utility-row){ display:none !important; }
  html body header #navMenu li.utility-row{ display:flex !important; flex-basis:auto !important; width:auto !important; gap:6px !important; }
  html body header #navMenu li.utility-row .support-btn, html body header #navMenu li.utility-row .telegram-btn{ display:none !important; }
  html body header #navMenu .theme-toggle, html body header .arw-search-toggle{ width:38px !important; height:38px !important; }
  html body header .arw-search-toggle{ display:inline-flex; align-items:center; justify-content:center; border-radius:50%; border:1px solid var(--line); background:var(--card); color:var(--ink); cursor:pointer; order:0; }
  html body header.arw-search-open .arw-search-toggle{ background:var(--teal); color:#fff; border-color:var(--teal); }

  body.arw-has-bottom-nav{ padding-bottom:calc(66px + env(safe-area-inset-bottom, 0px)) !important; }
  .arw-bottom-nav{ display:flex; position:fixed; right:0; left:0; bottom:0; z-index:9990; height:calc(62px + env(safe-area-inset-bottom, 0px)); padding:0 6px env(safe-area-inset-bottom, 0px); background:color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-top:1px solid var(--line); box-shadow:0 -6px 24px rgba(0,0,0,.06); }
  .arw-bottom-nav a, .arw-bottom-nav button{ flex:1 1 0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:var(--muted); text-decoration:none; font:800 11px 'Tajawal',sans-serif; background:none; border:0; cursor:pointer; position:relative; -webkit-tap-highlight-color:transparent; }
  .arw-bottom-nav svg{ width:22px; height:22px; transition:transform .2s cubic-bezier(0.34,1.56,0.64,1); }
  .arw-bottom-nav .active{ color:var(--teal); }
  .arw-bottom-nav .active::before{ content:""; position:absolute; top:0; width:28px; height:3px; border-radius:0 0 3px 3px; background:var(--teal); }
  .arw-bottom-nav a:active svg, .arw-bottom-nav button:active svg{ transform:scale(.88); }

  .arw-more-overlay{ display:block; position:fixed; inset:0; z-index:9991; background:rgba(0,0,0,.45); opacity:0; visibility:hidden; transition:opacity .25s ease, visibility 0s linear .25s; }
  .arw-more-sheet{ display:block; position:fixed; right:0; left:0; bottom:0; z-index:9992; background:var(--card); border-radius:22px 22px 0 0; padding:10px 16px calc(18px + env(safe-area-inset-bottom, 0px)); transform:translateY(105%); transition:transform .32s cubic-bezier(0.16,1,0.3,1); box-shadow:0 -12px 40px rgba(0,0,0,.2); }
  html.arw-more-open .arw-more-overlay{ opacity:1; visibility:visible; transition:opacity .25s ease; }
  html.arw-more-open .arw-more-sheet{ transform:translateY(0); }
  .arw-more-grip{ width:40px; height:4px; border-radius:4px; background:var(--line); margin:0 auto 12px; }
  .arw-more-title{ font:900 15px 'Cairo',sans-serif; color:var(--ink); margin:0 4px 12px; }
  .arw-more-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; }
  .arw-more-grid a{ display:flex; align-items:center; gap:10px; padding:14px; border-radius:16px; background:var(--bg); border:1px solid var(--line); color:var(--ink); text-decoration:none; font:800 14px 'Tajawal',sans-serif; }
  .arw-more-grid a svg{ width:20px; height:20px; color:var(--teal); flex-shrink:0; }
  .arw-more-grid a.more-support{ background:linear-gradient(-135deg, var(--coral), var(--gold)); color:#fff; border:0; }
  .arw-more-grid a.more-support svg{ color:#fff; }
  .arw-more-grid a.more-tg svg{ color:#24a1de; }

}

/* ═══ Phone Landscape Mode Polish (تحسين الوضع الأفقي للهواتف لتوفير أقصى مساحة رؤية للفيديو والمحتوى) ═══ */
@media (orientation: landscape) and (max-height: 550px), (max-height: 500px) {
  /* Top Header: Slim 40px single row that slides away on scroll */
  html body header .nav {
    padding: 4px calc(14px + env(safe-area-inset-right, 0px)) 4px calc(14px + env(safe-area-inset-left, 0px)) !important;
    gap: 8px !important;
    min-height: 40px !important;
  }
  html body header .brand-name {
    font-size: 16px !important;
  }
  html body header .brand-mark {
    width: 26px !important;
    height: 26px !important;
    border-radius: 8px !important;
  }
  html body header .brand-mark img {
    border-radius: 6px !important;
  }
  html body header #navMenu .theme-toggle,
  html body header .arw-search-toggle {
    width: 30px !important;
    height: 30px !important;
  }
  html body header #navMenu .theme-toggle svg,
  html body header .arw-search-toggle svg {
    width: 15px !important;
    height: 15px !important;
  }

  /* Header remains permanently sticky in landscape mode as well */
  html body header,
  html body header.header-hidden {
    position: sticky !important;
    top: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
  }

  /* 🎬 Video/Watch pages in landscape: Hide the clutter so the video is front and center */
  body.post-layout .hero,
  .post-layout .hero {
    display: none !important; /* Hide massive 350px hero banner on watch pages in landscape */
  }
  body.post-layout .arw-crumbs,
  .post-layout .arw-crumbs,
  body.post-layout .post-meta-bar,
  .post-layout .post-meta-bar,
  body.post-layout .quality-notice,
  .post-layout .quality-notice {
    display: none !important;
  }

  /* Bottom nav: completely hidden on post/watch pages in landscape so the video has 100% full height */
  body.post-layout .arw-bottom-nav,
  .post-layout .arw-bottom-nav {
    display: none !important;
  }
  body.post-layout.arw-has-bottom-nav,
  .post-layout.arw-has-bottom-nav {
    padding-bottom: 0 !important;
  }

  /* Post layout content wrapper: starts immediately at top without wasted padding */
  body.post-layout .post-wrap,
  .post-layout .post-wrap {
    padding: 6px calc(14px + env(safe-area-inset-right, 0px)) 24px calc(14px + env(safe-area-inset-left, 0px)) !important;
    max-width: 1000px !important;
  }
  body.post-layout .post-wrap > h2,
  .post-layout .post-wrap > h2 {
    font-size: 14.5px !important;
    margin: 2px 0 6px !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }
  body.post-layout .player-toolbar,
  .post-layout .player-toolbar {
    margin-bottom: 6px !important;
    gap: 6px !important;
    justify-content: center !important;
  }
  body.post-layout .player-actions,
  .post-layout .player-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  body.post-layout .server-tab,
  .post-layout .server-tab,
  body.post-layout .player-reload-btn,
  .post-layout .player-reload-btn {
    font-size: 11px !important;
    padding: 5px 12px !important;
    min-height: 30px !important;
    width: auto !important;
  }

  /* Video player in landscape: expands to maximum comfortable viewing area */
  body.post-layout .video-embed,
  .post-layout .video-embed {
    width: 100% !important;
    max-height: calc(100vh - 44px) !important;
    max-width: calc((100vh - 44px) * 16 / 9) !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 auto 14px !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55) !important;
  }

  /* Bottom Navigation on non-post pages: Slim 44px bar */
  body:not(.post-layout).arw-has-bottom-nav {
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .arw-bottom-nav {
    height: calc(44px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 calc(12px + env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) calc(12px + env(safe-area-inset-left, 0px)) !important;
  }
  .arw-bottom-nav a,
  .arw-bottom-nav button {
    gap: 1px !important;
    font-size: 10px !important;
  }
  .arw-bottom-nav svg {
    width: 17px !important;
    height: 17px !important;
  }
  .arw-bottom-nav .active::before {
    width: 22px !important;
    height: 2px !important;
  }

  /* More sheet in landscape: 4 columns and scrollable */
  .arw-more-sheet {
    max-height: 82vh !important;
    overflow-y: auto !important;
    padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .arw-more-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }
  .arw-more-grid a {
    padding: 10px !important;
    font-size: 12.5px !important;
    gap: 6px !important;
  }

  /* Home & Federation Grids in landscape: clean 3 or 4 columns across wide screen */
  section.content {
    padding: 16px calc(16px + env(safe-area-inset-right, 0px)) 40px calc(16px + env(safe-area-inset-left, 0px)) !important;
  }
  .page-head {
    margin-bottom: 14px !important;
  }
  .grid-12 > * {
    grid-column: span 4 !important;
  }
  .feds-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (prefers-reduced-motion:reduce){ html body header, .arw-more-sheet, .arw-more-overlay{ transition:none !important; } }

/* Header brand lockup (2026-09-27): framed logo + name (+ a short line under it on computers). */
.brand.brand-lockup{display:inline-flex;align-items:center;gap:11px;text-decoration:none}
.brand-mark{position:relative;display:block;flex:none;width:42px;height:42px;border-radius:13px;padding:2px;overflow:hidden;
  background:linear-gradient(-135deg,#2fd0cc 0%,#8be9e5 30%,#ffbf5a 62%,#1cb5b3 100%);
  box-shadow:0 8px 20px -8px rgba(28,181,179,.65),0 0 0 1px rgba(255,255,255,.05);
  transition:transform .4s cubic-bezier(.34,1.4,.64,1),box-shadow .4s ease}
.brand-mark img{display:block;width:100%;height:100%;border-radius:11px;object-fit:cover}
.brand-mark::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(-115deg,transparent 38%,rgba(255,255,255,.5) 50%,transparent 62%);transform:translateX(130%);transition:transform .9s ease}
.brand:hover .brand-mark{transform:translateY(-2px) rotate(5deg) scale(1.06);box-shadow:0 14px 28px -10px rgba(28,181,179,.85),0 0 0 1px rgba(255,255,255,.08)}
.brand:hover .brand-mark::after{transform:translateX(-130%)}
.brand:focus-visible{outline:none}
.brand:focus-visible .brand-mark{box-shadow:0 0 0 3px rgba(47,208,204,.55)}
.brand-words{display:flex;flex-direction:column;justify-content:center;line-height:1}
.brand-name{font:900 22px/1.05 "Cairo",sans-serif;letter-spacing:-.2px;white-space:nowrap}
.brand-tag{font:700 10.5px/1 "Tajawal",sans-serif;color:var(--muted,#8e97a6);margin-top:6px;letter-spacing:.3px;white-space:nowrap;opacity:.9}
/* The line under the name is for computers only (owner's choice): hidden on tablets and phones. */
@media (max-width:1180px){.brand-tag{display:none}}
@media (max-width: 768px), (orientation: landscape) and (max-height: 550px), (max-height: 500px){.brand.brand-lockup{gap:9px}.brand-mark{width:34px;height:34px;border-radius:11px}.brand-mark img{border-radius:9px}.brand-name{font-size:19px}}

/* «عروض المصارعة» in the header opens a small menu: all the shows, and the highlights (owner 2026-10-14: «ضم كمان
   خانة ملخصات العروض في عروض المصارعة بحيث انها تكون خيار تحته»). «الرئيسية» left the menu: the logo goes home. */
#navMenu .nav-shows > a.navlink{ display:inline-flex; align-items:center; gap:6px; }
#navMenu .nav-caret{ flex-shrink:0; opacity:.7; transition:transform .22s cubic-bezier(.16,1,.3,1); }
#navMenu .nav-shows:hover .nav-caret, #navMenu .nav-shows:focus-within .nav-caret{ transform:rotate(-180deg); opacity:1; }
.drop-shows .drop-dot{ background:var(--teal, #0e9594); }
.drop-shows:hover, .drop-shows.active{ background:rgba(14,149,148,.12) !important; color:var(--teal, #0e9594) !important; border-color:rgba(14,149,148,.25) !important; }
.drop-recaps .drop-dot{ background:var(--violet, #7c6ee8); }
.drop-recaps:hover, .drop-recaps.active{ background:rgba(124,110,232,.12) !important; color:var(--violet, #7c6ee8) !important; border-color:rgba(124,110,232,.25) !important; }

/* An answer to the visitor's comment, on any page (assets/features.js): a card at the bottom, above the phones' menu */
.arw-reply-toast{ position:fixed; z-index:9995; bottom:20px; left:20px; width:min(380px, calc(100vw - 32px)); display:flex; align-items:flex-start; gap:6px; padding:12px; border-radius:16px; background:var(--card, #fff); color:var(--ink, #141414); border:1px solid var(--line, #ece6d8); box-shadow:0 18px 40px -14px rgba(0,0,0,.35); opacity:0; transform:translateY(14px); transition:opacity .3s ease, transform .3s cubic-bezier(.16,1,.3,1); }
.arw-reply-toast.is-in{ opacity:1; transform:none; }
body.arw-has-bottom-nav .arw-reply-toast{ bottom:calc(76px + env(safe-area-inset-bottom, 0px)); left:16px; }
.arw-rt-link{ flex:1; min-width:0; display:flex; align-items:center; gap:10px; color:inherit; text-decoration:none; }
.arw-rt-av{ flex:0 0 40px; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--teal, #0e9594); color:#fff; font-weight:900; font-size:16px; }
.arw-rt-av img{ width:100%; height:100%; object-fit:cover; }
.arw-rt-body{ min-width:0; display:flex; flex-direction:column; gap:2px; }
.arw-rt-body b{ font-size:14px; font-weight:900; }
.arw-rt-text{ font-size:13px; color:var(--muted, #6b6b6b); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.arw-rt-x{ flex:0 0 auto; border:0; background:none; color:var(--muted, #6b6b6b); padding:4px; border-radius:8px; cursor:pointer; }
.arw-rt-x:hover{ color:var(--ink, #141414); }

/* The member's button (assets/features.js): in the header on computers, the first line of the phones' «المزيد» */
#navMenu .arw-acct-btn{ display:inline-flex; align-items:center; justify-content:center; overflow:hidden; text-decoration:none; }
#navMenu .arw-acct-btn.is-in{ padding:0; border:2px solid var(--teal, #0e9594); }
#navMenu .arw-acct-btn img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
#navMenu .arw-acct-btn b{ font:900 15px 'Cairo',sans-serif; color:var(--teal, #0e9594); }
@media (max-width: 768px), (orientation: landscape) and (max-height: 550px), (max-height: 500px){
  html body header #navMenu .arw-acct-btn{ display:none !important; }
}
.arw-more-acct{ display:flex; align-items:center; gap:12px; margin:4px 0 14px; padding:12px 14px; border-radius:16px; background:var(--teal-soft, #e3f5f3); color:var(--ink, #1e2530); text-decoration:none; }
.arw-more-acct-av{ flex:0 0 44px; width:44px; height:44px; border-radius:50%; overflow:hidden; display:flex; align-items:center; justify-content:center; background:var(--card, #fff); color:var(--teal, #0e9594); }
.arw-more-acct-av img{ width:100%; height:100%; object-fit:cover; }
.arw-more-acct-av b{ font:900 18px 'Cairo',sans-serif; }
.arw-more-acct > span:nth-child(2){ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.arw-more-acct > span:nth-child(2) b{ font:900 15px 'Cairo',sans-serif; }
.arw-more-acct small{ font-size:12.5px; color:var(--muted, #6c7383); }
.arw-more-acct i{ font-style:normal; font-size:22px; color:var(--teal, #0e9594); }

/* and first in the phones' «المزيد» sheet */
.arw-more-cm{ display:flex; align-items:center; gap:12px; margin:0 0 14px; padding:12px 14px; border-radius:16px; text-decoration:none; color:#fff; background:linear-gradient(-135deg, #0e9594, #0b6f6e); box-shadow:0 10px 24px -14px #0e9594; }
.arw-more-cm-ic{ width:42px; height:42px; border-radius:13px; background:rgba(255,255,255,.16); display:flex; align-items:center; justify-content:center; flex:none; }
.arw-more-cm b{ display:flex; align-items:center; gap:7px; font:900 15.5px 'Cairo',sans-serif; }
.arw-more-cm small{ display:block; opacity:.85; font-size:12.5px; }
.arw-more-cm i{ margin-inline-start:auto; font-style:normal; font-size:22px; opacity:.8; }
/* the header's links are larger from 1581px: with «مجتمع المصارعة» they need a little more than 1440px */
@media (min-width: 1581px) { .nav { max-width: 1560px !important; } }

/* The member's menu (assets/features.js accountMenu): opens under the header's picture */
.arw-am{ position:fixed; z-index:2000; width:300px; max-width:calc(100vw - 16px); padding:10px; border-radius:18px; background:var(--card, #fff); color:var(--ink, #1e2530); border:1px solid var(--line, #ece6d8); box-shadow:0 22px 50px -18px rgba(0,0,0,.35); font-family:'Tajawal',sans-serif; animation:arw-am-in .16s ease-out; }
@keyframes arw-am-in{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }
.arw-am a, .arw-am button{ color:inherit; text-decoration:none; font:inherit; }
.arw-am-me{ display:flex; align-items:center; gap:12px; padding:8px; border-radius:14px; }
.arw-am-me:hover{ background:var(--bg, #faf7f0); }
.arw-am-av{ flex:0 0 46px; width:46px; height:46px; border-radius:50%; overflow:hidden; display:flex; align-items:center; justify-content:center; background:var(--teal-soft, #e3f5f3); color:var(--teal, #0e9594); border:2px solid var(--teal, #0e9594); }
.arw-am.is-prem .arw-am-av, .arw-am.is-official .arw-am-av{ border-color:#e09a12; }
.arw-am-av img{ width:100%; height:100%; object-fit:cover; }
.arw-am-av b{ font:900 18px 'Cairo',sans-serif; }
.arw-am-who{ display:flex; flex-direction:column; min-width:0; line-height:1.4; }
.arw-am-who b{ font:800 15.5px 'Cairo',sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.arw-am.is-prem .arw-am-who b{ color:#c77c00; }
html.arw-dark .arw-am.is-prem .arw-am-who b{ color:#ffd25a; }
.arw-am-who small{ color:var(--muted, #6b7280); font-size:12.5px; text-align:left; }
.arw-am-status{ display:flex; align-items:center; gap:6px; margin:2px 8px 8px; padding:6px 10px; border-radius:10px; background:var(--bg, #faf7f0); color:var(--muted, #6b7280); font:700 12.5px 'Cairo',sans-serif; }
.arw-am.is-prem .arw-am-status, .arw-am.is-official .arw-am-status{ background:linear-gradient(-135deg, rgba(255,210,90,.22), rgba(224,154,18,.12)); color:#a86400; }
html.arw-dark .arw-am.is-prem .arw-am-status, html.arw-dark .arw-am.is-official .arw-am-status{ color:#ffd25a; }
.arw-am-status svg{ width:14px; height:14px; }
.arw-am-up{ display:flex; align-items:center; gap:10px; margin:0 0 8px; padding:11px 12px; border-radius:14px; background:linear-gradient(-135deg, #2a2112, #1e2530); color:#fff !important; }
.arw-am-up:hover{ filter:brightness(1.08); }
.arw-am-up-ic{ flex:none; width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background:linear-gradient(-135deg, #ffd25a, #e09a12); color:#3b2600; }
.arw-am-up b{ display:block; font:800 14px 'Cairo',sans-serif; color:#ffd25a; }
.arw-am-up small{ display:block; font-size:12px; color:rgba(255,255,255,.78); line-height:1.5; }
.arw-am-list{ display:flex; flex-direction:column; padding-top:6px; border-top:1px solid var(--line, #ece6d8); }
.arw-am-list a, .arw-am-out{ display:flex; align-items:center; gap:10px; padding:10px 10px; border-radius:12px; font:700 14.5px 'Cairo',sans-serif !important; }
.arw-am-list a:hover, .arw-am-list a:focus-visible, .arw-am-out:hover{ background:var(--bg, #faf7f0); outline:none; }
.arw-am-list svg, .arw-am-out svg{ flex:none; color:var(--muted, #6b7280); }
.arw-am-out{ width:100%; margin-top:4px; border:0; border-top:1px solid var(--line, #ece6d8); border-radius:0 0 12px 12px; background:none; cursor:pointer; color:var(--coral, #e5484d) !important; }
.arw-am-out svg{ color:inherit; }
/* the phones' «المزيد»: settings and signing out under the member's name */
.arw-more-acct-links{ display:flex; flex-wrap:wrap; gap:8px; margin:-6px 0 14px; }
.arw-more-acct-links a, .arw-more-acct-links button{ flex:1 1 calc(50% - 4px); display:flex; align-items:center; justify-content:center; height:40px; border-radius:12px; border:1px solid var(--line, #ece6d8); background:var(--card, #fff); color:var(--ink, #1e2530); font:700 13.5px 'Cairo',sans-serif; text-decoration:none; cursor:pointer; }
.arw-more-acct-links button{ color:var(--coral, #e5484d); }

/* The site's language, at the very bottom of every page (lib/i18n/mirror.cjs langButton; owner 2026-10-15) */
.lang-foot{ display:flex; align-items:center; gap:4px; width:fit-content; margin:18px auto 6px; padding:4px; border-radius:999px; border:1px solid var(--line, #ece6d8); background:var(--card, #fff); box-shadow:0 6px 18px -14px rgba(0,0,0,.4); }
.lang-foot > svg{ flex:none; width:16px; height:16px; margin:0 8px; color:var(--muted, #6b7280); }
.lang-foot a, .lang-foot-on{ display:inline-flex; align-items:center; height:32px; padding:0 14px; border-radius:999px; font:800 13.5px 'Cairo',system-ui,sans-serif; text-decoration:none !important; transition:background .2s ease, color .2s ease; }
.lang-foot a{ color:var(--muted, #6b7280) !important; }
.lang-foot a:hover{ color:var(--ink, #1e2530) !important; background:var(--bg, #faf7f0); }
.lang-foot-on{ background:var(--teal, #0e9594); color:#fff; }
.lang-foot [lang="en"]{ font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif; letter-spacing:.02em; }
.lang-foot > i{ display:none; }

/* The gentle invitation (assets/features.js initJoinNudge): slides in, stays a few seconds, goes */
.arw-nudge{ position:fixed; z-index:1500; right:20px; bottom:20px; width:min(400px, calc(100vw - 24px)); display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px 14px 16px; border-radius:18px; overflow:hidden; background:var(--card, #fff); color:var(--ink, #1e2530); border:1px solid var(--line, #ece6d8); box-shadow:0 24px 50px -20px rgba(0,0,0,.45); font-family:'Tajawal',sans-serif; opacity:0; transform:translateY(16px) scale(.98); transition:opacity .35s ease, transform .35s cubic-bezier(.2,.9,.3,1.2); pointer-events:none; }
.arw-nudge.is-in{ opacity:1; transform:none; pointer-events:auto; }
.arw-nudge-ic{ width:42px; height:42px; border-radius:13px; display:grid; place-items:center; background:var(--teal-soft, #e3f5f3); color:var(--teal, #0e9594); }
.arw-nudge.is-prem .arw-nudge-ic{ background:linear-gradient(-135deg, #ffd25a, #e09a12); color:#3b2600; }
.arw-nudge-tx{ display:flex; flex-direction:column; gap:2px; line-height:1.5; }
.arw-nudge-tx b{ font:800 14.5px 'Cairo',sans-serif; }
.arw-nudge.is-prem .arw-nudge-tx b{ color:#b5780a; }
html.arw-dark .arw-nudge.is-prem .arw-nudge-tx b{ color:#ffd25a; }
.arw-nudge-tx small{ font-size:12.5px; color:var(--muted, #6b7280); }
.arw-nudge-go{ grid-column:2 / 4; justify-self:start; display:inline-flex; align-items:center; height:34px; padding:0 16px; border-radius:999px; background:var(--teal, #0e9594); color:#fff !important; font:800 13px 'Cairo',sans-serif; text-decoration:none !important; }
.arw-nudge.is-prem .arw-nudge-go{ background:linear-gradient(-135deg, #ffd25a, #e09a12); color:#3b2600 !important; }
.arw-nudge-x{ grid-column:3; grid-row:1; align-self:start; width:26px; height:26px; border:0; border-radius:8px; background:none; color:var(--muted, #6b7280); font-size:13px; cursor:pointer; }
.arw-nudge-x:hover{ background:var(--bg, #faf7f0); color:var(--ink, #1e2530); }
.arw-nudge-bar{ position:absolute; inset-inline:0; bottom:0; height:3px; background:var(--teal, #0e9594); transform-origin:left; transform:scaleX(1); }
.arw-nudge.is-prem .arw-nudge-bar{ background:#e09a12; }
.arw-nudge.is-run .arw-nudge-bar{ transform:scaleX(0); transition:transform var(--d, 9000ms) linear; }
html[dir="ltr"] .arw-nudge{ right:auto; left:20px; }
html[dir="ltr"] .arw-nudge-bar{ transform-origin:right; }
@media (max-width: 768px){ .arw-nudge, html[dir="ltr"] .arw-nudge{ right:12px; left:12px; width:auto; bottom:calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce){ .arw-nudge{ transition:opacity .2s ease; transform:none; } }

/* A subscriber's picture (assets/features.js crowned): a gold ring, and a crown at the bottom of it */
#navMenu .arw-acct-btn.is-in, .arw-more-acct-av, .arw-am-av{ position:relative; overflow:visible !important; }
.arw-acct-in{ display:flex; align-items:center; justify-content:center; width:100%; height:100%; border-radius:50%; overflow:hidden; }
.arw-acct-in img{ width:100%; height:100%; object-fit:cover; }
#navMenu .arw-acct-btn.is-crown, .arw-more-acct-av.is-crown, .arw-am-av.is-crown{ border:2px solid #e09a12 !important; box-shadow:0 0 0 3px rgba(242,165,60,.22), 0 4px 14px -4px rgba(224,154,18,.7); }
.arw-crown{ position:absolute; right:50%; bottom:-7px; transform:translateX(50%); width:18px; height:14px; border-radius:7px; display:grid; place-items:center; background:linear-gradient(-135deg, #ffd25a, #e09a12); color:#3b2600; box-shadow:0 0 0 2px var(--card, #fff), 0 2px 6px rgba(0,0,0,.25); pointer-events:none; }
html.arw-dark .arw-crown{ box-shadow:0 0 0 2px #14171c, 0 2px 6px rgba(0,0,0,.4); }
.arw-crown svg{ width:11px !important; height:11px !important; display:block; }
.arw-am-av .arw-crown, .arw-more-acct-av .arw-crown{ width:20px; height:15px; bottom:-8px; }
html.arw-nudge-on .xp-top{ opacity:0 !important; pointer-events:none !important; }

/* The night mode and the saved list moved into the member's menu (owner 2026-10-15): the header keeps the picture */
html.arw-am-on header #navMenu #arwThemeToggle, html.arw-am-on header #navMenu #arwBookmarksBtn{ display:none !important; }
@media (max-width: 768px), (orientation: landscape) and (max-height: 550px), (max-height: 500px){
  html.arw-am-on body header #navMenu .arw-acct-btn{ display:inline-flex !important; }
}
.arw-am-tools{ display:flex; flex-direction:column; padding-top:6px; margin-top:6px; border-top:1px solid var(--line, #ece6d8); }
.arw-am-tool{ display:flex; align-items:center; gap:10px; width:100%; padding:10px; border:0; border-radius:12px; background:none; color:var(--ink, #1e2530); cursor:pointer; font:700 14.5px 'Cairo',sans-serif !important; text-align:left; }
.arw-am-tool:hover, .arw-am-tool:focus-visible{ background:var(--bg, #faf7f0); outline:none; }
.arw-am-tool svg{ flex:none; color:var(--muted, #6b7280); }
.arw-am-tool span{ flex:1; }
.arw-am-switch{ position:relative; flex:none; width:38px; height:22px; border-radius:99px; background:var(--line, #ddd6c6); transition:background .2s ease; }
.arw-am-switch::after{ content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .2s ease; }
.arw-am-switch.is-on{ background:var(--teal, #0e9594); }
.arw-am-switch.is-on::after{ transform:translateX(16px); }
html[dir="ltr"] .arw-am-switch::after{ left:auto; right:3px; }
html[dir="ltr"] .arw-am-switch.is-on::after{ transform:translateX(-16px); }
.arw-am-count{ min-width:22px; height:22px; padding:0 6px; border-radius:99px; display:inline-grid; place-items:center; background:var(--teal-soft, #e3f5f3); color:var(--teal, #0e9594); font:800 12px 'Cairo',sans-serif; }
.arw-am-guest{ display:flex; align-items:center; gap:12px; padding:8px; }
.arw-am-guest .arw-am-av{ border-color:var(--line, #ece6d8); background:var(--bg, #faf7f0); color:var(--muted, #6b7280); }
.arw-am-guest .arw-am-av svg{ width:22px; height:22px; }
.arw-am-cta{ display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:4px 8px 8px; }
.arw-am-cta a{ display:flex; align-items:center; justify-content:center; height:40px; border-radius:12px; font:800 14px 'Cairo',sans-serif !important; text-decoration:none; }
.arw-am-cta a:first-child{ background:var(--teal, #0e9594); color:#fff !important; }
.arw-am-cta a:last-child{ border:1px solid var(--line, #ece6d8); }

/* «المتابعة» (owner 2026-10-15): follow a program or a promotion; the bell with what's new (assets/features.js) */
.arw-follow-row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; margin-top:16px; }
.arw-follow-btn{ display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:0 18px; border-radius:999px; border:1px solid transparent; background:linear-gradient(-135deg, #14b8a6, #0e9594); color:#fff; font:800 14.5px 'Cairo',sans-serif !important; line-height:1.2; cursor:pointer; box-shadow:0 10px 24px -14px rgba(14,149,148,.9); transition:transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease; -webkit-tap-highlight-color:transparent; max-width:100%; }
.arw-follow-btn:hover{ transform:translateY(-1px); }
.arw-follow-btn:active{ transform:scale(.97); }
.arw-follow-btn:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.arw-follow-btn[disabled]{ opacity:.75; cursor:progress; }
.arw-follow-btn .arw-follow-ic{ flex:none; width:17px; height:17px; }
.arw-follow-btn bdi{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:220px; }
.arw-follow-btn.is-alt{ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.3); box-shadow:none; -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.arw-follow-btn.is-on{ background:rgba(255,255,255,.94); color:#0b6e6d; border-color:transparent; box-shadow:0 8px 20px -14px rgba(0,0,0,.6); }
.arw-follow-btn.is-on.is-alt{ background:rgba(255,255,255,.85); }
@media (max-width:560px){ .arw-follow-row{ gap:8px; } .arw-follow-btn{ min-height:40px; padding:0 14px; font-size:13.5px !important; } .arw-follow-btn bdi{ max-width:150px; } }

.arw-follow-toast{ position:fixed; z-index:10050; right:50%; bottom:24px; transform:translate(50%, 16px); opacity:0; display:flex; align-items:center; gap:10px; max-width:min(560px, calc(100vw - 24px)); padding:12px 12px 12px 14px; border-radius:16px; background:#14171c; color:#fff; font:700 14px 'Cairo',sans-serif; box-shadow:0 18px 40px -16px rgba(0,0,0,.55); transition:opacity .25s ease, transform .25s ease; }
.arw-follow-toast.is-on{ opacity:1; transform:translate(50%, 0); }
.arw-follow-toast span{ flex:1; min-width:0; line-height:1.5; }
.arw-follow-toast button{ flex:none; border:0; border-radius:999px; padding:8px 14px; background:#14b8a6; color:#fff; font:800 13.5px 'Cairo',sans-serif; cursor:pointer; white-space:nowrap; }
.arw-follow-toast .arw-follow-toast-x{ width:30px; height:30px; padding:0; background:rgba(255,255,255,.1); font-size:18px; line-height:30px; }
@media (max-width: 768px), (orientation: landscape) and (max-height: 550px), (max-height: 500px){
  body.arw-has-bottom-nav .arw-follow-toast{ bottom:calc(78px + env(safe-area-inset-bottom, 0px)); }
}

#navMenu .arw-bell{ position:relative; }
#navMenu .arw-bell svg{ width:18px; height:18px; }
.arw-bell-n{ position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:#e5484d; color:#fff; font:800 11px/18px 'Cairo',sans-serif; text-align:center; box-shadow:0 0 0 2px var(--card, #fff); }
.arw-bell-n[hidden]{ display:none !important; }
html.arw-dark .arw-bell-n{ box-shadow:0 0 0 2px #14171c; }
.arw-bell-pop{ position:fixed; z-index:10040; width:380px; max-width:calc(100vw - 16px); max-height:min(70vh, 560px); display:flex; flex-direction:column; border-radius:18px; border:1px solid var(--line, #ece6d8); background:var(--card, #fff); color:var(--ink, #1e2530); box-shadow:0 24px 60px -20px rgba(0,0,0,.35); overflow:hidden; animation:arwBellIn .18s ease; }
@keyframes arwBellIn{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }
.arw-bell-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 16px; border-bottom:1px solid var(--line, #ece6d8); }
.arw-bell-head b{ font:900 16px 'Cairo',sans-serif; }
.arw-bell-head a{ color:var(--teal, #0e9594); font:700 13px 'Cairo',sans-serif; text-decoration:none; }
.arw-bell-list{ overflow-y:auto; overscroll-behavior:contain; padding:6px; }
.arw-bell-item{ display:flex; align-items:center; gap:12px; padding:10px; border-radius:14px; color:inherit; text-decoration:none; position:relative; }
.arw-bell-item:hover{ background:var(--bg, #faf7f0); }
.arw-bell-item.is-new{ background:color-mix(in srgb, var(--teal, #0e9594) 9%, transparent); }
.arw-bell-item.is-new::after{ content:""; position:absolute; top:50%; right:10px; width:8px; height:8px; margin-top:-4px; border-radius:50%; background:var(--teal, #0e9594); }
.arw-bell-img{ flex:none; width:84px; aspect-ratio:16/9; border-radius:10px; overflow:hidden; background:var(--bg, #f3efe6) url('/assets/brand-logo.png') center/28px no-repeat; }
.arw-bell-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.arw-bell-tx{ display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; padding-right:14px; }
.arw-bell-tx small{ color:var(--teal, #0e9594); font:800 12px 'Cairo',sans-serif; }
.arw-bell-tx b{ font:800 14px/1.45 'Cairo',sans-serif; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.arw-bell-tx time{ color:var(--muted, #6b7280); font-size:12px; }
.arw-bell-empty{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:26px 18px 22px; text-align:center; }
.arw-bell-empty-ic{ width:52px; height:52px; display:grid; place-items:center; border-radius:50%; background:color-mix(in srgb, var(--teal, #0e9594) 12%, transparent); color:var(--teal, #0e9594); margin-bottom:4px; }
.arw-bell-empty b{ font:900 15px 'Cairo',sans-serif; }
.arw-bell-empty p{ margin:0; color:var(--muted, #6b7280); font-size:13.5px; line-height:1.7; max-width:290px; }
.arw-bell-empty a{ margin-top:8px; display:inline-flex; align-items:center; height:38px; padding:0 18px; border-radius:999px; background:var(--teal, #0e9594); color:#fff; font:800 13.5px 'Cairo',sans-serif; text-decoration:none; }
.arw-bell-wait{ display:grid; place-items:center; padding:30px; }
.arw-bell-wait span{ width:26px; height:26px; border-radius:50%; border:3px solid var(--line, #ece6d8); border-top-color:var(--teal, #0e9594); animation:arwBellSpin .8s linear infinite; }
@keyframes arwBellSpin{ to{ transform:rotate(-360deg); } }
.arw-bell-err{ padding:20px; text-align:center; color:var(--muted, #6b7280); }
@media (max-width:560px){ .arw-bell-pop{ right:8px; left:8px; width:auto; } }
html[dir="ltr"] .arw-bell-item.is-new::after{ right:auto; left:10px; }
html[dir="ltr"] .arw-bell-tx{ padding-right:0; padding-left:14px; }
@media (prefers-reduced-motion: reduce){ .arw-bell-pop, .arw-follow-toast, .arw-follow-btn{ animation:none; transition:none; } }

/* «تابع المشاهدة» on the home page (index.njk #continue, assets/features.js) */
.arw-cw-row{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(250px, 300px); gap:16px; overflow-x:auto; padding:4px 2px 10px; scroll-snap-type:x mandatory; scrollbar-width:thin; }
.arw-cw-card{ position:relative; display:flex; flex-direction:column; border-radius:18px; overflow:hidden; background:var(--card, #fff); border:1px solid var(--line, #ece6d8); color:var(--ink, #1e2530); text-decoration:none; scroll-snap-align:start; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.arw-cw-card:hover{ transform:translateY(-3px); border-color:var(--teal, #0e9594); box-shadow:0 16px 30px -22px rgba(14,149,148,.8); }
.arw-cw-img{ position:relative; display:block; aspect-ratio:16/9; background:#14303a url('/assets/brand-logo.png') center/34px no-repeat; overflow:hidden; }
.arw-cw-img img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.arw-cw-play{ position:absolute; inset:0; margin:auto; width:48px; height:48px; border-radius:50%; display:grid; place-items:center; background:rgba(10,12,16,.62); color:#fff; z-index:1; transition:transform .2s ease, background .2s ease; }
.arw-cw-card:hover .arw-cw-play{ transform:scale(1.08); background:var(--teal, #0e9594); }
.arw-cw-bar{ position:absolute; right:0; left:0; bottom:0; height:5px; background:rgba(255,255,255,.28); z-index:1; }
.arw-cw-bar > i{ position:absolute; top:0; bottom:0; left:0; background:#e5484d; border-radius:3px 0 0 3px; }
html[dir="ltr"] .arw-cw-bar > i{ left:auto; right:0; }
.arw-cw-bar.is-unknown{ display:none; }
.arw-cw-tx{ display:flex; flex-direction:column; gap:3px; padding:12px 14px 14px; min-width:0; }
.arw-cw-tx small{ color:var(--teal, #0e9594); font:800 12px 'Cairo',sans-serif; }
.arw-cw-tx b{ font:800 14.5px/1.5 'Cairo',sans-serif; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.arw-cw-tx em{ font-style:normal; color:var(--muted, #6b7280); font-size:12.5px; }
.arw-cw-x{ position:absolute; top:8px; right:8px; z-index:2; width:30px; height:30px; border:0; border-radius:50%; background:rgba(10,12,16,.62); color:#fff; font-size:19px; line-height:30px; cursor:pointer; opacity:0; transition:opacity .2s ease; }
html[dir="ltr"] .arw-cw-x{ right:auto; left:8px; }
.arw-cw-card:hover .arw-cw-x, .arw-cw-x:focus-visible{ opacity:1; }
@media (hover:none){ .arw-cw-x{ opacity:1; } }
@media (max-width:560px){ .arw-cw-row{ grid-auto-columns:78%; gap:12px; } }

/* ── speed (owner 2026-10-15: «الموقع كله يكون سريع وخفيف») ─────────────────────────────────────────────────────────────
   Measured on a mid-range phone: the home page spent ~1s laying out and ~0.5s building layers, not running scripts.
   1. A card waiting to fade in was its own layer the whole time (will-change), 50 of them on the home page: the browser
      makes the layer by itself while it moves, and only then. 2. The desktop tilt asks for its layer only while tilting.
   3. A phone doesn't blur what's behind a play button or a badge (each blur is drawn again on every scroll); their
      backgrounds are already nearly solid. */
.reveal.reveal-hidden, .reveal.is-visible{ will-change:auto !important; }
.m-tilt{ will-change:auto !important; }
.m-tilt.m-tilting{ will-change:transform !important; }
@media (hover: none), (max-width: 900px){
  .play-btn, .spotlight-nav-btn, .eyebrow, .spotlight-slide:not(.active) .spotlight-pill, .spotlight-slide:not(.active) .spotlight-play-float{ -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }
  /* 4. a glow that never stops repaints the screen forever: on a phone it shines a few times, then rests */
  .eyebrow{ animation-iteration-count:3 !important; }
}
/* 5. What's far down the page isn't laid out or drawn until the reader comes near it; its last size is kept, so the
   page doesn't jump (the footer, a show's or a story's related shows and comments; not the home page's rows, whose
   dividing dot sits half outside them and would be cut) */
footer, .related-posts-section, #comments{ content-visibility:auto; contain-intrinsic-size:auto 900px; }
footer{ contain-intrinsic-size:auto 340px; }
