
:root{
  --bg:#03150f;
  --panel:#072217;
  --panel2:#092b1d;
  --text:#fff;
  --muted:#b7d3c7;
  --line:rgba(52,211,153,.20);
  --green:#34d399;
  --red:#e11d48;
}
*{box-sizing:border-box}
body{
  margin:0;
  direction:rtl;
  font-family:Tahoma,Arial,sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(52,211,153,.16), transparent 32%),
    linear-gradient(180deg,#04150f 0%,#03150f 100%);
  color:var(--text);
}
a{color:inherit;text-decoration:none}
.ko-header{
  position:sticky;
  top:0;
  z-index:99;
  background:rgba(3,15,24,.96);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(12px);
}
.ko-head-inner{
  max-width:1180px;
  margin:auto;
  min-height:72px;
  padding:12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:28px;
  font-weight:1000;
  white-space:nowrap;
}
.logo-badge{
  width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#34d399,#10b981);
  font-size:25px;
}
.nav{
  display:flex;
  align-items:center;
  gap:8px;
  overflow-x:auto;
  white-space:nowrap;
  padding-bottom:2px;
}
.nav a{
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:#eef7f2;
  font-weight:900;
  font-size:14px;
}
.nav a.active,.nav a:hover{
  background:var(--red);
  color:#fff;
}
.wrap{
  max-width:1180px;
  margin:auto;
  padding:34px 16px 60px;
}
.hero{
  text-align:center;
  background:linear-gradient(135deg,rgba(52,211,153,.12),rgba(2,44,34,.38));
  border:1px solid var(--line);
  border-radius:28px;
  padding:44px 20px;
  margin-bottom:24px;
  box-shadow:0 20px 60px rgba(0,0,0,.22);
}
.hero .tag{
  display:inline-flex;
  gap:8px;
  align-items:center;
  margin-bottom:14px;
  padding:8px 15px;
  border-radius:999px;
  border:1px solid rgba(250,204,21,.38);
  color:#fde68a;
  background:rgba(250,204,21,.08);
  font-weight:900;
}
.hero h1{
  margin:0 0 14px;
  font-size:46px;
  line-height:1.25;
}
.hero p{
  margin:0 auto;
  max-width:820px;
  color:var(--muted);
  font-size:16px;
  line-height:1.9;
  font-weight:700;
}
.tools{
  display:flex;
  gap:10px;
  align-items:center;
  background:rgba(255,255,255,.045);
  border:1px solid var(--line);
  border-radius:22px;
  padding:14px;
  margin-bottom:18px;
}
.search{
  flex:1;
  min-width:220px;
  height:52px;
  border:1px solid rgba(52,211,153,.30);
  background:#041810;
  color:#fff;
  border-radius:16px;
  padding:0 18px;
  outline:none;
  font-weight:900;
}
.reset{
  height:52px;
  border:0;
  border-radius:16px;
  padding:0 22px;
  background:var(--green);
  color:#032016;
  font-weight:1000;
  cursor:pointer;
}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin:0 0 26px;
}
.chips button{
  border:1px solid rgba(52,211,153,.28);
  background:rgba(255,255,255,.05);
  color:#fff;
  border-radius:999px;
  padding:10px 15px;
  font-weight:1000;
  cursor:pointer;
}
.chips button.active,
.chips button:hover{
  background:var(--green);
  color:#032016;
}
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.card{
  background:rgba(3,24,16,.92);
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  min-height:100%;
  display:flex;
  flex-direction:column;
  box-shadow:0 16px 38px rgba(0,0,0,.22);
}
.thumb{
  height:210px;
  background:
    radial-gradient(circle at 18% 80%, rgba(20,184,166,.35), transparent 23%),
    radial-gradient(circle at 84% 12%, rgba(52,211,153,.28), transparent 22%),
    linear-gradient(135deg,#052519,#07301f);
  position:relative;
  overflow:hidden;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.thumb img[src=""]{display:none}
.fallback-logo{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  text-align:center;
  color:#fff;
  font-size:26px;
  font-weight:1000;
  line-height:1.45;
}
.fallback-logo small{
  display:block;
  color:#85f0c8;
  font-size:13px;
  margin-top:6px;
}
.card-body{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
  flex:1;
}
.cat{
  align-self:flex-start;
  background:#dfffee;
  color:#047857;
  border-radius:999px;
  padding:7px 12px;
  font-size:12px;
  font-weight:1000;
}
.card h2{
  margin:0;
  font-size:22px;
  line-height:1.55;
}
.card p{
  margin:0;
  color:#c7ded3;
  line-height:1.9;
  font-weight:700;
}
.meta{
  margin-top:auto;
  color:#9ed8c2;
  font-size:13px;
  font-weight:900;
}
.read{
  display:block;
  text-align:center;
  background:var(--green);
  color:#032016;
  padding:13px 14px;
  border-radius:14px;
  font-weight:1000;
}
.empty{
  display:none;
  text-align:center;
  color:#c7ded3;
  padding:30px;
  border:1px dashed var(--line);
  border-radius:22px;
}
@media(max-width:900px){
  .ko-head-inner{align-items:flex-start;flex-direction:column}
  .logo{font-size:24px}
  .nav{width:100%}
  .hero h1{font-size:34px}
  .grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .wrap{padding:22px 12px 50px}
  .hero{padding:30px 16px}
  .hero h1{font-size:28px}
  .tools{flex-direction:column}
  .search,.reset{width:100%}
  .grid{grid-template-columns:1fr}
  .thumb{height:220px}
}

/* Final cards polish */
.thumb{
  height:230px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.thumb img{
  position:relative !important;
  z-index:2 !important;
  background:#062016 !important;
}

.thumb img[src=""],
.thumb img:not([src]){
  display:none !important;
}

.fallback-logo{
  z-index:1 !important;
  font-size:0 !important;
}

.fallback-logo::before{
  content:"⚽";
  display:block;
  font-size:42px;
  margin-bottom:14px;
}

.fallback-logo::after{
  content:"كورة أونلاين";
  display:block;
  font-size:22px;
  font-weight:1000;
  color:#fff;
}

.fallback-logo small{
  display:none !important;
}

.card{
  min-height:520px !important;
}

.card h2{
  font-size:21px !important;
  line-height:1.55 !important;
}

.card p{
  font-size:15px !important;
}

.grid{
  align-items:stretch !important;
}

@media(max-width:620px){
  .card{
    min-height:auto !important;
  }
  .thumb{
    height:210px !important;
  }
}
