
*{margin:0;padding:0;box-sizing:border-box;}

:root{
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold2: #f3e5ab;
  --dark: #05070a;
  --dark2: rgba(15, 19, 25, 0.7);
  --dark3: rgba(22, 28, 38, 0.8);
  --dark4: #1e2633;
  --military-green: #0d1410; 
  --border: rgba(212, 175, 55, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --red: #ef4444;
  --green: #10b981;
}

body{
  font-family:'Cairo',sans-serif;
  background: var(--dark);
  color:var(--text);
  min-height:100vh;
  overflow-x:hidden;
  position: relative;
}

/* ── NEON GLOW BACKGROUND ORBS ── */
.neon-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--dark);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.13; mix-blend-mode: screen; animation: orbFloat 25s infinite alternate ease-in-out;
}
.orb-1 { width: 500px; height: 500px; background: var(--gold); top: -10%; left: -10%; animation-duration: 20s; }
.orb-2 { width: 600px; height: 600px; background: #163a24; bottom: -10%; right: -5%; animation-duration: 28s; }
.orb-3 { width: 450px; height: 450px; background: #5c1111; top: 40%; left: 30%; animation-duration: 22s; }

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.15); }
}

/* ── HERO SECTION ── */
/* ── GATE / LANDING PAGE ── */
.gate-page{ position:fixed; inset:0; z-index:9999; padding:10px; background:#05070a; overflow-y:auto; overflow-x:hidden; animation: gateFadeIn 0.6s ease both; transition: opacity 0.6s ease, visibility 0.6s ease;
  -ms-overflow-style: none !important; scrollbar-width: none !important;}
.gate-page.gate-exit{ opacity:0; visibility:hidden; pointer-events:none; }
@keyframes gateFadeIn{ from{ opacity:0; } to{ opacity:1; } }

/* الإطار الوحيد للصفحة كلها — لا صناديق متداخلة بداخله */
.gate-frame{
  position:relative; min-height:calc(100vh - 20px);
  border-radius:22px; overflow:hidden;
  border:1px solid rgba(214,175,87,0.22);
  background: radial-gradient(ellipse at 50% 0%, #14181f 0%, #05070a 65%);
}

.gate-hero-bg-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: left center;
  opacity: 0.12;
  mix-blend-mode: luminosity;
  z-index: 1;
  pointer-events: none;
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}


.gate-hero-bg-right {
   position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.12;
  mix-blend-mode: luminosity;
  filter: grayscale(100%);
  z-index: 1;
  pointer-events: none;
  mask-image: linear-gradient(
    to left,
    rgba(0,0,0,1) 40%,
    rgba(0,0,0,0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0,0,0,1) 40%,
    rgba(0,0,0,0) 100%
  );
}




.gate-hero-overlay{
  position:absolute; top:0; right:0; left:0; height:560px; z-index:0;
  background: radial-gradient(ellipse at 50% 0%, rgba(214,175,87,0.08), transparent 60%), linear-gradient(180deg, rgba(20,24,31,0.9) 0%, rgba(5,7,10,0.95) 55%, rgba(5,7,10,1) 100%);
}

/* أضواء ملعب متوهجة تنبض ببطء */
.gate-spotlight{
  position:absolute; width:520px; height:520px; border-radius:50%; pointer-events:none; z-index:0;
  background: radial-gradient(circle, rgba(214,175,87,0.16) 0%, transparent 70%);
  animation: gateSpotPulse 6s ease-in-out infinite;
}
.gate-spotlight-1{ top:-10%; right:8%; animation-delay:0s; }
.gate-spotlight-2{ top:5%; left:5%; width:420px; height:420px; animation-delay:2.4s; background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%); }
@keyframes gateSpotPulse{ 0%,100%{ opacity:0.5; transform:scale(1); } 50%{ opacity:1; transform:scale(1.12); } }

/* نسيج شبكي خفيف يوحي بأرضية الملعب */
.gate-scroll-inner{ position:relative; z-index:2; width:100%; max-width:1160px; margin:0 auto; padding:70px 30px 40px; }

.gate-content{ position:relative; text-align:center; max-width:640px; margin:0 auto; animation: gateContentRise 1s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes gateContentRise{ from{ opacity:0; transform:translateY(28px); } to{ opacity:1; transform:translateY(0); } }

.gate-crest {
    width: 70px;
    height: auto;
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease, filter 0.4s ease;}
.gate-crest:hover {transform: scale(1.05) rotate(3deg);filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6))}
.gate-title{ font-family:'Tajawal',sans-serif; font-size:clamp(28px,6vw,44px); font-weight:900; color:#fff; line-height:1.3; text-shadow:0 0 30px rgba(0,0,0,0.6); }
.gate-badge{ display:inline-block; font-size:11px; font-weight:700; letter-spacing:1px; color:var(--gold2); background:rgba(214,175,87,0.14); border:1px solid var(--gold); border-radius:30px; padding:6px 18px; margin-top:18px; }

.gate-teaser{ color:#e2e8f0; font-size:15px; font-weight:700; line-height:1.9; margin:26px auto 10px; max-width:480px; min-height:80px; }
.gate-caret{ display:inline-block; color:var(--gold); animation: gateCaretBlink 0.9s steps(1) infinite; margin-right:2px; }
@keyframes gateCaretBlink{ 50%{ opacity:0; } }

.gate-counters{ display:flex; align-items:center; justify-content:center; gap:24px; margin:26px auto 30px; }
.gate-counter-item{ display:flex; flex-direction:column; align-items:center; gap:3px; }
.gate-counter-num{ font-size:26px; font-weight:900; color:var(--gold); font-variant-numeric:tabular-nums; text-shadow:0 0 16px rgba(214,175,87,0.4); }
.gate-counter-lbl{ font-size:10px; color:var(--muted); font-weight:700; white-space:nowrap; }
.gate-counter-sep{ width:1px; height:28px; background:rgba(255,255,255,0.1); }

.gate-enter-btn {
  display: inline-flex; 
  align-items: center; 
  gap: 10px;
  background: linear-gradient(to bottom, var(--gold) 0%, #b88d32 100%);  color: #0f0f0f; 
  cursor: pointer;
  border-radius: 6px; 
  padding: 16px 42px;
  font-size: 19px;          
  font-weight: 900;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.5), 
    0 4px 15px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(214, 175, 87, 0.25);
 transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;}

.gate-enter-btn:hover { 
  transform: translateY(-2px); 
    box-shadow: 
    inset 0 1px 4px rgba(255, 255, 255, 0.7),
    0 8px 25px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(214, 175, 87, 0.5);
    
  }

.gate-arrow {transition: transform 0.25s ease;}
.gate-enter-btn:hover .gate-arrow {transform: translateX(-5px);}


.gate-scroll-hint{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  margin:36px auto 0; cursor:pointer; width:fit-content;
  color:var(--muted); font-size:10px; font-weight:700; letter-spacing:0.5px;
  transition: color 0.2s ease;
}
.gate-scroll-hint:hover{ color:var(--gold2); }
.gate-scroll-arrow{ font-size:16px; color:var(--gold); animation: gateArrowBounce 1.6s ease-in-out infinite; }
@keyframes gateArrowBounce{ 0%,100%{ transform:translateY(0); opacity:0.6; } 50%{ transform:translateY(6px); opacity:1; } }

/* بطاقات المزايا الأربع */
.gate-features{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin-top:50px; }
.gate-feature-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px; padding: 24px 16px; text-align: center; transition: all 0.3s ease; }.gf-icon{ font-size:24px; margin-bottom:8px; }
.gf-icon {font-size: 26px; margin-bottom: 10px; }
.gf-title{ font-size:14px; font-weight:700; color:#fff; margin-bottom:4px; }
.gf-desc{ font-size:10px; color:var(--muted); line-height:1.5; min-height:30px; }
.gf-bar { height: 2px; border-radius: 2px; margin: 12px auto 0; width: 24px;}
.gf-bar-gold{ background:var(--gold); }
.gf-bar-green{ background:var(--green); }
.gf-bar-red{ background:var(--red); }

.gate-timeline{ direction:ltr; display:flex; align-items:center; justify-content:space-between; margin-top:40px; padding:0 10px; overflow-x:auto; gap:4px; }
.gate-tl-node{ display:flex; flex-direction:column; align-items:center; gap:8px; flex-shrink:0; position:relative; }
.gate-tl-dot{ width:9px; height:9px; border-radius:50%; background:var(--gold); box-shadow:0 0 8px rgba(214,175,87,0.5); }
.gate-tl-dot.gate-tl-first,.gate-tl-dot.gate-tl-last{ width:13px; height:13px; }
.gate-tl-year{ font-size:11px; font-weight:700; color:var(--muted); white-space:nowrap; }
.gate-tl-line{ flex:1; height:1px; background:linear-gradient(90deg, rgba(214,175,87,0.5), rgba(214,175,87,0.15)); min-width:20px; }
.gate-timeline-caption{ text-align:center; font-size:11px; color:var(--muted); font-weight:600; margin-top:10px; }

.gate-footer-bar{ display:flex; align-items:center; justify-content:space-between; margin-top:40px; padding-top:18px; border-top:1px solid rgba(255,255,255,0.06); flex-wrap:wrap; gap:12px; }
.gate-footer-tag{ font-size:10px; font-weight:700; letter-spacing:1px; color:var(--muted); }
.gate-social-links{ display:flex; gap:10px; margin:0 auto; flex-direction:row-reverse;}
.gate-social-icon{
  width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; 
  background:rgba(214,175,87,0.08); border:1px solid rgba(214,175,87,0.25); color:var(--gold2);
  font-size:14px; text-decoration:none; transition: background 0.2s ease, transform 0.2s ease;
}
.gate-social-icon:hover{ background:rgba(214,175,87,0.18); transform:translateY(-2px); }

@media (max-width:760px){
  .gate-scroll-inner{ padding:60px 18px 30px; }
  .gate-features{ grid-template-columns:repeat(2,1fr); }
  .gate-arc{ display:none; }
  .gate-hero-overlay{ height:420px; }
}
@media (max-width:480px){
  .gate-timeline{ justify-content:flex-start; }
}

.hero{
  padding:130px 0 100px; position:relative; border-bottom:1px solid rgba(214, 175, 87, 0.15); text-align:center; overflow:hidden; background: #000;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(to left,rgba(0,0,0,0.85),rgba(13, 20, 16, 0.7)), url('assets/banner.png');
  background-size:cover; background-position:center; opacity:0.6; z-index: 1;
}
.hero-content{ position:relative; z-index:2; }

@keyframes crestFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.03); } }
.crest-asfar {
  width: 115px; height: 115px; margin: 0 auto 20px;
  background: linear-gradient(135deg, #131924, #07090e);
  border: 2px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px var(--gold-glow), inset 0 0 15px rgba(0,0,0,0.8);
  animation: crestFloat 4s ease-in-out infinite;
}
.hero-title{ font-family:'Tajawal',sans-serif; font-size:clamp(30px,6vw,52px); font-weight:900; color: #ffffff; text-shadow: 0 0 20px rgba(214, 175, 55, 0.4); }
.hero-badge{ display:inline-block; font-size:11px; font-weight:700; letter-spacing:1px; color:var(--gold2); background:rgba(214, 175, 87, 0.15); border:1px solid var(--gold); border-radius:30px; padding:6px 18px; margin-bottom:15px; }


/* ── COACH TITLES (multi) ── */
.coach-titles{ display:flex; flex-direction: column; gap:6px; margin-top:8px; align-items: center; }
.coach-titles .coach-title-badge{ line-height:1.6; }
@media(max-width:768px){ .coach-titles{ justify-content:center; } }


/* ── GLASSMORPHISM STAT CARDS ── */
.stats-row{ padding:30px 20px; max-width:1150px; margin:0 auto; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.stat-card{ 
  flex: 1; min-width: 190px; max-width: 270px;
  background: var(--dark2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 16px; padding: 22px 16px; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25); position: relative; overflow: hidden;
  transform-style: preserve-3d; transform: perspective(1000px);
}
.stat-card::before {
  content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.08) 0%, transparent 60%); pointer-events: none;
}
.stat-num{ font-size:34px; font-weight:900; color: var(--gold); line-height:1.1; transform: translateZ(25px); display: inline-block; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.stat-lbl{ font-size:12px; color:var(--muted); margin-top:6px; font-weight: 700; transform: translateZ(15px); }

/* ── NAVIGATION TABS ── */
.nav-wrap{ padding:0 20px; max-width:1150px; margin:0 auto 35px; }
.nav{ display:flex; flex-wrap:wrap; gap:8px; background: rgba(15, 19, 25, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 8px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.04); }
.tab{ flex: 1; min-width: 140px; padding:12px 18px; border-radius:10px; background:transparent; border:none; color:var(--muted); font-family:'Cairo',sans-serif; font-size:13px; font-weight:700; cursor:pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s ease; }
.tab:hover{ color:var(--text); background: rgba(255,255,255,0.03); }
.tab.active{ background: linear-gradient(135deg, var(--gold), #b3922e); color: var(--dark); font-weight:900; box-shadow: 0 6px 20px var(--gold-glow); }

/* ── CINEMATIC CONTENT AREA ── */
.content { max-width:1150px; margin:0 auto; padding:0 20px 60px; perspective: 1200px; }
#content-target { width: 100%; }

.sec-title{ font-family:'Tajawal',sans-serif; font-size:23px; font-weight:700; color:var(--text); margin-bottom:22px; display:flex; align-items:center; gap:12px; }
.sec-title::after{ content:''; flex:1; height:1px; background: linear-gradient(90deg, var(--border), transparent); }

/* STAGGERED RENDER ANIMATIONS */
.cinema-enter { opacity: 0; transform: translateX(30px) rotateY(-5deg); animation: cinemaIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.stagger-item { opacity: 0; transform: translateY(20px); animation: staggerIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.10s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.20s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes cinemaIn { to { opacity: 1; transform: translateX(0) rotateY(0); } }
@keyframes staggerIn { to { opacity: 1; transform: translateY(0); } }

/* ── ANALYTICS CHART ── */
.analytics-section { background: var(--dark2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 16px; padding: 25px 20px; margin-bottom: 30px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.chart-wrapper { position: relative; width: 100%; height: 230px; }
.chart-wrapper canvas { width: 100%; height: 100%; display: block; position: relative; z-index: 1; touch-action: pan-y; }
.chart-tooltip { position: absolute; background: var(--gold); color: var(--dark); padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 900; pointer-events: none; opacity: 0; z-index: 10; transition: opacity 0.15s ease, transform 0.1s ease; box-shadow: 0 6px 15px rgba(0,0,0,0.4); transform: translate(-50%, -120%); text-align: center; white-space: nowrap; font-family: 'Cairo', sans-serif; }

/* ── TABLES ── */
.table-container { background: var(--dark2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); overflow-x: auto; box-shadow: 0 15px 35px rgba(0,0,0,0.3); -webkit-overflow-scrolling: touch; }
.league-table{ width:100%; min-width: 680px; border-collapse:collapse; text-align:right; }
.league-table thead th{ background: rgba(22, 28, 38, 0.9); padding:16px 14px; font-size:12px; color:var(--muted); font-weight:700; text-align: center; border-bottom: 1px solid var(--border); }
.league-table tbody tr{ border-bottom:1px solid rgba(255,255,255,0.02); transition: background 0.2s ease; }
.league-table tbody tr:hover{ background: rgba(255,255,255,0.025); }
.league-table tbody tr.row-title{ background: rgba(214, 175, 87, 0.07); }
.league-table td{ padding:15px 14px; font-size:13px; text-align: center; }

.rank-badge{ display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; font-weight:900; font-size:12px; }
.rank-1{ background: var(--gold); color: var(--dark); box-shadow: 0 0 12px var(--gold-glow); }
.rank-2{ background: #cbd5e1; color: var(--dark); }
.rank-3{ background: #b45309; color: #fff; }
.rank-other{ background: rgba(255,255,255,0.06); color: var(--muted); }

.pts-bar-wrap{ display:flex; align-items:center; gap:8px; justify-content: center; }
.pts-bar-track{ position:relative; width:70px; height:6px; border-radius:3px; background: rgba(255,255,255,0.06); overflow:hidden; flex-shrink:0; }
.pts-bar{ height:100%; border-radius:3px; background: linear-gradient(90deg, #886c1e, var(--gold)); }
.pts-val{ font-weight:700; min-width:26px; text-align:left; font-variant-numeric: tabular-nums; flex-shrink:0; }

/* ── CUP VERTICAL TIMELINE ── */
.cup-list { display: flex; flex-direction: column; gap: 14px; }

.cup-item {
  background: var(--dark2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.cup-item:hover { border-color: rgba(214,175,87,0.2); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.cup-item { transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s cubic-bezier(0.4,0,0.2,1); }
.cup-item.is-open { border-color: rgba(214,175,87,0.4); box-shadow: 0 0 40px rgba(214,175,87,0.06); }
.cup-item.status-champion {
  border-color: rgba(214,175,87,0.45);
  background: radial-gradient(ellipse at 80% 0%, rgba(214,175,87,0.09), transparent 55%), var(--dark2);
  box-shadow: 0 0 50px rgba(214,175,87,0.08);
  position: relative;
}
.cup-item.status-champion::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 12px rgba(214,175,87,0.6);
}
.cup-item.status-runnerup {
  border-color: rgba(203,213,225,0.25);
  background: radial-gradient(ellipse at 80% 0%, rgba(203,213,225,0.05), transparent 55%), var(--dark2);
}
.cup-item.status-eliminated:has(.badge-semi) { border-color: rgba(234,179,8,0.15); }
.cup-item.status-eliminated:has(.badge-quarter) { border-color: rgba(139,92,246,0.13); }

.cup-header {
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; gap: 12px;
  transition: background 0.2s ease;
  position: relative;
}
.cup-header:hover { background: rgba(255,255,255,0.015); }

.cup-header-right { display: flex; align-items: center; gap: 16px; }

.cup-edition {
  font-size: 24px; font-weight: 900; color: #fff;
  letter-spacing: -0.5px; line-height: 1;
  text-shadow: 0 0 18px rgba(214,175,87,0.12);
}
.cup-item.status-champion .cup-edition {
  color: var(--gold);
  text-shadow: 0 0 25px rgba(214,175,87,0.5);
}

.cup-result-badge {
  display: inline-block; margin-top: 5px;
  font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.05); color: var(--muted);
  border: 1px solid rgba(255,255,255,0.07);
}
.cup-result-badge.badge-champion { background: rgba(214,175,87,0.15); color: var(--gold); border-color: rgba(214,175,87,0.3); animation: badgePulse 2.4s ease-in-out infinite; }
.cup-result-badge.badge-runnerup { background: rgba(203,213,225,0.1); color: #cbd5e1; border-color: rgba(203,213,225,0.2); animation: badgePulse 2.4s ease-in-out infinite; }
.cup-result-badge.badge-semi { background: rgba(234,179,8,0.1); color: #fde047; border-color: rgba(234,179,8,0.2); }
.cup-result-badge.badge-quarter { background: rgba(139,92,246,0.1); color: #c4b5fd; border-color: rgba(139,92,246,0.2); }

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(214,175,87,0); }
  50% { box-shadow: 0 0 14px rgba(214,175,87,0.35); }
}

.cup-progress { display: flex; align-items: center; gap: 0; margin-top: 8px; }
.cup-progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative;
}
.cup-progress-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid rgba(148,163,184,0.25);
  background: transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.cup-progress-dot.reached {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 8px rgba(16,185,129,0.5);
}
.cup-progress-dot.reached.is-champion {
  width: 12px; height: 12px;
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 14px rgba(214,175,87,0.7);
}
.cup-progress-dot.reached.is-eliminated {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 8px rgba(239,68,68,0.4);
}
.cup-progress-dot.reached.is-runnerup {
  border-color: #cbd5e1;
  background: #cbd5e1;
  box-shadow: 0 0 8px rgba(203,213,225,0.4);
}
.cup-progress-line {
  width: 22px; height: 2px; flex-shrink: 0;
  background: rgba(148,163,184,0.12);
  transition: background 0.3s ease;
}
.cup-progress-line.reached { background: rgba(16,185,129,0.4); }
.cup-item.status-champion .cup-progress-line.reached { background: rgba(214,175,87,0.45); }
.cup-progress-label {
  font-size: 9px; color: rgba(148,163,184,0.4); font-weight: 600;
  position: absolute; top: 16px; white-space: nowrap;
  transform: translateX(50%); right: 50%;
}
.cup-progress-step.reached .cup-progress-label { color: rgba(214,175,87,0.6); }

.cup-header-left { display: flex; align-items: center; gap: 10px; }
.cup-chevron {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--muted);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), background 0.25s ease, color 0.25s ease;
}
.cup-item.is-open .cup-chevron {
  transform: rotate(180deg);
  background: rgba(214,175,87,0.15); color: var(--gold);
  border-color: rgba(214,175,87,0.3);
}

.cup-body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.cup-item.is-open .cup-body { display: block; animation: fadeSlideDown 0.25s ease both; }
@keyframes fadeSlideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* ── VERTICAL TIMELINE ── */
.cup-timeline { padding-top: 20px; position: relative; }

.cup-tl-item {
  display: flex; gap: 0; position: relative;
  padding-bottom: 0;
  animation: tlDrawIn 0.4s ease both;
}
.cup-tl-item:nth-child(1) { animation-delay: 0.03s; }
.cup-tl-item:nth-child(2) { animation-delay: 0.11s; }
.cup-tl-item:nth-child(3) { animation-delay: 0.19s; }
.cup-tl-item:nth-child(4) { animation-delay: 0.27s; }
.cup-tl-item:nth-child(5) { animation-delay: 0.35s; }
@keyframes tlDrawIn { from { opacity:0; transform: translateY(-10px); } to { opacity:1; transform: translateY(0); } }

.cup-tl-dot-col {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 36px; margin-left: 16px;
}

.cup-tl-dot {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(148,163,184,0.4);
  background: rgba(148,163,184,0.15);
  position: relative; z-index: 1;
  transition: all 0.3s ease;
  margin-top: 4px;
}
.cup-tl-dot.dot-win {
  border-color: var(--green);
  background: rgba(16,185,129,0.2);
  box-shadow: 0 0 12px rgba(16,185,129,0.3);
}
.cup-tl-dot.dot-final {
  width: 18px; height: 18px; margin-top: 2px;
  border-color: var(--gold);
  background: rgba(214,175,87,0.25);
  box-shadow: 0 0 20px rgba(214,175,87,0.5);
}
.cup-tl-dot.dot-eliminated {
  border-color: var(--red);
  background: rgba(239,68,68,0.15);
  box-shadow: 0 0 12px rgba(239,68,68,0.25);
}
.cup-tl-dot.dot-runnerup {
  width: 18px; height: 18px; margin-top: 2px;
  border-color: #cbd5e1;
  background: rgba(203,213,225,0.2);
  box-shadow: 0 0 16px rgba(203,213,225,0.4);
}

.cup-tl-line {
  width: 2px; flex: 1; min-height: 28px;
  background: linear-gradient(to bottom, rgba(148,163,184,0.15), rgba(148,163,184,0.06));
  margin: 4px 0;
}
.cup-tl-item.tl-win .cup-tl-line { background: linear-gradient(to bottom, rgba(16,185,129,0.3), rgba(16,185,129,0.06)); }

.cup-tl-content {
  flex: 1; padding-bottom: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.cup-tl-item:last-child .cup-tl-content { padding-bottom: 0; }

.cup-tl-round {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  line-height: 1;
}
.cup-tl-item.tl-final .cup-tl-round { color: var(--gold); }

.cup-tl-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cup-tl-card:hover { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.09); }
.cup-tl-item.tl-final .cup-tl-card {
  border-color: rgba(214,175,87,0.2);
  background: rgba(214,175,87,0.04);
}
.cup-tl-item.tl-eliminated:last-child .cup-tl-card {
  border-color: rgba(239,68,68,0.2);
  background: rgba(239,68,68,0.04);
}
.cup-tl-item.tl-runnerup-end .cup-tl-card {
  border-color: rgba(203,213,225,0.2);
  background: rgba(203,213,225,0.04);
}

/* ── MATCH FIXTURE ── */
.cup-fixture-block { display: flex; flex-direction: column; gap: 5px; }
.cup-fixture-leg-label {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-align: center; letter-spacing: 0.5px;
}
.cup-fixture-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255,255,255,0.02); border-radius: 10px; padding: 8px 12px;
}
.cup-fixture-team {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0;
}
.cup-fixture-team.away { justify-content: flex-end; }
.cup-fixture-team-name {
  font-size: 13px; font-weight: 700; color: #cbd5e1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cup-fixture-team.is-us .cup-fixture-team-name { color: var(--gold2); font-weight: 800; }
.cup-fixture-score {
  font-size: 16px; font-weight: 900; color: #fff;
  padding: 4px 16px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  letter-spacing: 0.5px;
}
.cup-tl-item.tl-final .cup-fixture-score { background: rgba(214,175,87,0.15); color: var(--gold); }
.cup-tl-item.tl-eliminated:last-child .cup-fixture-score { background: rgba(239,68,68,0.1); }
.cup-tl-item.tl-runnerup-end .cup-fixture-score { background: rgba(203,213,225,0.12); }

.cup-tl-meta { display: flex; justify-content: center; }

.cup-tl-exit {
  font-size: 13px; font-weight: 700;
  color: var(--red); padding: 3px 10px; border-radius: 8px;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.15);
  white-space: nowrap;
}
.cup-tl-item.tl-champion-end .cup-tl-exit {
  color: var(--gold); background: rgba(214,175,87,0.1);
  border-color: rgba(214,175,87,0.2);
}
.cup-tl-exit-silver {
  color: #cbd5e1 !important; background: rgba(203,213,225,0.1) !important;
  border-color: rgba(203,213,225,0.25) !important;
}

/* ── AFRICA / CONTINENTAL COMPETITIONS ── */
.afr-list{ display:flex; flex-direction:column; gap:14px; }

.afr-item{
  background: var(--dark2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06); border-radius:20px; overflow:hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.afr-item:hover{ border-color: rgba(214,175,87,0.2); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.afr-item.is-open{ border-color: rgba(214,175,87,0.4); box-shadow: 0 0 40px rgba(214,175,87,0.06); }

.afr-item.status-none{ opacity:0.4; }
.afr-item.status-none .afr-header{ cursor:default; }

.afr-item.comp-cl{ border-right:4px solid #eab308; }
.afr-item.comp-cc{ border-right:4px solid #3b82f6; }
.afr-item.comp-arab{ border-right:4px solid #a855f7; }
.afr-item.comp-cl .afr-comp{ color:#eab308; }
.afr-item.comp-cc .afr-comp{ color:#60a5fa; }
.afr-item.comp-arab .afr-comp{ color:#c084fc; }

.afr-item.status-runnerup{
  border-color: rgba(203,213,225,0.4);
  background: radial-gradient(ellipse at 80% 0%, rgba(203,213,225,0.08), transparent 55%), var(--dark2);
  box-shadow: 0 0 40px rgba(203,213,225,0.06);
  position: relative;
}
.afr-item.status-runnerup::before{
  content:''; position:absolute; top:0; right:0; left:0; height:3px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
  box-shadow: 0 0 12px rgba(203,213,225,0.5);
}

.afr-header{
  padding:20px 24px; display:flex; align-items:center; justify-content:space-between;
  cursor:pointer; gap:14px; transition: background 0.2s ease;
}
.afr-header:hover{ background: rgba(255,255,255,0.015); }

.afr-header-right{ display:flex; align-items:center; gap:16px; flex:1; min-width:0; }
.afr-header-text{ min-width:0; flex:1; }

.afr-edition{ font-size:20px; font-weight:900; color:#fff; letter-spacing:-0.3px; line-height:1.2; }
.afr-item.status-runnerup .afr-edition{ color:#cbd5e1; text-shadow: 0 0 16px rgba(203,213,225,0.35); }

.afr-comp{ font-size:12px; color: #94a3b8; font-weight:700; margin-top:2px; }
.afr-result-badge{
  display:inline-block; margin-top:6px; font-size:11px; font-weight:700;
  padding:3px 12px; border-radius:20px; background: rgba(255,255,255,0.05); color:var(--muted);
  border:1px solid rgba(255,255,255,0.07);
}
.afr-result-badge.badge-runnerup{ background: rgba(203,213,225,0.12); color:#cbd5e1; border-color: rgba(203,213,225,0.28); animation: badgePulse 2.4s ease-in-out infinite; }
.afr-result-badge.badge-qf{ background: rgba(139,92,246,0.1); color:#c4b5fd; border-color: rgba(139,92,246,0.2); }
.afr-result-badge.badge-r2{ background: rgba(59,130,246,0.1); color:#93c5fd; border-color: rgba(59,130,246,0.2); }

.afr-chevron{
  width:28px; height:28px; border-radius:50%; flex-shrink:0;
  background: rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center; font-size:12px; color:var(--muted);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), background 0.25s ease, color 0.25s ease;
}
.afr-item.is-open .afr-chevron{ transform: rotate(180deg); background: rgba(214,175,87,0.15); color:var(--gold); border-color: rgba(214,175,87,0.3); }


/* Accordion body */
.afr-body{ display:none; padding:0 24px 24px; border-top:1px solid rgba(255,255,255,0.04); }
.afr-item.is-open .afr-body{ display:block; animation: fadeSlideDown 0.25s ease both; }

.afr-stage-block{ margin-top:20px; }
.afr-stage-block:first-child{ margin-top:20px; }
.afr-stage-title{
  font-size:12px; font-weight:800; color:#7dd3fc; margin-bottom:10px;
  letter-spacing:0.3px; display:flex; align-items:center; gap:6px;
}
.afr-round-label{ font-size:10px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.6px; margin: 12px 0 6px; }
.afr-round-label:first-child{ margin-top:0; }

.afr-fixture-block{ display:flex; flex-direction:column; gap:5px; margin-bottom:8px; }
.afr-fixture-block:last-child{ margin-bottom:0; }
.afr-fixture-leg-label{ font-size:10px; font-weight:700; color:var(--muted); text-align:center; letter-spacing:0.5px; }

.afr-fixture-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background: rgba(255,255,255,0.02); border-radius:10px; padding:8px 12px;
}
.afr-fixture-team{ display:flex; align-items:center; gap:6px; flex:1; min-width:0; }
.afr-fixture-team.away{ justify-content:flex-end; }
.afr-fixture-team-name{
  font-size:13px; font-weight:700; color:#cbd5e1;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.afr-fixture-team.is-us .afr-fixture-team-name{ color:var(--gold2); font-weight:800; }
.afr-fixture-score{
  font-size:16px; font-weight:900; color:#fff;
  padding:4px 16px; border-radius:8px; flex-shrink:0;
  background: rgba(255,255,255,0.06);
  font-variant-numeric: tabular-nums; white-space:nowrap; letter-spacing:0.5px;
}
.afr-fixture-row.champion-leg .afr-fixture-score{ background: rgba(214,175,87,0.15); color:var(--gold); }
.afr-fixture-row.runnerup-leg .afr-fixture-score{ background: rgba(203,213,225,0.12); color:#cbd5e1; }

.afr-round-meta{ display:flex; justify-content:center; margin-top:6px; }
.afr-exit-tag{
  font-size:12px; font-weight:700; padding:4px 14px; border-radius:20px;
  background: rgba(239,68,68,0.08); color:var(--red); border:1px solid rgba(239,68,68,0.18);
}
.afr-exit-tag.advance{ background: rgba(16,185,129,0.08); color: var(--green); border-color: rgba(16,185,129,0.18); }
.afr-exit-tag.champion-tag{ background: rgba(214,175,87,0.12); color:var(--gold); border-color: rgba(214,175,87,0.25); }
.afr-exit-tag.runnerup-tag{ background: rgba(203,213,225,0.1); color:#cbd5e1; border-color: rgba(203,213,225,0.22); }

/* ── GROUP STAGE ── */
.afr-group-matches{ display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.afr-matchday-tag{ font-size:10px; font-weight:800; color:var(--muted); min-width:52px; flex-shrink:0; text-align:center; }
.afr-fixture-row.group-row{ gap:12px; }

.afr-standings-wrap{ overflow-x:auto; border-radius:12px; border:1px solid rgba(255,255,255,0.06); }
.afr-standings{ width:100%; border-collapse:collapse; font-size:12px; min-width:420px; }
.afr-standings th{ padding:9px 8px; background: rgba(255,255,255,0.03); color:var(--muted); font-weight:700; font-size:10px; text-align:center; }
.afr-standings td{ padding:9px 8px; text-align:center; color:#cbd5e1; border-top:1px solid rgba(255,255,255,0.04); }
.afr-standings td:nth-child(2){ text-align:right; font-weight:700; color:#fff; }
.afr-standings tr.is-us{ background: rgba(214,175,87,0.08); }
.afr-standings tr.is-us td{ color:var(--gold2); font-weight:800; }
.afr-standings tr.is-us td:nth-child(2){ color:var(--gold); }
.afr-standings td:first-child{ font-weight:800; }
.afr-standings td:last-child{ font-weight:800; }
.afr-milestone-banner{
  display:flex; align-items:center; gap:10px; padding:12px 16px; margin-bottom:16px;
  background: linear-gradient(90deg, rgba(214,175,87,0.12), transparent);
  border:1px solid rgba(214,175,87,0.25); border-radius:12px;
  font-size:12px; font-weight:700; color:var(--gold);
}

/* ── TRANSFERS ── */
.transfers-container { display: flex; flex-direction: column; gap: 4px; }
.transfer-season { background: var(--dark2); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.04); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.transfer-season.is-open { border-color: var(--gold); }

.t-name-latin{ font-size: 0.80rem; color: rgba(255, 255, 255, 0.75); font-weight:600; direction:ltr; unicode-bidi:isolate; flex-shrink:0; margin-right: auto }
/* ── RECORDS: SUB-NAVIGATION ── */
.records-subnav{
  display:flex;
  gap:10px;
  margin-bottom:26px;
  flex-wrap:wrap;
}

.records-subtab{
  flex:1;
  min-width:220px;
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--dark2);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:14px;
  padding:16px 20px;
  cursor:pointer;
  transition:border-color 0.2s ease, background 0.2s ease;
}

.records-subtab:hover{
  background:rgba(255,255,255,0.03);
}

.records-subtab.active{
  border-color:var(--gold);
  background:rgba(214,175,87,0.06);
}

.records-subtab-icon{
  font-size:26px;
  flex-shrink:0;
}

.records-subtab-title{
  font-size:17px;
  font-weight:800;
  color:#fff;
  line-height:1.4;
}

.records-subtab-sub{
  font-size:13px;
  color:var(--muted);
  font-weight:600;
  margin-top:3px;
  line-height:1.5;
}

/* ── RECORDS: HOSTING ── */
.hv-section-title{ font-size:15px; font-weight:800; color:var(--gold2); margin:26px 0 14px; display:flex; align-items:center; gap:8px; }
.hv-section-sub{ font-size:11px; color:var(--muted); font-weight:600; }

/* ── مقدمة الصفحة (Intro) — رقم واحد فقط، لا تكرار لاحقًا ── */
.hv-intro{
  position:relative; overflow:hidden; text-align:center; padding:26px 22px 24px; margin-bottom:8px;
  background: radial-gradient(circle at 50% 0%, rgba(248,113,113,.1), transparent 55%), var(--dark2);
  border:1px solid rgba(248,113,113,.16); border-radius:18px;
}
.hv-intro::before{
  content:""; position:absolute; top:0; left:16%; width:68%; height:2px;
  background:linear-gradient(90deg, transparent, #f87171, transparent); box-shadow:0 0 14px rgba(248,113,113,.55);
}
.hv-intro-num{
  font-size:clamp(42px,6vw,60px); line-height:1; font-weight:950; letter-spacing:-2px; color:#fff;
  background:linear-gradient(180deg, #fff 0%, #fecaca 50%, #f87171 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.hv-intro-txt{ max-width:480px; margin:8px auto 0; font-size:14px; line-height:1.85; color:var(--muted); }
.hv-intro-txt strong{ color:#fff; font-weight:800; }
.hv-intro-stats{ display:flex; justify-content:center; gap:26px; margin-top:16px; flex-wrap:wrap; }
.hv-intro-stat{ display:flex; flex-direction:column; align-items:center; gap:1px; }
.hv-intro-stat .n{ font-size:19px; font-weight:900; color:var(--gold2); }
.hv-intro-stat .l{ font-size:10.5px; color:var(--muted); font-weight:700; }

/* ── الخريطة + الملاعب — Two-Column على الديسكتوب ── */
.hv-map-venues-grid{ display:grid; grid-template-columns: 0.95fr 1.05fr; gap:20px; align-items:start;}
.hv-col-title{ font-size:13px; font-weight:800; color:var(--gold2); margin-bottom:12px; }
@media (max-width:900px){ .hv-map-venues-grid{ grid-template-columns:1fr; } }


@media (max-width:480px){
  .stat-card{ min-width:140px; padding:16px 10px; }
  .stat-num{ font-size:26px; }
  .comp-col{ padding:0 10px; border-left:none; border-top:1px solid rgba(255,255,255,0.08); }
  .nav .tab{ min-width:110px; font-size:11px; padding:10px 8px; }
  .cup-progress-line{ width:14px; }
  .afr-standings{ font-size:10px; }
}

/* بطاقات صغيرة موحدة الحجم — شبكة 4 أعمدة */
/* الحاوية الرئيسية - شبكة أنيقة وعصرية جداً لشاشات العرض */
.hv-fixed-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 30px; /* مسافة واسعة تمنح التصميم فخامة */
  padding: 40px 20px;
  direction: rtl;
}

/* العنصر نفسه - تحول إلى نص عائم نقي بدون صناديق */
.hv-chip {
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center;
  position: relative;
  background: transparent; /* إلغاء الخلفيات التقليدية */
  padding: 20px; 
  height: 90px; 
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* شعاع الليزر النحيف أسفل كل عنصر للفصل بين البيانات */
.hv-chip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.2), transparent);
  transition: all 0.4s ease;
}

/* 🔥 تأثير التمرير (Hover) - بقعة ضوء سينمائية خارقة */
.hv-chip:hover { 
  transform: translateY(-6px); /* ارتفاع سلس للأعلى */
  /* توليد خلفية ضوئية متوهجة وناعمة جداً خلف النص كأنها كشاف إضاءة */
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0) 70%);
}

/* تحول شعاع الليزر إلى نيون مشتعل عند تمرير الماوس */
.hv-chip:hover::after {
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, #ff7676, #ef4444, transparent);
  filter: drop-shadow(0 0 8px #ef4444); /* توهج ليزري حقيقي */
}

/* نص العنوان - خط ناصع وعصري */
.hv-chip-label { 
  font-size: 14px; 
  font-weight: 700; 
  color: #94a3b8; /* لون رمادي أنيق يتوهج عند الاقتراب */
  line-height: 1.5; 
  overflow: hidden; 
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

/* النص يصبح أبيض وناصع عند الـ Hover */
.hv-chip:hover .hv-chip-label {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* عداد المباريات الرقمي - ضوء لوحة النتائج */
.hv-chip-count { 
  font-size: 18px; /* حجم كبير وواضح جداً */
  font-weight: 900; 
  color: #f87171; 
  font-family: system-ui, -apple-system, sans-serif;
  transition: all 0.3s ease;
  margin-top: 5px;
}

/* الرقم ينبض ويتوهج بالكامل باللون الأحمر */
.hv-chip:hover .hv-chip-count {
  color: #ff4d4d;
  transform: scale(1.1); /* الرقم يكبر ويقترب من المشاهد */
  text-shadow: 0 0 15px rgba(239, 68, 68, 0.8), 0 0 30px rgba(239, 68, 68, 0.4);
}

/* 📱 هندسة التجاوب السلس مع الهواتف والجوالات */
@media (max-width: 1024px) {
  .hv-fixed-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .hv-fixed-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 20px 10px; }
  .hv-chip { height: 80px; padding: 10px; }
  .hv-chip-label { font-size: 12.5px; }
  .hv-chip-count { font-size: 20px; }
}

@media (max-width: 400px) {
  .hv-fixed-grid { grid-template-columns: repeat(1, 1fr); }
}



/* خريطة المغرب — SVG واحد موحّد الإحداثيات (مسارات + دوائر) */
/* حاوية الخريطة الخارجية - لضمان محاذاة الارتفاع مع قائمة الملاعب */
.hv-map-wrap { 
    margin-bottom: 8px; 
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* لضمان توزيع المفتاح بالأسفل بشكل أنيق */
}

/* جسم الخريطة - الحاوية المستضيفة */
.hv-map {
    position: relative; 
    width: 100%; 
    max-width: 100%; 
    height: 520px; /* يحاذي ارتفاع الملاعب تماماً */
    margin: 0 auto; 
    overflow: hidden; /* لإبقاء الخريطة داخل المربع الفخم ومنع تمددها خارج البطاقة */
    border-radius: 14px;
    background: radial-gradient(circle at 50% 35%, rgba(239, 68, 68, 0.09), transparent 70%);
    cursor: grab; /* يتغير شكل الفأرة ليد تدل على إمكانية السحب */
}

/* عند الضغط والسحب يتغير شكل الفأرة إلى يد مغلقة */
.hv-map:active {
    cursor: grabbing;
}

/* الـ SVG يعود لحجمه الطبيعي والتحويل سينتج برمجياً */
.hv-map-svg { 
    width: 100%; 
    height: 100%; 
    display: block; 
    overflow: visible; 
    transform-origin: 0px 0px; /* ضروري جداً ليكون الزووم في مكان إشارة الفأرة تماماً */
    transition: transform 0.1s cubic-bezier(0.25, 1, 0.5, 1); /* نعومة فائقة أثناء الحركة */
    user-select: none;
}



/* مسارات أقاليم المغرب الفاخرة بقوام زجاجي مدمج */
.morocco-region { 
    fill: rgba(255, 255, 255, 0.03); 
    stroke: rgba(239, 68, 68, 0.35); 
    stroke-width: 1.1; 
    vector-effect: non-scaling-stroke; 
    transition: all 0.3s ease; 
}

/* تأثير أنيق عند حركية الماوس */
.hv-map:hover .morocco-region { 
    fill: rgba(239, 68, 68, 0.04); 
    stroke: rgba(239, 68, 68, 0.45);
}

.morocco-region:hover,
.morocco-region.is-active {
    fill: rgba(239, 68, 68, 0.12) !important;
    stroke: #ef4444 !important;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.3));
}

/* مؤشرات المدن النقاط النيون المضيئة */
.city-marker { 
    cursor: pointer; 
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.city-marker:hover,
.city-marker.is-active {
    transform: scale(1.3); /* تكبير النقطة بشكل واضح عند التفاعل */
}

/* النقطة الحمراء */
.city-dot {
    stroke: #ffffff; 
    stroke-width: 1.4; 
    vector-effect: non-scaling-stroke;
    fill: #ef4444; 
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.85)); /* زيادة قوة التوهج لتتناسق مع الزووم */
    animation: mapDotPulse 2.5s ease-in-out infinite;
}

/* النقطة الذهبية */
.city-marker.is-home .city-dot {
    fill: var(--gold); 
    filter: drop-shadow(0 0 12px rgba(214, 175, 87, 0.95)); 
    stroke: #ffffff; 
    stroke-width: 1.8;
}

@keyframes mapDotPulse { 
    0%, 100% { 
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.9));
    } 
    50% { 
        opacity: 0.7;
        filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4));
    } 
}

/* النوافذ التنبيهية المتناسقة مع الحجم الجديد */
.city-tip { 
    opacity: 0; 
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    pointer-events: none; 
}

.city-marker:hover .city-tip,
.city-marker.is-active .city-tip { 
    opacity: 1; 
}

.city-tip-bg { 
    fill: #090d16; 
    stroke: rgba(255, 255, 255, 0.08); 
    stroke-width: 0.6; 
    rx: 5px; 
}

.city-tip-name { 
    fill: #ffffff; 
    font-size: 7.5px; 
    font-weight: 800; 
    font-family: 'Cairo', sans-serif; 
}

.city-tip-count { 
    fill: #f87171; 
    font-size: 6.5px; 
    font-weight: 800; 
    font-family: 'Cairo', sans-serif; 
}

.city-marker.is-home .city-tip-count { 
    fill: var(--gold); 
}

/* مفتاح الخريطة السفلي المتزن */
.hv-map-legend { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-top: auto; /* يدفعه لأسفل الحاوية تماماً ليحاذي نهاية البطاقات */
    padding-top: 14px;
    flex-wrap: wrap; 
}

.legend-item { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 11px; 
    color: var(--muted); 
    font-weight: 600; 
}

.legend-dot { 
    width: 9px; 
    height: 9px; 
    border-radius: 50%; 
    flex-shrink: 0; 
}

.legend-dot-home { 
    background: var(--gold); 
    box-shadow: 0 0 8px rgba(214, 175, 87, 0.6);
}

.legend-dot-away { 
    background: #ef4444; 
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* قائمة الملاعب — Accordion، ملعب واحد لكل عنصر */
.hv-venue-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-height: 520px; overflow-y: auto; padding: 4px; }
.hv-venue-list::-webkit-scrollbar { width: 4px; }
.hv-venue-list::-webkit-scrollbar-track { background: transparent; }
.hv-venue-list::-webkit-scrollbar-thumb { background: rgba(239, 68, 68, 0.2); border-radius: 10px; }
.hv-venue-item { background: linear-gradient(135deg, rgba(21, 27, 38, 0.8), rgba(15, 23, 42, 0.5)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.03); border-radius: 10px; overflow: hidden; position: relative; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.hv-venue-item:hover { border-color: rgba(239, 68, 68, 0.35); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.12); background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.7)); }
.hv-venue-item.is-open { border-color: rgba(239, 68, 68, 0.5); box-shadow: 0 0 15px rgba(239, 68, 68, 0.1); }
.hv-venue-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; cursor: pointer; }
.hv-venue-count { display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25); border-radius: 8px; width: 50px; height: 50px; font-size: 17px; font-weight: 900; color: #f87171; text-shadow: 0 0 10px rgba(239, 68, 68, 0.3); line-height: 1; flex-shrink: 0; }
.hv-venue-count span { font-size: 9.5px; color: #94a3b8; font-weight: 700; margin-top: 2px; text-shadow: none; }
.hv-venue-info { flex: 1; min-width: 0; text-align: right; }
.hv-venue-name { font-size: 12.5px; font-weight: 800; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-venue-city { font-size: 10px; color: #64748b; font-weight: 600; margin-top: 2px; }
.hv-venue-chevron { font-size: 10px; color: rgba(255, 255, 255, 0.2); transition: transform 0.2s ease; flex-shrink: 0; }
.hv-venue-item.is-open .hv-venue-chevron { transform: rotate(180deg); color: #f87171; }
.hv-venue-body { display: none; padding: 2px 12px 12px; border-top: 1px solid rgba(255, 255, 255, 0.02); background: rgba(0, 0, 0, 0.2); }
.hv-venue-item.is-open .hv-venue-body { display: block; animation: fadeSlideDown 0.22s ease-out both; }
.hv-venue-group-lbl { font-size: 10px; font-weight: 800; color: var(--gold2); margin-bottom: 4px; }
.hv-venue-line { display: flex; justify-content: space-between; font-size: 11px; color: #cbd5e1; padding: 5px 2px; border-bottom: 1px dashed rgba(255, 255, 255, 0.05); }
.hv-venue-line:last-child { border-bottom: none; }
.hv-venue-line b { color: #f87171; font-weight: 800; }

@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }


/* ==========================================================================
   خاص بالهواتف المحمولة والشاشات الصغيرة: تحويل القائمة لعمود واحد لتجنب التعارض
   ========================================================================== */
@media (max-width: 768px) {
    .hv-venue-list { 
        grid-template-columns: 1fr; /* ملعب واحد في كل سطر */
        gap: 8px; /* تقليص المسافة بين الملاعب في الموبايل */
        max-height: none; /* السماح للقائمة بالتمدد بشكل مرن على الموبايل إن لزم الأمر */
    }
    
    .hv-venue-header {
        padding: 8px 10px; /* تقليص إضافي بسيط يناسب شاشات اللمس الصغيرة */
    }

    .hv-venue-count {
        width: 46px;   /* حجم مثالي ومدمج جداً للموبايل */
        height: 46px;
        font-size: 15.5px;
    }

    .hv-venue-count span {
        font-size: 9px;
    }

    .hv-venue-name {
        font-size: 12px;
    }
}


/* توزيع المباريات حسب المسابقة — صف مضغوط */
.hv-comp-row{ display:flex; gap:10px; flex-wrap:wrap; }
.hv-comp-chip{
  flex:1; min-width:150px; text-align:center; background: var(--dark2); border:1px solid rgba(255,255,255,0.05);
  border-radius:12px; padding:14px 10px;
}
.hv-comp-num{ display:block; font-size:22px; font-weight:900; color:#f87171; }
.hv-comp-lbl{ display:block; font-size:11.5px; color:var(--muted); font-weight:700; margin-top:3px; }

/* رحلة الاستضافة عبر المواسم — Accordion مضغوط */
.hv-seasons-list{ display:flex; flex-direction:column; gap:8px; }
.hv-season-row{ background: var(--dark2); border:1px solid rgba(255,255,255,0.04); border-radius:12px; overflow:hidden; transition:border-color 0.2s ease; }
.hv-season-row.is-open{ border-color:rgba(239,68,68,0.3); }
.hv-season-header{ display:flex; flex-direction:column; gap:10px; padding:12px 15px; cursor:pointer; transition:background 0.2s ease; }
.hv-season-header:hover{ background: rgba(255,255,255,0.015); }
.hv-season-header-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.hv-season-label{ font-size:13.5px; font-weight:800; color:#fff; white-space:nowrap; }
.hv-season-count{ font-size:11px; font-weight:800; color:#fff; background: rgba(239,68,68,0.15); border:1px solid rgba(239,68,68,0.3); padding:3px 10px; border-radius:20px; white-space:nowrap; flex-shrink:0; font-variant-numeric: tabular-nums; }
.hv-season-count-lbl{ font-weight:700; color:#fca5a5; }
.hv-season-circles{ display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.hv-circle-group{ display:flex; align-items:center; gap:6px; }
.hv-circle-group-lbl{ font-size:9.5px; font-weight:700; color:var(--muted); white-space:nowrap; }
.hv-circle-dots{ display:flex; flex-wrap:wrap; gap:3px; max-width:230px; }
.hv-circle-dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.hv-circle-dot.is-red{ background:#ef4444; box-shadow:0 0 4px rgba(239,68,68,0.6); }
.hv-circle-dot.is-green{ background:var(--green); box-shadow:0 0 4px rgba(16,185,129,0.5); }
.hv-circles-legend{ display:flex; justify-content:center; gap:20px; margin-bottom:14px; flex-wrap:wrap; }
.hv-circles-legend .legend-item{ display:flex; align-items:center; gap:6px; font-size:11px; color:var(--muted); font-weight:600; }
.hv-legend-dot-green{ width:9px; height:9px; border-radius:50%; background:var(--green); box-shadow:0 0 6px rgba(16,185,129,0.5); }
.hv-legend-dot-red{ width:9px; height:9px; border-radius:50%; background:#ef4444; box-shadow:0 0 6px rgba(239,68,68,0.5); }
.hv-season-body{ display:none; padding:0 15px 14px; }
@media (max-width:640px){
  .hv-circle-dot{ width:6px; height:6px; }
  .hv-circle-dots{ max-width:150px; }
  .hv-season-circles{ gap:9px; }
  .hv-circle-group{ gap:4px; }
}
.hv-season-row.is-open .hv-season-body{ display:block; animation: fadeSlideDown 0.2s ease both; }
.hv-season-venue-line{ display:flex; justify-content:space-between; font-size:11.5px; color:var(--muted); padding:3px 0; }
.hv-season-venue-line b{ color:#e2e8f0; font-weight:700; }

/* خاتمة توثيقية — بدون رقم مكرر */
.hv-closing{
  margin-top:28px; padding:18px 20px; text-align:center; font-size:13px; line-height:1.9; color:var(--muted);
  border-top:1px solid rgba(255,255,255,0.06);
}

@media (max-width:640px){
  .hv-venue-list{ max-height:none; }
}

/* حركة الوميض والنبض الخارج من مركز الدبوس */
.hv-marker-pulse {
  animation: mapPulse 1.6s infinite ease-out;
  transform-origin: 0px 0px; 
}

@keyframes mapPulse {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* تهيئة مجموعة الدبوس للتفاعل والتكبير عند التمرير */
.hv-marker-group {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* تكبير الدبوس بشكل ملحوظ عند تمرير الماوس أو تفعيله */
.hv-marker-group:hover, 
.hv-marker-group.is-active {
  transform: translate(var(--x), var(--y)) scale(1.35) !important;
}

/* لضمان بقاء الـ Tooltip الخاص بك متناسقاً وثابتاً فوق الدبوس الجديد */
.hv-marker-group .city-tip {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.hv-marker-group:hover .city-tip {
  opacity: 1;
}

/* الخلاصة الشاملة — الآن في نهاية الصفحة (Footer Summary) */
.hv-footer-summary{
  position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:30px 24px 26px; min-height:175px; margin-top:32px;
  background: radial-gradient(circle at 50% 20%, rgba(248,113,113,.14), transparent 45%), linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border:1px solid rgba(248,113,113,.18); border-radius:22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
}
.hv-footer-summary::before{
  content:""; position:absolute; top:0; left:12%; width:76%; height:2px;
  background:linear-gradient(90deg, transparent, #f87171, #fb7185, transparent);
  box-shadow:0 0 18px rgba(248,113,113,.7);
}
.hv-footer-summary::after{
  content:""; position:absolute; width:180px; height:180px; top:-80px; left:50%; transform:translateX(-50%);
  background:rgba(248,113,113,.09); filter:blur(35px); border-radius:50%; pointer-events:none;
}
.hv-footer-num{
  position:relative; z-index:1; font-size:clamp(48px,7vw,72px); line-height:1; font-weight:950; letter-spacing:-3px; color:#fff;
  background:linear-gradient(180deg, #fff 0%, #fecaca 45%, #f87171 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 8px 18px rgba(248,113,113,.18));
}
.hv-footer-txt{ position:relative; z-index:1; max-width:560px; margin-top:10px; font-size:16px; line-height:1.9; font-weight:500; color:var(--muted); }
.hv-footer-txt strong{ color:#fff; font-weight:800; }
.hv-footer-breakdown{ position:relative; z-index:1; display:flex; gap:22px; margin-top:16px; flex-wrap:wrap; justify-content:center; }
.hv-footer-bd-item{ display:flex; flex-direction:column; align-items:center; gap:2px; }
.hv-footer-bd-num{ font-size:20px; font-weight:900; color:#fff; }
.hv-footer-bd-lbl{ font-size:10.5px; color:var(--muted); font-weight:700; }

/* ── RECORDS: DISCIPLINARY — "ملف القضية" (Case File Dossier) ── */
.disc-hero{
  position:relative; overflow:hidden; border-radius:18px; padding:24px 22px; margin-top:26px;
  background: linear-gradient(135deg, rgba(220,38,38,0.12), rgba(0,0,0,0.25));
  border:1px solid rgba(220,38,38,0.3);
}
.disc-hero::before{ content:'⚖'; position:absolute; font-size:110px; left:-6px; bottom:-26px; opacity:0.06; color:#dc2626; }
.disc-hero-num{ font-size:44px; font-weight:900; color:#f87171; text-shadow:0 0 20px rgba(220,38,38,0.4); position:relative; z-index:1; }
.disc-hero-txt{ font-size:13px; color:var(--muted); line-height:1.7; margin-top:6px; position:relative; z-index:1; max-width:520px; }
.disc-hero-txt strong{ color:#fff; }

.disc-list{ display:flex; flex-direction:column; gap:12px; }
.disc-item{
  position:relative; background: var(--dark2); border:1px solid rgba(220,38,38,0.14); border-radius:14px; overflow:hidden;
  transition: border-color 0.25s ease;
}
.disc-item::before{ content:''; position:absolute; top:0; right:0; bottom:0; width:4px; background: linear-gradient(180deg, #dc2626, #7f1d1d); }
.disc-item.is-open{ border-color: rgba(220,38,38,0.4); }
.disc-header{
  display:flex; align-items:center; gap:12px; padding:16px 20px 16px 20px; cursor:pointer;
  transition: background 0.2s ease;
}
.disc-header:hover{ background: rgba(255,255,255,0.02); }
.disc-file-tag{ font-size:9px; font-weight:800; color:#f87171; background: rgba(220,38,38,0.12); border:1px solid rgba(220,38,38,0.3); padding:2px 8px; border-radius:6px; letter-spacing:0.5px; }
.disc-season{ font-size:14px; font-weight:800; color:#fff; flex:1; }
.disc-count-tag{ font-size:10px; font-weight:700; color:var(--muted); background: rgba(255,255,255,0.05); padding:3px 10px; border-radius:20px; }
.disc-chevron{ font-size:12px; color:var(--muted); transition: transform 0.3s ease; }
.disc-item.is-open .disc-chevron{ transform: rotate(180deg); color:#f87171; }

.disc-body{ display:none; padding:0 20px 18px; }
.disc-item.is-open .disc-body{ display:block; animation: fadeSlideDown 0.25s ease both; }

.disc-decision{ background: rgba(0,0,0,0.25); border:1px solid rgba(255,255,255,0.05); border-radius:12px; padding:16px; margin-bottom:10px; position:relative; }
.disc-decision:last-child{ margin-bottom:0; }
.disc-decision-text{ font-size:14px; color:#e2e8f0; line-height:1.8; font-weight:600; margin-bottom:12px; padding-bottom:12px; border-bottom:1px dashed rgba(255,255,255,0.08); }
.disc-label{ font-size:11px; font-weight:800; color:#f87171; letter-spacing:0.3px; }
.disc-label-home{ color:#f87171; }
.disc-label-away{ color:#fbbf24; }
.disc-tag-home{ border-color:rgba(239,68,68,0.25); background:rgba(239,68,68,0.06); }
.disc-tag-away{ border-color:rgba(251,191,36,0.25); background:rgba(251,191,36,0.06); }
.disc-trigger{ font-size:12.5px; color:var(--muted); line-height:1.7; margin-bottom:8px; }
.disc-appeal-wrap{ display:flex; align-items:flex-start; gap:8px; margin-bottom:8px; }
.disc-appeal-stamp{
  flex-shrink:0; font-size:9px; font-weight:900; color:#34d399; border:1.5px solid #34d399; border-radius:6px;
  padding:2px 6px; transform:rotate(-6deg); letter-spacing:0.5px;
}
.disc-appeal{ font-size:12.5px; color:var(--muted); line-height:1.7; }
.disc-affected{ margin-top:10px; }
.disc-affected-list{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.disc-match-tag{ font-size:11px; color:var(--muted); background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.06); padding:3px 9px; border-radius:8px; white-space:nowrap; }

@media (max-width:640px){
  .hv-bar-detail{ display:none; }
  .records-subtab{ min-width:100%; }
}

.transfer-season-hdr:hover{background:rgba(201,168,76,0.05);}
.transfer-season-hdr { padding: 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: rgba(22, 28, 38, 0.5); }
.transfer-season-title { font-size: 16px; font-weight: 700; color: #fff; }
.transfer-season-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.transfer-season-right { display: flex; align-items: center; gap: 0.5px; }
.t-count-in { background: rgba(16,185,129,0.15); color: var(--green); padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.t-count-out { background: rgba(239,68,68,0.15); color: var(--red); padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.transfer-chevron { font-size: 14px; color: var(--muted); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.transfer-season.is-open .transfer-chevron { transform: rotate(180deg); color: var(--gold); }

.transfer-body { display: none; padding: 22px; background: transparent; animation:accordionOpen .22s ease both; border-top: 1px solid rgba(255,255,255,0.03); }
.transfer-season.is-open .transfer-body { display: block; }

.transfer-period-tabs { display: flex; gap: 8px; margin-bottom: 20px; background: rgba(0,0,0,0.2); padding: 4px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.03); }
.transfer-period-tab { flex: 1; text-align: center; padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--muted); border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; background: transparent; border: none;}
.transfer-period-tab:hover { color: var(--text); }
.transfer-period-tab.summer-tab.active { border-bottom: 2px solid #eab308; color: #eab308; background: rgba(234, 179, 8, 0.05); }
.transfer-period-tab.winter-tab.active { border-bottom: 2px solid #3b82f6; color: #3b82f6; background: rgba(59, 130, 246, 0.05); }
.tab-badge { font-size: 10px; background: rgba(255,255,255,0.1); padding: 2px 7px; border-radius: 10px; color: var(--text); }

.transfer-period-panel { display: none; }
.transfer-period-panel.active { display: block; }

.t-in::before{background:linear-gradient(180deg,#5ecb8a,#3aaa6a);}
.t-out::before{background:linear-gradient(180deg,#e05a5a,#b03030);}
.transfer-row:hover{transform:translateX(-2px);}
.t-in:hover{border-color:rgba(94,203,138,0.2);background:rgba(94,203,138,0.04);}
.t-out:hover{border-color:rgba(224,90,90,0.2);background:rgba(224,90,90,0.04);}

.transfer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.transfer-column-title { font-size: 13px; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; }
.col-in .transfer-column-title { color: var(--green); }
.col-out .transfer-column-title { color: var(--red); }
.transfer-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 9px; margin-bottom: 5px; font-size: 13px; font-weight: 600; border: 1px solid transparent; gap:8px; background:var(--dark4); transition:.18s; position:relative; overflow:hidden; }
.transfer-row.t-in { border-right: 3px solid var(--green); }
.transfer-row.t-out { border-right: 3px solid var(--red); }
.t-dir { font-size: 10px; opacity: 0.6; }
.t-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 18px; background: rgba(0,0,0,0.15); border-radius: 10px; border: 1px dashed rgba(255,255,255,0.05); }

.transfer-summary { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.04); font-size: 12px; color: var(--muted); }

@media(max-width:768px){
  .transfer-cols { grid-template-columns: 1fr; }
}
.gate-credit a {color: #ffffff;text-decoration: none;}
.gate-credit a:hover {color: #d4af37;}








.transfer-cols{
  align-items:start;
}

.transfer-group{
  position:relative;
  margin:0 0 12px !important;
  padding:0 !important;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.065);
  border-radius:13px;
  background:rgba(10,13,18,.62);
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.transfer-group:last-child{
  margin-bottom:0 !important;
}

/* Category header is now the header of the card */
.transfer-group-title{
  position:relative;
  min-height:48px;
  margin:0 !important;
  padding:10px 12px 9px !important;
  border:0 !important;
  border-bottom:1px solid rgba(255,255,255,.055) !important;
  border-radius:0 !important;
  background:rgba(255,255,255,.025) !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1.45;
}

.transfer-group-title > span:first-child{
  display:flex;
  align-items:center;
  gap:8px;
}

/* Visual marker for every category */
.transfer-group-title > span:first-child::before{
  width:26px;
  height:26px;
  flex:0 0 26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.06);
  font-size:13px;
  content:"•";
}

/* Category-specific markers */
.transfer-group-new .transfer-group-title > span:first-child::before{
  content:"+";
  color:#5ecb8a;
  background:rgba(212,175,55,.09);
  border-color:rgba(212,175,55,.16);
}
.transfer-group-loan-in .transfer-group-title > span:first-child::before{
  content:"↙";
  color:#55b9c9;
  background:rgba(85,185,201,.09);
  border-color:rgba(85,185,201,.16);
}
.transfer-group-returned .transfer-group-title > span:first-child::before{
  content:"↩";
  color:#5ecb8a;
  background:rgba(94,203,138,.09);
  border-color:rgba(94,203,138,.16);
}
.transfer-group-permanent .transfer-group-title > span:first-child::before{
  content:"→";
  color:#e05a5a;
  background:rgba(224,90,90,.09);
  border-color:rgba(224,90,90,.16);
}
.transfer-group-loan-out .transfer-group-title > span:first-child::before{
  content:"↗";
  color:#b58cff;
  background:rgba(181,140,255,.09);
  border-color:rgba(181,140,255,.16);
}
.transfer-group-loan-ended .transfer-group-title > span:first-child::before{
  content:"↪";
  color:#ff7184;
  background:rgba(255,113,132,.09);
  border-color:rgba(255,113,132,.16);
}

.transfer-group-count{
  min-width:24px !important;
  height:24px !important;
  padding:0 7px !important;
  border-radius:8px !important;
  background:rgba(255,255,255,.07) !important;
  border:1px solid rgba(255,255,255,.06);
  font-size:10px !important;
}

/* Player list lives inside the category card */
.transfer-group-list{
  padding:8px 8px 9px;
  background:rgba(0,0,0,.08);
}

.transfer-group .transfer-row{
  margin:0 0 4px !important;
  border-radius:8px;
  background:rgba(29,37,50,.72);
}

.transfer-group .transfer-row:last-child{
  margin-bottom:0 !important;
}

.transfer-group:hover{
  border-color:rgba(212,175,55,.12);
}

/* Keep the two original columns intact */
.col-in,
.col-out{
  min-width:0;
}

/* Mobile: same cards, same hierarchy, one column */
@media(max-width:768px){
  .transfer-group-title{
    min-height:46px;
    padding:9px 10px !important;
  }

  .transfer-group-list{
    padding:7px;
  }
}

html.gate-already-entered #gatePage { display: none !important; }
/* ── MERCATO: transfer-status groups — preserve the original layout ── */
.transfer-group { margin: 0 0 13px; }
.transfer-group:last-child { margin-bottom: 0; }
.transfer-group-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 7px; padding: 5px 8px; border-radius: 7px; background: rgba(255,255,255,.025); border-bottom: 1px solid rgba(255,255,255,.055); font-size: 11px; font-weight: 800; }
.transfer-group-count { min-width: 21px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 10px; color: var(--text); }
.transfer-group-new .transfer-group-title { color: #5ecb8a; }
.transfer-group-loan-in .transfer-group-title { color: #55b9c9; }
.transfer-group-returned .transfer-group-title { color: #5ecb8a; }
.transfer-group-permanent .transfer-group-title { color: #e05a5a; }
.transfer-group-loan-out .transfer-group-title { color: #b58cff; }
.transfer-group-loan-ended .transfer-group-title { color: #9aa4b2; }
.transfer-group .transfer-row { margin-bottom: 5px; }
.transfer-group .transfer-row:last-child { margin-bottom: 0; }
@media(max-width:768px) {
  .transfer-group-title { font-size: 11px; }
}












/* ── TIMELINE COACHES ── */
.coaches-timeline { position: relative; padding-right: 24px; }
.coaches-timeline::before { content: ''; position: absolute; right: 5px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(to bottom, rgba(214,175,87,0.3), rgba(255,255,255,0.05)); }
.coach-item { display: flex; flex-direction: column; gap: 0px; margin-bottom: 18px; position: relative; }
.coach-item.is-temp { margin-bottom: 12px; }
.coach-dot-col { position: relative; flex-shrink: 0; width: 14px; }
.coach-dot { position: absolute; right: -24px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--dark); border: 3px solid var(--gold); z-index: 2; box-shadow: 0 0 10px rgba(214,175,87,0.35); }
.coach-dot.current { background: var(--gold); box-shadow: 0 0 14px rgba(214,175,87,0.7); animation: badgePulse 2.4s ease-in-out infinite; }
.coach-dot.temp-dot { border-color: #94a3b8; box-shadow: none; }
.coach-card { width: 100%; position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008)); border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; padding: 20px 24px; min-height: 108px; box-shadow: 0 10px 24px rgba(0,0,0,0.22); transition: transform .25s cubic-bezier(0.4,0,0.2,1), border-color .25s ease; }
.coach-card:hover { transform: translateY(-3px); border-color: rgba(214,175,87,0.28); }
.coach-card.current-coach { border-color: rgba(214,175,87,0.42); background: radial-gradient(ellipse at 92% 0%, rgba(214,175,87,0.1), transparent 60%), linear-gradient(135deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008)); box-shadow: 0 10px 30px rgba(214,175,87,0.1); }
.coach-card.temp-coach { opacity: 0.88; }
.coach-card.temp-coach:hover { transform: none; }
.coach-h-name-col { order: 1; flex-shrink: 0; min-width: 170px; }
.coach-h-breakdown { order: 2; flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 0; min-width: 180px; }
.coach-h-ring-col { order: 3; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.coach-ring { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.coach-ring-inner { width: 48px; height: 48px; border-radius: 50%; background: #0f1319; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; color: #fff; }
.coach-ring-empty { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; background: rgba(255,255,255,0.03); border: 2px dashed rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 22px; opacity: 0.6; }
.coach-ring-lbl { font-size: 10px; color: var(--muted); font-weight: 700; }
.coach-flag-chip { display: inline-block; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background-size: cover; background-position: center; }
.coach-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.flag-pt{ background-image:url('https://flagcdn.com/w320/pt.png'); }
.flag-ma{ background-image:url('https://flagcdn.com/w320/ma.png'); }
.flag-es{ background-image:url('https://flagcdn.com/w320/es.png'); }
.flag-be{ background-image:url('https://flagcdn.com/w320/be.png'); }
.flag-fr{ background-image:url('https://flagcdn.com/w320/fr.png'); }
.flag-tn{ background-image:url('https://flagcdn.com/w320/tn.png'); }
.flag-pl{ background-image:url('https://flagcdn.com/w320/pl.png'); }
.coach-name { font-size: 16px; font-weight: 800; color: #fff; }
.coach-card.temp-coach .coach-name { font-size: 14px; font-weight: 700; }
.coach-period { font-size: 12px; color: var(--muted); margin-top: 5px; }
.current-tag { background: var(--gold); color: var(--dark); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.coach-duration { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; margin-top: 6px; background: var(--dark4); color: var(--muted); border: 1px solid var(--border); }
.temp-tag { background: rgba(148,163,184,0.15); color: #cbd5e1; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(148,163,184,0.25); }
.coach-title-badge { background: rgba(214,175,87,0.15); color: var(--gold); font-size: 10px; font-weight: 700; padding: 2px 10px; border-radius: 20px; border: 1px solid rgba(214,175,87,0.3); }
.coach-title-badge.is-runnerup{background:rgba(203,213,225,.15);color:#cbd5e1;border-color:rgba(203,213,225,.3);}
.coach-note { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.6; background: rgba(255,255,255,0.02); border-radius: 8px; padding: 8px 10px; border: 1px solid rgba(255,255,255,0.05); width: 100%; }
.coach-temp-record { font-size: 13px; color: #cbd5e1; font-weight: 700; }
.coach-expand-chevron {
  position: absolute;
  left: 4.5%;
  bottom: 8px;
  font-size: 18px;
  line-height: 1;
  color: var(--gold, #666);
  cursor: pointer; 
}


.coach-comp-block { margin-bottom: 16px; background: rgba(255, 255, 255, 0.015); border: 1px solid rgba(255, 255, 255, 0.03); border-radius: 12px; padding: 12px 14px; }
.coach-comp-block:last-child { margin-bottom: 0; }
.coach-comp-title { font-size: 13px; font-weight: 800; color: #7dd3fc; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(125, 211, 252, 0.1); padding-bottom: 6px; }
.coach-comp-count { color: var(--muted); font-weight: 600; }
.coach-no-matches { font-size: 12px; color: var(--muted); padding: 10px; text-align: center; background: rgba(255,255,255, 0.01); border-radius: 8px; }
.coach-item:has(.coach-matches-panel.is-open) .coach-expand-chevron { transform: rotate(180deg); color: var(--gold); }
.comp-col { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 20px; border-left: 1px solid rgba(255,255,255,0.08); }
.comp-col:first-child { padding-right: 0; }
.comp-col:last-child { border-left: none; }
.comp-label { font-size: 9px; font-weight: 800; color: #7dd3fc; white-space: nowrap; letter-spacing: 0.4px; text-transform: uppercase; }
.comp-figures { display: flex; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.fig-win { color: var(--green); }
.fig-draw { color: #eab308; }
.fig-loss { color: var(--red); }
.comp-note { font-size: 10px; color: var(--muted); text-align: center; }

/* ==========================================================================
   أكواد خاصة بالهواتف والشاشات الصغيرة فقط (أصغر من 768 بكسل)
   ========================================================================== */
@media (max-width: 768px) {
  
  /* 1. جعل محتوى البطاقة بالكامل يتوسط عمودياً */
  .coach-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important; /* توسيط كل العناصر بداخل البطاقة */
    text-align: center !important; /* توسيط النصوص */
    gap: 20px !important;
    padding: 24px 16px 45px !important; 
  }

  /* 2. توسيط الاسم والشارات المصاحبة له */
  .coach-h-name-col {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* توسيط العلم والاسم */
    text-align: center !important;
  }
  
  .coach-card-top {
    justify-content: center !important; /* توسيط العلم بجانب الاسم */
    width: 100% !important;
  }

  /* 3. جعل الإحصائيات والدائرة تترتب تحت بعضها في المنتصف تماماً */
  .coach-h-breakdown {
    display: flex !important;
    flex-direction: column !important; /* تحويل الترتيب ليكون عمودياً تحت بعض */
    align-items: center !important; /* التوسيط الأفقي للدائرة والإحصائيات */
    justify-content: center !important;
    width: 100% !important;
    gap: 24px !important; /* مسافة أمان ممتازة بين الإحصائيات والدائرة */
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important; 
    padding-top: 20px !important;
  }

  /* 4. حل مشكلة الالتصاق: إضافة مساحة بين أسماء البطولات (البطولة / كأس العرش) */
  /* ملاحظة: الكود يفترض وجود أسطر منفصلة، سنستهدف نصوص العناوين أو الصفوف */
  .coach-h-breakdown > div, 
  .coach-h-breakdown p,
  .coach-h-breakdown text { 
    margin-bottom: 12px !important; /* دفع البطولات عن بعضها بمسافة عمودية */
  }

  /* إذا كانت البطولات منسقة كصفوف مستقلة، هذا السطر سيضمن تباعدها */
  .coach-h-breakdown br + font, 
  .coach-h-breakdown br + span {
    display: inline-block !important;
    margin-top: 15px !important; /* ترك مسافة أعلى كأس العرش */
  }

  /* 5. تثبيت وتوسيط السهم السفلي بدقة */
  .coach-expand-chevron {
    position: absolute !important;
    left: 50% !important;
    bottom: 10px !important;
    transform: translateX(-50%) !important;
    font-size: 24px !important;
    margin: 0 !important;
  }
}


.coach-season-wrapper { margin-bottom: 24px; background: rgba(0, 0, 0, 0.1); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.04); overflow: hidden; }
.coach-season-wrapper:last-child { margin-bottom: 0; }
.coach-season-header { background: rgba(214, 175, 87, 0.04); padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); border-right: 4px solid var(--gold); }
.coach-season-text { font-size: 13px; font-weight: 800; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.coach-season-body { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.hv-match-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; background: rgba(255, 255, 255, 0.01); border-bottom: 1px dashed rgba(255, 255, 255, 0.04); font-size: 12px; }
.hv-match-line:last-child { border-bottom: none; }
.hv-match-round { color: var(--muted); font-weight: 600; white-space: nowrap; }

@media (max-width: 640px) {
  .coach-season-body { padding: 10px; gap: 10px; }
  .hv-match-line { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
  .hv-match-opp { width: 100%; text-align: center; background: rgba(0, 0, 0, 0.15); padding: 4px; border-radius: 6px; }
}

/* ── MULTI-COLUMN RESPONSIVE MATCHES ── */
.coach-matches-panel { display: none; flex-direction: column; gap: 14px; max-height: 0; overflow: hidden; opacity: 0; padding: 0 20px; 
  background: rgba(15, 23, 42, 0.25); border-radius: 0 0 16px 16px; border: 1px solid rgba(255, 255, 255, 0.05); border-top: none; 
  transition: max-height 0.3s ease-out, opacity 0.25s ease, padding 0.4s ease; z-index: 1; box-sizing: border-box; }
.coach-matches-panel.is-open { max-height: 10000px; opacity: 1; padding: 24px 20px 20px 20px; border-color: rgba(214, 175, 87, 0.2); box-shadow: inset 0 4px 12px rgba(0,0,0,0.2); display: block; }
.coach-season-wrapper { display: flex; flex-direction: column; gap: 0px; margin-bottom: 16px; background: rgba(0, 0, 0, 0.15); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.03); overflow: hidden; width: 100%; box-sizing: border-box; }
.coach-season-wrapper:last-child { margin-bottom: 0; }
.coach-season-body { display: flex; flex-direction: column; gap: 16px; padding: 14px; width: 100%; box-sizing: border-box; }
.coach-comp-block { display: flex; flex-direction: column; gap: 12px; background: rgba(255, 255, 255, 0.01); border: 1px solid rgba(255, 255, 255, 0.02); border-radius: 10px; padding: 14px; width: 100%; box-sizing: border-box; }
.coach-comp-block { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.coach-comp-title { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: #38bdf8; border-bottom: 1px solid rgba(56, 189, 248, 0.08); padding-bottom: 6px; margin-bottom: 4px; }
.hv-match-line { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; background: rgba(0, 0, 0, 0.2); border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.02); width: 100%; box-sizing: border-box; }
.hv-match-round { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.hv-match-opp { font-size: 12px; color: #fff; text-align: center; width: 100%; direction: ltr; font-weight: 500; display: flex; justify-content: center; gap: 8px; }



@media (max-width:480px){
  .stat-card{ min-width:140px; padding:16px 10px; }
  .stat-num{ font-size:26px; }
  .comp-col{ padding:0 10px; border-left:none; border-top:1px solid rgba(255,255,255,0.08); }
  .nav .tab{ min-width:110px; font-size:11px; padding:10px 8px; }
  .cup-progress-line{ width:14px; }
  .afr-standings{ font-size:10px; }
}





/* ==========================================================================
   🎬 تصميم الـ Split-Grid الفاخر (نظام العمودين للمباريات)
   ========================================================================== */

/* الحاوية الرئيسية للمباريات */
.coach-matches-panel {
  display: none;
  opacity: 0;
  padding: 0;
  background: rgba(4, 6, 9, 0.96);
  border-radius: 0 0 22px 22px;
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: inset 0 12px 36px rgba(0, 0, 0, 0.6);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.coach-matches-panel.is-open {
  display: block;
  opacity: 1;
  padding: 26px 20px;
}

/* حاوية الموسم */
.coach-season-wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.85) 0%, rgba(9, 12, 17, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
  width: 100%;
  box-sizing: border-box;
}

.coach-season-wrapper:last-child {
  margin-bottom: 0;
}

.coach-season-header {
  background: linear-gradient(90deg, rgba(214, 175, 87, 0.15), transparent);
  padding: 16px 22px;
  border-bottom: 1px solid rgba(214, 175, 87, 0.15);
  border-right: 5px solid var(--gold);
}

.coach-season-text {
  font-family: 'Cairo', sans-serif;
  font-size: 14.5px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 15px rgba(214, 175, 87, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
}

.coach-season-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* ── 🌟 تحويل المسابقة إلى عمودين متوازيين بدقة ── */
.coach-comp-block {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important; /* عمودين متساويين بنسبة 50% لكل جانب */
  gap: 12px 16px; /* مسافة عرضية أوسع ومسافة طولية متناسقة */
  padding: 18px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.01);
  width: 100%;
  box-sizing: border-box;
}

/* عنوان المسابقة الممتد */
.coach-comp-title {
  grid-column: 1 / -1; /* يمتد ليشغل العمودين معاً */
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #38bdf8;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coach-comp-count {
  font-size: 11.5px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
}

/* ── 🎫 بطاقة المباراة الطولية الفخمة (Match Card) ── */
.hv-match-line {
  display: flex !important;
  flex-direction: row !important; /* عرض البيانات أفقياً بشكل طولي متناسق مع العمودين */
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(23, 30, 41, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  height: 54px !important; /* طول ثابت وموحد لكل البطاقات لمنع التشويه */
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* تأثير التمرير النيوني */
.hv-match-line:hover {
  transform: translateX(-4px) translateY(-1px) !important; /* يندفع برفق نحو اليمين للأمام */
  background: rgba(28, 38, 53, 0.75) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

/* الدور والجولة كـ Badge مدمج يسار البطاقة */
/* ── 🌟 كود الدور والجولة الذكي (الموحد للحاسوب والهاتف) ── */
.hv-match-round {
  font-family: 'Cairo', sans-serif !important;
  font-size: 10.5px !important;
  color: rgba(148, 163, 184, 0.85) !important;
  font-weight: 700 !important;
  background: rgba(0, 0, 0, 0.3) !important;
  padding: 4px 12px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
  box-sizing: border-box !important;

  /* 💻 خصائص العرض الافتراضية للحاسوب: */
  order: 1 !important;
  max-width: none !important;
  width: max-content !important; /* يتوسع كاملاً حسب طول الجملة */
  white-space: nowrap !important; /* يبقى في سطر واحد دون انقطاع */
  overflow: visible !important;
}

/* 📱 إعطاء أوامر خاصة بالهاتف فقط لإرجاعه للوسط كما كان */
@media (max-width: 992px) {
  .hv-match-round {
    order: unset !important; /* إلغاء الترتيب الجانبي للحاسوب */
    width: 100% !important;   /* يمتد على كامل عرض بطاقة الجوال */
    max-width: 100% !important;
    text-align: center !important; /* إرجاع النص للوسط تماماً 🎯 */
    margin: 0 auto 8px auto !important; /* ضبط الهوامش ليتوسط البطاقة */
    white-space: normal !important; /* السماح بالالتفاف في الجوال إن كانت الجملة عملاقة */
    display: block !important;
  }
}




/* حاوية أسماء الأندية والنتيجة */
.hv-match-opp {
  order: 2 !important;
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: auto !important;
}

/* تصميم لوحة الأرقام (النتيجة الدائرية الفخمة) */
.hv-match-opp strong {
  font-family: 'Cairo', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  padding: 3px 12px !important;
  border-radius: 8px !important;
  min-width: 48px !important;
  text-align: center !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  letter-spacing: 0.5px !important;
  z-index: 2;
}

/* 🟢 توهج إطارات الفوز */
.hv-match-opp strong.fig-win {
  color: var(--green) !important;
  background: rgba(16, 185, 129, 0.14) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}
.hv-match-line:has(.fig-win):hover {
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: -4px 0 15px rgba(16, 185, 129, 0.15) !important;
}

/* 🟡 توهج إطارات التعادل */
.hv-match-opp strong.fig-draw {
  color: #eab308 !important;
  background: rgba(234, 179, 8, 0.12) !important;
  border: 1px solid rgba(234, 179, 8, 0.3) !important;
}
.hv-match-line:has(.fig-draw):hover {
  border-color: rgba(234, 179, 8, 0.3) !important;
  box-shadow: -4px 0 15px rgba(234, 179, 8, 0.1) !important;
}

/* 🔴 توهج إطارات الهزيمة */
.hv-match-opp strong.fig-loss {
  color: var(--red) !important;
  background: rgba(239, 68, 68, 0.14) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}
.hv-match-line:has(.fig-loss):hover {
  border-color: rgba(239, 68, 68, 0.4) !important;
  box-shadow: -4px 0 15px rgba(239, 68, 68, 0.15) !important;
}

/* ── 📱 حماية التجاوب مع الجوال (التحول لعمود واحد تلقائياً) ── */
@media (max-width: 992px) {
  .coach-comp-block {
    grid-template-columns: 1fr !important; /* إلغاء العمودين على الشاشات المتوسطة والصغيرة لمنع انضغاط النصوص */
    gap: 10px;
  }
  .hv-match-line {
    height: auto !important; /* ترك الارتفاع مرن في الموبايل */
    flex-direction: column !important; /* ترتيب عمودي مريح للموبايل */
    align-items: stretch !important;
    padding: 12px !important;
  }
  .hv-match-round {
    max-width: 100%;
    margin-bottom: 8px;
    text-align: center;
  }
}
/* 📱 إصلاح وتأمين ظهور أسماء الفرق كاملة على الهواتف */
@media (max-width: 992px) {
  .hv-match-opp {
    flex-direction: row !important; /* الإبقاء على المحاذاة الأفقية */
    justify-content: space-between !important;
    align-items: center !important;
    gap: 4px !important; /* تقليص المسافة بين العناصر لربح مساحة */
    width: 100% !important;
  }

  .hv-match-opp span {
    font-size: 11.5px !important; /* تصغير الخط قليلاً ليناسب الشاشة */
    white-space: normal !important; /* تفعيل خاصية الالتفاف والانتقال لسطر جديد تلقائياً */
    word-break: break-word !important; /* كسر الكلمات الطويلة إن لزم الأمر */
    line-height: 1.3 !important;
    max-width: 40% !important; /* إعطاء مساحة 40% كحد أقصى لكل فريق */
  }

  /* جعل الفريق الأيمن ينتهي جهة اليسار */
  .hv-match-opp span:first-child {
    text-align: left !important;
  }

  /* جعل الفريق الأيسر يبدأ جهة اليمين */
  .hv-match-opp span:last-child {
    text-align: right !important;
  }

  /* الحفاظ على أبعاد صندوق النتيجة ثابتة في المنتصف */
  .hv-match-opp strong {
    font-size: 11px !important;
    padding: 3px 8px !important;
    min-width: 42px !important;
    flex-shrink: 0 !important; /* منع صندوق النتيجة من الانضغاط أو التشويه */
  }
}

/* تحسين إضافي للشاشات الصغيرة جداً (أقل من 380 بكسل) */
@media (max-width: 380px) {
  .hv-match-opp span {
    font-size: 10.5px !important;
  }
}





/* ==========================================================================
   📱 الإصلاح النهائي والأكيد لتشوه أرقام الإحصائيات في الهاتف
   ========================================================================== */
@media (max-width: 768px) {
  
  /* استهداف الحاوية الرقمية مباشرة من دالتك */
  .comp-figures {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important; /* توزيع مسافات متساوية وفخمة بين فاز وتعادل وخسر */
    width: 100% !important;
    white-space: nowrap !important;
    /* إخفاء النقاط الحرة القديمة المشوهة برمجياً دون لمس الـ JS */
    color: transparent !important; 
    font-size: 0px !important;
  }

  /* حماية وإظهار نصوص (فاز، تعادل، خسر) بداخل الصندوق بألوانها الأصلية */
  .comp-figures .fig {
    font-size: 12px !important; /* إعادة حجم الخط الأصلي للنصوص المحمية */
    display: inline-block !important;
    white-space: nowrap !important; /* حظر انقسام الكلمة عن رقمها نهائياً */
  }
  
  /* تجميل الفواصل في الجوال لتصبح خطوط عمودية نيون خفيفة وأنيقة بدلاً من النقاط */
  .comp-figures .fig:not(:last-child)::after {
    content: "|" !important;
    margin-right: 8px !important;
    color: rgba(255, 255, 255, 0.15) !important;
    font-weight: 300 !important;
  }
}





/* ── السجل التأديبي: شريط شدّة بصري ── */
.disc-item{ display:grid; grid-template-columns:64px 1fr; }
.disc-item::before{ display:none; }
.disc-severity{
  background:linear-gradient(180deg,#dc2626,#7f1d1d);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  color:#fff; border-radius:14px 0 0 14px;
}
.disc-severity .n{ font-size:24px; font-weight:900; line-height:1; }
.disc-severity .l{ font-size:9px; opacity:.85; margin-top:2px; font-weight:700; }
.disc-body-wrap{ min-width:0; }
@media(max-width:480px){
  .disc-item{ grid-template-columns:52px 1fr; }
  .disc-severity .n{ font-size:19px; }
}





/* ==========================================================================
   1. حاوية المواسم الهادئة والفخمة (Season Groups)
   ========================================================================== */
.season-group-container {
  background: linear-gradient(145deg, rgba(15, 18, 25, 0.4) 0%, rgba(8, 10, 14, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 35px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  direction: rtl;
}

/* خط علوي ذهبي خافت وناعم جداً */
.season-group-container::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 175, 87, 0.2), transparent);
}

.season-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.season-group-title {
  font-family: 'Tajawal', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.season-total-n {
  color: #ff5252;
  font-weight: 700;
  font-size: 12px;
  background: rgba(255, 82, 82, 0.08);
  border: 1px solid rgba(255, 82, 82, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ==========================================================================
   2. بطاقة العقوبة (تم تقليل الـ Hover ليكون ناعماً وبدون تكبير وحركة عنيفة)
   ========================================================================== */
.disc-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: rgba(22, 27, 38, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; /* حذف حركة الـ transform والـ scale لجعلها مريحة */
  direction: rtl;
}

/* تأثير الـ Hover الجديد: مجرد إضاءة خفيفة جداً للحافة وتغير لون الخلفية بنعومة */
.disc-item:hover {
  background: rgba(28, 35, 49, 0.7);
  border-color: rgba(255, 82, 82, 0.2); /* إضاءة حمراء خافتة */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* ظل طبيعي بدون وهج مشع */
}

/* ==========================================================================
   3. مربع شدة العقوبة الجانبي (Severity) - تحسين التباين والألوان
   ========================================================================== */
.disc-severity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 85px;
  min-width: 85px;
  /* تدرج هادئ واحترافي */
  background: linear-gradient(135deg, #e53e3e 0%, #9b1c1c 100%);
  padding: 16px 8px;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  box-shadow: inset -3px 0 10px rgba(0, 0, 0, 0.2);
}

.disc-severity .n {
  font-family: 'Tajawal', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.disc-severity .l {
  font-family: 'Tajawal', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

/* ==========================================================================
   4. غلاف المحتوى والهيدر
   ========================================================================== */
.disc-body-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.disc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
}

.disc-file-tag {
  font-family: 'Tajawal', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fc8181;
  background: rgba(252, 129, 129, 0.06);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(252, 129, 129, 0.12);
}

.disc-chevron {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s, transform 0.3s;
}

.disc-item:hover .disc-chevron {
  color: #fc8181;
}

.disc-body { padding: 0 20px 20px; }

/* ==========================================================================
   5. شريط إبراز المباراة المتسببة (تم حذف الأنيمايشن الناري ليكون جاداً وصارماً)
   ========================================================================== */
.disc-trigger-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(270deg, rgba(229, 62, 62, 0.1) 0%, rgba(20, 24, 33, 0.3) 100%);
  border-right: 3px solid #e53e3e; /* خط أحمر كإنذار رسمي */
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.trigger-icon {
  font-size: 18px; /* تم إلغاء الأنيمايشن النابض لراحة العين بطلبك */
}

.trigger-details { display: flex; flex-direction: column; text-align: right; }
.trigger-lbl { font-family: 'Tajawal', sans-serif; font-size: 11px; font-weight: 700; color: #feb2b2; }
.trigger-name { font-family: 'Tajawal', sans-serif; font-size: 15px; font-weight: 800; color: #ffffff; }

/* ==========================================================================
   6. حاوية القرار المكتوب (تحسين القراءة والخط)
   ========================================================================== */
.disc-decision-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.disc-decision-text {
  color: #e2e8f0;
  font-family: 'Tajawal', sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  text-align: right;
  margin: 0;
}

/* ==========================================================================
   7. المباريات المتأثرة (أزرار الكبسولة المتزنة)
   ========================================================================== */
.disc-affected { margin-top: 16px; text-align: right; }
.disc-label { display: block; font-weight: 700; font-size: 12.5px; margin-bottom: 8px; font-family: 'Tajawal', sans-serif; }
.disc-label-home { color: #fc8181; }
.disc-label-away { color: #f6ad55; }

.disc-affected-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }

.disc-match-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  color: #ffffff;
  font-family: 'Tajawal', sans-serif;
}

.disc-tag-home { 
  border: 1px solid rgba(229, 62, 62, 0.15); 
  background: rgba(229, 62, 62, 0.06); 
}

.disc-tag-away { 
  border: 1px solid rgba(221, 107, 32, 0.15); 
  background: rgba(221, 107, 32, 0.06); 
}

/* ==========================================================================
   8. 📱 التجاوب الذكي والمثالي بنسبة 100% مع الهواتف (Responsive Mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .season-group-container { padding: 14px; margin-bottom: 25px; border-radius: 14px; }
  .season-group-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .season-group-title { font-size: 19px; }

  /* الهاتف يحتاج ترتيب طولي تماماً لمنع انضغاط النصوص والقرارات */
  .disc-item { 
    flex-direction: column !important; 
    border-radius: 12px; 
  }

  /* تحويل مربع الأرقام إلى شريط علوي أنيق في الهاتف يأخذ العرض بالكامل */
  .disc-severity {
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: row !important; /* الرقم والكلمة متجاورين أفقياً لتوفر المساحة */
    justify-content: center !important;
    gap: 8px;
    padding: 10px !important;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
  }

  .disc-severity .n { font-size: 26px; }
  .disc-severity .l { margin-top: 0; font-size: 12px; }

  .disc-header { padding: 12px 14px; }
  .disc-body { padding: 0 14px 14px; }
  .disc-trigger-banner { padding: 10px; margin-bottom: 12px; }
  .trigger-name { font-size: 13.5px; }
  .disc-decision-card { padding: 12px; margin-bottom: 12px; }
  .disc-decision-text { font-size: 13.5px; }
  .disc-match-tag { font-size: 11px; padding: 4px 10px; }
}












/* ==========================================================================\n   ARCHIVE POLISH — Mobile UX + Hosting Journey Shapes + Disciplinary Archive\n   ========================================================================== */

/* ── رحلة الاستضافة: لغة بصرية حسب نوع المسابقة (مطور بالكامل) ── */
.hv-journey-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hv-journey-group-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 18px;
}

/* مفتاح الشكل التوضيحي بجانب العنوان */
.hv-journey-shape-key {
  width: 12px;       /* تم تعديل العرض ليكون مربعاً أو دائرة مثالية */
  height: 12px;
  display: inline-block;
  flex: 0 0 12px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.hv-journey-shape-key.square { border-radius: 3px; color: #94a3b8; }
.hv-journey-shape-key.circle { border-radius: 50%; color: #94a3b8; }

/* حاوية الأشكال (الماركرز) */
.hv-journey-markers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 13px;
}

/* الماركر الأساسي (الحالة الافتراضية: رمادي شفاف/لم يلعب بعد) */
.hv-journey-marker {
  width: 14px;       /* تم تعديل الأبعاد لتصبح الأشكال متناسقة تماماً */
  height: 14px;
  display: inline-block;
  flex: 0 0 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .05);
  position: relative; /* مهم جداً لتشغيل الـ Tooltip */
  cursor: default;
  transition: transform .18s ease, box-shadow .18s ease, background .15s ease;
}

.hv-journey-marker.square { border-radius: 4px; }
.hv-journey-marker.circle { border-radius: 50%; }

/* الحالات اللونية (أحمر = خسارة / أخضر = فوز أو تأهل) */
.hv-journey-marker.is-red {
  background: linear-gradient(145deg, #ef4444, #b91c1c);
  border-color: rgba(248, 113, 113, .5);
  box-shadow: 0 0 6px rgba(239, 68, 68, .35);
}

.hv-journey-marker.is-green {
  background: linear-gradient(145deg, #22c55e, #15803d);
  border-color: rgba(74, 222, 128, .4);
  box-shadow: 0 0 6px rgba(34, 197, 94, .35);
}

/* تأثير تفاعلي رائع عند تمرير الفأرة فوق شكل محدد */
.hv-journey-marker:hover {
  transform: scale(1.3) !important;
  z-index: 3;
}
/* تأثير جماعي خفيف عند تمرير الفأرة فوق المجموعة بالكامل */
.hv-journey-group:hover .hv-journey-marker {
  transform: scale(1.05);
}

/* ── 💡 إضافة ميزة الـ Tooltip الذكي لأشكالك الجديدة بدون JS ── */
.hv-journey-marker[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 140%;
  right: 50%;
  transform: translateX(50%);
  background: #0b0e14;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 10;
  pointer-events: none;
}

/* أسطر الدليل السفلي (Legend) */
.hv-journey-legend { display: flex; align-items: center; gap: 12px; }
.hv-legend-square, .hv-legend-circle {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 5px;
  vertical-align: middle;
  background: rgba(255, 255, 255, .55);
}
.hv-legend-square { border-radius: 2px; }
.hv-legend-circle { border-radius: 50%; }


/* ── السجل التأديبي: هوية مستقلة كأرشيف زمني ── */
.disc-archive-hero{
  position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:26px;
  padding:28px 30px;margin:0 0 18px;border:1px solid rgba(239,68,68,.16);border-radius:20px;
  background:radial-gradient(circle at 85% 0%,rgba(239,68,68,.13),transparent 38%),linear-gradient(145deg,rgba(25,28,36,.88),rgba(10,13,19,.94));
  box-shadow:0 18px 45px rgba(0,0,0,.24);
}
.disc-archive-hero::before{content:'';position:absolute;top:0;right:12%;left:12%;height:1px;background:linear-gradient(90deg,transparent,rgba(248,113,113,.55),transparent);}
.disc-hero-copy{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;}
.disc-hero-eyebrow{display:inline-flex;align-items:center;gap:7px;color:#fca5a5;font-size:11px;font-weight:800;margin-bottom:7px;}
.disc-hero-copy h2{margin:0;color:#fff;font-size:clamp(24px,3vw,34px);font-weight:900;letter-spacing:-.5px;}
.disc-hero-copy p{margin:8px 0 0;max-width:650px;color:var(--muted);font-size:13px;line-height:1.9;}
.disc-hero-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;align-content:center;position:relative;z-index:1;}
.disc-stat{min-height:78px;padding:10px 12px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.025);display:flex;flex-direction:column;align-items:center;justify-content:center;}
.disc-stat strong{font-size:25px;line-height:1;color:#fff;font-weight:900;}
.disc-stat span{margin-top:5px;color:var(--muted);font-size:10.5px;font-weight:700;}
.disc-stat:first-child strong{color:#f87171;}
.disc-stat:nth-child(3) strong{color:#fbbf24;}
.disc-archive-intro{display:flex;align-items:center;justify-content:center;gap:10px;margin:20px 0 16px;color:#94a3b8;font-size:10.5px;font-weight:800;letter-spacing:.3px;}
.disc-intro-line{width:42px;height:1px;background:linear-gradient(90deg,transparent,rgba(239,68,68,.35));}
.disc-intro-line:last-child{background:linear-gradient(270deg,transparent,rgba(239,68,68,.35));}
.disc-timeline{position:relative;max-width:980px;margin:0 auto;padding:8px 0 6px;}
.disc-timeline::before{content:'';position:absolute;top:18px;bottom:18px;right:22px;width:2px;background:linear-gradient(180deg,rgba(239,68,68,.55),rgba(214,175,87,.12),rgba(255,255,255,.04));}
.disc-timeline-item{position:relative;display:grid;grid-template-columns:45px minmax(0,1fr);gap:16px;margin-bottom:16px;}
.disc-timeline-item:last-child{margin-bottom:0;}
.disc-timeline-marker{position:relative;z-index:2;width:45px;display:flex;justify-content:center;padding-top:18px;}
.disc-timeline-marker::before{content:'';position:absolute;top:20px;right:17px;width:12px;height:12px;border-radius:50%;background:#11161f;border:2px solid #ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.08),0 0 16px rgba(239,68,68,.22);}
.disc-timeline-marker span{position:absolute;top:39px;right:-1px;color:rgba(255,255,255,.22);font-size:8px;font-weight:900;letter-spacing:.5px;}
.disc-record-card{overflow:hidden;border:1px solid rgba(255,255,255,.055);border-radius:16px;background:linear-gradient(145deg,rgba(25,30,40,.72),rgba(12,15,22,.78));box-shadow:0 7px 22px rgba(0,0,0,.16);transition:border-color .25s ease,box-shadow .25s ease;}
.disc-record-card:hover{border-color:rgba(239,68,68,.2);box-shadow:0 12px 28px rgba(0,0,0,.22);}
.disc-record-header{width:100%;border:0;background:transparent;color:inherit;text-align:right;cursor:pointer;padding:17px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;font-family:inherit;}
.disc-record-heading{min-width:0;}
.disc-record-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:7px;}
.disc-season-pill{font-size:10px;font-weight:900;color:#fca5a5;background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.15);padding:4px 9px;border-radius:7px;}
.disc-record-heading h3{margin:0;color:#fff;font-size:15px;font-weight:900;}
.disc-record-heading p{margin:5px 0 0;color:#b8c0cd;font-size:12px;line-height:1.75;}
.disc-record-toggle{width:29px;height:29px;flex:0 0 29px;border:1px solid rgba(255,255,255,.08);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:18px;font-weight:400;transition:transform .25s ease,color .2s ease,border-color .2s ease,background .2s ease;}
.disc-record-card.is-open .disc-record-toggle{transform:rotate(45deg);color:#f87171;border-color:rgba(239,68,68,.3);background:rgba(239,68,68,.07);}
.disc-record-body{display:none;border-top:1px solid rgba(255,255,255,.045);padding:16px 18px 18px;animation:fadeSlideDown .25s ease both;}
.disc-record-card.is-open .disc-record-body{display:block;}
.disc-record-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.disc-panel{border:1px solid rgba(255,255,255,.05);border-radius:12px;padding:13px 14px;background:rgba(0,0,0,.16);}
.disc-trigger-panel{border-right:3px solid #ef4444;}
.disc-decision-panel{border-right:3px solid #d6af57;position:relative;}
.disc-panel-kicker{display:flex;align-items:center;gap:6px;color:#9ca7b7;font-size:10px;font-weight:900;margin-bottom:8px;}
.disc-trigger-text,.disc-decision-text{color:#e5e7eb;font-size:12.5px;line-height:1.85;font-weight:600;}
.disc-impact-badge{display:inline-flex;align-items:center;gap:6px;margin-top:11px;padding:5px 9px;border-radius:8px;background:rgba(239,68,68,.07);border:1px solid rgba(239,68,68,.12);color:#fca5a5;font-size:10px;font-weight:700;}
.disc-impact-badge strong{font-size:15px;color:#fff;}
.disc-appeal-card{margin-top:10px;padding:13px 14px;border-radius:12px;border:1px solid rgba(59,130,246,.14);border-right:3px solid #3b82f6;background:rgba(59,130,246,.045);}
.disc-appeal-card .disc-panel-kicker{color:#93c5fd;}
.disc-appeal-text{color:#dbeafe;font-size:12.5px;line-height:1.85;font-weight:600;}
.disc-no-appeal{display:flex;align-items:center;gap:7px;margin-top:10px;padding:10px 12px;border-radius:10px;border:1px dashed rgba(255,255,255,.07);color:#7f8b9d;font-size:10.5px;}
.disc-evidence-wrap{margin-top:14px;display:flex;flex-direction:column;gap:9px;}
.disc-section-label{color:#d1d5db;font-size:11px;font-weight:900;padding-bottom:3px;}
.disc-evidence-block{padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.018);border:1px solid rgba(255,255,255,.045);}
.disc-evidence-block.is-home{border-right:2px solid rgba(239,68,68,.5);}
.disc-evidence-block.is-away{border-right:2px solid rgba(245,158,11,.5);}
.disc-evidence-title{display:flex;align-items:center;gap:6px;color:#cbd5e1;font-size:10.5px;font-weight:800;margin-bottom:7px;}
.disc-evidence-title b{color:#fff;font-size:10px;background:rgba(255,255,255,.07);padding:2px 6px;border-radius:6px;}
.disc-evidence-icon{font-size:13px;}
.disc-affected-list{display:flex;flex-wrap:wrap;gap:6px;}
.disc-match-tag{font-size:10.5px!important;line-height:1.55;padding:5px 8px!important;border-radius:8px!important;white-space:normal!important;}
.disc-empty{padding:30px;text-align:center;border:1px dashed rgba(255,255,255,.08);border-radius:14px;color:var(--muted);}

/* ── السجل التأديبي: مواسم مستقلة + بطاقة هجينة ── */
.disc-season-group{margin-bottom:34px;}
.disc-season-group:last-child{margin-bottom:0;}
.disc-season-header{display:flex;align-items:center;gap:12px;margin-bottom:18px;padding-bottom:10px;border-bottom:1px solid rgba(214,175,87,.16);}
.disc-season-header h3{margin:0;color:var(--gold2);font-size:19px;font-weight:900;letter-spacing:-.2px;}
.disc-season-count{font-size:11px;font-weight:800;color:#94a3b8;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);padding:4px 11px;border-radius:20px;}

.disc-item2{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;margin-bottom:16px;}
.disc-item2:last-child{margin-bottom:0;}
.disc-item2-marker{position:relative;display:flex;flex-direction:column;align-items:center;}
.disc-item2-marker span{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#dc2626,#7f1d1d);color:#fff;font-size:13px;font-weight:900;border:2px solid rgba(255,255,255,.12);box-shadow:0 0 14px rgba(220,38,38,.3);flex-shrink:0;z-index:1;}
.disc-item2-line{flex:1;width:2px;background:linear-gradient(180deg,rgba(214,175,87,.4),rgba(214,175,87,.08));margin-top:6px;min-height:20px;}

.disc-card-toprow{display:flex;flex-wrap:wrap;gap:7px;padding:13px 18px 0;}
.disc-meta-chip{font-size:10.5px;font-weight:800;color:#cbd5e1;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);padding:4px 10px;border-radius:8px;display:inline-flex;align-items:center;gap:4px;}
.disc-meta-chip.warn{color:#fde047;background:rgba(234,179,8,.1);border-color:rgba(234,179,8,.22);}

.disc-record-header{padding:14px 18px 18px;width:100%;border:0;background:transparent;color:inherit;text-align:right;cursor:pointer;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;font-family:inherit;}
.disc-record-heading{min-width:0;flex:1;}
.disc-record-toggle{width:29px;height:29px;flex:0 0 29px;border:1px solid rgba(255,255,255,.08);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:18px;font-weight:400;transition:transform .25s ease,color .2s ease,border-color .2s ease,background .2s ease;}
.disc-item2.is-open .disc-record-toggle{transform:rotate(45deg);color:#f87171;border-color:rgba(239,68,68,.3);background:rgba(239,68,68,.07);}
.disc-record-body{display:none;padding:0 18px 18px;}
.disc-item2.is-open .disc-record-body{display:block;animation:fadeSlideDown .25s ease both;}
.disc-item2.is-open .disc-record-card{border-color:rgba(239,68,68,.2);}
.disc-trigger-eyebrow{display:block;font-size:18px;font-weight:800;color:#fca5a5;letter-spacing:.3px;margin-bottom:10px; text-align: center;}
.disc-trigger-board{background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:12px 14px;margin-bottom:2px;}
.disc-trigger-comp{font-size:10px;font-weight:800;color:#fca5a5;letter-spacing:.3px;margin-bottom:9px;text-align:center;}
.disc-trigger-fixture{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;}
.disc-trigger-team{min-width:0;overflow:hidden;}
.disc-trigger-team span{display:block;font-size:15px;font-weight:800;color:#cbd5e1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;}
.disc-trigger-team.away span{text-align:left;}
.disc-trigger-team.is-us span{color:var(--gold2);}
.disc-trigger-score{flex-shrink:0;display:inline-flex;align-items:center;gap:4px;font-size:17px;font-weight:900;color:#fff;background:rgba(220,38,38,.16);border:1px solid rgba(220,38,38,.32);border-radius:9px;padding:5px 13px;font-variant-numeric:tabular-nums;font-family:inherit;white-space:nowrap;}
.disc-trigger-dash{opacity:.5;font-weight:600;}
.disc-trigger-fallback{font-size:14px;color:#e5e7eb;font-weight:700;}

.disc-affected-row{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:9px;background:rgba(255,255,255,.018);border:1px solid rgba(255,255,255,.04);margin-bottom:6px;}
.disc-affected-row:last-child{margin-bottom:0;}
.disc-affected-row.is-home{border-right:2px solid rgba(239,68,68,.5);}
.disc-affected-row.is-away{border-right:2px solid rgba(245,158,11,.5);}
.disc-affected-icon{flex-shrink:0;font-size:10px;color:#f87171;font-weight:900;}
.disc-affected-txt{color:#e5e7eb;font-size:12.5px;font-weight:700;flex:1;min-width:0;}
.disc-affected-comp{flex-shrink:0;font-size:10.5px;color:#7f8b9d;font-weight:600;}

@media(max-width:640px){
  .disc-item2{grid-template-columns:32px minmax(0,1fr);gap:9px;}
  .disc-item2-marker span{width:30px;height:30px;font-size:11px;}
  .disc-trigger-score{font-size:15px;padding:4px 10px;}
  .disc-trigger-team{font-size:13px;}
  .disc-card-toprow{padding:11px 12px 0;}
  .disc-record-header{padding:11px 12px 14px;}
  .disc-season-header h3{font-size:16px;}
}
@media(max-width:420px){
  .disc-trigger-fixture{grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr);gap:6px;}
  .disc-trigger-team span{font-size:10px;white-space:normal;line-height:1.3;padding-bottom: 2px;}
  .disc-trigger-score{font-size:14px;padding:4px 8px;}
  .disc-trigger-board{padding:10px 10px;}
  .disc-record-header{flex-wrap:wrap;}
  .disc-record-toggle{align-self:flex-start;}
  .disc-meta-chip{font-size:9.5px;padding:3px 8px;}
  .disc-affected-row{flex-wrap:wrap;}
  .disc-affected-comp{width:100%;padding-right:19px;}
}

/* ── كأس العرش + الخارجية: ضبط Mobile UX فقط، بدون تغيير سطح المكتب ── */
@media (max-width:640px){
  .cup-list,.afr-list{gap:10px;}
  .cup-item,.afr-item{border-radius:14px;}
  .cup-header{padding:14px 15px;gap:10px;}
  .cup-header-right{gap:9px;min-width:0;}
  .cup-edition{font-size:17px;}
  .cup-result-badge{font-size:10px;padding:3px 9px;}
  .cup-progress{margin-top:9px;max-width:100%;overflow:hidden;}
  .cup-progress-step{min-width:13px;}
  .cup-progress-label{font-size:8px;}
  .cup-body{padding:0 11px 13px;}
  .cup-timeline{padding-top:14px;}
  .cup-tl-item{grid-template-columns:25px minmax(0,1fr);}
  .cup-tl-dot-col{width:25px;margin-left:9px;}
  .cup-tl-dot{width:11px;height:11px;border-width:2px;}
  .cup-tl-dot.dot-final,.cup-tl-dot.dot-runnerup{width:14px;height:14px;}
  .cup-tl-card{padding:10px 9px;border-radius:10px;gap:8px;}
  .cup-tl-content{padding-bottom:13px;gap:5px;}
  .cup-tl-round{font-size:9.5px;letter-spacing:.2px;}
  .cup-fixture-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center; gap:8px; padding:9px 10px;}
  .cup-fixture-team{ flex:initial; min-width:0; }
  .cup-fixture-team-name{white-space:normal; overflow:visible; text-overflow:clip;word-break:normal; overflow-wrap:normal; hyphens:none; line-height:1.4; font-size:11px;}
  .cup-fixture-team.away{ text-align:left; }
  .cup-fixture-team.home .cup-fixture-team-name{text-align:right;}
  .cup-fixture-score{font-size:12.5px; padding:4px 7px; white-space:nowrap; letter-spacing:0;text-align:center;}
  
  .cup-fixture-leg-label{font-size:9px;}
  .cup-tl-exit{font-size:10.5px;padding:4px 9px;}
  .cup-tl-card{ padding:9px 10px;}
  .cup-header-right{ gap:10px;}}
  

@media (max-width:640px){
  .afr-list { gap:10px; }
  .afr-item { border-radius:14px; }
  .afr-header { padding:14px 15px; gap:9px; }
  .afr-header-right { gap:8px; }
  .afr-edition { font-size:17px; }
  .afr-comp { font-size:10.5px; line-height:1.5; }
  .afr-result-badge { font-size:10px; padding:3px 9px; }
  .afr-body { padding:0 11px 13px; }
  .afr-stage-block { margin-top:14px; }
  .afr-stage-title { font-size:11px; margin-bottom:8px; }
  .afr-round-label { font-size:9px; margin:10px 0 5px; }
  .afr-fixture-row { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:6px; padding:8px 7px; border-radius:8px; }
  .afr-fixture-team-name { white-space:normal; overflow:visible; text-overflow:clip; word-break:normal; overflow-wrap:normal; hyphens:none; line-height:1.4; font-size:10px; }
  .afr-fixture-team.away { text-align:left; }
  .afr-fixture-team.home .afr-fixture-team-name { text-align:right; }
  .afr-fixture-score { font-size:13px; padding:4px 8px; min-width:44px; transform:none; display:inline-flex; align-items:center; justify-content:center; }
  .afr-fixture-leg-label { font-size:9px; }
  .afr-group-matches { gap:6px; }
  .afr-matchday-tag { min-width:40px; font-size:8.5px; }
  .afr-fixture-row.group-row { grid-template-columns:40px minmax(0,1fr) auto minmax(0,1fr); gap:4px; }
  .afr-standings-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .afr-standings { min-width:390px; font-size:10px; }
  .afr-standings th { font-size:8.5px; padding:7px 5px; }
  .afr-standings td { padding:7px 5px; }
}}

@media (max-width:480px){
  .cup-header,.afr-header{padding:12px 12px;}
  .cup-edition,.afr-edition{font-size:15.5px;}
  .cup-chevron,.afr-chevron{width:25px;height:25px;font-size:10px;}
  .cup-body,.afr-body{padding-left:8px;padding-right:8px;}
  .cup-tl-item{grid-template-columns:22px minmax(0,1fr);}
  .cup-tl-dot-col{width:22px;margin-left:7px;}
  .cup-fixture-row,.afr-fixture-row{grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);}
  .cup-fixture-team-name,.afr-fixture-team-name{font-size:10.5px;}
  .cup-fixture-score,.afr-fixture-score{min-width:42px;font-size:12px;padding:4px 5px;}
  .afr-fixture-row.group-row{grid-template-columns:36px minmax(0,1fr) 42px minmax(0,1fr);}
}

/* ── السجل التأديبي: Mobile UX ── */
@media (max-width:900px){
  .disc-archive-hero{grid-template-columns:1fr;gap:16px;padding:22px 20px;}
  .disc-hero-stats{grid-template-columns:repeat(4,1fr);}
}
@media (max-width:640px){
  .disc-archive-hero{padding:20px 15px;border-radius:16px;}
  .disc-hero-copy h2{font-size:23px;}
  .disc-hero-copy p{font-size:11.5px;line-height:1.8;}
  .disc-hero-stats{grid-template-columns:repeat(2,1fr);gap:7px;}
  .disc-stat{min-height:64px;}
  .disc-stat strong{font-size:21px;}
  .disc-archive-intro{margin:15px 0 12px;font-size:9px;}
  .disc-intro-line{width:24px;}
  .disc-timeline{padding-right:0;}
  .disc-timeline::before{right:14px;top:15px;bottom:15px;}
  .disc-timeline-item{grid-template-columns:29px minmax(0,1fr);gap:7px;margin-bottom:11px;}
  .disc-timeline-marker{width:29px;padding-top:14px;}
  .disc-timeline-marker::before{right:9px;top:17px;width:10px;height:10px;}
  .disc-timeline-marker span{display:none;}
  .disc-record-card{border-radius:13px;}
  .disc-record-header{padding:13px 12px;gap:9px;}
  .disc-season-pill,.disc-file-tag{font-size:8.5px;padding:3px 7px;}
  .disc-record-heading h3{font-size:13px;}
  .disc-record-heading p{font-size:10.5px;line-height:1.7;}
  .disc-record-toggle{width:25px;height:25px;flex-basis:25px;font-size:16px;}
  .disc-record-body{padding:11px 10px 12px;}
  .disc-record-grid{grid-template-columns:1fr;gap:7px;}
  .disc-panel{padding:10px 11px;}
  .disc-panel-kicker{font-size:9px;}
  .disc-trigger-text,.disc-decision-text,.disc-appeal-text{font-size:11px;line-height:1.8;}
  .disc-impact-badge{margin-top:8px;font-size:9px;}
  .disc-no-appeal{font-size:9.5px;}
  .disc-section-label{font-size:10px;}
  .disc-evidence-title{font-size:9.5px;}
  .disc-match-tag{font-size:9.5px!important;}
}
