/* =============================================================================
   PanoLive.eu v2 — eu.css (jedyny arkusz strony)
   Kolory i typografia zgodne z szablonem panolive.pl v2 (#4466ae, Source Sans 3),
   ale wszystkie klasy są własne — brak zależności od plików panolive.pl.
   ============================================================================= */

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-sans-3-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-sans-3-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #4466ae;
  --blue-d: #2d4a8a;
  --blue-m: #3a5a9c;
  --blue-l: #eaf0fb;
  --bg: #edf2fb;
  --line: #d4e0f5;
  --line-l: #edf2fb;
  --ink: #1a2a4a;
  --ink-2: #2c3a55;
  --muted: #4a5568;
  --muted-2: #5c6f93;     /* 5:1 na białym (WCAG AA) */
  --red: #c0392b;
  --navy: #13203a;
  --warn: #e08c1a;
  --r: 8px;
  --r-lg: 14px;
  --shadow: 0 1px 4px rgba(68, 102, 174, .08);
  --shadow-h: 0 12px 32px rgba(26, 42, 74, .22);
  --font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
}

/* ---------- baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--warn); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: var(--r); font-weight: 700; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main { min-height: 50vh; }

/* ---------- topbar + nagłówek ---------- */
.topbar { background: var(--blue); color: rgba(255, 255, 255, .9); font-size: 13px; line-height: 1; }
.topbar a { color: #fff; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; }
.topbar-social { display: flex; gap: 4px; }
.topbar-social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 40px; color: rgba(255, 255, 255, .8); }
.topbar-social a:hover { color: #fff; }

.hdr { background: #fff; border-bottom: 1px solid #e8eaed; position: sticky; top: 0; z-index: 100; }
.hdr-in { display: flex; justify-content: space-between; align-items: center; height: 70px; gap: 16px; position: relative; }
.logo img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; }
.nav a { display: block; padding: 0 16px; line-height: 70px; color: #2c2c2c; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); }
.burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; color: #2c2c2c; cursor: pointer; }

/* ---------- przyciski, znaczniki ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r); font: 600 15px/1 var(--font); border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: background .18s, border-color .18s, transform .18s; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-p { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-p:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.btn-o { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-o:hover { background: var(--blue-l); color: var(--blue); }
.btn-w { background: #fff; border-color: #fff; color: var(--ink); }
.btn-w:hover { background: var(--blue-l); border-color: var(--blue-l); color: var(--ink); }
.btn-d { background: rgba(19, 32, 58, .4); border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-d:hover { background: rgba(19, 32, 58, .6); color: #fff; }

.b-live { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; line-height: 1.2; }
.b-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: eu-pulse 1.6s ease-in-out infinite; }
.b-cur { position: absolute; top: 8px; right: 8px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; line-height: 1.2; }
.ov-tl { position: absolute; top: 10px; left: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); border-radius: 20px; padding: 3px 10px; font-size: 14px; font-weight: 700; color: #fff; }
@keyframes eu-pulse { 50% { opacity: .25; } }

/* ---------- sekcje, nagłówki ---------- */
.sec { padding: 48px 0 64px; }
.sec-tight { padding: 0 0 48px; }
.sec-bottom { padding: 8px 0 64px; }
.sec-bottom .h-sec { margin-bottom: 16px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.h-page { font-size: 36px; font-weight: 800; line-height: 1.15; margin-top: 4px; }
.h-sec { font-size: 26px; font-weight: 800; line-height: 1.2; }
.h-card { font-size: 22px; font-weight: 800; line-height: 1.2; }
.h-sub { font-size: 18px; font-weight: 700; margin-top: 14px; }
.sub { font-size: 15px; color: var(--muted); }
.txt { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin-top: 8px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.ttl { padding: 28px 0 20px; }
.ttl-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.ttl .crumbs + .ttl-row { margin-top: 8px; }
.ttl-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted-2); }
.crumbs a:hover { text-decoration: underline; }
.empty-box { margin-top: 16px; text-align: center; padding: 40px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); }

/* ---------- strona główna: duża kamera ---------- */
.stage { position: relative; height: clamp(360px, 50vw, 720px); overflow: hidden; background: linear-gradient(135deg, var(--blue-m) 0%, var(--blue) 60%, var(--blue-d) 100%); color: #fff; }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-player { position: absolute; inset: 0; z-index: 0; }   /* z-index: własny kontekst — nic z playera nie zasłoni podpisu */
.stage-player video { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.stage-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(19, 32, 58, .3) 0%, rgba(19, 32, 58, 0) 22%, rgba(19, 32, 58, 0) 42%, rgba(19, 32, 58, .88) 100%); }
.stage-cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.stage-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eyebrow-l { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .92); }
.stage-name { font-size: 52px; font-weight: 800; line-height: 1.05; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.stage-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.stage-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- kafelki kamer ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ct { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; color: #fff; background: var(--blue-m); box-shadow: 0 1px 4px rgba(26, 42, 74, .12); transition: transform .2s, box-shadow .2s; min-width: 0; }
.ct:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); color: #fff; }
.ct img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-ph { position: absolute; inset: 0; background: linear-gradient(180deg, #8fb6df 0%, #d3e3f2 75%); }
.ct.is-cur { box-shadow: 0 0 0 3px var(--blue); }
.scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 32, 58, 0) 30%, rgba(19, 32, 58, .55) 60%, rgba(19, 32, 58, .92) 100%); }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; display: flex; flex-direction: column; }
.cap-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-title { font-size: 18px; font-weight: 800; line-height: 1.2; color: #fff; }

/* ---------- lokalizacje ---------- */
.search { display: flex; align-items: center; gap: 8px; width: 340px; max-width: 100%; height: 44px; padding: 0 14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); color: var(--muted-2); }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(68, 102, 174, .12); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: 400 16px var(--font); color: var(--ink); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.s3 { grid-column: span 3; } .s6 { grid-column: span 6; } .s9 { grid-column: span 9; } .s12 { grid-column: span 12; }
.gcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; scroll-margin-top: 90px; }
.gcard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 0; }
.gname { font-size: 19px; font-weight: 800; line-height: 1.25; }
.gmeta { font-size: 13px; color: var(--muted-2); }
.gcount { flex-shrink: 0; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 15px; background: var(--blue-l); color: var(--blue-d); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.gcams { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gcams .ct { border-radius: 10px; }
.gcams .cap { padding: 10px 12px; }
.gcams .cap-title { font-size: 17px; }
.join { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px; border: 1.5px dashed #9db0cc; border-radius: var(--r-lg); color: var(--ink); }
.join svg { color: #c47d0e; }
.join:hover { border-color: var(--blue); background: #f7f9fd; color: var(--ink); }
.join-title { font-size: 18px; font-weight: 800; line-height: 1.2; }
.join-text { font-size: 14px; color: var(--muted); }
.join-link { font-weight: 700; color: var(--blue-d); }

/* ---------- strona kamery ---------- */
.bento { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 16px; }
.ptile { border-radius: var(--r-lg); overflow: hidden; background: var(--navy); display: flex; flex-direction: column; box-shadow: 0 4px 16px rgba(26, 42, 74, .18); }
.player16 { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player16 .poster, .player-box { position: absolute; inset: 0; width: 100%; height: 100%; }
.player16 .poster { object-fit: cover; }
.player-box video { width: 100%; height: 100%; display: block; background: #000; }
.player-msg { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; color: #fff; background: rgba(19, 32, 58, .78); font-size: 16px; }
.player-msg strong { font-size: 19px; }
.pbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 14px; color: #fff; }
.pb-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.pb-live i { width: 9px; height: 9px; border-radius: 50%; background: #ef5a4c; animation: eu-pulse 1.6s ease-in-out infinite; }
.pb-note { font-size: 14px; color: rgba(255, 255, 255, .78); }
.segs { display: flex; background: rgba(255, 255, 255, .08); border-radius: var(--r); padding: 3px; gap: 2px; margin-left: auto; }
.seg { height: 36px; min-width: 52px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: rgba(255, 255, 255, .85); font: 700 14px var(--font); cursor: pointer; }
.seg[aria-pressed="true"] { background: #fff; color: var(--ink); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; }
.card-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.side { height: 0; min-height: 100%; }   /* wysokość wyznacza player, lista przewija się */
.mts { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; flex: 1; min-height: 0; overflow-y: auto; }
.mts .ct { border-radius: 10px; flex-shrink: 0; }
.mts .cap { padding: 10px 12px; }
.mts .cap-title { font-size: 16px; }
.side-note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; min-height: 44px; padding-top: 8px; }

.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.row2.no-wx { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.wx-now { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--blue); }
.wx-temp { font-size: 40px; font-weight: 800; line-height: 1; color: var(--ink); }
.wx-desc { font-size: 14px; color: var(--muted); }
.wx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.wx div { background: #f7f9fd; border: 1px solid var(--line-l); border-radius: var(--r); padding: 6px 10px; }
.wx dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.wx dd { font-size: 15px; font-weight: 700; }
.wx-src { margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--muted-2); }
.tags { list-style: none; padding: 0; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 12px; border-radius: 16px; background: var(--line-l); color: var(--blue-d); font-size: 14px; font-weight: 600; }
.irows { margin-top: 8px; }
.irows div { padding: 7px 0; border-bottom: 1px solid #f1f4fa; }
.irows div:last-child { border-bottom: 0; }
.irows dt { font-size: 12px; color: var(--muted-2); }
.irows dd { font-size: 15px; font-weight: 600; line-height: 1.35; }
.share { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.sbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--blue-l); color: var(--blue); cursor: pointer; }
.sbtn:hover { border-color: var(--blue); color: var(--blue); }
.sbtn.is-done, .btn.is-done { background: #edf5f0; border-color: #b8dfc8; color: #14794a; }

/* ---------- kontakt, błąd ---------- */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-big { font-size: 22px; font-weight: 800; margin-top: 8px; }
.contact-offer { color: var(--ink); gap: 8px; }
.contact-offer svg { color: #c47d0e; }
.contact-offer:hover { border-color: var(--blue); color: var(--ink); }
.contact-offer .join-link { margin-top: auto; }
.err { max-width: 640px; margin: 48px auto 0; text-align: center; align-items: center; padding: 40px 24px; }
.err-code { font-size: 64px; font-weight: 800; line-height: 1; color: var(--blue); }
.err-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- stopka (jak szablon panolive) ---------- */
.foot { background: #2c2c2c; color: rgba(255, 255, 255, .75); padding: 48px 0 0; font-size: 14px; }
.foot a { color: rgba(255, 255, 255, .75); }
.foot a:hover { color: #fff; }
.foot p { line-height: 1.7; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.foot-h { font-weight: 600; color: #fff; margin-bottom: 12px; }
.foot-social { display: flex; flex-direction: column; gap: 6px; }
.foot-bottom { margin-top: 40px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .62); text-align: center; }
.foot-bottom a { color: rgba(255, 255, 255, .62); }

/* ---------- RWD ---------- */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: 1fr; }
  .side { height: auto; min-height: 0; }
  .mts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); overflow: visible; }
  .row2, .row2.no-wx { grid-template-columns: 1fr; }
  .g12 .s3 { grid-column: span 6; }
  .g12 .s6, .g12 .s9, .g12 .s12 { grid-column: span 12; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .topbar-contact { display: none; }
  /* bez JS: menu w zawijanym wierszu pod logo */
  .hdr-in { height: auto; min-height: 70px; flex-wrap: wrap; }
  .nav { flex-wrap: wrap; }
  .nav a { line-height: 1.4; padding: 12px 14px; }
  /* z JS: menu rozwijane przyciskiem */
  .js .hdr-in { height: 70px; flex-wrap: nowrap; }
  .js .burger { display: inline-flex; }
  .js .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid #e8eaed; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 14px 20px; border-bottom: 1px solid #f5f6f8; }
  .stage-name { font-size: 30px; }
  .stage-cap { padding-bottom: 20px; }
  .h-page { font-size: 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .g12 .s3 { grid-column: span 12; }
  .stage-actions, .stage-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
