@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Cormorant+Garamond:ital,wght@1,500;1,700&family=Cairo:wght@400;600;700;800;900&display=swap');

/* BUZZ — العدالة العمياء | Blind Justice
   خشب أحمر غامق + أسود + ذهبي نحاسي (لون إطار النظارة) — نفس هوية البكج */
:root {
  --wood: #5a0c0c;
  --wood-hot: #8a1616;
  --wood-deep: #2a0505;
  --night: #0d0303;
  --gold: #c9a15a;
  --gold-hi: #f3dca4;
  --gold-deep: #8a6428;
  --cream: #efe2c8;
  --muted: #b89a86;
  --dim: #806456;
  --card: linear-gradient(180deg, rgba(42, 8, 6, .82), rgba(14, 3, 2, .88));
  --line: rgba(201, 161, 90, .2);
  --line-hot: rgba(201, 161, 90, .6);
  --font-en: 'Cinzel', 'Times New Roman', serif;
  --font-it: 'Cormorant Garamond', Georgia, serif;
  --font-ar: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --radius: 6px;
  --nav-h: 70px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-ar);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
::selection { background: rgba(201, 161, 90, .35); color: #fff; }

/* ================================================================ الخلفية: جدار خشب + ستارة + مطر */
.wood {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .42) 0 4px, rgba(0, 0, 0, 0) 4px 212px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 3px, transparent 3px 23px),
    radial-gradient(ellipse 65% 75% at var(--wx, 62%) 38%, #6a1212 0%, #340606 55%, #100202 100%);
}
.blinds {
  position: absolute; inset: -30%; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 214, 160, .55) 0 30px, transparent 30px 68px);
  filter: blur(7px); opacity: .14; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 40%, #000 70%, transparent 95%);
  mask-image: linear-gradient(90deg, transparent 8%, #000 40%, #000 70%, transparent 95%);
  transform: rotate(-14deg);
  animation: blindsDrift 26s ease-in-out infinite alternate;
}
@keyframes blindsDrift { from { transform: rotate(-14deg) translateY(0); } to { transform: rotate(-14deg) translateY(68px); } }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .85) 100%); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .45; mix-blend-mode: overlay; background: repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px); }

.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.backdrop .bg-img {
  position: absolute; inset: -60px;
  background: var(--bg-url, none) 70% 25% / cover no-repeat;
  filter: blur(18px) saturate(1.1) brightness(.5);
  opacity: .35; mix-blend-mode: luminosity;
}
.backdrop .shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(243, 220, 164, .07), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 30%, rgba(8, 2, 2, .82) 100%),
    linear-gradient(180deg, rgba(13, 3, 3, .25), rgba(13, 3, 3, .78));
}
.backdrop canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.backdrop .flash, .intro-flash {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse at 40% 0%, rgba(255, 236, 210, .28), transparent 65%);
}

/* ================================================================ الختم الطاير (زينة) */
.drifter { position: fixed; z-index: 60; pointer-events: none; left: 0; top: 0; opacity: 0; will-change: transform, opacity; filter: drop-shadow(0 0 18px rgba(201, 161, 90, .45)) drop-shadow(0 10px 14px rgba(0, 0, 0, .7)); }
.drifter .seal { transform-origin: 50% -30%; animation: sway var(--sway, 3200ms) ease-in-out infinite alternate; }
.drifter svg, .drifter img, .drifter video { width: 100%; height: auto; display: block; }
@keyframes sway { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }

/* ================================================================ الشاشة الافتتاحية */
.intro {
  position: fixed; inset: 0; z-index: 200; overflow: hidden;
  display: grid; place-items: center; text-align: center; padding: 20px;
  background: var(--night);
  transition: opacity .8s ease, transform .8s ease;
}
.intro:empty { background: #000; }
.intro .wood { --wx: 50%; }
.intro .blinds { opacity: .2; animation-duration: 14s; }
.intro canvas.intro-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro.out { opacity: 0; transform: scale(1.05); pointer-events: none; }
.intro-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.intro .emblem { width: clamp(130px, 19vw, 190px); height: clamp(130px, 19vw, 190px); animation: introSeal 1.1s cubic-bezier(.2, .9, .3, 1.15) both; }
.intro h1 { margin-top: 26px; font-size: clamp(58px, 12vw, 128px); opacity: 0; transform: scale(1.4); filter: blur(10px); }
.intro .rule { width: min(320px, 70vw); margin-top: 22px; opacity: 0; }
.intro-tag { margin-top: 18px; font-family: var(--font-it); font-style: italic; font-weight: 500; color: var(--gold); letter-spacing: .14em; font-size: clamp(18px, 2.4vw, 26px); opacity: 0; direction: ltr; }
.intro-tag-ar { margin-top: 4px; color: var(--cream); font-weight: 800; font-size: clamp(16px, 2vw, 20px); opacity: 0; }
.intro-court { margin-top: 14px; font-family: var(--font-en); font-weight: 700; letter-spacing: .3em; font-size: 13px; color: var(--gold-hi); opacity: 0; }
html[lang="ar"] .intro-court { font-family: var(--font-ar); letter-spacing: .02em; font-size: 15px; }
.intro-court { pointer-events: none; }
.intro-enter + .intro-court { margin-top: -36px; }
.intro-enter { margin-top: 34px; padding: 15px 40px; font-size: 18px; animation: enterPulse 1.8s ease-in-out infinite; }
@keyframes introSeal { from { opacity: 0; transform: scale(.5) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes enterPulse { 0%, 100% { box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .55), 0 6px 24px rgba(201, 161, 90, .15); } 50% { box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .55), 0 6px 44px rgba(201, 161, 90, .5); } }
.intro.wait h1 { opacity: .38; transform: none; filter: blur(2px); transition: opacity .9s .4s; }
.intro.wait .intro-tag, .intro.wait .intro-tag-ar { opacity: .5; transition: opacity .9s .6s; }
.intro.wait .rule { opacity: .5; transition: opacity .9s .5s; }
.intro.strike .intro-flash { animation: introFlash 1.1s ease-out both; }
.intro.strike .emblem { animation: stamp .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.intro.strike h1 { animation: logoIn .6s cubic-bezier(.2, .9, .2, 1) both; }
.intro.strike .rule { animation: fadeUp .5s .2s ease both; }
.intro.strike .intro-tag, .intro.strike .intro-tag-ar { animation: fadeUp .6s .3s ease both; }
.intro.strike .intro-court { animation: fadeUp .6s .5s ease both; }
.intro.strike .intro-enter { opacity: 0; pointer-events: none; transition: opacity .2s; animation: none; }
.intro.strike .intro-in { animation: shake .4s ease both; }
.intro.strike .blinds { opacity: .32; transition: opacity .3s; }
@keyframes stamp { 0% { transform: scale(1.35); } 60% { transform: scale(.94); } 100% { transform: none; } }
@keyframes introFlash { 0% { opacity: 0; } 8% { opacity: 1; } 20% { opacity: .3; } 30% { opacity: .7; } 100% { opacity: 0; } }
@keyframes logoIn { from { opacity: 0; transform: scale(1.4); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translate(-5px, 3px); } 40% { transform: translate(4px, -3px); } 60% { transform: translate(-2px, 2px); } 80% { transform: translate(1px, -1px); } }

/* ================================================================ الهيدر */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 clamp(16px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(16, 3, 3, .94), rgba(16, 3, 3, .8));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand .emblem-sm { width: 44px; height: 44px; }
.brand b { font-family: var(--font-en); font-weight: 900; font-size: 22px; letter-spacing: .16em; color: var(--gold-hi); text-shadow: 0 2px 0 #000, 0 0 16px rgba(201, 161, 90, .35); }
.links { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.links a {
  position: relative;
  padding: 8px 12px; border-radius: 4px;
  font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); transition: color .2s, background .2s;
  white-space: nowrap;
}
html[lang="ar"] .links a { font-family: var(--font-ar); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.links a:hover { color: var(--gold-hi); }
.links a.active { color: var(--gold-hi); background: rgba(201, 161, 90, .08); box-shadow: inset 0 -2px 0 var(--gold); }
.lang { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 4px; color: var(--muted); font-size: 13px; font-weight: 700; flex: none; }
.lang:hover { color: var(--gold-hi); background: rgba(201, 161, 90, .06); }
.lang svg { width: 16px; height: 16px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 6px; border: 1px solid var(--line); margin-inline-start: auto; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--gold-hi); margin: auto; position: relative; transition: .25s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav.open .burger span { background: transparent; }
.nav.open .burger span::before { top: 0; transform: rotate(45deg); }
.nav.open .burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .lang { margin-inline-start: 0; }
  .links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px;
    background: rgba(16, 3, 3, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .22s;
  }
  .nav.open .links { transform: none; opacity: 1; pointer-events: auto; }
  .links a { padding: 13px 14px; font-size: 14px; }
}
@media (max-width: 420px) { .brand b { font-size: 19px; } .lang span { display: none; } }

/* ================================================================ الشعار (الختم) */
.emblem { position: relative; display: grid; place-items: center; flex: none; }
.emblem svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .7)); }
.emblem img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px rgba(0, 0, 0, .6), 0 0 0 6px rgba(201, 161, 90, .4); }

/* نص ذهبي محفور */
.gold-text {
  position: relative; display: inline-block; line-height: 1; direction: ltr; unicode-bidi: isolate;
  font-family: var(--font-en); font-weight: 900; letter-spacing: .14em; margin-right: -.14em;
  color: #3a2408;
  text-shadow: 0 1px 0 #6b4a1c, 0 2px 0 #5a3c14, 0 3px 0 #4a300e, 0 4px 0 #3a2408, 0 12px 26px rgba(0, 0, 0, .85);
}
.gold-text::after {
  content: attr(data-text); position: absolute; left: 0; top: 0;
  background: linear-gradient(180deg, #fff3cf 0%, #f3dca4 22%, #c9a15a 48%, #8a6428 54%, #d8b26a 78%, #fbe9bd 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 12px rgba(243, 220, 164, .22));
  animation: goldGlow 4s ease-in-out infinite;
}
@keyframes goldGlow { 0%, 100% { filter: drop-shadow(0 0 8px rgba(243, 220, 164, .15)); } 50% { filter: drop-shadow(0 0 18px rgba(243, 220, 164, .4)); } }

.rule { height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 10px rgba(201, 161, 90, .45); position: relative; }
.rule::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; background: var(--gold-hi); transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 10px var(--gold); }

/* ================================================================ الصفحات */
main { position: relative; z-index: 2; min-height: calc(100vh - var(--nav-h)); }
.page { display: none; animation: pageIn .45s ease both; }
.page.on { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wrap { width: min(1240px, 100% - 32px); margin: 0 auto; }
section { padding: clamp(48px, 7vw, 84px) 0; }

/* الهيرو: الصورة يمين والنص يسار (نفس مشاهد البث) */
.hero {
  position: relative; isolation: isolate; min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  padding: 60px clamp(16px, 6vw, 96px) 100px; overflow: hidden;
}
.hero .banner {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(64%, 1050px); z-index: -1;
  background: var(--banner, none) center 25% / cover no-repeat;
  filter: contrast(1.08) saturate(1.1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%), linear-gradient(180deg, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%), linear-gradient(180deg, #000 72%, transparent 100%);
  mask-composite: intersect;
  animation: breathe 12s ease-in-out infinite alternate;
}
/* ظلال الستارة فوق الصورة */
.hero .banner::after {
  content: ''; position: absolute; inset: -45%;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .28) 0 26px, transparent 26px 60px);
  transform: rotate(-14deg); filter: blur(5px);
}
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.03); } }
.hero-txt { position: relative; width: min(600px, 100%); margin-right: auto; text-align: center; }
.hero .emblem { width: clamp(130px, 15vw, 180px); height: clamp(130px, 15vw, 180px); margin: 0 auto; animation: sealFloat 6s ease-in-out infinite; }
@keyframes sealFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.hero h1 { margin-top: 26px; font-size: clamp(70px, 10.5vw, 150px); }
.tagline-en { margin-top: 18px; font-family: var(--font-it); font-style: italic; font-weight: 500; color: var(--gold); letter-spacing: .16em; font-size: clamp(20px, 2.4vw, 28px); direction: ltr; }
.hero .rule { width: min(340px, 80%); margin: 22px auto 0; }
.hero .tagline { margin-top: 16px; font-size: clamp(17px, 2vw, 22px); font-weight: 800; color: var(--cream); text-shadow: 0 2px 0 #000; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid rgba(201, 161, 90, .45); border-radius: 14px; }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-hi); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 860px) {
  .hero { align-items: flex-end; padding-top: 0; padding-bottom: 84px; min-height: calc(100svh - var(--nav-h)); }
  .hero .banner {
    width: 100%; height: 64%; bottom: auto; background-position: center 20%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .hero-txt { margin: 0 auto; padding-top: 38vh; }
  .hero .emblem { width: 96px; height: 96px; }
  .hero h1 { margin-top: 12px; }
}

.sec-title {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(22px, 3vw, 34px); letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-hi); text-shadow: 0 3px 0 #000, 0 0 22px rgba(201, 161, 90, .3);
  margin-bottom: 40px; text-align: center;
}
html[lang="ar"] .sec-title { font-family: var(--font-ar); font-weight: 900; letter-spacing: 0; }
.sec-title svg { width: 22px; height: 22px; flex: none; color: var(--gold); filter: drop-shadow(0 0 6px rgba(201, 161, 90, .6)); }
.sec-title.sm { font-size: clamp(19px, 2.4vw, 26px); color: var(--gold); margin: 56px 0 28px; }

.page-head { text-align: center; padding: clamp(40px, 6vw, 70px) 0 10px; }
.page-head h1 {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-weight: 900; letter-spacing: .1em; font-size: clamp(36px, 5.6vw, 60px);
  background: linear-gradient(180deg, #fff3cf 0%, #f3dca4 30%, #c9a15a 55%, #8a6428 60%, #e2c07e 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #000) drop-shadow(0 0 16px rgba(201, 161, 90, .25));
  line-height: 1.25;
}
html[lang="ar"] .page-head h1 { font-family: var(--font-ar); font-weight: 900; letter-spacing: 0; }
.page-head h1 svg { width: .55em; height: .55em; color: var(--gold); -webkit-text-fill-color: initial; }
.page-head p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.page-head .btn { margin-top: 22px; }

/* ================================================================ أزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 4px;
  font-weight: 800; font-size: 15px; color: var(--cream);
  background: linear-gradient(180deg, rgba(42, 8, 6, .85), rgba(14, 3, 2, .9));
  border: 1px solid rgba(201, 161, 90, .5);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .55), inset 0 0 0 4px rgba(201, 161, 90, .14);
  transition: transform .15s, background .2s, box-shadow .2s, color .2s;
}
.btn:hover { color: var(--gold-hi); border-color: var(--gold); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .55), inset 0 0 0 4px rgba(201, 161, 90, .3), 0 0 24px rgba(201, 161, 90, .2); transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; color: var(--gold); }
.btn.primary {
  background: linear-gradient(180deg, #8a1616, #4a0909); border-color: var(--gold); color: var(--gold-hi);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .45), inset 0 0 0 4px rgba(243, 220, 164, .25), 0 6px 22px rgba(0, 0, 0, .5);
}
.btn.primary svg { color: var(--gold-hi); }
.btn.primary:hover { background: linear-gradient(180deg, #a01c1c, #5a0c0c); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .45), inset 0 0 0 4px rgba(243, 220, 164, .4), 0 8px 30px rgba(201, 161, 90, .25); }
.btn:disabled { opacity: .5; pointer-events: none; }

/* ================================================================ البطاقات (إطار آرت ديكو) */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .45), inset 0 0 0 4px rgba(201, 161, 90, .06);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--line-hot); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .45), inset 0 0 0 4px rgba(201, 161, 90, .14), 0 14px 40px rgba(0, 0, 0, .5); }

/* حالة البث */
.live-card { display: flex; align-items: center; gap: 22px; max-width: 820px; margin: 0 auto; padding: 24px 28px; }
.live-card .emblem { width: 92px; height: 92px; }
.live-card.is-live .emblem { filter: drop-shadow(0 0 18px rgba(243, 220, 164, .55)); }
.live-info { flex: 1; min-width: 0; }
.live-info .who { font-family: var(--font-en); font-size: 22px; font-weight: 900; letter-spacing: .08em; color: var(--gold-hi); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-info .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; color: var(--muted); font-size: 14px; }
.live-info .meta span { display: inline-flex; align-items: center; gap: 6px; }
.live-info .meta svg { width: 15px; height: 15px; }
.live-info .stitle { margin-top: 8px; color: var(--cream); font-weight: 600; font-size: 14px; }
.live-btns { display: flex; flex-direction: column; gap: 8px; flex: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); display: inline-block; }
.is-live .dot { background: #e0302a; animation: livePing 1.6s infinite; }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 rgba(224, 48, 42, .7); } 100% { box-shadow: 0 0 0 10px rgba(224, 48, 42, 0); } }
.live-badge { padding: 3px 10px; border-radius: 3px; background: linear-gradient(180deg, #8a1616, #4a0909); border: 1px solid var(--gold); color: var(--gold-hi); font-family: var(--font-en); font-size: 11px; letter-spacing: .12em; }
html[lang="ar"] .live-badge { font-family: var(--font-ar); letter-spacing: 0; font-size: 12px; }

/* شخصيات */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.char { overflow: hidden; }
.char .pic { aspect-ratio: 4 / 3.4; background: radial-gradient(ellipse at 50% 30%, rgba(201, 161, 90, .1), transparent 70%); overflow: hidden; }
.char .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; filter: saturate(.95) contrast(1.05); }
.char:hover .pic img { transform: scale(1.05); }
.char .pic.empty { display: grid; place-items: center; }
.char .pic.empty svg { width: 46%; opacity: .3; }
.char .body { padding: 16px 20px 20px; }
.char h3 { font-size: 20px; font-weight: 800; color: var(--cream); }
.chip { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 3px; font-size: 12px; font-weight: 700; color: var(--gold-hi); background: rgba(201, 161, 90, .1); border: 1px solid rgba(201, 161, 90, .35); }
.char p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* أعضاء الفريق */
.members { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.member { padding: 26px 18px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.member .av { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 40%, #4a0909, #1a0303); box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px rgba(0, 0, 0, .6), 0 0 0 6px rgba(201, 161, 90, .35); display: grid; place-items: center; }
.member .av img { width: 100%; height: 100%; object-fit: cover; }
.member .av svg { width: 72%; opacity: .7; }
.member h3 { margin-top: 16px; font-size: 18px; font-weight: 800; color: var(--cream); }
.member p { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.member .visit { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--gold); }
.member .visit:hover { color: var(--gold-hi); }
.member .visit svg { width: 14px; height: 14px; }

/* الحسابات (نفس شرايح البكج) */
.socials { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); max-width: 1000px; margin: 0 auto; }
.social { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.social:hover { transform: translateY(-2px); }
.social .ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--gold); background: radial-gradient(circle at 50% 40%, #4a0909, #1a0303); box-shadow: 0 0 0 1px rgba(201, 161, 90, .55), 0 0 0 4px rgba(0, 0, 0, .5); }
.social .ic svg { width: 24px; height: 24px; }
.social .txt { flex: 1; min-width: 0; }
.social .txt b { display: block; font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.social .txt span { display: block; margin-top: 2px; font-family: var(--font-en); font-weight: 700; color: var(--cream); font-size: 18px; letter-spacing: .04em; direction: ltr; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[dir="rtl"] .social .txt span { text-align: right; }
.social .ext { width: 18px; height: 18px; color: var(--dim); flex: none; }
.social:hover .ext, .social:hover .ic { color: var(--gold-hi); }

/* الفريق */
.team-card { overflow: hidden; display: block; }
.team-card .pic { aspect-ratio: 16 / 10; overflow: hidden; background: #1a0404; }
.team-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.team-card:hover .pic img { transform: scale(1.06); }
.team-card .body { padding: 16px 20px 20px; display: flex; gap: 10px; }
.team-card .body div { flex: 1; }
.team-card h3 { font-size: 18px; font-weight: 800; color: var(--cream); }
.team-card p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.team-card .ext { width: 18px; height: 18px; color: var(--dim); }

/* لعبة: بطاقة دعوة */
.game-teaser-sec { padding-top: 0; }
.game-teaser { display: flex; align-items: center; gap: 20px; max-width: 820px; margin: 0 auto; padding: 22px 26px; }
.gt-ic { width: 60px; height: 60px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--gold-hi); background: radial-gradient(circle at 50% 40%, #8a1616, #2a0505); box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px rgba(0, 0, 0, .5), 0 0 26px rgba(201, 161, 90, .3); }
.gt-ic svg { width: 30px; height: 30px; }
.gt-txt { flex: 1; min-width: 0; }
.gt-txt b { display: block; font-size: 20px; font-weight: 900; color: var(--gold-hi); }
.gt-txt small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* المعرض */
.uploader { max-width: 900px; margin: 34px auto 0; padding: 22px; }
.uploader .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.uploader .btn { width: 100%; margin-top: 12px; padding: 14px; }
.uploader .note { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); min-height: 1.2em; }
.uploader .note.ok { color: #9fd9a8; } .uploader .note.err { color: #ff9a8a; }
.preview-img { display: none; margin-top: 12px; max-height: 220px; border-radius: 4px; margin-inline: auto; border: 1px solid var(--line); }
.input {
  width: 100%; padding: 13px 15px; border-radius: 4px;
  background: rgba(0, 0, 0, .4); border: 1px solid var(--line); color: var(--cream);
  font: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--line-hot); box-shadow: 0 0 0 3px rgba(201, 161, 90, .14); }
.input::placeholder { color: var(--dim); }
.shots { margin-top: 40px; columns: 3 300px; column-gap: 18px; }
.shot { break-inside: avoid; margin-bottom: 18px; overflow: hidden; }
.shot img { width: 100%; cursor: zoom-in; }
.shot .foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.shot .foot .n { flex: 1; min-width: 0; }
.shot .foot b { display: block; font-size: 14px; color: var(--cream); }
.shot .foot small { display: block; color: var(--muted); font-size: 12px; }
.like { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 4px; color: var(--muted); font-weight: 700; font-size: 14px; }
.like svg { width: 18px; height: 18px; transition: transform .2s; }
.like:hover { color: var(--gold-hi); background: rgba(201, 161, 90, .06); }
.like.on { color: var(--gold-hi); }
.like.on svg { fill: currentColor; transform: scale(1.12); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(8, 2, 2, .93); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 4px; box-shadow: 0 0 0 1px var(--gold), 0 0 60px rgba(201, 161, 90, .2); }

.empty-state { padding: 44px 20px; text-align: center; color: var(--dim); grid-column: 1 / -1; font-weight: 700; }
.empty-state svg { width: 110px; margin: 0 auto 14px; opacity: .45; }

/* ================================================================ الفوتر */
footer { position: relative; z-index: 2; padding: 50px 16px 36px; text-align: center; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(13, 3, 3, .85)); }
footer .emblem { width: 64px; height: 64px; margin: 0 auto; }
footer .foot-tag { margin-top: 14px; font-family: var(--font-it); font-style: italic; color: var(--gold); letter-spacing: .14em; font-size: 18px; direction: ltr; }
footer p { margin-top: 4px; color: var(--muted); font-size: 14px; }
footer .mini { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
footer .mini a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-hot); color: var(--gold); transition: .2s; background: rgba(0, 0, 0, .3); }
footer .mini a:hover { color: var(--gold-hi); border-color: var(--gold-hi); background: rgba(201, 161, 90, .1); }
footer .mini svg { width: 17px; height: 17px; fill: currentColor; }
footer small { display: block; margin-top: 18px; color: var(--dim); font-size: 12px; direction: ltr; }

@media (max-width: 640px) {
  .live-card { flex-direction: column; text-align: center; padding: 24px 18px; }
  .live-info .who, .live-info .meta { justify-content: center; text-align: center; }
  .live-btns { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .game-teaser { flex-direction: column; text-align: center; }
  .uploader .row { grid-template-columns: 1fr; }
  .shots { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
