/*
 * You Can See Everything — "viewfinder" takeover (inc/promotions/ycse.php, js/promo-ycse.js).
 * Loaded only while the promo is active (?promotion=youcanseeverything).
 *
 * Art: images/promo/ycse/bg.jpg (still, 1600 px wide) and poster.jpg, referenced relative to this file.
 * Look: the poster's wordmark (tight white grotesque) and the blue of the eye, inside a camera
 * viewfinder (REC, corner brackets, timecode). Everything else is set like the rest of the site:
 * Open Sans, with the small labels in the front page's eyebrow style (12px, bold, tracked caps).
 */

.ycse {
    --ycse-ink: #0b0d10;
    --ycse-paper: #f4f1ea;
    --ycse-blue: #2f86e0;
    --ycse-rec: #ff3b30;
    --ycse-font: "Open Sans", Arial, sans-serif;                        /* the site's face */
    --ycse-display: "Helvetica Neue", Helvetica, Arial, sans-serif;     /* the wordmark only */
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--ycse-ink) url(../images/promo/ycse/bg.jpg) 58% 28% / cover no-repeat;
    font-family: var(--ycse-font);
    line-height: 1.4;
}
.ycse *, .ycse *::before, .ycse *::after { box-sizing: border-box; }

/* Legible on the left where the copy sits, the still shows through on the right. */
.ycse__scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 13, 16, .94) 0%, rgba(11, 13, 16, .82) 38%, rgba(11, 13, 16, .35) 70%, rgba(11, 13, 16, .6) 100%),
        linear-gradient(0deg, rgba(11, 13, 16, .9) 0%, rgba(11, 13, 16, 0) 40%);
}

/* ── Viewfinder chrome ──────────────────────────────────────────── */
.ycse__vf { position: absolute; inset: 14px; pointer-events: none; z-index: 1; }
.ycse__corner { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(255, 255, 255, .75); }
.ycse__corner--tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.ycse__corner--tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.ycse__corner--bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.ycse__corner--br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }

.ycse__bar {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 14px;
    max-width: 1200px; margin: 0 auto; padding: 30px 40px 0;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.ycse__rec { display: inline-flex; align-items: center; gap: 7px; }
.ycse__rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--ycse-rec); animation: ycseRec 1.6s steps(1) infinite; }
@keyframes ycseRec { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }
.ycse__label { padding: 2px 7px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 3px; font-size: 10.5px; color: rgba(255, 255, 255, .8); }
.ycse__tc { margin-left: auto; display: inline-flex; align-items: baseline; gap: 10px; }
.ycse__tc-label { color: rgba(255, 255, 255, .78); }
.ycse__tc-time { font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.ycse__tc-time:empty { display: none; }

/* ── Layout ─────────────────────────────────────────────────────── */
.ycse__inner {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 48px;
    max-width: 1200px; margin: 0 auto; padding: 26px 40px 46px;
}
.ycse__main { flex: 1 1 auto; min-width: 0; }

.ycse__kicker {
    margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78);
}

/* The wordmark: two lines, the first pushed right, like the poster. */
.ycse .ycse__title {
    margin: 0; padding: 0; border: 0; background: none;
    font-family: var(--ycse-display);
    font-size: clamp(2.2rem, 6.1vw, 4.7rem); font-weight: 700; line-height: .92; letter-spacing: -.035em; color: #fff; text-transform: none;
}
.ycse__l1, .ycse__l2 { display: block; white-space: nowrap; }
.ycse__l1 { padding-left: 1.55em; }

/* The O is an eye. It follows the cursor; with no mouse it looks around on its own. */
.ycse__eye {
    position: relative; display: inline-block; width: .76em; height: .74em; margin: 0 .03em 0 .02em;
    border-radius: 50%; background: var(--ycse-paper); overflow: hidden; cursor: pointer;
    transform-origin: 50% 55%; transition: transform .09s ease-in;
    box-shadow: inset 0 0 0 .02em rgba(0, 0, 0, .12);
}
.ycse__eye i {
    position: absolute; left: 50%; top: 50%; width: .4em; height: .4em; margin: -.2em 0 0 -.2em; border-radius: 50%;
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95) 0 7%, rgba(255, 255, 255, 0) 8%),
        radial-gradient(circle, #06080b 0 32%, #1c5fb4 33% 46%, var(--ycse-blue) 47% 78%, #153f78 79% 100%);
    transform: translate(var(--ex, 0em), var(--ey, 0em)); transition: transform .12s ease-out;
}
.ycse__eye--idle i { animation: ycseLook 9s ease-in-out infinite; }
@keyframes ycseLook {
    0%, 12% { transform: translate(0, 0); }
    18%, 34% { transform: translate(.13em, -.02em); }
    40%, 52% { transform: translate(-.12em, .03em); }
    58%, 70% { transform: translate(.02em, .11em); }
    76%, 100% { transform: translate(0, 0); }
}
.ycse__eye.is-blink { transform: scaleY(.08); }

.ycse__wink {
    height: 1.2em; margin: 8px 0 0; padding-left: .2em; font-size: 12.5px; font-weight: 600; line-height: 1.2;
    color: rgba(255, 255, 255, .7); opacity: 0; transition: opacity .25s;
}
.ycse__wink.is-on { opacity: 1; }

.ycse__hook { max-width: 36em; margin: 8px 0 0; font-size: 1.06rem; line-height: 1.55; color: rgba(255, 255, 255, .94); }
.ycse__credit { margin: 6px 0 0; font-size: .875rem; color: rgba(255, 255, 255, .7); }

/* ── Buttons ────────────────────────────────────────────────────── */
.ycse__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.ycse .ycse__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: auto; height: 46px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
    background: rgba(11, 13, 16, .35); color: #fff; font-family: var(--ycse-font); font-size: .9rem; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.ycse .ycse__btn:hover { background: rgba(255, 255, 255, .16); border-color: #fff; transform: translateY(-1px); text-decoration: none; }
.ycse .ycse__btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.ycse .ycse__btn--primary { background: #fff; border-color: #fff; color: var(--ycse-ink); padding: 0 26px; }
.ycse .ycse__btn--primary:hover { background: var(--ycse-paper); color: var(--ycse-ink); }

/* "Langar að sjá": the site-wide bookmark convention (neutral off, solid coral on). */
.ycse__save { display: inline-flex; }
.ycse .ycse__save .kca-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ycse .ycse__save .kca-btn::after { content: attr(data-off); }
.ycse .ycse__save .kca-btn.is-on { background: var(--kvik-want, #e0654f); border-color: var(--kvik-want, #e0654f); color: #fff; }
.ycse .ycse__save .kca-btn.is-on svg { fill: currentColor; }
.ycse .ycse__save .kca-btn.is-on::after { content: attr(data-on); }

/* ── Showtimes ──────────────────────────────────────────────────── */
.ycse__times { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); scroll-margin-top: 90px; }
.ycse .ycse__day-title {
    margin: 0 0 12px; padding: 0; border: 0; background: none;
    font-family: var(--ycse-font); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.ycse__cinemas { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.ycse__cinema { display: flex; flex-direction: column; gap: 6px; }
.ycse__cinema[hidden], .ycse a.ycse__time[hidden], .ycse__day[hidden], .ycse__times[hidden] { display: none; }
.ycse__cinema-name { font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .82); }
.ycse__cinema.is-mine .ycse__cinema-name::after {
    content: attr(data-mine); margin-left: 7px; padding: 1px 6px; border-radius: 999px; background: var(--ycse-blue); color: #fff; font-size: .68rem; font-weight: 700;
}
.ycse__cinema-times { display: flex; flex-wrap: wrap; gap: 6px; }
.ycse a.ycse__time {
    display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 8px;
    background: #fff; color: var(--ycse-ink); font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none;
    transition: transform .12s, box-shadow .12s, background .12s;
}
.ycse a.ycse__time:hover { transform: translateY(-1px); background: var(--ycse-paper); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); color: var(--ycse-ink); text-decoration: none; }
.ycse a.ycse__all { display: inline-block; margin-top: 16px; font-size: .9rem; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ycse a.ycse__all:hover { color: var(--ycse-paper); }

/* ── Poster with the autofocus box on the eye ───────────────────── */
.ycse__poster {
    position: relative; flex: 0 0 280px; display: block; border-radius: 6px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6); transform: rotate(1.5deg); transition: transform .25s ease;
}
.ycse__poster:hover { transform: rotate(0deg) scale(1.02); }
.ycse__poster img { display: block; width: 100%; height: auto; }
.ycse__focus { position: absolute; left: 17%; top: 11.5%; width: 40%; height: 19%; animation: ycseFocus 4.5s ease-in-out infinite; }
.ycse__focus::before, .ycse__focus::after, .ycse__focus i::before, .ycse__focus i::after {
    content: ''; position: absolute; width: 22%; height: 26%; border: 0 solid #fff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6));
}
.ycse__focus::before { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.ycse__focus::after { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.ycse__focus i::before { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.ycse__focus i::after { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
@keyframes ycseFocus {
    0%, 100% { transform: scale(1.18); opacity: .55; }
    18%, 82% { transform: scale(1); opacity: 1; }
}

/* ── Trailer ────────────────────────────────────────────────────── */
.ycse__modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 6, 8, .92); }
.ycse__modal[hidden] { display: none; }
.ycse__modal-frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.ycse__modal-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.ycse .ycse__modal-x { position: absolute; right: 16px; top: 12px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.ycse .ycse__modal-x:hover { background: rgba(255, 255, 255, .25); }

/* ── Header badge ───────────────────────────────────────────────── */
.ycse-headbadge { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 9px; border-radius: 10px; background: #0b0d10; color: #fff; text-decoration: none; line-height: 1.2; transition: transform .15s; }
.ycse-headbadge:hover { transform: translateY(-1px); color: #fff; text-decoration: none; }
.ycse-headbadge svg { width: 30px; height: 30px; flex: 0 0 auto; }
.ycse-headbadge__txt { display: flex; flex-direction: column; text-align: left; font-family: "Open Sans", Arial, sans-serif; }
.ycse-headbadge__txt b { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ycse-headbadge__txt span { font-size: .72rem; font-weight: 600; color: rgba(255, 255, 255, .8); }

/* ── Tablet ─────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .ycse__poster { flex-basis: 210px; }
    .ycse__inner { gap: 30px; }
    .ycse__l1 { padding-left: 1.1em; }
}

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .ycse { background-position: 46% 20%; }
    .ycse__scrim { background: linear-gradient(0deg, rgba(11, 13, 16, .96) 0%, rgba(11, 13, 16, .86) 55%, rgba(11, 13, 16, .5) 100%); }
    .ycse__vf { inset: 8px; }
    .ycse__corner { width: 18px; height: 18px; }
    .ycse__bar { padding: 20px 20px 0; font-size: 11px; gap: 8px; }
    .ycse__tc { gap: 7px; }
    .ycse__tc-time { font-size: 13.5px; }
    .ycse__inner { padding: 22px 20px 34px; }
    .ycse__poster { display: none; }
    .ycse .ycse__title { font-size: clamp(2rem, 11.6vw, 3.2rem); }
    .ycse__l1 { padding-left: .5em; }
    .ycse__hook { font-size: 1rem; }
    .ycse__cta { gap: 8px; }
    .ycse .ycse__btn { height: 44px; padding: 0 16px; font-size: .875rem; }
    .ycse .ycse__btn--primary { flex: 1 1 100%; }
    .ycse__cinemas { gap: 12px 18px; }
    .ycse-headbadge__txt b { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ycse__rec i, .ycse__eye--idle i, .ycse__focus { animation: none; }
    .ycse__eye, .ycse__eye i, .ycse__poster, .ycse .ycse__btn, .ycse a.ycse__time { transition: none; }
}
