/* Szablon „Samouczek wideo” – Figma 494:6736 / 495:7277 */
.sam, .sam * { box-sizing: border-box; }
.sam { overflow-x: hidden; --sam-niebieski: var(--color-marka-niebieski, #0f9ce6); --sam-tlo: #0d0e0f; --sam-panel: #1c1f21; --sam-aktywny: #2e3338; --sam-szary: #a9adb2; --sam-czern: var(--color-neutralne-czern, #050505); }
.sam__head { max-width: 1280px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 32px) 32px; }
.sam__title { margin: 16px 0 16px; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; font-weight: 600; color: var(--sam-czern); }
.sam__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sam__chips li { padding: 6px 12px; border-radius: 16px; background: #f0f0f0; font-size: 14px; font-weight: 500; color: var(--sam-czern); }
.sam__kino { background: var(--sam-tlo); }
.sam__kino-in { max-width: 1280px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.sam__video { position: relative; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.sam__video video { display: block; width: 100%; height: 100%; background: #000; }
.sam__next { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(13, 14, 15, .88); color: #fff; text-align: center; padding: 16px; }
.sam__next[hidden] { display: none; }
.sam__next-label { margin: 0; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.sam__next-n { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--sam-niebieski); display: inline-flex; align-items: center; justify-content: center; }
.sam__next-title { margin: 0; font-size: 20px; font-weight: 600; }
.sam__next-btns { margin: 4px 0 0; display: flex; gap: 16px; align-items: center; }
.sam__info { padding-top: 16px; color: #fff; }
.sam__now { margin: 0 0 12px; font-size: 24px; line-height: 1.3; font-weight: 600; color: #fff; }
.sam__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.sam__pos { margin: 0; font-size: 14px; color: var(--sam-szary); }
.sam__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sam__btn { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 18px; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.3; cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.sam__btn--blue { background: var(--sam-niebieski); color: #fff; }
.sam__btn--blue:hover { filter: brightness(1.08); color: #fff; }
.sam__btn--ghost { background: transparent; color: #fff; border-color: #5a5f64; }
.sam__btn--ghost:hover { border-color: #fff; color: #fff; }
.sam__btn:disabled { opacity: .4; cursor: default; }
.sam__link { background: none; border: 0; color: #fff; text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; }
.sam__auto { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sam-szary); cursor: pointer; }
.sam__auto input { accent-color: var(--sam-niebieski); }
.sam__lista { background: var(--sam-panel); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; max-height: 620px; }
.sam__lista-head { padding: 18px 20px 14px; }
.sam__lista-title { margin: 0; font-size: 18px; font-weight: 600; color: #fff; }
.sam__lista-sub { margin: 4px 0 10px; font-size: 13px; color: var(--sam-szary); }
.sam__seg { display: flex; gap: 3px; }
.sam__seg span { flex: 1; height: 4px; border-radius: 2px; background: #4d5257; }
.sam__seg span.is-ok { background: var(--sam-niebieski); }
.sam__seg span.is-now { background: #fff; }
.sam__rozwin { display: none; }
.sam__items { list-style: none; margin: 0; padding: 0 8px 12px; overflow-y: auto; }
.sam__item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.sam__item:hover { background: #262a2e; }
.sam__item.is-now { background: var(--sam-aktywny); }
.sam__item-nr { width: 16px; flex: none; font-size: 12px; color: var(--sam-szary); text-align: center; }
.sam__item.is-now .sam__item-nr { color: var(--sam-niebieski); font-weight: 600; }
.sam__thumb { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #2a2e32; }
.sam__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sam__czas { position: absolute; right: 4px; bottom: 4px; padding: 1px 4px; border-radius: 3px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 10px; font-weight: 500; }
.sam__ok { display: none; position: absolute; left: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--sam-niebieski) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.is-ok > .sam__thumb .sam__ok, .is-ok .sam__ok { display: block; }
.sam__item-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sam__item-t { overflow-wrap: anywhere; font-size: 13px; font-weight: 500; line-height: 1.35; }
.sam__item.is-now .sam__item-t { font-weight: 600; }
.sam__item-s { font-size: 11px; color: var(--sam-szary); }
.sam__item.is-now .sam__item-s { color: var(--sam-niebieski); }
.sam__tresc { max-width: 1094px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 32px) 72px; }
.sam__lead { margin: 0 0 32px; font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--sam-czern); }
.sam__h2 { margin: 0 0 24px; font-size: 28px; font-weight: 600; color: var(--sam-czern); }
.sam__grid { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.sam__card { min-width: 0; display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 8px; background: #fff; border: 1px solid #e0e0e0; }
.sam__card.is-now { border: 2px solid var(--sam-niebieski); }
.sam__thumb--card { width: 112px; flex: 0 0 112px; }
.sam__card-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sam__card-meta { font-size: 12px; font-weight: 500; color: #6b6b6b; }
.sam__card.is-now .sam__card-meta { color: var(--sam-niebieski); }
.sam__card-t { overflow-wrap: break-word; padding: 0; border: 0; background: none; text-align: left; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--sam-czern); cursor: pointer; text-decoration: none; }
.sam__card-t:hover { color: var(--sam-niebieski); }
.sam__card-link { font-size: 13px; font-weight: 500; color: var(--sam-czern); }
.sam__dalej { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: 8px; background: var(--sam-tlo); }
.sam__dalej-ey { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--sam-niebieski); }
.sam__dalej-t { margin: 0 0 6px; font-size: 26px; font-weight: 600; color: #fff; }
.sam__dalej-s { margin: 0; font-size: 15px; color: var(--sam-szary); max-width: 640px; }
@media (max-width: 900px) {
  .sam__kino-in { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .sam__video { border-radius: 0; }
  .sam__info { padding: 14px var(--gutter, 16px) 16px; }
  .sam__now { font-size: 18px; }
  .sam__lista { border-radius: 0; max-height: none; }
  .sam__rozwin { display: inline-block; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--sam-niebieski); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
  .sam__lista:not(.is-open) .sam__items li.is-daleko { display: none; }
  .sam__lead { font-size: 17px; }
  .sam__h2 { font-size: 22px; }
  .sam__dalej { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .sam__head { padding-top: 20px; }
}
