/* Kontener główny - z paddingiem na strzałki */
.sts-promo-slider-container {
    position: relative;
    max-width: 100%;
    margin: 40px auto;
    font-family: 'Roboto', 'Montserrat', sans-serif;
    padding: 0 30px;
    box-sizing: border-box;
}

/* Ścieżka przewijania */
.sts-promo-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Karty zatrzymują się na krawędzi — swipe na telefonie przestaje „pływać”
       między kaflami. Padding ścieżki jest respektowany przez scroll-padding. */
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
}
.sts-promo-track::-webkit-scrollbar { display: none; }

/* Dowolny typ karty w ścieżce (promocyjna, „gdzie oglądać”) */
.sts-promo-track > * {
    scroll-snap-align: start;
}

/* W pionie snapowanie nie ma sensu — kafelki układają się w kolumnie */
.sts-layout-vertical .sts-promo-track {
    scroll-snap-type: none;
}

/* Karta */
.sts-promo-card {
    flex: 0 0 280px;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.sts-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Część ze zdjęciem */
.sts-promo-header {
    min-height: 220px;
    flex-grow: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box; /* Ważne dla poprawnego naliczania paddingu */
}

/* Nagłówek jest teraz linkiem (klikalne zdjęcie i tytuł), nie tylko przyciski */
a.sts-promo-header {
    text-decoration: none !important;
    color: inherit;
}

/* Zdjęcie jako <img> zamiast tła CSS: srcset, lazy-loading i brak przeskoku layoutu.
   Wypełnia nagłówek, obcinane po dłuższej krawędzi — jak dawne background-size: cover. */
.sts-promo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
    z-index: 0;
}

/* Wyrównanie tekstu na kafelkach bez przycisków */
.sts-promo-card.sts-no-buttons .sts-promo-header {
    padding-bottom: 48px; /* Zastępuje wysokość fizyczną przycisków na dole, wypychając tytuł */
}

/* Gradient tylko na dole zdjęcia */
.sts-promo-overlay {
    position: absolute;
    top: 50%;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

/* Data w prawym górnym rogu */
.sts-promo-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Tytuł */
.sts-promo-title {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 15px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    width: 100%;
}

.sts-promo-odds { display: none; }

/* --- PRODUKCJE: ikona typu, znacznik sezonu, „Gdzie oglądać" --- */

/* Ikona typu — lewy górny róg, jako przeciwwaga daty po prawej */
.sts-promo-type {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    width: 34px;
    height: 34px;
    padding: 5px;
    box-sizing: border-box;
    background: #fff;
    color: #000;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sts-promo-type svg { display: block; width: 100%; height: 100%; }

/* Tytuł + znacznik sezonu w jednej linii bazowej */
.sts-promo-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sts-promo-season {
    display: inline-block;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    text-shadow: none;
    white-space: nowrap;
}

/* Pasek „Gdzie oglądać" — na białym tle pod zdjęciem, żeby pigułki były czytelne */
.sts-promo-where {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #333;
}

.sts-promo-where__label {
    font-weight: 600;
    white-space: nowrap;
}

/* 11px zamiast 9px: 9px uppercase o wadze 800 było na granicy czytelności.
   Tekst pigułki jest czarny na białym (pełny kontrast) — zielony jest tylko
   obramowaniem i ikoną, czyli elementami graficznymi (próg 3:1, nie 4.5:1). */
.sts-promo-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 2px solid #00a826;
    border-radius: 999px;
    padding: 3px 10px 3px 5px;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #111;
    white-space: nowrap;
}

.sts-promo-pill__ico {
    width: 15px;
    height: 15px;
    color: #00931f; /* ciemniejsza zieleń — pewne 3:1 na bieli dla elementu graficznego */
    flex-shrink: 0;
}

/* --- Pigułki kompaktowe (karty „Gdzie oglądać") ---
   Krótsze etykiety, brak ikony „play" przy serwisach VOD (nie niosła informacji,
   zajmowała miejsce) i piktogram tam, gdzie jest jednoznaczny: PC, konsole, kino, TV.
   Efekt: pięć platform mieści się w dwóch linijkach zamiast pięciu. */
.sts-promo-pill--compact {
    gap: 4px;
    padding: 2px 8px;
    font-size: 10px;
    letter-spacing: 0.02em;
    border-width: 1.5px;
}

.sts-promo-pill--compact.has-ico {
    padding-left: 5px;
}

.sts-promo-pill--compact .sts-promo-pill__ico {
    width: 13px;
    height: 13px;
    color: var(--sts-where-ink, #111);
}

/* „+2" — reszta platform w tooltipie, żeby karta nie rosła bez końca */
.sts-promo-pill--more {
    border-style: dashed;
    cursor: help;
}

/* W pionowym layoucie kafelki są szersze — pigułki mogą oddychać */
.sts-layout-vertical .sts-promo-where { padding: 12px 14px; }

/* Kafelek bez przycisków dostaje padding zastępujący ich wysokość; gdy jest pasek
   „Gdzie oglądać", ta rekompensata jest zbędna. :has() — brak wsparcia = stary wygląd. */
.sts-promo-card.sts-no-buttons:has(.sts-promo-where) .sts-promo-header {
    padding-bottom: 0;
}

/* ==================================================================
== KARTY „GDZIE OGLĄDAĆ" (blok sts-promo/where, [sts_gdzie_ogladac])
== Świadomie osobne klasy: kafelek promocyjny jest zbudowany wokół
== zdjęcia, ta karta wokół treści. Zmiana jednej nie rusza drugiej.
==================================================================
*/

.sts-where {
    --sts-where-green: #00a826;
    --sts-where-green-dark: #007d1c;
    --sts-where-ink: #111;
    --sts-where-card: 300px;
}

.sts-where-card {
    flex: 0 0 var(--sts-where-card);
    width: var(--sts-where-card);
    box-sizing: border-box;
    background: #fff;
    border: 2px solid var(--sts-where-green);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sts-where-card:hover {
    border-color: var(--sts-where-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

/* Klikalna treść karty (meta + tytuł). Przycisk CTA jest osobnym linkiem
   POZA tym obszarem — zagnieżdżone <a> to nieprawidłowy HTML. */
.sts-where-head {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

.sts-where-head:focus-visible,
.sts-where-cta:focus-visible {
    outline: 3px solid var(--sts-where-green-dark);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Wiersz meta: ikona typu po lewej, data po prawej */
.sts-where-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
}

.sts-where-type {
    display: inline-flex;
    width: 32px;
    height: 32px;
    color: var(--sts-where-ink);
    flex-shrink: 0;
}
.sts-where-type svg { display: block; width: 100%; height: 100%; }

.sts-where-date {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--sts-where-ink);
    white-space: nowrap;
}

/* Tabular numbers: daty w rzędzie kart nie „skaczą” na różnych cyfrach */
.sts-where-date__num {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

/* „dziś / jutro / za 3 dni” — kontekst, którego sama data nie daje */
.sts-where-soon {
    background: var(--sts-where-green);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
}

/* Tytuł: WIDOCZNY W CAŁOŚCI, bez ucinania. Skaluje się z długością (klasy
   --long/--xlong z PHP) i płynnie z szerokością karty, a karta rośnie w dół.
   Ucinanie wielokropkiem było błędem: przy „One Hundred Years of Solitude”
   redakcja nie widziała, co właściwie jest na kafelku. */
.sts-where-title {
    margin: 0;
    font-size: clamp(21px, 1.6vw + 13px, 28px);
    line-height: 1.1;
    font-weight: 800;
    color: var(--sts-where-ink);
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
    /* Bardzo długie pojedyncze słowo (tytuł bez spacji) nie wyjdzie za kartę */
    overflow-wrap: anywhere;
    hyphens: auto;
}

.sts-where-title--long  { font-size: clamp(19px, 1.2vw + 11px, 23px); }
.sts-where-title--xlong { font-size: clamp(17px, 0.9vw + 10px, 20px); }

.sts-where-title__txt {
    display: inline;
}

.sts-where-season {
    display: inline-block;
    background: var(--sts-where-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 5px;
    white-space: nowrap;
}

.sts-where-platforms {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #333;
}

.sts-where-label {
    white-space: nowrap;
}

/* CTA przyklejone do dołu (margin-top:auto) — karty o różnej treści
   mają przycisk w tej samej linii. Min. 44px = wymóg celu dotykowego. */
.sts-where-cta,
.sts-where-cta:link,
.sts-where-cta:visited {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 14px;
    background: var(--sts-where-green);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.18s ease;
}
.sts-where-cta:hover { background: var(--sts-where-green-dark); }

/* Wariant pionowy: karta na pełną szerokość kolumny */
.sts-where.sts-layout-vertical .sts-where-card {
    flex: none;
    width: 100%;
}

@media (max-width: 600px) {
    .sts-where { --sts-where-card: 265px; }
    .sts-where-card { padding: 16px; gap: 10px; }
    .sts-where-title { font-size: 25px; }
}

/* Użytkownicy z ograniczonym ruchem nie dostają unoszenia karty */
@media (prefers-reduced-motion: reduce) {
    .sts-where-card,
    .sts-where-cta { transition: none; }
    .sts-where-card:hover { transform: none; }
}

/* --- KAFELEK BEZ ZDJĘCIA ---
   Tytuł jest biały (leży na zdjęciu), więc bez tła byłby niewidoczny.
   Ten wariant przełącza go na czarny i zdejmuje gradient. */
.sts-promo-card--no-image .sts-promo-header {
    min-height: 0;
    background: none;
    padding-top: 52px; /* miejsce na ikonę typu i datę */
}

.sts-promo-card--no-image .sts-promo-overlay {
    display: none;
}

.sts-promo-card--no-image .sts-promo-title {
    color: #111 !important;
    text-shadow: none;
}

.sts-promo-card--no-image .sts-promo-date {
    background: none;
    box-shadow: none;
    padding: 0;
    font-size: 13px;
    color: #111;
}

.sts-promo-card--no-image .sts-promo-type {
    background: none;
    box-shadow: none;
    padding: 0;
    width: 32px;
    height: 32px;
}

/* Dolne przyciski */
.sts-promo-actions {
    display: flex;
    width: 100%;
}

.sts-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    transition: filter 0.2s, background-color 0.2s;
}

/* Przycisk TYPY - Biały */
.sts-btn-types {
    background-color: #fff;
    color: #000 !important;
    border-right: 1px solid #eee;
}
.sts-btn-types:hover {
    background-color: #f9f9f9;
}

/* Przycisk OBSTAW - ZIELONY */
.sts-btn-bet {
    background-color: #00a826;
    color: #fff !important;
}
.sts-btn-bet:hover {
    filter: brightness(1.1);
}

/* --- STRZAŁKI --- */
.sts-promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.sts-promo-arrow svg {
    width: 24px;
    height: 24px;
}
.sts-promo-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Lewa strzałka - ZIELONA */
.sts-prev {
    left: -10px;
    background-color: #00a826;
    fill: #fff;
}

/* Prawa strzałka - BIAŁA */
.sts-next {
    right: -10px;
    background-color: #fff;
    fill: #000;
}

/* Responsywność */
@media (max-width: 768px) {
    .sts-promo-slider-container { padding: 0; margin: 20px 0; }
    .sts-promo-track { padding: 0 15px 15px 15px; }
    .sts-promo-arrow { display: none; }
}

/* --- TRYB PIONOWY (SIDEBAR) --- */
.sts-layout-vertical {
    padding: 0 !important;
    margin: 0 !important;
}

.sts-layout-vertical .sts-promo-track {
    flex-direction: column; /* Ustawienie pionowe */
    overflow-x: visible;    /* Brak scrolla */
    gap: 20px;
    padding-bottom: 0;
}

.sts-layout-vertical .sts-promo-card {
    width: 100% !important; /* Pełna szerokość sidebara */
    flex: none;             /* Reset flexa */
}

/* Ukrycie strzałek w pionie */
.sts-layout-vertical .sts-promo-arrow {
    display: none !important;
}