/* ============================================================================
 * KoraZero — stylesheet (RTL, dark theme, ad-free)
 * ==========================================================================*/

:root {
  --bg:        #0a0e17;
  --bg-2:      #111827;
  --surface:   #161d2b;
  --surface-2: #1d2638;
  --border:    #283349;
  --text:      #e8edf5;
  --muted:     #93a1bd;
  --brand:     #7b2ff7;   /* beIN-style purple */
  --brand-2:   #c026d3;   /* magenta accent     */
  --accent:    #18e29a;   /* live green         */
  --danger:    #ff3b5c;
  --gold:      #ffc94d;
  --radius:    14px;
  --shadow:    0 10px 30px rgba(0,0,0,.45);
  --shadow-soft: 0 18px 50px rgba(0,0,0,.28);
  --glass:     rgba(22,29,43,.72);
  --grad:      linear-gradient(135deg, var(--brand), var(--brand-2));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Tajawal", "Segoe UI", Tahoma, system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(123,47,247,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(192,38,211,.12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 25%, rgba(24,226,154,.08), transparent 20%),
    radial-gradient(circle at 75% 15%, rgba(255,201,77,.08), transparent 18%),
    radial-gradient(circle at 50% 80%, rgba(123,47,247,.12), transparent 24%);
  filter: blur(6px);
  animation: ambientFloat 18s ease-in-out infinite alternate;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(10,14,23,.9), rgba(10,14,23,.68));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
  animation: slideDown .55s ease both;
}
.nav {
  display: flex; align-items: center; gap: 22px;
  padding: 14px 0;
}
.logo {
  display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.38rem;
  letter-spacing: -.02em;
}
.logo b {
  background: linear-gradient(135deg, var(--gold), #fff2a8 42%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 22px rgba(255,201,77,.16);
}

.nav-links { display: flex; gap: 6px; margin-inline-start: auto; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; color: var(--muted);
  font-weight: 600; font-size: .95rem; transition: .2s;
  position: relative; overflow: hidden;
}
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 5px; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: center; transition: transform .22s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.06); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); width: 42px; height: 42px; border-radius: 10px; font-size: 1.2rem; cursor: pointer; }

/* ---------------------------------------------------------------- Hero */
.hero { padding: 62px 0 34px; position: relative; }
.hero::after {
  content: ""; position: absolute; inset-inline-end: 6%; top: 28px;
  width: min(360px, 34vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,47,247,.22), rgba(192,38,211,.08) 45%, transparent 70%);
  filter: blur(4px); opacity: .75; animation: orbDrift 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-weight: 900; line-height: 1.16;
  letter-spacing: -.035em; max-width: 880px; animation: fadeUp .7s .08s ease both;
}
.hero h1 span {
  background: linear-gradient(135deg, #fff, var(--gold) 24%, var(--brand-2) 58%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); margin-top: 14px; max-width: 680px; font-size: 1.08rem; animation: fadeUp .7s .18s ease both; }
.hero-usps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; animation: fadeUp .7s .24s ease both; }
.hero-usps .usp {
  font-size: .85rem; font-weight: 700; color: var(--text);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(8px);
}
.hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; animation: fadeUp .7s .3s ease both; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 11px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; font-size: .98rem;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.24), transparent);
  transform: translateX(120%); transition: transform .55s ease;
}
.btn:hover::before { transform: translateX(-120%); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px rgba(123,47,247,.42); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(123,47,247,.5); }
.btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

.no-ads-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(24,226,154,.12); color: var(--accent);
  border: 1px solid rgba(24,226,154,.35);
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  margin-bottom: 18px;
  box-shadow: 0 0 26px rgba(24,226,154,.08);
  animation: fadeUp .7s ease both, softGlow 2.6s ease-in-out infinite;
}

/* ---------------------------------------------------------- Featured live */
.featured-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; color: var(--danger); }
.rec-dot, .live-empty-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(255,59,92,.6); animation: rec 1.6s infinite; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(255,59,92,.55); } 70% { box-shadow: 0 0 0 12px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.featured-card {
  background: linear-gradient(135deg, rgba(123,47,247,.22), rgba(255,59,92,.12)), var(--glass);
  border: 1px solid rgba(255,59,92,.4); border-radius: var(--radius); padding: 20px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  backdrop-filter: blur(12px); animation: fadeUp .6s ease both;
}
.featured-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-soft); border-color: var(--danger); }
.featured-league { color: var(--muted); font-size: .85rem; font-weight: 600; }
.featured-teams { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; font-weight: 700; font-size: 1.05rem; }
.featured-score { font-size: 1.4rem; color: var(--gold); }
.featured-commentator { color: var(--text); font-size: .9rem; font-weight: 700; margin: 6px 0 2px; }
.featured-foot { color: var(--text); font-size: .88rem; font-weight: 600; }
.live-empty { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------- Sections */
.section { padding: 34px 0; animation: fadeUp .7s ease both; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.section-head h2 { font-size: 1.5rem; font-weight: 800; }
.section-head .bar { width: 5px; height: 26px; border-radius: 4px; background: var(--grad); }
.section-head .count { margin-inline-start: auto; color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------- Matches */
.matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.match-card {
  background: linear-gradient(180deg, rgba(255,255,255,.035), transparent), var(--glass);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 18px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative; overflow: hidden; backdrop-filter: blur(12px);
  animation: cardIn .55s ease both;
}
.match-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--accent), transparent);
  transform: translateX(55%); opacity: .55; transition: transform .45s ease, opacity .2s ease;
}
.match-card:hover { border-color: rgba(123,47,247,.75); transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.match-card:hover::before { transform: translateX(-55%); opacity: 1; }
.match-card:nth-child(2) { animation-delay: .05s; }
.match-card:nth-child(3) { animation-delay: .1s; }
.match-card:nth-child(4) { animation-delay: .15s; }
.match-card:nth-child(5) { animation-delay: .2s; }
.match-card:nth-child(6) { animation-delay: .25s; }
.match-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.league-tag { font-size: .82rem; color: var(--muted); font-weight: 600; }
.status-pill { font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.status-live { background: rgba(255,59,92,.15); color: var(--danger); }
.status-live::before { content: "● "; animation: blink 1.3s infinite; }
.status-upcoming { background: rgba(255,201,77,.15); color: var(--gold); }
.status-ended { background: var(--surface-2); color: var(--muted); }
@keyframes blink { 50% { opacity: .35; } }

.teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.team .crest {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: var(--gold);
  overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .22s ease, border-color .22s ease;
}
.match-card:hover .team .crest { transform: translateY(-2px); border-color: rgba(255,255,255,.18); }
.team .crest img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.updated-line { color: var(--muted); font-size: .82rem; margin: -8px 0 18px; }
.updated-line b { color: var(--text); }
.live-refresh-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-inline-start: 4px; vertical-align: middle;
  animation: blink 1.3s infinite;
}
.team .tname { font-weight: 700; font-size: .92rem; }
.score { font-size: 1.45rem; font-weight: 800; min-width: 70px; text-align: center; }
.score small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: 2px; }

.time-zone-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.time-zone-row.compact {
  margin: 10px 0 2px;
}
.time-chip {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), transparent),
    rgba(29,38,56,.78);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.time-chip span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.time-chip b {
  color: var(--text);
  font-size: .92rem;
  line-height: 1.25;
}
.time-chip-ksa {
  border-color: rgba(24,226,154,.18);
}
.time-chip-et {
  border-color: rgba(123,47,247,.22);
}
.featured-card .time-chip {
  background: rgba(10,14,23,.32);
  border-color: rgba(255,255,255,.1);
}
.featured-card .time-chip b {
  font-size: .84rem;
}

.match-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.match-meta { font-size: .82rem; color: var(--muted); }
.match-meta b { color: var(--text); }
.watch-link {
  background: var(--grad); color: #fff; padding: 8px 16px; border-radius: 9px;
  font-weight: 700; font-size: .85rem; display: inline-flex; gap: 6px; align-items: center; transition: .2s;
  box-shadow: 0 8px 20px rgba(123,47,247,.28);
}
.watch-link:hover { transform: translateY(-2px); }

/* --------------------------------------------------------- Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .88rem; transition: .2s;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { background: var(--grad); color: #fff; border-color: transparent; }

/* --------------------------------------------------------- Watch page */
.watch-wrap { padding: 28px 0 60px; }
.player-shell {
  background: #000; border: 1px solid rgba(255,255,255,.1); border-radius: calc(var(--radius) + 4px);
  overflow: hidden; box-shadow: 0 22px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(123,47,247,.12);
  position: relative; aspect-ratio: 16 / 9; animation: playerReveal .75s ease both;
}
.player-shell::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 24%, transparent 74%, rgba(123,47,247,.18));
  opacity: .48;
}
.player-shell video { width: 100%; height: 100%; background: #000; }
.player-shell .embed-frame { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at center, rgba(123,47,247,.15), rgba(0,0,0,.85));
  text-align: center; padding: 20px; transition: opacity .3s; cursor: pointer;
}
.player-overlay.hidden { opacity: 0; pointer-events: none; }
.player-overlay .play-btn {
  width: 84px; height: 84px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; font-size: 2rem; margin: 0 auto 16px;
  box-shadow: 0 10px 30px rgba(123,47,247,.6); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.player-overlay h3 { font-size: 1.3rem; }
.player-overlay p { color: var(--muted); margin-top: 6px; font-size: .92rem; }

.watch-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin-top: 22px; align-items: start; }

.now-playing {
  background: var(--glass); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 20px;
  backdrop-filter: blur(12px); animation: fadeUp .65s .08s ease both;
}
.now-playing h1 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.now-playing .sub { color: var(--muted); margin-top: 6px; }

.server-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.server-btn {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 9px 18px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: .9rem; transition: .2s;
}
.server-btn:hover { border-color: var(--brand); }
.server-btn.active { background: var(--grad); border-color: transparent; }

/* ---- Live server health states ---- */
.server-btn { display: inline-flex; align-items: center; gap: 8px; }
.server-btn .srv-state { font-size: .82em; font-weight: 900; line-height: 1; }
.server-btn.srv-checking { opacity: .9; }
.server-btn.srv-checking .srv-state::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); animation: blink 1s infinite;
}
.server-btn.srv-ok {
  border-color: rgba(24,226,154,.7);
  box-shadow: 0 0 0 1px rgba(24,226,154,.35), 0 8px 22px rgba(24,226,154,.16);
}
.server-btn.srv-ok .srv-state { color: var(--accent); }
.server-btn.srv-ok.active {
  box-shadow: 0 0 0 1px rgba(24,226,154,.55), 0 10px 26px rgba(24,226,154,.25);
}
.server-btn.srv-ok:not(.active) { background: rgba(24,226,154,.08); }
.server-btn.srv-down { opacity: .45; }
.server-btn.srv-down .srv-state { color: var(--danger); }

.server-hint {
  display: flex; align-items: center; gap: 7px;
  margin-top: 9px; font-size: .79rem; font-weight: 600; color: var(--muted);
}
.server-hint.ok { color: var(--accent); }
.server-hint.down { color: var(--gold); }
.server-hint b { color: var(--text); margin: 0 2px; }
.server-hint-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(24,226,154,.6); animation: rec 1.8s infinite;
}

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; margin-top: 20px; }
.info-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.info-item .k { color: var(--muted); font-size: .78rem; }
.info-item .v { font-weight: 700; margin-top: 2px; }
.info-time-item {
  grid-column: 1 / -1;
}
.info-time-item .watch-times {
  margin-top: 7px;
}

.commentator-list { display: grid; gap: 6px; margin-top: 2px; }
.commentator-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.commentator-item b { font-weight: 700; }
.commentator-item i {
  font-style: normal; font-size: .72rem; font-weight: 700; color: var(--accent);
  background: rgba(24,226,154,.1); border: 1px solid rgba(24,226,154,.25);
  padding: 2px 8px; border-radius: 999px;
}

.player-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.player-switch {
  display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.player-switch-btn {
  flex: 1; min-width: 140px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  padding: 12px 18px; border-radius: 11px; cursor: pointer; font-weight: 800; font-size: .95rem; transition: .2s;
}
.player-switch-btn:hover { color: var(--text); border-color: var(--brand); }
.player-switch-btn.active { background: var(--grad); color: #fff; border-color: transparent; }

.player-panel { display: none; }
.player-panel.active { display: block; }

.side-panel {
  background: var(--glass); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 18px;
  backdrop-filter: blur(12px); animation: fadeUp .65s .14s ease both;
}
.side-panel h3 { font-size: 1.1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.side-match {
  display: grid; gap: 4px; padding: 11px 12px; border-radius: 11px;
  border: 1px solid transparent; transition: background .2s ease, border-color .2s ease;
}
.side-match:hover { background: var(--surface-2); }
.side-match.active { background: var(--surface-2); border-color: var(--brand); }
.side-match .side-status {
  justify-self: start; font-size: .66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px;
}
.side-match .side-teams { font-weight: 700; font-size: .9rem; }
.side-match .side-teams i { font-style: normal; color: var(--muted); margin: 0 4px; }
.side-match .side-league { color: var(--muted); font-size: .76rem; }
.side-empty { color: var(--muted); font-size: .88rem; padding: 8px 4px; }

/* --------------------------------------------------------- FAQ */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: linear-gradient(180deg, rgba(255,255,255,.035), transparent), var(--glass);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  padding: 14px 18px; backdrop-filter: blur(12px);
}
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--text);
  list-style: none; display: flex; align-items: center; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+"; color: var(--accent); font-weight: 900; font-size: 1.2rem;
  width: 18px; text-align: center; transition: transform .2s ease;
}
.faq-item[open] summary::before { content: "−"; }
.faq-item p { color: var(--muted); margin-top: 10px; line-height: 1.7; font-size: .92rem; }

/* --------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 34px 0; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h4 { margin-bottom: 12px; color: var(--gold); }
.site-footer p, .site-footer a { color: var(--muted); font-size: .9rem; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--text); }
.footer-bottom { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.disclaimer { background: rgba(255,201,77,.08); border: 1px solid rgba(255,201,77,.25); color: var(--gold);
  border-radius: 10px; padding: 12px 16px; font-size: .82rem; margin-top: 18px; }

@keyframes ambientFloat {
  from { transform: translate3d(-1%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}
@keyframes slideDown {
  from { transform: translateY(-14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeUp {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes cardIn {
  from { transform: translateY(16px) scale(.985); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(-2deg); }
}
@keyframes logoHalo {
  0%, 100% { transform: scale(.96); opacity: .35; }
  50% { transform: scale(1.08); opacity: .72; }
}
@keyframes orbDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-24px, 18px, 0) scale(1.08); }
}
@keyframes softGlow {
  0%, 100% { box-shadow: 0 0 22px rgba(24,226,154,.08); }
  50% { box-shadow: 0 0 34px rgba(24,226,154,.18); }
}
@keyframes playerReveal {
  from { transform: translateY(14px) scale(.992); opacity: 0; box-shadow: 0 12px 35px rgba(0,0,0,.42); }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------- Responsive */
@media (max-width: 860px) {
  .watch-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; background: var(--bg-2);
    border-bottom: 1px solid var(--border); padding: 14px; margin: 0; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-toggle { display: block; margin-inline-start: auto; }
}

/* ================================================================
 * KoraZero — Logo (top-left, overrides RTL start-side placement)
 * ================================================================*/

/* Force the nav bar to lay out left-to-right so the logo sits on
   the visual-left side of the screen even on an RTL page.        */
.nav {
  direction: ltr;
}
.nav-links {
  direction: rtl;   /* Arabic link text keeps its RTL reading order */
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: "Space Grotesk", "Tajawal", system-ui, sans-serif;
}

/* ----- KoraZero logotype: one custom word, ball-as-"o", speed swoosh ----- */
.kz-lockup {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  padding-bottom: 7px;
}
.kz-word {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -.04em;
  transform: skewX(-8deg);            /* custom sporty oblique — not a plain font */
  color: #f4f2ff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.kz-word b {
  font-weight: 700;
  margin-inline-start: -.02em;
  background: linear-gradient(118deg, var(--accent) 0%, #8a6bff 46%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* the soccer ball that replaces the "o" in Kora */
.kz-o {
  display: inline-flex;
  width: .82em;
  height: .82em;
  margin: 0 .015em;
  transform: skewX(8deg) translateY(.05em);  /* cancel parent skew so the ball stays round */
  position: relative;
  isolation: isolate;
  filter: drop-shadow(0 4px 9px rgba(123,47,247,.5));
}
.kz-o::after {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,47,247,.5), rgba(24,226,154,.16) 55%, transparent 72%);
  z-index: -1;
  animation: logoHalo 3.2s ease-in-out infinite;
}
.kz-float {            /* GSAP idle-bob target — no CSS transform of its own */
  display: inline-flex;
  width: 100%;
  height: 100%;
}
.kz-ball-spin {
  display: inline-flex;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  animation: kzBallRoll 4.5s linear infinite;
}
.kz-ball-spin svg { width: 100%; height: 100%; display: block; }

/* kinetic speed swoosh beneath the word */
.kz-swoosh {
  position: absolute;
  left: 2px;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 11px;
  overflow: visible;
  pointer-events: none;
}
.kz-swoosh path {
  stroke-dasharray: 230;
  animation: kzSwooshDraw 5s ease-in-out infinite;
}

@keyframes kzBallRoll { to { transform: rotate(360deg); } }
@keyframes kzSwooshDraw {
  0%, 100% { stroke-dashoffset: 66; opacity: .65; }
  50% { stroke-dashoffset: 0; opacity: 1; }
}

@media (max-width: 480px) {
  .kz-word { font-size: 1.4rem; }
}

/* ================================================================
 * Shot ball — fixed floating layer, animated by GSAP
 * ================================================================*/
.shot-ball {
  position: fixed;
  top: 0;
  left: -60px;
  width: 44px;
  height: 44px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 4px 14px rgba(255,255,255,.35))
          drop-shadow(0 0 6px rgba(123,47,247,.6));
  will-change: transform, opacity;
}
.shot-ball svg { width: 100%; height: 100%; }

/* ================================================================
 * World Cup 2026 Banner
 * ================================================================*/
.wc2026-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.10), transparent 22%),
    radial-gradient(circle at 82% 90%, rgba(201,162,84,.16), transparent 26%),
    linear-gradient(135deg, #050609 0%, #111315 42%, #050609 100%);
  border-block: 1px solid rgba(201,162,84,.24);
  padding: 18px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 50px rgba(0,0,0,.24);
}

/* Premium World Cup-inspired metallic edge */
.wc2026-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f6efe0 18%, #c9a254 50%, #f6efe0 82%, transparent);
  background-size: 180% 100%;
  animation: wcEdgeSweep 4.8s ease-in-out infinite;
}

@keyframes wcEdgeSweep {
  0%, 100% { background-position: 0% 0%; opacity: .72; }
  50% { background-position: 100% 0%; opacity: 1; }
}

.wc-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.wc-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  direction: ltr;   /* banner lays out left-to-right */
}

/* Trophy */
.wc-trophy-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.wc-trophy {
  font-size: 3.2rem;
  display: block;
  filter: drop-shadow(0 0 16px rgba(201,162,84,.72));
  will-change: transform, filter;
  transform-origin: bottom center;
}

/* Text content */
.wc-content {
  text-align: center;
  direction: ltr;
}
.wc-eyebrow {
  font-family: 'Bebas Neue', 'Tajawal', sans-serif;
  font-size: .75rem;
  letter-spacing: .35em;
  color: #c9a254;
  margin-bottom: 2px;
}
.wc-title-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  font-family: 'Bebas Neue', 'Tajawal', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.wc-word {
  background: linear-gradient(100deg, #f8f3ea 0%, #ffffff 38%, #c9a254 54%, #ffffff 72%, #f8f3ea 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wcShimmer 4.4s ease-in-out infinite;
  will-change: background-position;
  text-shadow: 0 8px 22px rgba(0,0,0,.34);
}
@keyframes wcShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.wc-year {
  font-family: 'Bebas Neue', 'Tajawal', sans-serif;
  font-size: 1.25em;
  color: #d6b46a;
  text-shadow:
    0 0 12px rgba(201,162,84,.72),
    0 0 28px rgba(201,162,84,.28);
  animation: yearPulse 2s ease-in-out infinite;
}
@keyframes yearPulse {
  0%, 100% { text-shadow: 0 0 12px rgba(201,162,84,.72), 0 0 28px rgba(201,162,84,.28); }
  50% { text-shadow: 0 0 20px rgba(246,239,224,.8), 0 0 44px rgba(201,162,84,.5); }
}

.wc-hosts {
  margin-top: 6px;
  color: #d7d0c2;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* Spinning ball column */
.wc-ball-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wc-spin-ball {
  will-change: transform;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)) drop-shadow(0 0 10px rgba(201,162,84,.22));
  animation: wcBallSpin 3s linear infinite;
}
@keyframes wcBallSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.wc-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(246,239,224,.08);
  color: #f8f3ea;
  border: 1px solid rgba(201,162,84,.45);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  animation: liveBlink 1.8s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .55; }
}

/* --------------------------------------------------------- WC Banner responsive */
@media (max-width: 600px) {
  .wc-trophy { font-size: 2.2rem; }
  .wc-title-row { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .wc-trophy-wrap, .wc-ball-col { display: none; }
  .wc2026-banner { padding: 14px 0; }
}
