:root {
  --bball-orange: #ff9100;
  --bball-dark: #181a1b;
  --bball-light: #f7f8fa;
  --bball-light2: #f1f3f6;
  --bball-accent: #5e35b1;
  --bball-card: #fff;
  --bball-card-dark: #23272f;
  --bball-border: #e1e1e1;
  --bball-shadow: 0 4px 24px #0001, 0 1.5px 6px #ff910014;
  --bball-radius: 22px;
  --bball-radius-xs: 10px;
  --bball-font: "Cairo", "Tajawal", "Segoe UI", Arial, sans-serif;
  --bball-font-eng: "Montserrat", Arial, sans-serif;
  --bball-gradient: linear-gradient(90deg,#ff9100 0,#5e35b1 100%);
  --bball-gradient-bg: linear-gradient(90deg, #fff 60%, #ff910028 100%);
}

body {
  font-family: var(--bball-font);
  margin: 0;
  background: var(--bball-light2);
  color: var(--bball-dark);
  min-height: 100vh;
  font-size: 1.05em;
  box-sizing: border-box;
}

/* HEADER */
.basketball-header {
  background: var(--bball-card);
  box-shadow: var(--bball-shadow);
  border-bottom: 2.5px solid var(--bball-orange);
  position: sticky; top: 0; z-index: 30;
}
.header-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 75px; padding: 0 20px;
}
.header-logo { width: 58px; height: 58px; margin-right: 10px; }
.header-site-title {
  font-family: var(--bball-font-eng);
  font-size: 2.1em; font-weight: 900;
  color: var(--bball-orange);
  letter-spacing: 1.5px;
  background: var(--bball-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-nav ul {
  display: flex; gap: 34px; list-style: none; margin: 0; padding: 0;
}
.header-nav ul li a {
  color: var(--bball-dark); text-decoration: none; font-size: 1.18em;
  font-family: var(--bball-font-eng);
  padding: 4px 16px; border-radius: var(--bball-radius-xs);
  transition: all .18s;
  font-weight: 600;
}
.header-nav ul li a:hover, .header-nav ul li a.active {
  background: var(--bball-gradient); color: #fff;
  box-shadow: 0 2px 12px #ff910018;
}
.lang-toggle {
  color: var(--bball-accent); font-size: 1.06em;
  font-family: var(--bball-font-eng);
  font-weight: 700; background: #ece8fa; border-radius: 10px;
  padding: 4px 12px; text-decoration: none; margin-right: 8px;
  transition: .2s;
}
.lang-toggle:hover { background: var(--bball-gradient); color: #fff; }

/* HERO/MAIN */
.basketball-main {
  max-width: 1200px; margin: 0 auto; padding: 38px 0 70px;
}
.basketball-hero {
  background: var(--bball-gradient-bg);
  border-radius: var(--bball-radius);
  text-align: center; margin: 32px 0 38px;
  box-shadow: 0 6px 28px #ff910016;
  padding: 40px 18px 38px;
  position: relative;
}
.hero-logo img {
  width: 108px; height: 108px; border-radius: 50%;
  border: 5.5px solid var(--bball-orange);
  box-shadow: 0 6px 24px #ff910028;
  background: #fff;
}
.hero-title {
  color: var(--bball-orange); font-size: 2.7em; font-weight: 900; margin: 22px 0 8px;
  letter-spacing: 1px;
  font-family: var(--bball-font-eng);
  background: var(--bball-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.15em; color: var(--bball-accent); font-family: var(--bball-font-eng);
  margin-bottom: 4px; margin-top: 7px;
}

/* SECTION TITLES */
.section-title {
  color: var(--bball-accent); font-size: 1.4em; margin: 27px 0 17px;
  font-family: var(--bball-font-eng); font-weight: 700; text-shadow: 0 2px 8px #ff910018;
}

/* CARDS GRID */
#basketball-matches-list, #basketball-competitions-list, #basketball-teams-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(265px,1fr));
  gap: 26px;
}
.basketball-card {
  background: var(--bball-card);
  border-radius: var(--bball-radius);
  box-shadow: var(--bball-shadow);
  padding: 24px 20px 20px;
  border: 1.5px solid var(--bball-border);
  display: flex; flex-direction: column; align-items: center;
  transition: box-shadow .2s, border .18s;
  min-height: 178px;
  position: relative;
  overflow: hidden;
}
.basketball-card:hover {
  box-shadow: 0 6px 30px #ff910033;
  border-color: var(--bball-orange);
  transform: translateY(-2px) scale(1.03);
}
.basketball-card img {
  width: 65px; height: 65px; border-radius: 50%;
  margin-bottom: 13px; background: #fff;
  border: 3px solid #efe5da;
  box-shadow: 0 3px 14px #ff91001a;
}
.basketball-card .card-title {
  font-size: 1.14em; font-weight: bold; color: var(--bball-dark);
  margin-bottom: 8px; text-align: center; font-family: var(--bball-font-eng);
}
.basketball-card .card-meta {
  font-size: .98em; color: var(--bball-accent);
  margin-bottom: 2px; font-family: var(--bball-font-eng);
}
.basketball-card .card-btn {
  margin-top: 11px; color: var(--bball-orange); text-decoration: underline;
  font-family: var(--bball-font-eng); font-weight: 700;
  background: none; border: 0; cursor: pointer; font-size: 1.07em;
}
.basketball-card .card-btn:hover {
  color: var(--bball-accent); text-decoration: none;
}
.basketball-footer {
  background: var(--bball-card);
  border-top: 2px solid var(--bball-orange);
  text-align: center; padding: 28px 0 16px;
  color: #aaa; font-size: 1.09em;
  font-family: var(--bball-font-eng);
  box-shadow: 0 -2px 12px #ff910012;
}
.footer-container {
  max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
}
.footer-links a {
  color: var(--bball-accent); margin: 0 10px; text-decoration: none; font-size: 1em; transition: .2s;
}
.footer-links a:hover { color: var(--bball-orange); text-decoration: underline;}
/* MOBILE MENU */
.basketball-mobile-menu {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--bball-card);
  border-top: 2px solid var(--bball-orange);
  box-shadow: 0 -4px 18px #ff910028;
  height: 68px; flex-direction: row; justify-content: space-around; align-items: center;
}
.mobile-menu-item {
  flex: 1; text-align: center; color: var(--bball-orange); text-decoration: none;
  font-size: 1.09em; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 7px 0;
  font-family: var(--bball-font-eng);
  font-weight: 700;
}
.mobile-menu-item span:first-child { font-size: 1.4em;}
/* DARK THEME */
@media (prefers-color-scheme: dark) {
  :root {
    --bball-card: #23272f;
    --bball-light2: #181a1b;
    --bball-dark: #fff;
    --bball-border: #373737;
  }
  body { background: var(--bball-light2); color: var(--bball-dark);}
  .basketball-header, .basketball-footer, .basketball-card, .basketball-main, .basketball-hero {
    background: var(--bball-card);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .header-container, .footer-container, .basketball-main { max-width: 99vw; }
}
@media (max-width: 700px) {
  .header-container { flex-direction: column; gap: 7px; height: auto; }
  .header-nav ul { gap: 12px; }
  .basketball-main { padding: 12px 1vw 90px; }
  .basketball-footer { font-size: 1em;}
  .basketball-mobile-menu { display: flex;}
  .header-logo { width: 38px; height: 38px;}
  .hero-logo img { width: 70px; height: 70px;}
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--bball-orange); }
::-webkit-scrollbar-track { background: var(--bball-light); }