:root {
  --ink:    #0A0F1E;
  --ink-2:  #101830;
  --ink-3:  #16203A;
  --line:   rgba(150,170,220,0.12);
  --line-2: rgba(150,170,220,0.20);
  --gold:   #FFC24B;
  --gold-d: #E0A02E;
  --live:   #FF4155;
  --cyan:   #55DBFF;
  --text:   #EEF3FF;
  --muted:  #93A0C0;
  --radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  background: var(--ink);
  color: var(--text);
  font-family: "Heebo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

.wrap { width: min(960px, 92vw); margin: 0 auto; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Floodlights: signature background glow ---- */
.floods { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.floods span {
  position: absolute; top: -18vh; width: 46vw; height: 60vh;
  background: radial-gradient(closest-side, rgba(255,194,75,0.16), rgba(255,194,75,0) 70%);
  filter: blur(6px);
}
.floods span:first-child { right: -8vw; transform: rotate(12deg); }
.floods span:last-child  { left:  -8vw; transform: rotate(-12deg);
  background: radial-gradient(closest-side, rgba(85,219,255,0.10), rgba(85,219,255,0) 70%); }

/* ---- Hero ---- */
.hero { position: relative; z-index: 1; padding: 46px 0 26px; text-align: center; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand .dot {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 5px rgba(255,65,85,0.18), 0 0 22px 3px rgba(255,65,85,0.55);
  animation: beat 1.6s ease-in-out infinite;
}
.brand h1 {
  font-family: "Rubik", sans-serif; font-weight: 900; font-style: italic;
  font-size: clamp(44px, 9vw, 82px); letter-spacing: -2px; line-height: 1;
  margin: 0; color: var(--text); direction: ltr;
}
.brand h1 span { color: var(--gold); -webkit-text-stroke: 0; }

.tag { color: var(--muted); font-size: clamp(15px, 2.4vw, 19px); margin: 16px auto 0; max-width: 34ch; }

.meta {
  margin-top: 22px; display: inline-flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 12px; font-size: 15px; color: var(--muted);
}
.meta b { color: var(--text); font-weight: 800; }
.meta .date { color: var(--text); font-weight: 700; }
.meta .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.live-count { display: inline-flex; align-items: center; gap: 7px; }
.live-count .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(255,65,85,0.55); animation: ring 1.8s infinite;
}

/* ---- Channel filter rail ---- */
.channels {
  position: relative; z-index: 1;
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin;
  padding: 8px max(4vw, calc((100vw - 960px)/2)) 18px;
  -webkit-overflow-scrolling: touch;
}
.channels::-webkit-scrollbar { height: 6px; }
.channels::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink-2); border: 1px solid var(--line);
  padding: 7px 13px 7px 9px; border-radius: 999px; cursor: pointer;
  color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 500;
  white-space: nowrap; transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
.chip.all { padding: 7px 15px; font-weight: 700; }
.chip.cat { font-weight: 700; padding: 7px 16px; color: var(--text); }
.chip.cat .star { color: var(--muted); font-size: 13px; margin-inline-end: 1px; transition: color .15s; }
.chip.cat[aria-pressed="true"] .star { color: var(--gold); }
.chips-sep { flex: 0 0 auto; width: 1px; align-self: stretch; margin: 4px 4px; background: var(--line-2); }
.chip[aria-pressed="true"] {
  background: rgba(255,194,75,0.12); border-color: var(--gold); color: var(--text);
}

/* ---- Board ---- */
.board-wrap { position: relative; z-index: 1; padding-bottom: 60px; }
.status { color: var(--muted); font-size: 14px; padding: 4px 2px 14px; }

.board { display: flex; flex-direction: column; gap: 10px; }

.row {
  display: grid;
  grid-template-columns: auto 1fr 72px;
  align-items: center; gap: 16px;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 16px;
  transition: border-color .15s, transform .15s;
  animation: rise .45s both;
}
.row:hover { border-color: var(--line-2); }

.row .time {
  grid-column: 3; grid-row: 1;
  font-family: "Rubik", sans-serif; font-weight: 800; font-size: 22px;
  color: var(--text); direction: ltr; text-align: center; letter-spacing: -.5px;
}

.row .game { min-width: 0; grid-column: 2; grid-row: 1; }
.row .sport {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .3px;
  color: var(--cyan); background: rgba(85,219,255,0.10);
  border: 1px solid rgba(85,219,255,0.25); border-radius: 6px; padding: 1px 8px; margin-bottom: 5px;
}
.row .teams { font-size: 17px; font-weight: 700; line-height: 1.35; }
.row .teams .vs { color: var(--muted); font-weight: 500; margin: 0 8px; font-size: 14px; }
.row .title { font-size: 16px; font-weight: 500; color: #D6DEF5; line-height: 1.35; }

.row .ch { display: flex; align-items: center; gap: 10px; justify-self: start; grid-column: 1; grid-row: 1; }
.row .ch span { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.row .ch img {
  width: 72px; height: 72px; object-fit: contain; border-radius: 10px;
  flex: 0 0 auto;
}

/* Live state — the signature highlight */
.row.live {
  border-color: rgba(255,194,75,0.55);
  background: linear-gradient(90deg, rgba(255,194,75,0.10), rgba(255,194,75,0) 55%), var(--ink-2);
  box-shadow: inset 3px 0 0 var(--gold), 0 0 24px -6px rgba(255,194,75,0.35);
}
.livebadge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: "Rubik", sans-serif; font-weight: 800; font-size: 11px; letter-spacing: .5px;
  color: #fff; background: var(--live); border-radius: 6px; padding: 2px 8px; margin-bottom: 5px;
}
.livebadge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: beat 1.2s infinite; }

.empty { text-align: center; color: var(--muted); padding: 50px 0; }

/* Favorite-team games get a quiet gold star, even in the full list */
.row.fav:not(.live) { border-color: rgba(255,194,75,0.28); }
.row.fav .teams::after,
.row.fav .title::after { content: ' ★'; color: var(--gold); font-size: 0.85em; }

/* ---- Footer ---- */
.foot {
  position: relative; z-index: 1; border-top: 1px solid var(--line);
  padding: 20px 4vw; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  color: var(--muted); font-size: 13px;
}

/* ---- Animations ---- */
@keyframes beat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.35)} }
@keyframes ring {
  0%   { box-shadow: 0 0 0 0 rgba(255,65,85,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(255,65,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,65,85,0); }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Mobile ---- */
@media (max-width: 560px) {
  .row { grid-template-columns: 58px 1fr; grid-template-areas: "time game" "time ch"; row-gap: 8px; padding: 12px 14px; }
  .row .time { grid-area: time; font-size: 19px; align-self: start; padding-top: 2px; }
  .row .game { grid-area: game; }
  .row .ch { grid-area: ch; justify-self: start; }
  .row .teams { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* פורמולה 1 */
.row.f1 .sport { color: #ff5b6e; background: rgba(255,91,110,0.12); border-color: rgba(255,91,110,0.30); }
.row.f1race { border-color: rgba(255,91,110,0.55); background: linear-gradient(90deg, rgba(255,91,110,0.06), var(--ink-2) 40%); }
.row.f1 .title { font-weight: 700; }
