/* Seriale online — strona serialu i części (mobile-first) */
.os-main {
  --os-accent: var(--accent, #B5271E);
  --os-card: var(--bg2, #fff);
  --os-text: var(--txt, #1C1C1A);
  --os-muted: var(--txt2, #6B6560);
  --os-line: var(--border, #D0C9BE);
  color: var(--os-text);
}
.os-main a { color: inherit; }

.os-main { max-width: 860px; margin: 0 auto; padding: 12px 16px 40px; }
.os-okruszki { font-size: .85rem; color: var(--os-muted); padding-bottom: 6px; border-bottom: 2px solid var(--os-text); }
.os-okruszki a { text-decoration: none; }
.os-h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); text-align: center; margin: 14px 0 2px; letter-spacing: .02em; }
.os-h2 { font-size: 1.05rem; font-weight: 600; text-align: center; color: var(--os-muted); margin: 0 0 14px; }
.os-z { font-weight: 400; }

/* player + strzałki (jak na szkicu: ← | film pionowy | →) */
.os-player-wiersz { display: grid; grid-template-columns: 52px auto 52px; justify-content: center; align-items: center; gap: 10px; }
.os-bok { display: flex; flex-direction: column; align-items: center; }
.os-bok .os-strzalka { width: 52px; box-sizing: border-box; }
.os-strzalka--pusta { min-height: 88px; }
.os-player { justify-self: center; width: min(calc(100vw - 32px - 124px), 380px, calc(72vh * 9 / 16)); aspect-ratio: 9 / 16;
  background: #000; border-radius: 14px; overflow: hidden; position: relative; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.os-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.os-fasada { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.os-fasada img { width: 100%; height: 100%; object-fit: cover; display: block; }
.os-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(0,0,0,.6); border: 3px solid #fff; transition: transform .15s; }
.os-play::after { content: ""; position: absolute; left: 28px; top: 20px; border-style: solid;
  border-width: 16px 0 16px 24px; border-color: transparent transparent transparent #fff; }
.os-fasada:hover .os-play, .os-fasada:focus-visible .os-play { transform: scale(1.08); background: var(--os-accent); }

.os-strzalka { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 88px; border-radius: 12px; text-decoration: none; color: var(--os-text) !important;
  border: 1px solid var(--os-line); background: var(--os-card); }
.os-strzalka span { font-size: 1.6rem; line-height: 1; }
.os-strzalka small { font-size: .7rem; color: var(--os-muted); text-align: center; line-height: 1.2; }
.os-strzalka:hover { border-color: var(--os-accent); color: var(--os-accent) !important; }
.os-strzalka--pusta { border: 0; background: none; }

.os-premiera { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #2b2724, #0f0e0d); }
.os-premiera__ikona { font-size: 2.4rem; }
.os-premiera strong { font-size: 1.2rem; }
.os-premiera a { color: #ffd5cf !important; font-size: .9rem; }

.os-podpis { text-align: center; font-weight: 600; margin: 12px 0 8px; }

/* numery części */
.os-paginacja { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 18px; }
.os-pag__nr, .os-pag__odc { min-width: 36px; height: 36px; padding: 0 8px; box-sizing: border-box; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--os-line);
  background: var(--os-card); text-decoration: none; font-variant-numeric: tabular-nums; font-size: .95rem; }
.os-pag__odc { color: var(--os-muted) !important; font-size: .85rem; }
.os-pag__nr:hover, .os-pag__odc:hover { border-color: var(--os-accent); }
.os-pag__nr.is-aktywna { border: 2px solid var(--os-text); font-weight: 800; }
.os-pag__nr.is-wkrotce { opacity: .5; border-style: dashed; }

.os-reklama { margin: 18px 0; min-height: 100px; }

/* lista odcinków (rozwijana) */
.os-lista { border: 1px solid var(--os-line); border-radius: 12px; background: var(--os-card); margin: 18px 0; }
.os-lista summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.os-lista summary::-webkit-details-marker { display: none; }
.os-lista summary::after { content: "▾"; transition: transform .2s; }
.os-lista[open] summary::after { transform: rotate(180deg); }
.os-lista__odc { padding: 4px 16px 10px; border-top: 1px solid var(--os-line); }
.os-lista__odc h3 { font-size: 1rem; margin: 10px 0 4px; }
.os-lista__odc.is-biezacy h3 { color: var(--os-accent); }
.os-lista ol { margin: 0; padding-left: 26px; }
.os-lista li { padding: 3px 0; }
.os-lista li a { text-decoration: none; }
.os-lista li a:hover { text-decoration: underline; }
.os-lista li a[aria-current] { font-weight: 700; color: var(--os-accent); }
.os-wkrotce { font-size: .78rem; color: var(--os-muted); margin-left: 6px; white-space: nowrap; }

.os-opis h2 { font-size: 1.15rem; margin: 22px 0 6px; }
.os-opis p { margin: 0 0 10px; }
.os-opis--gora { max-width: 70ch; margin: 0 auto 10px; }
.os-link { color: var(--os-accent) !important; font-weight: 600; text-decoration: none; }

/* strona serialu: karty odcinków */
.os-odcinki { display: grid; gap: 14px; margin-top: 16px; }
.os-karta { display: grid; grid-template-columns: 1fr; background: var(--os-card); border: 1px solid var(--os-line);
  border-radius: 12px; overflow: hidden; }
.os-karta__img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.os-karta__tresc { padding: 12px 14px; }
.os-karta h2 { font-size: 1.1rem; margin: 0 0 6px; }
.os-karta h2 a { text-decoration: none; }
.os-karta p { margin: 0 0 8px; font-size: .95rem; }
.os-karta__czesci { display: flex; flex-wrap: wrap; gap: 5px; }
.os-karta__czesci .os-pag__nr { min-width: 32px; height: 32px; font-size: .85rem; }
@media (min-width: 640px) {
  .os-karta { grid-template-columns: 240px 1fr; }
  .os-karta__img img { height: 100%; }
}

.os-zrodlo { text-align: center; font-size: .85rem; color: var(--os-muted); padding: 24px 16px; border-top: 1px solid var(--os-line); }

/* lista seriali /seriale/ */
.os-karta--serial { grid-template-columns: 120px 1fr; }
.os-karta--serial .os-karta__img img { aspect-ratio: 2 / 3; height: 100%; }
.os-karta h2 small { font-weight: 400; color: var(--os-muted); font-size: .85em; }
.os-karta__meta { font-size: .85rem !important; color: var(--os-muted); }
.os-btn-online { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px;
  background: var(--os-accent); color: #fff !important; text-decoration: none !important; font-weight: 700; }
.os-btn-online:hover { filter: brightness(1.1); }
@media (min-width: 640px) { .os-karta--serial { grid-template-columns: 180px 1fr; } }

/* pełny ekran */
button.soc-b { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.os-fs-btn .soc-b__ik { background: var(--os-text); border-color: var(--os-text); color: var(--bg2, #fff); }
.os-fs-zamknij { display: none; position: absolute; top: 12px; right: 12px; z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.os-player:fullscreen, .os-player:-webkit-full-screen { width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; border-radius: 0; }
.os-player:fullscreen .os-fs-zamknij, .os-player--fs .os-fs-zamknij { display: block; }
.os-player--fs { position: fixed !important; inset: 0; z-index: 10000; width: 100vw !important; height: 100vh; height: 100dvh;
  max-width: none; aspect-ratio: auto; border-radius: 0; }
html.os-fs-otwarte, html.os-fs-otwarte body { overflow: hidden; }
