/* "Hvað langar þig að sjá?" — template-hvad-langar.php + js/hvad-langar.js */
.hl-page {
    --hl-ink: #1a1f24;
    --hl-card: #1a1f24;
    --hl-card-2: #242b31;
    --hl-line: rgba(255, 255, 255, .12);
    --hl-muted: rgba(255, 255, 255, .68);
    --hl-teal: var(--kvik-seen, #62b0ba);
    --hl-coral: var(--kvik-want, #e0654f);
    background: #f3f5f6;
    padding: 28px 0 56px;
}
.hl-page [hidden] { display: none !important; }
.hl-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.hl-head { margin-bottom: 18px; background: none; padding: 0; }
.hl-head__title { margin: 0 0 6px; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.15; font-weight: 800; color: var(--hl-ink); letter-spacing: -.01em; }
.hl-head__sub { margin: 0; font-size: 16px; line-height: 1.5; color: #4b5563; }

/* The quiz card */
.hl-quiz {
    position: relative; min-height: 340px; padding: 26px 26px 22px; border-radius: 18px;
    background: radial-gradient(120% 90% at 100% 0%, #2b3640 0%, var(--hl-card) 60%);
    color: #fff; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55);
}
.hl-quiz p { color: inherit; }

.hl-steps { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.hl-steps li { flex: 0 0 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.hl-steps li.is-done { background: var(--hl-teal); }
.hl-steps li.is-now { background: #fff; }

.hl-q__text { margin: 0 0 18px; font-size: clamp(22px, 3.6vw, 30px); line-height: 1.2; font-weight: 800; color: #fff; }
.hl-q__answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.hl-ans {
    display: flex; align-items: center; min-height: 58px; padding: 12px 16px; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--hl-line); background: var(--hl-card-2); color: #fff;
    font: inherit; font-size: 16px; font-weight: 600; line-height: 1.3; text-align: left;
    transition: transform .12s, background .15s, border-color .15s;
}
.hl-ans:hover, .hl-ans:focus-visible { background: #2f3840; border-color: rgba(255, 255, 255, .35); outline: none; }
.hl-ans:active { transform: scale(.98); }
.hl-ans.is-picked { background: var(--hl-teal); border-color: var(--hl-teal); color: #0f1a1c; }
.hl-q.is-in .hl-q__text, .hl-q.is-in .hl-ans { animation: hl-in .28s ease both; }
.hl-q.is-in .hl-ans:nth-child(2) { animation-delay: .04s; }
.hl-q.is-in .hl-ans:nth-child(3) { animation-delay: .08s; }
.hl-q.is-in .hl-ans:nth-child(4) { animation-delay: .12s; }
@keyframes hl-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hl-link { margin-top: 16px; padding: 0; border: 0; background: none; color: var(--hl-muted); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hl-link:hover { color: #fff; }

.hl-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 290px; gap: 14px; text-align: center; }
.hl-loading p { margin: 0; font-size: 16px; color: var(--hl-muted); }
.hl-spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .18); border-top-color: var(--hl-teal); animation: hl-spin .8s linear infinite; }
@keyframes hl-spin { to { transform: rotate(360deg); } }

/* Result */
.hl-note { margin: 0 0 14px; padding: 9px 12px; border-radius: 10px; background: rgba(98, 176, 186, .16); font-size: 14px; color: #d6f0f3 !important; }
.hl-note--soft { background: rgba(255, 255, 255, .07); color: var(--hl-muted) !important; }
.hl-pick { display: grid; grid-template-columns: 200px 1fr; gap: 22px; animation: hl-in .3s ease both; }
.hl-pick__poster { display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--hl-card-2); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7); }
.hl-pick__poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hl-pick__noposter { display: flex; align-items: center; justify-content: center; height: 100%; padding: 12px; text-align: center; font-weight: 700; color: var(--hl-muted); }
.hl-pick__body { min-width: 0; }
.hl-pick__kicker { margin: 2px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-teal) !important; }
.hl-pick__title { margin: 0 0 6px; font-size: clamp(24px, 3.8vw, 32px); line-height: 1.15; font-weight: 800; }
.hl-pick__title a { color: #fff; text-decoration: none; }
.hl-pick__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hl-pick__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 14px; color: var(--hl-muted); }
.hl-pick__meta .sn-dot { opacity: .6; }
.hl-pick__imdb b { color: #f5c518; font-weight: 800; }
.hl-pick__genres { margin-top: 3px; font-size: 14px; color: var(--hl-muted); }
.hl-pick__why { margin: 14px 0 0; font-size: 18px; line-height: 1.45; color: #fff !important; }

.hl-pick__go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.hl-watch {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px;
    background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
}
.hl-watch img { height: 20px; width: auto; max-width: 60px; padding: 2px 4px; border-radius: 4px; background: #fff; }
.hl-watch:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.hl-watch--main { height: 46px; padding: 0 18px 0 10px; background: var(--hl-coral); font-size: 16px; font-weight: 700; }
.hl-watch--main:hover { background: var(--kvik-want-dark, #c9553f); }
.hl-pick__when { flex: 1 0 100%; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-muted) !important; }
.hl-times { display: flex; flex-wrap: wrap; gap: 8px; }
.hl-time {
    display: inline-flex; flex-direction: column; justify-content: center; min-width: 84px; padding: 7px 12px; border-radius: 10px;
    background: var(--hl-coral); color: #fff; text-decoration: none; line-height: 1.2;
}
.hl-time b { font-size: 17px; }
.hl-time small { font-size: 12px; opacity: .9; }
.hl-time:hover { background: var(--kvik-want-dark, #c9553f); color: #fff; }
.hl-pick__more { font-size: 14px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.hl-pick__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hl-line); }
.hl-act {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600;
}
.hl-act svg { width: 17px; height: 17px; }
.hl-act:hover { border-color: #fff; }
.hl-act.kca-btn--want.is-on { background: var(--hl-coral); border-color: var(--hl-coral); }
.hl-act.kca-btn--seen.is-on { background: var(--hl-teal); border-color: var(--hl-teal); color: #0f1a1c; }
.hl-act--nope { margin-left: auto; border-color: transparent; background: rgba(255, 255, 255, .1); }
.hl-act--nope:hover { background: rgba(255, 255, 255, .18); border-color: transparent; }
.hl-act--nope span { font-size: 16px; line-height: 1; }

.hl-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hl-btn {
    height: 42px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
    background: #fff; color: var(--hl-ink); font: inherit; font-size: 15px; font-weight: 700;
}
.hl-btn:hover { background: #e9edf0; }
.hl-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.hl-btn--ghost:hover { background: rgba(255, 255, 255, .08); }

.hl-empty { padding: 20px 4px; text-align: center; font-size: 16px; }
.hl-quiz .hl-empty p { color: var(--hl-muted); }

.hl-prefs { margin-top: 14px; }

/* Sign-in nudge (guests) */
.hl-nudge { margin-top: 14px; padding: 18px 20px; border-radius: 14px; background: var(--hl-card); color: #fff; }
.hl-nudge__h { margin: 0 0 4px; font-size: 16px; line-height: 1.45; font-weight: 600; color: #fff !important; }
.hl-nudge .kvik-notify { margin-top: 10px; }
.hl-nudge .kvik-notify [hidden] { display: none !important; }
.hl-nudge .kvik-notify__row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hl-nudge .kvik-notify__input {
    flex: 0 1 260px; min-width: 0; height: 42px; padding: 0 14px; box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: #fff; color: var(--hl-ink); font-size: 15px;
}
.hl-nudge .kvik-notify__input.kvik-el-code { flex: 0 1 140px; text-align: center; letter-spacing: 5px; font-weight: 700; }
.hl-nudge .kvik-notify__btn {
    height: 42px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--hl-coral); color: #fff; font-size: 14px; font-weight: 700;
}
.hl-nudge .kvik-notify__btn:disabled { opacity: .6; }
.hl-nudge .kvik-notify__sent, .hl-nudge .kvik-notify__links { flex: 1 0 100%; margin: 0; font-size: 13px; color: rgba(255, 255, 255, .85); }
.hl-nudge .kvik-notify__links a, .hl-nudge .kvik-notify__fine a { color: #fff; text-decoration: underline; }
.hl-nudge .kvik-notify__msg { margin-top: 8px; padding: 7px 11px; border-radius: 8px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 180, 165, .6); color: #ffd9d1; font-size: 13px; }
.hl-nudge .kvik-notify__msg.is-ok { border-color: rgba(98, 176, 186, .7); color: #cfeef2; }
.hl-nudge .kvik-notify__fine { margin: 9px 0 0; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, .65); }
.hl-nudge .kvik-el-hp { position: absolute; left: -9999px; }

.hl-admin { margin-top: 18px; font-size: 13px; color: #6b7280; }

@media (max-width: 640px) {
    .hl-page { padding-top: 18px; }
    .hl-quiz { padding: 20px 16px 18px; border-radius: 14px; }
    .hl-q__answers { grid-template-columns: 1fr; }
    .hl-pick { grid-template-columns: 110px 1fr; gap: 14px; }
    .hl-pick__why { font-size: 16px; }
    .hl-pick__go, .hl-pick__acts { grid-column: 1 / -1; }
    .hl-act--nope { margin-left: 0; }
    .hl-nudge .kvik-notify__input { flex: 1 1 100%; height: 44px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .hl-q.is-in .hl-q__text, .hl-q.is-in .hl-ans, .hl-pick { animation: none; }
}
.hl-nudge.is-loud { box-shadow: 0 0 0 2px var(--hl-coral); }