/* =========================================================================
   KinoLumo — «Подборки» (KinoLumo Selections.dc.html). Needs catalog.css
   (klx-* page shell, crumbs, h1, empty state, «Показать ещё»).
   ========================================================================= */

.kls { gap: 32px; }
.kls-head { display: flex; flex-direction: column; gap: 20px; }
.kls-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.kls-head__text { display: flex; flex-direction: column; gap: 8px; }
.kls-head__sub { font-size: 15px; color: #a3a3a3; max-width: 640px; }

.kls-search {
    display: flex; align-items: center; gap: 14px; height: 56px; width: min(480px, 100%); padding: 0 18px;
    border: 1px solid #333; border-radius: 10px; background: #1c1c1c; transition: border-color .2s; cursor: text;
}
.kls-search:focus-within { border-color: #fff; }
.kls-search i { color: #8c8c8c; font-size: 17px; }
.kls-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: #fff; font: inherit; font-size: 16px; }
.kls-search input::placeholder { color: #8c8c8c; }
.kls-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }

/* ---------------- «Подборка недели» ---------------- */
.klx-page .kls-hero {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center;
    padding: clamp(20px, 3vw, 36px); border-radius: 14px; background: #181818; border: 1px solid #262626; overflow: hidden;
    transition: border-color .3s; color: #fff;
}
.klx-page .kls-hero:hover { border-color: var(--klx-acc); color: #fff; }
.kls-hero__num {
    position: absolute; right: -20px; bottom: -60px; font-family: 'League Gothic', sans-serif; font-size: 260px; line-height: 1;
    color: rgba(var(--klx-acc-rgb), .06); pointer-events: none;
}
/* The watermark «01» is a picture (data-URI SVG): as text it was the page's LCP and waited for its font. */
span.kls-hero__num { width: 260px; height: 260px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ctext x='120' y='112' text-anchor='end' font-family='League Gothic,Impact,Arial Narrow,sans-serif' font-size='120' fill='%23e50914' fill-opacity='.06'%3E01%3C/text%3E%3C/svg%3E") right bottom / contain no-repeat; }
.kls-hero__text { position: relative; display: flex; flex-direction: column; gap: 14px; }
.kls-hero__kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--kl-accent-text, #ff4b55); }
.kls-hero__title { font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.kls-hero__desc { font-size: 15px; line-height: 1.6; color: #d6d6d6; max-width: 520px; }
.kls-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; color: #b3b3b3; }
.kls-hero__meta i.fa-film { color: var(--klx-acc); }
.kls-hero__by { display: flex; align-items: center; gap: 8px; }
.kls-hero__av { width: 26px; height: 26px; border-radius: 50%; background: var(--klx-acc); display: grid; place-items: center; font-size: 11px; color: #fff; }
.kls-hero__fan { position: relative; height: clamp(200px, 22vw, 280px); }
.kls-hero__p {
    position: absolute; left: 50%; bottom: 0; width: clamp(110px, 11vw, 150px); aspect-ratio: 2 / 3; border-radius: 8px;
    background-color: #222; background-size: cover; background-position: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); transform-origin: 50% 120%;
    transform: translateX(calc(-50% + var(--dx, 0px))) rotate(var(--r, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.kls-hero:hover .kls-hero__p { transform: translateX(calc(-50% + var(--dx2, 0px))) rotate(var(--r2, 0deg)); }

/* ---------------- grid ---------------- */
.kls-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.klx-page .kls-card {
    display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 12px; background: #181818; border: 1px solid #262626;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s; animation: klDrop .35s both; color: #fff; min-width: 0;
}
.klx-page .kls-card:hover { border-color: var(--klx-acc); transform: translateY(-4px); color: #fff; }
.kls-card.is-hidden { display: none; }
.kls-card__art { position: relative; height: 190px; border-radius: 8px; background: #141414; overflow: hidden; }
.kls-card__p {
    position: absolute; left: 50%; bottom: -18px; width: 104px; aspect-ratio: 2 / 3; border-radius: 6px; background-color: #222;
    background-size: cover; background-position: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .6); transform-origin: 50% 130%;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1); z-index: 1;
}
.kls-card__p--0 { transform: translateX(calc(-50% - 26px)) rotate(-7deg); }
.kls-card__p--1 { transform: translateX(-50%) rotate(0deg); z-index: 3; }
.kls-card__p--2 { transform: translateX(calc(-50% + 26px)) rotate(7deg); }
.kls-card:hover .kls-card__p--0 { transform: translateX(calc(-50% - 48px)) rotate(-12deg); }
.kls-card:hover .kls-card__p--2 { transform: translateX(calc(-50% + 48px)) rotate(12deg); }
.kls-card__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 48px; font-weight: 900; color: #333; }
.kls-card__tag {
    position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .75);
    font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; z-index: 5;
}
.kls-card__tag.is-ed { background: var(--klx-acc); }
.kls-card__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kls-card__title {
    font-size: 17px; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 2.5em;
}
.kls-card__desc {
    font-size: 13px; color: #8c8c8c; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.9em; line-height: 1.45;
}
.kls-card__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #262626;
    font-size: 12px; font-weight: 700; color: #b3b3b3;
}
.kls-card__author { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kls-card__author > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kls-card__av {
    flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #54b9c5; display: grid; place-items: center;
    font-size: 10px; font-weight: 900; color: #fff;
}
.kls-card__av.is-ed { background: var(--klx-acc); }
.kls-card__count { white-space: nowrap; }
.kls-card__count i { color: var(--klx-acc); }

.kls-skel { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 12px; background: #181818; }

@media (max-width: 1199px) { .kls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { .klx-page .kls-hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 699px) { .kls-grid { grid-template-columns: minmax(0, 1fr); } }
.kls-hero[hidden], .klx-page .klx-more[hidden], .klx-page .klx-empty[hidden] { display: none; }

/* The KINOLUMO «K.» mark instead of a letter in a circle — editorial picks. */
.kls-hero__av.is-brand { border-radius: 7px; background: #0b0b0b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.kls-hero__av .kls-mark { display: block; height: 11px; width: auto; }
.kls-card__tag .kls-mark { display: inline-block; height: 9px; width: auto; margin-right: 1px; vertical-align: -1px; }
.kls-card__tag.is-ed .kls-mark path:first-child { color: #fff !important; }

/* Speed: the picks grid appears at once (no staggered fade-in). */
.klx-page .kls-card { animation: none; }
