:root {
  --bg: #0e1726;
  --bg2: #15223a;
  --card: #1b2a45;
  --line: #2a3b5c;
  --text: #e9eef7;
  --muted: #9fb0cc;
  --accent: #ff7a1a;      /* piłeczka */
  --accent2: #1f8f5a;     /* stół */
  --radius: 14px;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }

/* ---------- nagłówek ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 23, 38, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .5px; font-size: 1.15rem; }
.logo .ball { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--accent) 45%, #c95300 100%); box-shadow: 0 0 12px rgba(255,122,26,.6); }
.logo small { color: var(--muted); font-weight: 500; }
nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 600;
}
nav a:hover { color: var(--text); background: var(--bg2); }
nav a.active { color: #111; background: var(--accent); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px 12px; font-size: 1.1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- film na stronie głównej ---------- */
.hero { position: relative; background: #000; overflow: hidden; }
.hero .video {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 72vh; margin: 0 auto;
}
.hero .video iframe, .hero .video #player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,23,38,0) 45%, rgba(14,23,38,.95) 100%); pointer-events: none; }
.hero .title { position: absolute; left: 0; right: 0; bottom: 6%; }
.hero h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1.1; text-shadow: 0 2px 16px rgba(0,0,0,.7); }
.hero p { margin: 6px 0 0; color: #d6deec; font-size: clamp(1rem, 2vw, 1.25rem); text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.sound-btn {
  position: absolute; right: 16px; top: 16px; z-index: 2;
  background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600;
}

/* tło zastępcze, gdy film z YouTube nie jest dostępny */
.hero .video.fallback {
  aspect-ratio: auto; height: 46vh; min-height: 300px;
  background:
    radial-gradient(circle at 78% 30%, #fff 0 1.2%, var(--accent) 2.6%, transparent 3%),
    linear-gradient(90deg, transparent 49.7%, rgba(255,255,255,.85) 49.7% 50.3%, transparent 50.3%),
    linear-gradient(180deg, transparent 96%, rgba(255,255,255,.85) 96%),
    linear-gradient(160deg, #1f8f5a, #0f5a37 70%, #0e1726);
}

/* ---------- sekcje ---------- */
main { padding: 36px 0 60px; }
h2 { font-size: 1.6rem; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 6px; height: 1.2em; background: var(--accent); border-radius: 3px; }
.lead { color: var(--muted); margin-top: -8px; margin-bottom: 24px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.card h3 { margin: 0; font-size: 1.15rem; }
.card .date { color: var(--accent); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.card p { margin: 0; color: #cdd7e8; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }
.card img.cover { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }

.news { display: flex; flex-direction: column; gap: 18px; }
.news .card { flex-direction: row; gap: 20px; }
.news .card img.cover { width: 240px; flex-shrink: 0; }
.news .card .body { display: flex; flex-direction: column; gap: 6px; }

.btn {
  display: inline-block; background: var(--accent); color: #111; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

.channel { flex-direction: row; align-items: center; gap: 16px; }
.channel .ico { width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; background: #c4302b; display: grid; place-items: center; }
.channel .ico::after { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }

.video-box { aspect-ratio: 16/9; width: 100%; background: #000; border-radius: 10px; overflow: hidden; }
.video-box video, .video-box iframe { width: 100%; height: 100%; border: 0; display: block; }

.empty { color: var(--muted); font-style: italic; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 24px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  .menu-btn { display: block; }
  nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .news .card { flex-direction: column; }
  .news .card img.cover { width: 100%; }
  .hero .video { max-height: none; }
}
