:root {
  --bg: #0b0f14;
  --bg-elev: #131a22;
  --line: #1f2a35;
  --text: #e8eef5;
  --muted: #93a1b1;
  --accent: #00d36f;
  --accent-2: #7c5cff;
  --danger: #ff4d4d;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --maxw: 1040px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 92, 255, 0.12), transparent 60%),
    radial-gradient(1000px 500px at -10% 0%, rgba(0, 211, 111, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, system-ui, -apple-system, "Noto Sans Arabic", sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ---- top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.6);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #00b85f);
  color: #042;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(0, 211, 111, 0.35);
}
.brand-name { font-size: 20px; }
.brand-name span { color: var(--accent); }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg-elev);
}
.live-pill .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted);
}
.live-pill[data-state="on"] { color: #fff; border-color: rgba(255, 77, 77, 0.5); }
.live-pill[data-state="on"] .dot {
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* ---- main ---- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px);
}

.title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  margin: 0 0 18px;
}
.accent { color: var(--accent); }

.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.stage video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.overlay[hidden] { display: none; } /* beats the .overlay display:flex below */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.7));
}
.play-btn {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #00b85f);
  color: #042;
  font-size: 30px;
  padding-inline-start: 4px;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 211, 111, 0.45);
  transition: transform 0.15s ease;
}
.play-btn:hover { transform: scale(1.06); }
.overlay-text { margin: 0; color: var(--text); font-weight: 600; }

.status {
  min-height: 24px;
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---- about / SEO copy ---- */
.about {
  margin-top: 28px;
  padding: 22px clamp(18px, 3vw, 28px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.about h2 { margin: 0 0 12px; font-size: 19px; }
.about p { margin: 0 0 14px; color: #cdd7e2; }
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.features li {
  position: relative;
  padding-inline-start: 26px;
  color: #cdd7e2;
}
.features li::before {
  content: "✔";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--line);
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.back-link:hover { color: var(--text); }

/* ---- day tabs ---- */
.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.tab.is-active { background: linear-gradient(135deg, var(--accent), #00b85f); color: #042; }

/* ---- match list ---- */
.match-list { display: grid; gap: 10px; }

.match {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.match.watchable { cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease; }
.match.watchable:hover { border-color: rgba(0, 211, 111, 0.5); transform: translateY(-1px); }

.m-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.m-league { color: var(--muted); font-size: 12px; }

.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.live { color: #fff; border-color: rgba(255, 77, 77, 0.5); background: rgba(255, 77, 77, 0.12); }
.badge.soon { color: var(--text); }
.badge.done { color: var(--muted); }

.m-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team:last-child { flex-direction: row-reverse; text-align: start; }
.crest { width: 30px; height: 30px; object-fit: contain; flex: none; }
.t-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.m-score { font-weight: 800; font-size: 18px; min-width: 56px; text-align: center; }
.m-score.vs { color: var(--muted); font-size: 13px; }

.m-watch {
  margin-top: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}
.m-watch.off { color: var(--muted); font-weight: 500; font-size: 12px; }

@media (max-width: 520px) {
  .brand-name { font-size: 17px; }
  .play-btn { width: 70px; height: 70px; font-size: 26px; }
  .t-name { font-size: 14px; }
  .crest { width: 24px; height: 24px; }
}
