/* ==========================================================================
   Front page v4 (template-frontpage-v4.php)
   Same visual language as /streymi/ (css/streymi-nytt.css).
   ========================================================================== */

.fp4 {
    --fp4-ink: var(--kvik-ink, #1a1f24);
    --fp4-muted: var(--kvik-muted, #6b7280);
    --fp4-line: #e6eaed;
    --fp4-bg: #f3f5f6;
    --fp4-teal: var(--kvik-teal, #62b0ba);
    --fp4-teal-dark: var(--kvik-teal-dark, #0d9488);
    --fp4-want: var(--kvik-want, #e0654f);
    background: var(--fp4-bg);
    color: var(--fp4-ink);
    font-family: 'Open Sans', Arial, sans-serif;
    padding: 20px 0 56px;
}
.fp4-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 16px; box-sizing: border-box; }
.fp4-section { margin-top: 36px; }
.fp4 a { color: inherit; text-decoration: none; }
.fp4-muted { color: var(--fp4-muted); }

.fp4 .fp4-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 0; background: none; }
.fp4 .fp4-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; background: none; font-size: 22px; font-weight: 800; color: var(--fp4-ink); }
.fp4-head a { font-size: 14px; font-weight: 700; color: var(--fp4-teal-dark); white-space: nowrap; }
.fp4-head a:hover { text-decoration: underline; }

.fp4-chip { display: inline-block; padding: 1px 8px; border-radius: 5px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 700; }
.fp4-chip--imdb { background: #f5c518; color: #111; }

.fp4-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid transparent; }
.fp4-btn--primary { background: #fff; color: var(--fp4-ink) !important; }
.fp4-btn--primary:hover { background: #e6f3f4; }
.fp4-btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff !important; }
.fp4-btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.fp4-btn--want { background: var(--fp4-want); color: #fff !important; }
.fp4-btn--want:hover { background: var(--kvik-want-dark, #c9553f); }

/* ── 1. Featured + next showings ──────────────────────────────────────── */
.fp4-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.fp4-feature {
    position: relative; overflow: hidden; border-radius: 16px; min-height: 380px; display: flex; align-items: flex-end;
    background: linear-gradient(135deg, #2b3034, #2f4b50); color: #fff; gap: 22px; padding: 0 0 0 26px;
}
.fp4-feature::before { content: ''; position: absolute; inset: 0; background: var(--fp4-backdrop, none) center 25% / cover no-repeat; }
.fp4-feature--noback::before { filter: blur(22px) saturate(1.15); transform: scale(1.2); opacity: .75; }
.fp4-feature__poster { position: relative; z-index: 1; flex: 0 0 150px; align-self: flex-end; margin-bottom: 26px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.fp4-feature__poster img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.fp4-feature__shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(10, 14, 18, .92) 10%, rgba(10, 14, 18, .45) 55%, rgba(10, 14, 18, .1)); }
.fp4-feature__body { position: relative; z-index: 1; padding: 26px 28px 26px 0; max-width: 600px; }
.fp4-feature__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9fd6dc; }
.fp4 .fp4-feature__title { margin: 6px 0 8px; padding: 0; background: none; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; color: #fff; }
.fp4-feature__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.fp4-feature__plot { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.fp4-feature__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.fp4-next { background: #fff; border-radius: 16px; padding: 18px 18px 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 6px 16px rgba(0, 0, 0, .04); display: flex; flex-direction: column; }
.fp4-next__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.fp4 .fp4-next__head h2 { margin: 0; padding: 0; background: none; font-size: 18px; font-weight: 800; color: var(--fp4-ink); }
.fp4-next__head a { font-size: 13px; font-weight: 700; color: var(--fp4-teal-dark); }
.fp4-next__list { list-style: none; margin: 0; padding: 0; }
.fp4-next__item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--fp4-line); }
.fp4-next__list li:first-child .fp4-next__item { border-top: 0; }
.fp4-next__item:hover b { color: var(--fp4-teal-dark); }
.fp4-next__time { font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 800; }
.fp4-next__film { display: flex; flex-direction: column; min-width: 0; }
.fp4-next__film b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp4-next__film small { font-size: 12px; color: var(--fp4-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp4-next__film em { font-style: normal; font-weight: 700; color: var(--fp4-teal-dark); }
.fp4-next__soon { font-size: 12px; font-weight: 700; color: var(--kvik-want-dark, #c9553f); white-space: nowrap; }
.fp4-next__empty { padding: 14px 0; font-size: 14px; color: var(--fp4-muted); }

/* ── 2. Personal week / pitch ─────────────────────────────────────────── */
.fp4-mine { background: var(--kvik-want-soft, #fdece8); border-radius: 16px; padding: 18px; }
.fp4-mine__row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.fp4-mine__item { flex: 0 0 132px; display: flex; flex-direction: column; gap: 4px; }
.fp4-mine__item img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.fp4-mine__title { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.fp4-mine__why { font-size: 12px; font-weight: 700; color: var(--fp4-teal-dark); }
.fp4-mine__why--premiere { color: #b45309; }
.fp4-mine__why--cinema { color: var(--kvik-want-dark, #c9553f); }

.fp4-pitch { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 22px; border-radius: 16px; background: linear-gradient(120deg, #fdece8, #e6f3f4); border: 1px solid #f6d5cd; }
.fp4-pitch__text strong { display: block; font-size: 18px; margin-bottom: 6px; }
.fp4-pitch__text ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: #374151; }

/* ── 3–5. Cards ───────────────────────────────────────────────────────── */
.fp4-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.fp4-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.fp4-card { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fp4-card--row { flex: 0 0 150px; scroll-snap-align: start; }
.fp4-card__poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: #dfe5e8; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 6px 14px rgba(0, 0, 0, .06); transition: transform .15s ease, box-shadow .15s ease; }
.fp4-card__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp4-card:hover .fp4-card__poster { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0, 0, 0, .12), 0 14px 28px rgba(0, 0, 0, .1); }
.fp4-card__title { font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fp4-card:hover .fp4-card__title { color: var(--fp4-teal-dark); }
.fp4-card__meta { font-size: 12.5px; color: var(--fp4-muted); }
.fp4-card__next { color: var(--fp4-teal-dark); font-weight: 700; }
.fp4-badge { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(20, 24, 28, .82); color: #fff; font-size: 11px; font-weight: 700; }

.fp4-ice { background: #fff; border-radius: 16px; padding: 18px 18px 14px; margin-top: 36px; max-width: 1168px; }
.fp4-flag { width: 22px; height: 16px; border-radius: 3px; display: inline-block; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 18'%3E%3Crect width='25' height='18' rx='2' fill='%2302529c'/%3E%3Cpath d='M0 9h25M9 0v18' stroke='%23fff' stroke-width='4'/%3E%3Cpath d='M0 9h25M9 0v18' stroke='%23dc1e35' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ── 6. Streaming tabs (cards come from css/streymi-nytt.css) ─────────── */
.fp4-stream.sn-page { background: none; padding-bottom: 0; }
.fp4-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: #e6eaed; margin-bottom: 16px; }
.fp4-tab { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 700; color: #4b5563; cursor: pointer; }
.fp4-tab.is-on { background: #fff; color: var(--fp4-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* ── 7. News ──────────────────────────────────────────────────────────── */
.fp4-news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fp4-news__item { display: flex; flex-direction: column; gap: 6px; }
.fp4-news__img { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #dfe5e8; }
.fp4-news__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp4-news__title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.fp4-news__item:hover .fp4-news__title { color: var(--fp4-teal-dark); }
.fp4-news__date { font-size: 12px; color: var(--fp4-muted); }

/* ── 8. For you (v3 AJAX markup, shown as a scroll row without Swiper) ── */
.fp4-foryou .swiper-wrapper { display: flex; gap: 16px; overflow-x: auto; transform: none !important; padding-bottom: 6px; }
.fp4-foryou .swiper-slide { flex: 0 0 150px; width: 150px !important; margin: 0 !important; }
.fp4-foryou .swiper-button-next, .fp4-foryou .swiper-button-prev, .fp4-foryou .swiper-pagination { display: none; }

@media (max-width: 900px) {
    .fp4-top { grid-template-columns: 1fr; }
    .fp4-feature { min-height: 320px; }
    .fp4-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .fp4 .fp4-head h2 { font-size: 19px; }
    .fp4-feature { padding-left: 18px; gap: 14px; }
    .fp4-feature__body { padding: 20px 18px 20px 0; }
    .fp4-feature__poster { flex-basis: 96px; margin-bottom: 20px; }
    .fp4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .fp4-card--row, .fp4-mine__item { flex-basis: 128px; }
}
@media (prefers-reduced-motion: reduce) {
    .fp4-card__poster { transition: none; }
}

/* ── Ads, followed series, most wanted, bottom lists ──────────────────── */
.fp4-side-ad { display: none; }
@media (min-width: 1860px) {
    .fp4-side-ad { display: block; position: fixed; top: 100px; right: calc((100vw - 1200px) / 2 - 330px); width: 310px; z-index: 50; }
    .fp4-side-ad iframe { display: block; }
}
.fp4 .fp4-sub { margin: -8px 0 14px; font-size: 13.5px; color: var(--fp4-muted); }
.fp4-badge--ep { left: auto; right: 8px; top: auto; bottom: 8px; background: rgba(13, 148, 136, .92); }
.fp4-ep__when { color: var(--fp4-teal-dark); }
.fp4-rank { position: absolute; left: 8px; bottom: 6px; font-size: 34px; font-weight: 800; line-height: 1; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.fp4-want { font-weight: 800; color: var(--kvik-want-dark, #c9553f); }
.fp4-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fp4-list { background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 6px 16px rgba(0, 0, 0, .04); }
.fp4 .fp4-list h3 { margin: 0 0 10px; padding: 0; background: none; font-size: 17px; font-weight: 800; color: var(--fp4-ink); }
.fp4-list ol { list-style: none; counter-reset: fp4n; margin: 0; padding: 0; }
.fp4-list li { counter-increment: fp4n; display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--fp4-line); font-size: 14px; line-height: 1.35; }
.fp4-list li:first-child { border-top: 0; }
.fp4-list li::before { content: counter(fp4n); flex: 0 0 18px; font-weight: 800; color: var(--fp4-teal-dark); font-variant-numeric: tabular-nums; }
.fp4-list li a:hover { color: var(--fp4-teal-dark); }
.fp4-list__more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--fp4-teal-dark) !important; }
.fp4-list__src { display: block; margin-top: 8px; font-size: 11.5px; color: var(--fp4-muted); }
@media (max-width: 900px) { .fp4-lists { grid-template-columns: 1fr; } }

/* ── Í bíó í dag: one compact row + "all films" tile ──────────────────── */
.fp4 .fp4-count { font-size: 14px; font-weight: 600; color: var(--fp4-muted); }
.fp4-row--compact .fp4-card--row { flex-basis: 128px; }
.fp4-row--compact .fp4-card__title { font-size: 13.5px; }
.fp4-more-tile .fp4-card__poster { background: linear-gradient(150deg, #2b3034, #2f4b50); }
.fp4-more-tile__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; text-align: center; color: #fff; }
.fp4-more-tile__in b { font-size: 36px; font-weight: 800; line-height: 1; }
.fp4-more-tile__in span { font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .85); }
.fp4-more-tile__in em { margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 700; color: #9fd6dc; }
@media (max-width: 560px) { .fp4-row--compact .fp4-card--row { flex-basis: 112px; } }

/* ── Þín vika: list films + followed episodes in one row ──────────────── */
.fp4-head__links { display: inline-flex; gap: 14px; }
.fp4-mine__poster { position: relative; display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); background: #f3d9d2; aspect-ratio: 2 / 3; }
.fp4-mine__poster img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; display: block; }
.fp4-mine__item { flex-basis: 120px; }
.fp4-mine__why--episode { color: #7e22ce; }

/* ── Síminn partnership block ─────────────────────────────────────────── */
.fp4-partner { background: #fff; border-radius: 16px; padding: 18px 18px 14px; max-width: 1168px; border: 1px solid #e3e8eb; }
.fp4-partner__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.fp4-partner__logo { height: 34px; width: auto; flex: 0 0 auto; }
.fp4-partner__label { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fp4-muted); }
.fp4 .fp4-partner__head h2 { margin: 2px 0 2px; padding: 0; background: none; font-size: 20px; font-weight: 800; color: var(--fp4-ink); }
.fp4-partner__head p { margin: 0; font-size: 13.5px; color: #4b5563; }
.fp4-partner__preview { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #fff7ed; color: #9a3412; font-size: 12px; font-weight: 700; }
.fp4-sim { flex: 0 0 140px; display: flex; flex-direction: column; gap: 5px; min-width: 0; scroll-snap-align: start; }
.fp4-sim .fp4-card__title:hover { color: var(--fp4-teal-dark); }
.fp4 .fp4-sim .kca-btn.fp4-sim__follow {
    position: static; width: 100%; height: 32px; margin-top: 2px; padding: 0 10px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: #fff; border: 1px solid var(--kvik-action-off-line, #d4dadf); color: var(--kvik-action-off-ink, #374151);
    font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transform: none; box-shadow: none;
}
.fp4 .fp4-sim .kca-btn.fp4-sim__follow svg { width: 14px; height: 14px; fill: none; stroke: var(--kvik-want, #e0654f); stroke-width: 2; stroke-linejoin: round; }
.fp4 .fp4-sim .kca-btn.fp4-sim__follow.is-on { background: var(--kvik-want, #e0654f); border-color: var(--kvik-want, #e0654f); color: #fff; }
.fp4 .fp4-sim .kca-btn.fp4-sim__follow.is-on svg { stroke: #fff; fill: #fff; }
.fp4-sim__watch { font-size: 12px; font-weight: 700; color: var(--fp4-teal-dark) !important; text-align: center; }
.fp4-sim__watch:hover { text-decoration: underline !important; }
.fp4-partner__cta { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--fp4-line); font-size: 13.5px; color: #4b5563; }
.fp4-partner__cta a { font-weight: 800; color: var(--fp4-teal-dark) !important; }
@media (max-width: 560px) { .fp4-sim { flex-basis: 124px; } .fp4-partner__cta { justify-content: flex-start; flex-wrap: wrap; } }
.fp4-sim .fp4-card__meta { flex: 1; }   /* align follow buttons across cards */

/* ── Íslenskt: where/what pills on the posters ────────────────────────── */
.fp4-pill { position: absolute; left: 7px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.5; color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.fp4-pill--cinema, .fp4-pill--soon, .fp4-pill--stream { top: 7px; }
.fp4-pill--cinema { background: #ea580c; }   /* not coral: coral = "Langar að sjá" */
.fp4-pill--soon { background: #b45309; }
.fp4-pill--stream { background: var(--fp4-teal-dark); }
.fp4-pill--type { bottom: 7px; background: rgba(20, 24, 28, .78); font-weight: 700; }

/* 5c. Kvikmyndalistar row — tiles from css/kvikmyndalistar.css in a horizontal scroller */
.fp4-listrow { gap: 14px; padding: 2px 2px 10px; }
.fp4-listrow .kl-tile { flex: 0 0 260px; scroll-snap-align: start; }
.fp4-listrow .kl-tile:hover { transform: none; }
@media (max-width: 560px) { .fp4-listrow .kl-tile { flex-basis: 220px; } }
/* ==========================================================================
   /streymi/nytt/ — Nýtt á streymi (template-streymi-nytt.php)
   Cards: kvik_sn_card() · actions: js/card-actions.js
   ========================================================================== */

.sn-page {
    --sn-teal: #62b0ba;
    --sn-teal-dark: #0d9488;
    --sn-ink: #1a1f24;
    --sn-muted: #6b7280;
    --sn-line: #e6eaed;
    --sn-bg: #f3f5f6;
    --sn-gold: #f5b301;
    --sn-want: var(--kvik-want, #e0654f);          /* site tokens: css/kvik-actions.css */
    --sn-want-dark: var(--kvik-want-dark, #c9553f);
    --sn-seen: var(--kvik-seen, #62b0ba);
    background: var(--sn-bg);
    color: var(--sn-ink);
    font-family: 'Open Sans', Arial, sans-serif;
    padding-bottom: 48px;
}
.sn-wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; box-sizing: border-box; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.sn-hero {
    background:
        radial-gradient(900px 300px at 85% -40%, rgba(98, 176, 186, .45), transparent 70%),
        linear-gradient(135deg, #2b3034 0%, #383d40 60%, #2f4b50 100%);
    color: #fff;
    padding-block: 34px 30px;
}
.sn-hero__title { margin: 0; font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.01em; color: #fff; }
.sn-hero__sub { margin: 8px 0 0; max-width: 680px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.sn-hero__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sn-stat {
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: 13.5px;
    color: rgba(255, 255, 255, .9);
}
.sn-stat strong { color: #fff; font-size: 15px; }
.sn-stat--warn strong { color: #fdba74; }
.sn-stat--list strong { color: #ff9a86; }

/* ── Filters ───────────────────────────────────────────────────────────── */
.sn-filters { background: #fff; border-bottom: 1px solid var(--sn-line); padding-block: 12px; }
.sn-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sn-filters__row + .sn-filters__row { margin-top: 10px; }
.sn-filters__svcs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: thin; }

.sn-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 13px;
    border: 1px solid #dde3e7;
    border-radius: 999px;
    background: #fff;
    color: var(--sn-ink);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .12s, background .12s, box-shadow .12s;
}
.sn-chip img { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }
.sn-chip:hover { border-color: var(--sn-teal); color: var(--sn-ink); text-decoration: none; }
.sn-chip.is-on { background: #e6f3f4; border-color: var(--sn-teal); box-shadow: inset 0 0 0 1px var(--sn-teal); }
.sn-chip--mine { color: #7e22ce; border-color: #e3ccff; }
.sn-chip--mine.is-on { background: #f3e8ff; border-color: #b77cf0; box-shadow: inset 0 0 0 1px #b77cf0; }

.sn-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #eef1f3; }
.sn-seg__opt {
    padding: 6px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.sn-seg__opt:hover { color: var(--sn-ink); text-decoration: none; }
.sn-seg__opt.is-on { background: #fff; color: var(--sn-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.sn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.sn-toggle:hover { color: var(--sn-ink); text-decoration: none; }
.sn-toggle__box {
    width: 32px; height: 18px; border-radius: 999px; background: #d1d5db; position: relative; transition: background .15s;
}
.sn-toggle__box::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s;
}
.sn-toggle.is-on .sn-toggle__box { background: var(--sn-teal-dark); }
.sn-toggle.is-on .sn-toggle__box::after { transform: translateX(14px); }

/* ── Sections ──────────────────────────────────────────────────────────── */
.sn-section { margin-top: 34px; }
.sn-page .sn-section__head { background: none; padding: 0; width: auto;
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sn-section__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; font-weight: 800; color: var(--sn-ink); }
.sn-section__link { font-size: 14px; font-weight: 700; color: var(--sn-teal-dark); text-decoration: none; }
.sn-section__link:hover { text-decoration: underline; }
.sn-section__hint { font-size: 13px; color: var(--sn-muted); }
.sn-section__links { display: inline-flex; gap: 16px; margin-left: auto; }
.sn-section--followed { padding: 18px; border-radius: 16px; background: var(--kvik-want-soft, #fdece8); }
.sn-ico { width: 30px; height: 30px; border-radius: 9px; display: inline-block; background-position: center; background-repeat: no-repeat; background-size: 18px; }
.sn-ico--new     { background-color: #e6f3f4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M18.4 5.6l-2.8 2.8M8.4 15.6l-2.8 2.8'/%3E%3C/svg%3E"); }
.sn-ico--leaving { background-color: #fff1e8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2 2M9 2h6'/%3E%3C/svg%3E"); }
.sn-ico--list    { background-color: #fdece8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0654f' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.sn-ico--is      { background-color: #eef3fb; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 18'%3E%3Crect width='25' height='18' rx='2' fill='%2302529c'/%3E%3Cpath d='M0 9h25M9 0v18' stroke='%23fff' stroke-width='4'/%3E%3Cpath d='M0 9h25M9 0v18' stroke='%23dc1e35' stroke-width='2'/%3E%3C/svg%3E"); background-size: 20px 14px; }
.sn-ico--live    { background-color: #fdece8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0654f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='13' rx='2'/%3E%3Cpath d='M8 3l4 4 4-4'/%3E%3Ccircle cx='17.5' cy='11.5' r='1.2' fill='%23e0654f'/%3E%3C/svg%3E"); }
.sn-ico--hot     { background-color: #fff5db; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M12 2s5 5 5 10a5 5 0 0 1-10 0c0-2 1-3 1-3s1 2 2 2c0-3 2-6 2-9z'/%3E%3C/svg%3E"); }

.sn-day {
    display: flex; align-items: center; gap: 8px;
    margin: 22px 0 12px; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sn-teal-dark);
}
.sn-day::after { content: ''; flex: 1; height: 1px; background: var(--sn-line); }
.sn-day__n { padding: 1px 8px; border-radius: 999px; background: #e6f3f4; font-size: 12px; letter-spacing: 0; }

.sn-note { color: var(--sn-muted); font-size: 14px; }
.sn-note--since { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px dashed #cfd8dc; }
.sn-empty { margin: 40px auto; max-width: 560px; text-align: center; padding: 30px; background: #fff; border-radius: 16px; }
.sn-admin { font-size: 13px; color: #92400e; background: #fffbeb; padding: 10px; border-radius: 8px; }

.sn-nudge {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 26px; padding: 18px 20px; border-radius: 16px;
    background: linear-gradient(120deg, #fdece8, #e6f3f4);
    border: 1px solid #f6d5cd;
}
.sn-nudge__text { display: flex; flex-direction: column; gap: 4px; max-width: 720px; }
.sn-nudge__text strong { font-size: 17px; }
.sn-nudge__text span { color: #4b5563; font-size: 14px; }
.sn-nudge__btn {
    border: 0; border-radius: 999px; padding: 10px 20px; background: var(--sn-want); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
}
.sn-nudge__btn:hover { background: var(--sn-want-dark); }

/* ── Grid + cards ──────────────────────────────────────────────────────── */
.sn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.sn-card--more { display: none; }
.sn-grid.is-expanded .sn-card--more { display: flex; }
.sn-more { text-align: center; margin-top: 16px; }
.sn-more__btn {
    border: 1px solid #d1d9dd; background: #fff; border-radius: 999px; padding: 9px 22px;
    font-weight: 700; font-size: 14px; color: var(--sn-ink); cursor: pointer;
}
.sn-more__btn:hover { border-color: var(--sn-teal); }

.sn-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 6px 16px rgba(0, 0, 0, .05);
    transition: transform .15s ease, box-shadow .15s ease;
}
.sn-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0, 0, 0, .1), 0 14px 30px rgba(0, 0, 0, .1); }

.sn-card__media { position: relative; }
.sn-card__poster { display: block; aspect-ratio: 2 / 3; background: linear-gradient(160deg, #dfe5e8, #c9d2d7); }
.sn-card__poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sn-card__noposter { display: flex; align-items: center; justify-content: center; height: 100%; padding: 12px; text-align: center; font-weight: 700; color: #4b5563; }

.sn-card__badge {
    position: absolute; left: 8px; top: 8px;
    padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.sn-card__badge--new { background: var(--sn-teal-dark); }
.sn-card__badge--leaving { background: #ea580c; }
/* Episode badges ("Þáttaraðir í gangi") — bottom of the poster, full width */
.sn-card__badge--ep { left: 8px; right: 8px; top: auto; bottom: 8px; text-align: center; font-size: 11px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-card__badge--aired { background: var(--kvik-seen, #62b0ba); }
.sn-card__badge--next  { background: rgba(20, 24, 28, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.sn-card__acts { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.kca-btn {
    width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20, 24, 28, .62); color: #fff; cursor: pointer;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    transition: background .12s, transform .12s;
}
.kca-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.kca-btn:hover { transform: scale(1.08); background: rgba(20, 24, 28, .82); }
.kca-btn--want.is-on { background: var(--kvik-want, #e0654f); }
.kca-btn--want.is-on:hover { background: var(--kvik-want-dark, #c9553f); }
.kca-btn--want.is-on svg { fill: currentColor; }
.kca-btn--seen.is-on { background: var(--kvik-seen, #62b0ba); }
.kca-btn--seen.is-on:hover { background: #4f9aa4; }

.sn-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 10px 11px 12px; }
.sn-card__title {
    font-size: 14.5px; font-weight: 800; line-height: 1.25; color: var(--sn-ink); text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em;
}
.sn-card__title:hover { color: var(--sn-teal-dark); text-decoration: none; }
.sn-card__meta { font-size: 12.5px; color: var(--sn-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.sn-dot { color: #c2c9ce; }
.sn-card__imdb { font-weight: 700; color: #a86a00; }

.sn-card__svcs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.sn-svc {
    position: relative; display: inline-flex; align-items: center; gap: 4px;
    height: 28px; padding: 3px; border: 1px solid var(--sn-line); border-radius: 7px; background: #fff; text-decoration: none;
    transition: border-color .12s, transform .12s;
}
.sn-svc img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.sn-svc--apple img, .sn-svc--disney img, .sn-svc--prime img { width: 38px; }
/* Disney+ logo is white text for dark backgrounds */
.sn-svc--disney { background: #0c1633; border-color: #0c1633; }
.sn-chip--disney img { background: #0c1633; padding: 2px 4px; width: 40px; }
.sn-chip--prime img, .sn-chip--apple img { width: 40px; }
a.sn-svc:hover { border-color: var(--sn-teal); transform: translateY(-1px); text-decoration: none; }
.sn-svc__tag { font-size: 10px; font-weight: 800; color: #92400e; background: #fff5db; border-radius: 4px; padding: 1px 4px; }

/* Rating (5 half-stars → 1–10) */
.kca-rate { display: flex; align-items: center; gap: 1px; margin-top: auto; padding-top: 6px; border-top: 1px solid #f0f2f4; }
.kca-star {
    position: relative; padding: 0 1px; border: 0; background: none; cursor: pointer;
    font-size: 19px; line-height: 1; color: #d6dbdf; transition: transform .1s;
}
.kca-star:hover { transform: scale(1.15); }
.kca-star.is-full { color: var(--sn-gold); }
.kca-star.is-half::before {
    content: '★'; position: absolute; left: 1px; top: 0; width: 50%; overflow: hidden; color: var(--sn-gold);
}
.kca-rate__label { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--sn-muted); }
.kca--rated .kca-rate__label { color: #a86a00; }
.kca--ask:not(.kca--rated) .kca-rate { animation: kcaPulse 1.6s ease-in-out 2; }
@keyframes kcaPulse { 0%, 100% { background: transparent; } 50% { background: #fff8e1; } }
.kca--saved .kca-rate__label::after { content: ' ✓'; color: var(--sn-teal-dark); }

/* ── Mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .sn-hero { padding-block: 24px 22px; }
    .sn-hero__sub { font-size: 14.5px; }
    .sn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sn-section__head h2 { font-size: 19px; }
    .sn-card__body { padding: 9px 9px 10px; }
    .kca-star { font-size: 21px; padding: 0 2px; }
    .kca-rate__label { display: none; }
    .sn-filters__row:not(.sn-filters__svcs) { gap: 6px; }
    .sn-seg { overflow-x: auto; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .sn-card, .kca-btn, .kca-star, .sn-svc { transition: none; }
    .kca--ask .kca-rate { animation: none; }
}

/* Icelandic flag in the "Aðeins íslenskt" toggle */
.sn-flag { display: inline-block; width: 18px; height: 13px; border-radius: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 18'%3E%3Crect width='25' height='18' rx='2' fill='%2302529c'/%3E%3Cpath d='M0 9h25M9 0v18' stroke='%23fff' stroke-width='4'/%3E%3Cpath d='M0 9h25M9 0v18' stroke='%23dc1e35' stroke-width='2'/%3E%3C/svg%3E") center / cover no-repeat; }

/* ── Genre filter row (quiet chips, one scrollable line) ──────────────── */
.sn-filters__genres { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; gap: 6px; }
.sn-filters__label { flex: 0 0 auto; margin-right: 2px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sn-muted); }
.sn-gchip {
    flex: 0 0 auto; display: inline-flex; align-items: center; height: 28px; padding: 0 11px;
    border: 1px solid #e3e8eb; border-radius: 999px; background: #fff;
    color: #4b5563; font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: border-color .12s, background .12s, color .12s;
}
.sn-gchip:hover { border-color: var(--sn-teal); color: var(--sn-ink); text-decoration: none; }
.sn-gchip.is-on { background: #e6f3f4; border-color: var(--sn-teal); color: #0f5f59; box-shadow: inset 0 0 0 1px var(--sn-teal); }
.sn-gchip--clear { color: var(--sn-teal-dark); border-style: dashed; }

/* ── /streymi/ (template-streymi-allt.php) ─────────────────────────────── */
.sn-page .sn-stat--link { color: #fff; font-weight: 700; text-decoration: none; background: rgba(98, 176, 186, .28); border-color: rgba(98, 176, 186, .55); }
.sn-page .sn-stat--link:hover { background: rgba(98, 176, 186, .42); color: #fff; text-decoration: none; }
.sn-page .sn-results { font-size: 18px; font-weight: 700; color: var(--sn-muted); }
.sn-results__n { color: var(--sn-ink); font-size: 22px; font-weight: 800; }
.sn-more__btn:disabled { opacity: .6; cursor: progress; }/* Kvikmyndalistar — /kvikmyndalistar/ (template-kvikmyndalistar.php). Builds on css/streymi-nytt.css. */

/* Hero extras (hero is dark) */
.kl-back { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .7); text-decoration: none; }
.kl-back:hover { color: #fff; text-decoration: none; }
.kl-kicker {
    display: block; margin-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--sn-teal, #62b0ba);
}
.kl-muted { opacity: .75; font-weight: 500; }
.kl-progress { display: inline-flex; align-items: center; gap: 10px; }
.kl-progress__bar { display: inline-block; width: 90px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.kl-progress__bar span { display: block; height: 100%; border-radius: 99px; background: var(--sn-seen, #62b0ba); transition: width .25s ease; }

.kl-admin-note { margin: 18px 0 0; padding: 10px 14px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13px; }
.kl-admin-note code { font-size: 12px; }
.sn-section .kl-admin-note + .sn-grid { margin-top: 14px; }

/* List tiles (hub + "Fleiri listar") */
.kl-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; padding: 26px 0 40px; }
.kl-tiles--row { padding-top: 0; }
.kl-tile {
    display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--sn-ink, #1a1f24);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 6px 16px rgba(0, 0, 0, .05); transition: box-shadow .15s ease, transform .15s ease;
}
.kl-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, .1), 0 14px 30px rgba(0, 0, 0, .1); }
.kl-tile__art { display: grid; grid-template-columns: repeat(4, 1fr); aspect-ratio: 8 / 3; background: linear-gradient(135deg, #2b3034, #2f4b50); overflow: hidden; }
.kl-tile__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kl-tile__art--3 { grid-template-columns: repeat(3, 1fr); }
.kl-tile__art--2 { grid-template-columns: repeat(2, 1fr); }
.kl-tile__art--1 { grid-template-columns: 1fr; }
.kl-tile__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.kl-tile__kicker { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--sn-teal-dark, #0d9488); }
.kl-tile__title { font-size: 17px; font-weight: 800; line-height: 1.25; }
.kl-tile__count { font-size: 13px; color: var(--sn-muted, #6b7280); }

@media (max-width: 560px) {
    .kl-tiles { grid-template-columns: 1fr; gap: 14px; padding-top: 18px; }
    .kl-progress__bar { width: 60px; }
}

/* List pages: denser grid (shorter posters) + a quiet "why it's here" line */
.kl-page .sn-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .kl-page .sn-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 920px)  { .kl-page .sn-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 740px)  { .kl-page .sn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.kl-page .sn-card__body { gap: 4px; padding: 8px 10px 10px; }
.kl-page .sn-card__title { font-size: 14px; }
.kl-page .sn-card__meta { font-size: 12px; }
.kl-page .sn-card__genre {
    font-size: 12px; line-height: 1.35; color: var(--sn-muted, #6b7280); font-weight: 500;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kl-page .sn-card__svcs { margin-top: auto; }
.kl-page .sn-svc { height: 26px; }
.kl-page .sn-svc img { width: 19px; height: 19px; }
.kl-page .kca-rate { padding-top: 5px; }
.kl-page .kca-star { font-size: 17px; }
@media (max-width: 560px) {
    .kl-page .sn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .kl-page .kca-star { font-size: 21px; }   /* keep the mobile tap size */
}