/*
 * "Serije in filmi": the homepage panel and the page with one chapter per title.
 * Loaded only on pages that use the "Series: ..." blocks. Each block wraps its content in .se.
 * Ads on this site are wide pictures on white; series and films are portrait posters on black.
 */

.se {
    --se-pink: #F6BBD4;
    --se-dark: #12110C;
    --se-gray: #8d8d8a;
    --se-soft: rgba(255, 255, 255, .72);
    --se-line: rgba(255, 255, 255, .14);
    --se-mono: 'Source Code Pro', monospace;
    --se-sans: 'Metropolis', sans-serif;
    --se-cut: polygon(0 0, 100% 0, 100% 91%, 86% 100%, 0 100%);
}

/* Narrow enough to clear the fixed logo and menu button on wide screens */
.se .se-wrap {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Small mono line */
.se .se-k {
    display: block;
    font-family: var(--se-mono);
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: .5px;
    color: var(--se-gray);
}

.se .se-k b {
    color: var(--se-pink);
    font-weight: 500;
}

.se .se-h {
    margin: 12px 0 0;
    font-family: var(--se-sans);
    font-size: 40px;
    font-weight: 800;
    line-height: 52px;
}

.se .dark-bg .se-h strong,
.se.dark-bg .se-h strong {
    color: var(--se-pink);
    font-weight: 800;
}

/* Pink line: tagline or highlight. Not in the marker font, which has no č, š, ž. */
.se .se-mark {
    display: block;
    font-family: var(--se-sans);
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    color: var(--se-pink);
}

/* Text link with the turning plus, as on the theme's buttons */
.se .se-more {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--se-pink);
    font-family: var(--se-sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
}

.se .se-more .plus {
    display: inline-block;
    margin-left: 10px;
    color: var(--se-pink);
    -webkit-transition: -webkit-transform .5s ease-in-out;
    transition: transform .5s ease-in-out;
}

.se .se-more:hover .plus {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

/* Trailer button */
.se .se-play {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    gap: 10px;
    height: auto;
    margin: 14px 0 0;
    padding: 0;
    border: 0;
    background: none;
    -webkit-clip-path: none;
    clip-path: none;
    font-family: var(--se-sans);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.se .se-play .tri-arrow {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 10px;
    -webkit-transition: -webkit-transform .35s ease;
    transition: transform .35s ease;
}

.se .se-play:hover .tri-arrow {
    -webkit-transform: translateX(4px);
    transform: translateX(4px);
}

.se .se-play.is-big {
    gap: 16px;
    margin: 0;
}

.se .se-play-chip {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #fff;
    -webkit-clip-path: polygon(0 0, 100% 0, 82% 85%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 82% 85%, 0 100%);
}

.se .se-play-chip .tri-arrow {
    margin-right: 4px;
}

/* ---------- Homepage panel ---------- */

.se-panel {
    padding: 120px 0 130px;
    overflow: hidden;
}

.se .se-head {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px;
    -webkit-box-align: end;
    align-items: end;
    margin-bottom: 64px;
}

.se .se-head-side p {
    margin: 0 0 18px;
    color: var(--se-soft);
}

.se .se-posters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
}

/* Every second poster hangs lower, like frames on a strip */
.se .se-poster:nth-child(even) {
    margin-top: 44px;
}

.se .se-poster-img {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #1d1c16;
    -webkit-clip-path: var(--se-cut);
    clip-path: var(--se-cut);
}

.se .se-poster-img img,
.se .se-still img,
.se .se-chapter-poster img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: -webkit-transform .9s cubic-bezier(.2, .7, .2, 1), -webkit-filter .5s ease;
    transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}

.se .se-poster-img img {
    -webkit-filter: saturate(.8);
    filter: saturate(.8);
}

.se .se-poster:hover .se-poster-img img {
    -webkit-transform: scale(1.06);
    transform: scale(1.06);
    -webkit-filter: none;
    filter: none;
}

.se .se-num {
    position: absolute;
    top: 0;
    left: 0;
    padding: 7px 16px 8px 10px;
    background: var(--se-pink);
    -webkit-clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    font-family: var(--se-mono);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    color: var(--se-dark);
}

.se .se-poster-meta {
    padding-top: 18px;
}

.se .se-poster-meta h3 {
    margin: 0 0 6px;
    font-family: var(--se-sans);
    font-size: 22px;
    font-weight: 800;
    line-height: 28px;
}

.se .se-poster-meta h3 a {
    color: #fff;
    text-decoration: none;
}

.se .se-poster .se-mark {
    margin-top: 6px;
    font-size: 14px;
    line-height: 20px;
}

/* ---------- Page: heading ---------- */

.se .se-hero {
    max-width: 780px;
    margin: 0 auto;
    padding: 184px 20px 96px;
    text-align: center;
}

.se .se-hero .h1 {
    margin: 20px 0 20px;
}

/* On white the highlighted words get a pink marker stroke */
.se .se-hero .h1 strong {
    color: var(--se-dark);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(62%, transparent), color-stop(62%, var(--se-pink)));
    background: linear-gradient(transparent 62%, var(--se-pink) 62%);
    font-weight: 800;
}

.se .se-index {
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    justify-content: center;
    gap: 10px 28px;
    margin-top: 40px;
}

.se .se-index a {
    border-bottom: 2px solid transparent;
    font-family: var(--se-mono);
    font-size: 14px;
    font-weight: 500;
    line-height: 26px;
    text-decoration: none;
    color: var(--se-dark);
    -webkit-transition: border-color .3s ease;
    transition: border-color .3s ease;
}

.se .se-index a span {
    margin-right: 8px;
    color: var(--se-gray);
}

.se .se-index a:hover {
    border-color: var(--se-pink);
}

/* ---------- Page: one chapter per title ---------- */

.se .se-chapter {
    padding: 112px 0;
}

.se .se-chapter + .se-chapter {
    border-top: 1px solid var(--se-line);
}

.se .se-chapter .se-wrap {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 88px;
    -webkit-box-align: center;
    align-items: center;
}

.se .se-chapter.is-flipped .se-wrap {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.se .se-chapter.is-flipped .se-media {
    -webkit-box-ordinal-group: 3;
    order: 2;
}

.se .se-media {
    position: relative;
    padding-bottom: 56px;
}

.se .se-still {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1d1c16;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 7% 100%, 0 89%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 7% 100%, 0 89%);
}

.se .se-still:hover img,
.se .se-chapter-poster:hover img {
    -webkit-transform: scale(1.04);
    transform: scale(1.04);
}

/* The poster sits on the corner of the wide picture */
.se .se-chapter-poster {
    position: absolute;
    right: -28px;
    bottom: 0;
    display: block;
    width: 30%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #1d1c16;
    outline: 8px solid var(--se-dark);
}

.se .se-chapter.is-flipped .se-chapter-poster {
    right: auto;
    left: -28px;
}

.se .se-chapter.is-flipped .se-still {
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 89%, 93% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 89%, 93% 100%, 0 100%);
}

.se .se-body .se-k {
    color: var(--se-soft);
}

.se .se-body .se-h {
    margin-top: 10px;
    font-size: 52px;
    line-height: 60px;
}

.se .se-body .se-mark {
    margin-top: 10px;
    font-size: 20px;
    line-height: 28px;
}

.se .se-body p {
    margin: 22px 0 0;
    line-height: 30px;
    color: var(--se-soft);
}

.se .se-facts {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 22px;
    margin: 28px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--se-line);
    font-family: var(--se-mono);
    font-size: 13px;
    line-height: 22px;
}

.se .se-facts dt {
    color: var(--se-gray);
}

.se .se-facts dd {
    margin: 0;
    color: #fff;
}

.se .se-facts dd.is-highlight {
    color: var(--se-pink);
}

.se .se-actions {
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    -webkit-box-align: center;
    align-items: center;
    gap: 20px 36px;
    margin-top: 34px;
}

/* ---------- Page: closing line ---------- */

.se .se-closing {
    padding: 104px 0 110px;
    background: var(--se-pink);
    text-align: center;
}

.se .se-closing .se-h {
    margin: 0;
    color: var(--se-dark);
}

.se .se-closing .se-h strong {
    border-bottom: 4px solid var(--se-dark);
    font-weight: 800;
}

.se .se-closing p {
    max-width: 560px;
    margin: 14px auto 0;
    color: var(--se-dark);
}

.se .se-closing .se-more {
    margin-top: 30px;
    border-color: var(--se-dark);
    color: var(--se-dark);
}

.se .se-closing .se-more .plus {
    color: var(--se-dark);
}

/* ---------- Phones and tablets ---------- */

@media only screen and (max-width: 1079px) {
    .se .se-h {
        font-size: 30px;
        line-height: 40px;
    }

    .se-panel {
        padding: 72px 0 80px;
    }

    .se .se-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-bottom: 36px;
    }

    /* Posters become one row to swipe through */
    .se .se-posters {
        display: -webkit-box;
        display: flex;
        gap: 16px;
        margin: 0 -20px;
        padding: 0 20px 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
        scrollbar-width: none;
    }

    .se .se-posters::-webkit-scrollbar {
        display: none;
    }

    .se .se-poster,
    .se .se-poster:nth-child(even) {
        -webkit-box-flex: 0;
        flex: 0 0 62%;
        max-width: 260px;
        margin-top: 0;
        scroll-snap-align: start;
    }

    .se .se-hero {
        padding: 130px 20px 64px;
    }

    .se .se-index {
        gap: 6px 20px;
        margin-top: 28px;
    }

    .se .se-chapter {
        padding: 64px 0 72px;
    }

    .se .se-chapter .se-wrap,
    .se .se-chapter.is-flipped .se-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .se .se-chapter.is-flipped .se-media {
        -webkit-box-ordinal-group: 1;
        order: 0;
    }

    .se .se-media {
        padding-bottom: 40px;
    }

    .se .se-chapter-poster,
    .se .se-chapter.is-flipped .se-chapter-poster {
        right: 12px;
        left: auto;
        width: 32%;
        outline-width: 6px;
    }

    .se .se-body .se-h {
        font-size: 34px;
        line-height: 42px;
    }

    .se .se-body .se-mark {
        font-size: 18px;
        line-height: 26px;
    }

    .se .se-closing {
        padding: 72px 0 76px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .se .se-poster-img img,
    .se .se-still img,
    .se .se-chapter-poster img,
    .se .se-more .plus,
    .se .se-play .tri-arrow {
        -webkit-transition: none;
        transition: none;
    }
}
