/*
 * HLA4 TV: style frontu (prefiks h4tv-). Tożsamość: czerń, biel i czerwień (jak znak zespołu w media kicie).
 * Kolory tylko z tokenów motywu --h4-* z ciemnym zapasem z tej samej palety; tło sekcji daje motyw.
 * Zdjęć nie barwimy (czarno-biały filtr nakłada motyw) i nie nakładamy na nie kolorowych nakładek.
 * Progi: 480, 720, 960, 1200. Mobile najpierw.
 */
.h4tv {
  --h4tv-bg: var(--h4-bg, #000000);
  --h4tv-text: var(--h4-text, #ffffff);
  --h4tv-mute: var(--h4-mute, #b8b8b8);
  --h4tv-surface: var(--h4-surface, rgba(255, 255, 255, 0.07));
  --h4tv-surface-2: var(--h4-surface-2, rgba(255, 255, 255, 0.12));
  --h4tv-line: var(--h4-line, rgba(255, 255, 255, 0.2));
  --h4tv-accent: var(--h4-accent, #e0343f);
  --h4tv-accent-ink: var(--h4-accent-ink, #ffffff);
  --h4tv-link: var(--h4-link, #ffffff);
  --h4tv-red: var(--h4-red, #d62f3a);
  --h4tv-red-deep: var(--h4-red-deep, #9e1620);
  --h4tv-black: #000000;
  --h4tv-deep: #111111;
  --h4tv-radius: var(--h4-radius, 8px);
  --h4tv-gap: var(--h4-gap, clamp(14px, 2vw, 26px));
  --h4tv-font: var(--h4-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  --h4tv-display: var(--h4-font-display, "Barlow Condensed", "Arial Narrow", sans-serif);
  font-family: var(--h4tv-font);
  color: var(--h4tv-text);
}

.h4tv *,
.h4tv *::before,
.h4tv *::after {
  box-sizing: border-box;
}

.h4tv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.h4tv-wrap {
  width: var(--h4-wrap, min(1240px, 100% - 32px));
  margin-inline: auto;
}

/* ---------- przyciski (niska swoistość: motyw może je nadpisać klasami h4-btn) ---------- */
:where(.h4tv-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 2px solid var(--h4tv-red);
  border-radius: 999px;
  background: var(--h4tv-red);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}
:where(.h4tv-btn.h4-btn--ghost) {
  background: transparent;
  color: var(--h4tv-text);
  border-color: var(--h4tv-line);
}
:where(.h4tv-btn):hover {
  filter: brightness(1.1);
}
.h4tv-btn:focus-visible,
.h4tv-chip:focus-visible,
.h4tv-card a:focus-visible,
.h4tv-share a:focus-visible,
.h4tv-copy:focus-visible,
.h4tv-rail__btn:focus-visible,
.h4tv-strip__track:focus-visible,
.h4tv-row:focus-visible,
.h4tv-shelf__all:focus-visible,
.h4tv-pager a:focus-visible,
.h4tv-search__input:focus-visible,
.h4tv-search__btn:focus-visible,
.h4tv-more-btn:focus-visible {
  outline: 3px solid var(--h4tv-text);
  outline-offset: 2px;
}

/* ---------- plakietki ---------- */
.h4tv .h4tv-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.h4tv .h4tv-badge--live {
  background: var(--h4tv-red);
  color: #ffffff;
}
.h4tv .h4tv-badge--rec {
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.h4tv-live-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.h4tv-live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: h4tv-pulse 1.6s ease-out infinite;
}
@keyframes h4tv-pulse {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* ---------- pasek "Na żywo" ---------- */
.h4tv.h4tv-livebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 10px var(--h4-pad, 16px);
  background: var(--h4tv-black);
  border-bottom: 1px solid var(--h4tv-red);
  color: #ffffff;
  text-decoration: none;
  line-height: 1.3;
}
.h4tv-livebar__title {
  font-weight: 700;
}
.h4tv-livebar__cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.h4tv-livebar:hover .h4tv-livebar__cta {
  color: var(--h4tv-accent);
}

/* ---------- nagłówek strony HLA4 TV ---------- */
.h4tv .h4tv-mast {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0 0 var(--h4tv-gap);
  padding: clamp(18px, 3.4vw, 34px);
  border: 1px solid var(--h4tv-line);
  border-left: 6px solid var(--h4tv-red);
  border-radius: calc(var(--h4tv-radius) * 1.5);
  background: linear-gradient(135deg, #111111, #000000);
  overflow: hidden;
}
.h4tv .h4tv-mast__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.h4tv .h4tv-mast__logo {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.14em 0.22em;
  margin: 0;
  font-family: var(--h4tv-display);
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.h4tv .h4tv-mast__a {
  color: var(--h4tv-red);
}
.h4tv .h4tv-mast__b {
  color: #ffffff;
  padding: 0.06em 0.26em 0;
  border-radius: 4px;
  background: var(--h4tv-red);
  letter-spacing: 0.06em;
}
.h4tv .h4tv-mast .h4tv-badge {
  align-self: center;
  margin-left: 0.5em;
  font-family: var(--h4tv-font);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: #ffffff;
  color: #000000;
}
.h4tv .h4tv-mast .h4tv-live-dot {
  background: var(--h4tv-red);
}
.h4tv .h4tv-mast__lead {
  margin: 0;
  max-width: 60ch;
  color: var(--h4tv-mute);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.h4tv .h4tv-search {
  display: flex;
  gap: 8px;
  max-width: 520px;
}
.h4tv .h4tv-search__input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 18px;
  border: 1.5px solid var(--h4tv-line);
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font: inherit;
}
.h4tv .h4tv-search__input::placeholder {
  color: var(--h4tv-mute);
  opacity: 1;
}
.h4tv .h4tv-search__btn {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--h4tv-red);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.h4tv .h4tv-search__btn:hover {
  filter: brightness(1.1);
}

/* ---------- listy ---------- */
.h4tv-list__title,
.h4tv .h4tv-list__title {
  margin: 0;
  font-family: var(--h4tv-display);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--h4tv-text);
}
.h4tv .h4tv-empty {
  margin: 0;
  padding: 32px 20px;
  text-align: center;
  color: var(--h4tv-mute);
  background: var(--h4tv-surface);
  border: 1px dashed var(--h4tv-line);
  border-radius: var(--h4tv-radius);
}
.h4tv .h4tv-empty a {
  color: var(--h4tv-link);
}
.h4tv .h4tv-count {
  margin: 8px 0 var(--h4tv-gap);
  color: var(--h4tv-mute);
}
.h4tv .h4tv-more {
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.h4tv .h4tv-more--links {
  margin-top: calc(var(--h4tv-gap) * 1.6);
}

.h4tv .h4tv-shelf {
  margin-top: calc(var(--h4tv-gap) * 1.7);
}
.h4tv .h4tv-shelf:first-of-type {
  margin-top: 0;
}
.h4tv .h4tv-shelf__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-bottom: 14px;
}
.h4tv .h4tv-shelf__head .h4tv-list__title {
  position: relative;
  padding-left: 14px;
}
.h4tv .h4tv-shelf__head .h4tv-list__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 5px;
  border-radius: 3px;
  background: var(--h4tv-red);
}
.h4tv .h4tv-shelf__all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  color: var(--h4tv-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.h4tv .h4tv-shelf__all:hover {
  color: var(--h4tv-accent);
}

.h4tv-grid {
  display: grid;
  gap: var(--h4tv-gap);
  grid-template-columns: 1fr;
}
.h4tv-grid--vertical {
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 720px) {
  .h4tv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .h4tv-grid--vertical {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--h4tv-gap);
  }
}
@media (min-width: 960px) {
  .h4tv-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .h4tv-grid--vertical {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1200px) {
  .h4tv-grid--four {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- karta ---------- */
.h4tv .h4tv-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--h4tv-surface);
  border: 1px solid var(--h4tv-line);
  border-radius: var(--h4tv-radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.h4tv .h4tv-card:hover {
  border-color: var(--h4tv-red);
  transform: translateY(-2px);
}
.h4tv-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--h4tv-deep);
  overflow: hidden;
}
.h4tv-card--vertical .h4tv-card__media {
  aspect-ratio: 9 / 16;
}
.h4tv .h4tv-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.h4tv-card__ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a, #000000);
}
.h4tv-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.9);
}
.h4tv-card__play::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 14px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #ffffff;
}
.h4tv-card:hover .h4tv-card__play {
  background: var(--h4tv-red);
  border-color: var(--h4tv-red);
}
.h4tv-card--vertical .h4tv-card__play {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
}
.h4tv-card--vertical .h4tv-card__play::before {
  left: 16px;
  top: 11px;
  border-width: 8px 0 8px 13px;
}
.h4tv-card__badges {
  position: absolute;
  left: 10px;
  top: 10px;
}
.h4tv-card__time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.86);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.h4tv-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 14px 16px 16px;
}
.h4tv .h4tv-card__title {
  margin: 0;
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.h4tv .h4tv-card--vertical .h4tv-card__title {
  font-size: 0.95rem;
}
.h4tv .h4tv-card__title a {
  color: inherit;
  text-decoration: none;
}
.h4tv .h4tv-card__title a:hover {
  color: var(--h4tv-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.h4tv .h4tv-card__meta {
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.9rem;
  color: var(--h4tv-mute);
}
.h4tv-card__shelf {
  color: var(--h4tv-text);
  font-weight: 700;
}
.h4tv .h4tv-card.is-live {
  border-color: var(--h4tv-red);
}

/* ---------- filtr półek ---------- */
.h4tv .h4tv-filters {
  margin-bottom: var(--h4tv-gap);
}
.h4tv .h4tv-filters ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.h4tv .h4tv-filters li {
  flex: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 720px) {
  .h4tv .h4tv-filters ul {
    flex-wrap: wrap;
    overflow: visible;
  }
}
.h4tv .h4tv-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--h4tv-line);
  border-radius: 999px;
  color: var(--h4tv-text);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  background: var(--h4tv-surface);
}
.h4tv .h4tv-chip:hover {
  border-color: var(--h4tv-red);
}
.h4tv .h4tv-chip.is-active {
  background: var(--h4tv-red);
  border-color: var(--h4tv-red);
  color: #ffffff;
}

/* ---------- strony ---------- */
.h4tv .h4tv-pager {
  margin-top: calc(var(--h4tv-gap) * 1.2);
}
.h4tv .h4tv-pager ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.h4tv .h4tv-pager li {
  margin: 0;
}
.h4tv .h4tv-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--h4tv-line);
  border-radius: 999px;
  color: var(--h4tv-text);
  text-decoration: none;
  font-weight: 700;
}
.h4tv .h4tv-pager a.page-numbers:hover {
  border-color: var(--h4tv-red);
}
.h4tv .h4tv-pager .page-numbers.current {
  background: var(--h4tv-red);
  border-color: var(--h4tv-red);
  color: #ffffff;
}

/* ---------- rail: przesuwany rząd kart ze strzałkami na bokach i paskiem postępu ---------- */
.h4tv .h4tv-rail {
  position: relative;
  --h4tv-btn-y: 30%;
}
.h4tv .h4tv-strip__track,
.h4tv .h4tv-row {
  display: flex;
  gap: var(--h4tv-gap);
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.h4tv .h4tv-strip__track > .h4tv-card,
.h4tv .h4tv-row > .h4tv-card {
  flex: 0 0 82%;
  scroll-snap-align: start;
}
.h4tv .h4tv-strip__track > .h4tv-card--vertical {
  flex-basis: 46%;
}
@media (min-width: 720px) {
  .h4tv .h4tv-strip__track {
    scroll-snap-type: x proximity;
  }
  .h4tv .h4tv-strip__track > .h4tv-card {
    flex-basis: 300px;
  }
  .h4tv .h4tv-strip__track > .h4tv-card--vertical {
    flex-basis: 200px;
  }
}
/* z JavaScriptem: własny pasek postępu zamiast systemowego paska przewijania */
.h4tv .h4tv-rail.is-js .h4tv-strip__track,
.h4tv .h4tv-rail.is-js .h4tv-row {
  scrollbar-width: none;
  padding-bottom: 0;
}
.h4tv .h4tv-rail.is-js .h4tv-strip__track::-webkit-scrollbar,
.h4tv .h4tv-rail.is-js .h4tv-row::-webkit-scrollbar {
  display: none;
}
.h4tv .h4tv-rail__btn {
  display: none;
  position: absolute;
  top: var(--h4tv-btn-y);
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  cursor: pointer;
}
.h4tv .h4tv-rail__btn--prev {
  left: 8px;
}
.h4tv .h4tv-rail__btn--next {
  right: 8px;
}
.h4tv .h4tv-rail.is-js .h4tv-rail__btn:not([hidden]) {
  display: inline-flex;
}
.h4tv .h4tv-rail__btn:hover {
  background: var(--h4tv-red);
  border-color: var(--h4tv-red);
}
/* na telefonie delikatny gradient z krawędzi zdradza, że jest dokąd przewijać */
.h4tv .h4tv-rail.can-prev::before,
.h4tv .h4tv-rail.can-next::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 18px;
  width: 36px;
  z-index: 2;
  pointer-events: none;
}
.h4tv .h4tv-rail.can-prev::before {
  left: 0;
  background: linear-gradient(to right, var(--h4tv-bg), transparent);
}
.h4tv .h4tv-rail.can-next::after {
  right: 0;
  background: linear-gradient(to left, var(--h4tv-bg), transparent);
}
@media (min-width: 720px) {
  .h4tv .h4tv-rail.can-prev::before,
  .h4tv .h4tv-rail.can-next::after {
    display: none;
  }
}
.h4tv .h4tv-rail__bar {
  display: none;
  position: relative;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--h4tv-line);
  overflow: hidden;
}
.h4tv .h4tv-rail.is-js.is-scrollable .h4tv-rail__bar {
  display: block;
}
.h4tv .h4tv-rail__thumb {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 30%;
  border-radius: 2px;
  background: var(--h4tv-red);
  will-change: transform;
}

/* ---------- układ wyróżniony: jeden duży i cztery małe ---------- */
.h4tv .h4tv-featured {
  display: grid;
  gap: var(--h4tv-gap);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .h4tv .h4tv-featured {
    grid-template-columns: repeat(2, 1fr);
  }
  .h4tv .h4tv-featured .h4tv-card--lead {
    grid-column: 1 / -1;
  }
}
@media (min-width: 960px) {
  .h4tv .h4tv-featured {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .h4tv .h4tv-featured .h4tv-card--lead {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .h4tv .h4tv-featured .h4tv-card--lead .h4tv-card__media {
    flex: 1;
    aspect-ratio: auto;
    min-height: 260px;
  }
  .h4tv .h4tv-featured .h4tv-card--lead .h4tv-card__title {
    font-size: 1.4rem;
  }
}
.h4tv .h4tv-card--lead .h4tv-card__body {
  flex: 0 0 auto;
}
/* telefon: Najnowsze pokazuje trzy filmy, reszta jest na półkach niżej */
.h4tv .h4tv-featured > .h4tv-card:nth-child(n + 4) {
  display: none;
}
@media (min-width: 720px) {
  .h4tv .h4tv-featured > .h4tv-card:nth-child(n + 4) {
    display: flex;
  }
}

/* ---------- pasek najnowszych dla strony głównej i newsroomu ---------- */
.h4tv-latest {
  min-width: 0;
}
@media (min-width: 720px) {
  .h4tv .h4tv-row {
    display: grid;
    overflow: visible;
    padding-bottom: 0;
    grid-template-columns: repeat(2, 1fr);
    scroll-snap-type: none;
  }
  .h4tv .h4tv-row > .h4tv-card {
    flex: none;
  }
  .h4tv .h4tv-row--n1 {
    grid-template-columns: minmax(0, 560px);
  }
}
@media (min-width: 960px) {
  .h4tv .h4tv-row--n3,
  .h4tv .h4tv-row--n4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .h4tv .h4tv-row--n4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- blok trwającej transmisji ---------- */
.h4tv .h4tv-livebox {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: calc(var(--h4tv-gap) * 1.4);
  background:
    radial-gradient(60% 140% at 100% 0%, rgba(214, 47, 58, 0.3), transparent 60%),
    #111111;
  color: #ffffff;
  border: 1px solid var(--h4tv-red);
  border-radius: calc(var(--h4tv-radius) * 1.5);
  overflow: hidden;
}
.h4tv-livebox__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000000;
}
.h4tv .h4tv-livebox__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.h4tv-livebox__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}
.h4tv .h4tv-livebox__body p {
  margin: 0;
}
.h4tv .h4tv-livebox__title {
  margin: 0;
  font-family: var(--h4tv-display);
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: #ffffff;
}
.h4tv .h4tv-livebox__title a {
  color: inherit;
  text-decoration: none;
}
.h4tv .h4tv-livebox__text {
  color: #d8d8d8;
  line-height: 1.6;
}
@media (min-width: 720px) {
  .h4tv .h4tv-livebox {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
  .h4tv-livebox__media {
    aspect-ratio: auto;
    min-height: 260px;
  }
  .h4tv-livebox__body {
    padding: 28px;
  }
}

/* ---------- strona filmu ---------- */
.h4tv-single-page {
  display: block;
}
.h4tv .h4tv-stage {
  background: linear-gradient(180deg, #111111, #000000);
  border-bottom: 3px solid var(--h4tv-red);
  color: #ffffff;
  padding: 14px 0 22px;
}
.h4tv .h4tv-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.h4tv .h4tv-crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.h4tv .h4tv-crumbs span {
  color: #b8b8b8;
}
.h4tv-playerwrap {
  width: 100%;
  margin-inline: auto;
}
.h4tv-playerwrap--9x16 {
  max-width: min(400px, 100%);
}
.h4tv-playerwrap--1x1 {
  max-width: min(640px, 100%);
}
.h4tv-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--h4tv-radius);
  overflow: hidden;
}
.h4tv-player--9x16 {
  aspect-ratio: 9 / 16;
}
.h4tv-player--1x1 {
  aspect-ratio: 1 / 1;
}
.h4tv .h4tv-player__poster,
.h4tv .h4tv-player__ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.h4tv .h4tv-player__ph {
  background: linear-gradient(135deg, #1a1a1a, #000000);
}
.h4tv-player__badges {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
}
.h4tv .h4tv-player__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.05) 60%);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}
.h4tv-player__play svg {
  box-sizing: content-box;
  width: 30px;
  height: 30px;
  padding: 20px 18px 20px 22px;
  border-radius: 50%;
  background: var(--h4tv-red);
  color: #ffffff;
}
.h4tv-player__play:hover svg {
  filter: brightness(1.12);
}
.h4tv .h4tv-player__play:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -6px;
}
.h4tv-player__label {
  font-weight: 800;
  font-size: 1.1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.h4tv-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.h4tv-player__missing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  text-align: center;
  color: #ffffff;
}
.h4tv-playerinfo {
  max-width: 820px;
  margin: 12px auto 0;
  text-align: center;
}
.h4tv .h4tv-notice {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #d0d0d0;
}
.h4tv .h4tv-ext {
  margin: 8px 0 0;
  font-size: 0.95rem;
}
.h4tv .h4tv-ext a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.h4tv .h4tv-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: calc(var(--h4tv-gap) * 1.4);
}
.h4tv .h4tv-title {
  margin: 0;
  font-family: var(--h4tv-display);
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--h4tv-text);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.h4tv .h4tv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  color: var(--h4tv-mute);
  font-size: 1rem;
}
.h4tv .h4tv-meta__shelf a {
  color: var(--h4tv-text);
  font-weight: 700;
}
.h4tv .h4tv-content {
  max-width: 72ch;
  margin-top: var(--h4tv-gap);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.h4tv .h4tv-content > :first-child {
  margin-top: 0;
}

/* zwijanie długiego opisu filmu: bez JavaScriptu tekst jest rozwinięty */
.h4tv .h4tv-collapsible {
  --h4tv-lines: 14;
}
@media (min-width: 720px) {
  .h4tv .h4tv-collapsible {
    --h4tv-lines: 20;
  }
}
.h4tv .h4tv-collapsible.is-collapsed .h4tv-content {
  max-height: calc(var(--h4tv-lines) * 1.7em);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000000 62%, transparent 100%);
}
.h4tv .h4tv-collapsible.is-animated .h4tv-content {
  transition: max-height 0.3s ease;
}
.h4tv .h4tv-more-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 22px;
  border: 1.5px solid var(--h4tv-line);
  border-radius: 999px;
  background: var(--h4tv-surface);
  color: var(--h4tv-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.h4tv .h4tv-more-btn:hover {
  border-color: var(--h4tv-red);
}

.h4tv .h4tv-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: calc(var(--h4tv-gap) * 1.4) 0;
  padding: 18px 0;
  border-block: 1px solid var(--h4tv-line);
}
@media (min-width: 720px) {
  .h4tv .h4tv-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.h4tv .h4tv-share__title {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--h4tv-mute);
}
.h4tv .h4tv-share ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.h4tv .h4tv-share li {
  margin: 0;
}
.h4tv .h4tv-share a,
.h4tv .h4tv-copy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--h4tv-line);
  border-radius: 999px;
  background: var(--h4tv-surface);
  color: var(--h4tv-text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.h4tv .h4tv-share a:hover,
.h4tv .h4tv-copy:hover {
  border-color: var(--h4tv-red);
  color: var(--h4tv-text);
}
.h4tv .h4tv-donate {
  margin: 0;
}
.h4tv .h4tv-related {
  padding: calc(var(--h4tv-gap) * 1.4) 0 calc(var(--h4tv-gap) * 2);
  border-top: 1px solid var(--h4tv-line);
}
.h4tv .h4tv-related .h4tv-list__title {
  margin-bottom: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .h4tv-live-dot::after {
    animation: none;
    opacity: 0.5;
    transform: scale(1.8);
  }
  .h4tv .h4tv-strip__track,
  .h4tv .h4tv-row {
    scroll-behavior: auto;
  }
  .h4tv .h4tv-card,
  .h4tv .h4tv-collapsible.is-animated .h4tv-content {
    transition: none;
  }
  .h4tv .h4tv-card:hover {
    transform: none;
  }
}

.h4tv-playerwrap--9x16 {
  max-width: min(400px, 100%, calc(72vh * 9 / 16));
}
@supports (height: 1svh) {
  .h4tv-playerwrap--9x16 {
    max-width: min(400px, 100%, calc(72svh * 9 / 16));
  }
}
