/*
 * Klippur: the feed (templates/shows/clip_feed.html, klippur.js). Dark whatever the site's theme: a video's own room. A
 * phone: one a screen, the whole picture shown (contain) on its still blurred. A computer: a 9:16 player the height of the
 * window (a wide video: 16:9, as wide as the window lets it), on the still blurred and darkened, the buttons to the next
 * and the last beside it. A sound: its show's artwork large and the words being said under it. The controls one family
 * with the site's audio bar: discs and pills, white or a light grey on the picture.
 */
body.kf-page,
html:has(body.kf-page) {
    overflow: hidden;
    height: 100%;
    background: #000;
}

/* The site's header under the feed, out of sight (the site's script expects it in the page). */
.kf-page #top-header,
.kf-page #header-placeholder,
.kf-page #header,
.kf-page #sidenav__bg,
.kf-page #subheader {
    display: none !important;
}

/* The cookie banner over the feed, to be put away (base.css has it under the page's fixed things). */
.kf-page .bottom-banner {
    z-index: 1100;
}

/* The sign-in dialog ("Skrá inn" on a subscribers' one) over the feed: on a phone header.scss puts it under the page's
   fixed things (z-index 210), and the feed is one of them. */
body.kf-page.modal-is-active #modal-user.active {
    z-index: 1200;
}

.kf {
    --kf-sans: var(--st-font-sans, "sanomattextsans_web", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    --kf-head: var(--st-font-headline, "tiemposheadline_web", Georgia, serif);
    --kf-grey: rgba(255, 255, 255, 0.16);
    --kf-grey-on: rgba(255, 255, 255, 0.28);
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow: hidden;
    background: #0b0b0b;
    color: #fff;
    color-scheme: dark;
    font-family: var(--kf-sans);
    font-size: 1rem;
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
}

.kf a {
    color: inherit;
}

.kf-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* The window behind the player (a computer's): the clip's still, blurred and dark. */
.kf__backdrop {
    position: absolute;
    inset: -80px;
    background: #111 center / cover no-repeat;
    filter: blur(48px) brightness(0.4) saturate(1.15);
    transition: background-image 0.4s;
}

/* The site's name and the way out */
.kf__top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 0 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    pointer-events: none;
}

.kf__top > * {
    pointer-events: auto;
}

.kf__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.kf__brand:hover {
    color: #fff;
    text-decoration: none;
}

.kf__logo svg {
    display: block;
    width: auto;
    height: 18px;
}

.kf__logo svg,
.kf__logo svg * {
    fill: #fff;
}

.kf__name {
    padding-left: 0.625rem;
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1;
}

/* Buttons: one family (a disc for a glyph, a pill for words), grey on the picture, white for the main one */
.kf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--kf-grey);
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s;
}

.kf-btn:hover {
    background: var(--kf-grey-on);
    color: #fff;
    text-decoration: none;
}

.kf-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.kf-btn--disc {
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
}

.kf-btn--disc svg {
    width: 1.375rem;
    height: 1.375rem;
    fill: currentColor;
}

.kf-btn--pill {
    min-height: 2.25rem;
    padding: 0 0.875rem;
}

.kf .kf-btn--light,
.kf .kf-btn--light:hover {
    background: #fff;
    color: #111;
}

.kf .kf-btn--light:hover {
    background: var(--st-fill-hover, #e6e6e6);
}

/* No browser ring on a click; a white one for the keyboard. */
.kf button:focus,
.kf a:focus,
.kf input:focus {
    outline: none;
}

.kf button:focus-visible,
.kf a:focus-visible,
.kf input:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.kf__close {
    background: rgba(0, 0, 0, 0.35);
}

.kf__close:hover {
    background: rgba(0, 0, 0, 0.55);
}

/* The clips, one a screen */
.kf__track {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.kf__track::-webkit-scrollbar {
    display: none;
}

.kf-clip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.kf-clip__frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    container-type: size;
}

/* The still, blurred, in the bands a picture of another shape leaves */
.kf-clip__fill {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    filter: blur(28px) brightness(0.55);
}

.kf-clip__media {
    position: absolute;
    inset: 0;
}

.kf-clip__poster,
.kf-clip__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kf-clip__media video {
    background: transparent;
}

.kf-clip__media audio {
    display: none;
}

/* Waiting for its picture or its sound (shown only if it takes a moment) */
.kf-clip__media::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 2.75rem;
    height: 2.75rem;
    margin: -1.375rem 0 0 -1.375rem;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
}

.kf-clip.is-waiting .kf-clip__media::after {
    visibility: visible;
    animation: kf-spin 0.8s linear infinite, kf-show 0.2s 0.35s forwards;
}

.kf-clip--sound .kf-clip__media::after {
    top: calc(var(--kf-art-top) + var(--kf-art) / 2);
}

@keyframes kf-spin {
    to { transform: rotate(360deg); }
}

@keyframes kf-show {
    to { opacity: 1; }
}

/* A sound: its show's artwork, large, and the words being said (or a line of how much is heard) */
.kf-clip--sound {
    --kf-art: min(58cqw, 32cqh, 22rem);
    /* (a phone's: under the site's name and "Kveikja á hljóði") */
    --kf-art-top: calc(7rem + env(safe-area-inset-top, 0px));
}

.kf-sound {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: var(--kf-art-top) 24px 0;
    pointer-events: none;
}

.kf-sound__art {
    flex: none;
    width: var(--kf-art);
    height: var(--kf-art);
    overflow: hidden;
    border-radius: 8px;
    background: #222;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.kf-sound__art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kf-sound__words {
    width: 100%;
    max-width: 26rem;
    min-height: 8.5rem;
}

.kf-sound__line {
    margin: 0;
    color: #fff;
    font-family: var(--kf-head);
    font-size: clamp(1.375rem, 6.2cqw, 1.875rem);
    font-weight: 700;
    line-height: 1.22;
    white-space: pre-line;
    text-wrap: pretty;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.kf-sound__line--was {
    min-height: 1.4em;
    margin-bottom: 0.625rem;
    font-family: var(--kf-sans);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.55);
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.kf-sound__line.is-new {
    animation: kf-line 0.32s ease-out;
}

@keyframes kf-line {
    from { opacity: 0; transform: translateY(0.35em); }
    to { opacity: 1; transform: none; }
}

/* A short screen (a small phone, a window not tall): the artwork smaller, the words a little smaller, the line before
   them left out, so the words stay clear of the title and controls under them */
@container (max-height: 760px) {
    .kf-sound,
    .kf-clip__start,
    .kf-clip__media {
        --kf-art: min(50cqw, 26cqh, 22rem);
    }

    .kf-sound {
        gap: 0.875rem;
    }

    .kf-sound__words {
        min-height: 4.5rem;
    }

    .kf-sound__line {
        font-size: clamp(1.125rem, 5.4cqw, 1.5rem);
    }

    .kf-sound__line--was {
        display: none;
    }
}

.kf-sound__meter {
    width: var(--kf-art);
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.24);
}

.kf-sound__done {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
}

/* The picture itself takes no touch: a swipe on it scrolls the feed (a phone's video swallowed it), a tap is the frame's. */
.kf-clip__fill,
.kf-clip__poster,
.kf-clip__media {
    pointer-events: none;
}

/* A sound's blurred artwork a little lighter than a video's bands: it's all of the screen */
.kf-clip--sound .kf-clip__fill {
    filter: blur(36px) brightness(0.5) saturate(1.2);
}

/* A phone: the site's name and the way out over the picture, on a shade */
.kf-clip__frame::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
    pointer-events: none;
}

/* Play, before it's begun and while it's stopped */
.kf-clip__start {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.75rem;
    height: 4.75rem;
    margin: -2.375rem 0 0 -2.375rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.kf-clip__start svg {
    width: 2.25rem;
    height: 2.25rem;
    margin-left: 0.25rem;
    fill: currentColor;
}

.kf-clip--sound .kf-clip__start {
    top: calc(var(--kf-art-top) + var(--kf-art) / 2);
}

.kf-clip__start[hidden] {
    display: none;
}

.kf-clip__unmute {
    position: absolute;
    z-index: 3;
    top: calc(4.25rem + env(safe-area-inset-top, 0px));
    left: 16px;
    background: rgba(0, 0, 0, 0.5);
}

.kf-clip__unmute:hover {
    background: rgba(0, 0, 0, 0.7);
}

.kf-clip__unmute[hidden] {
    display: none;
}

/* A subscribers' clip, for one who may not watch it (all of it) */
.kf-clip__lock {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 16px;
    right: 16px;
    max-width: 22rem;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 1.375rem;
    border-radius: 8px;
    background: rgba(17, 17, 17, 0.9);
    text-align: center;
    transform: translateY(-62%);
}

.kf-clip__lock[hidden] {
    display: none;
}

.kf-clip__lock-title {
    margin: 0 0 0.5rem;
    font-family: var(--kf-head);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.kf-clip__lock-text {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    opacity: 0.9;
}

.kf-clip__lock-acts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
}

/* The words and the controls, at its foot */
.kf-clip__over {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 5rem 16px 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.82));
    pointer-events: none; /* (a tap on its shade is on the picture: it plays or stops it) */
}

.kf-clip__info,
.kf-bar,
.kf-seek-row,
.kf-chapters,
.kf-clip__resume {
    pointer-events: auto;
}

.kf-clip__kicker {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.82);
}

.kf-clip__kicker a,
.kf-clip__kicker > span:first-child {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.kf-clip__kicker a:hover {
    text-decoration: underline;
}

.kf-clip__paid {
    font-weight: 700;
    color: #ffd37a;
}

.kf-clip__title {
    margin: 0 0 0.375rem;
    color: #fff;
    font-family: var(--kf-head);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}

.kf-clip__desc {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.kf-clip__more {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.kf-clip__more p {
    margin: 0;
}

.kf-clip__text {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.kf-clip__article {
    margin-top: 0.5rem !important;
    font-weight: 700;
}

.kf-clip__article a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* One line of it till "Lesa meira" (with the script: without it, all of it) */
.kf.is-ready .kf-clip__more:not(.is-open) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.kf.is-ready .kf-clip__more:not(.is-open) .kf-clip__article {
    display: none;
}

.kf-clip__more.is-open {
    max-height: 38vh;
    max-height: 38dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.kf-clip__readmore {
    flex: none;
    padding: 0.25rem 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

.kf-clip__readmore:hover {
    text-decoration: underline;
}

.kf-clip__readmore[hidden] {
    display: none;
}

.kf-clip__credit {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
}

/* A long one: what it is and how long ("Allur þátturinn · 42 mín."), and its page */
.kf-clip__what {
    margin: 0 0 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.kf-clip__open {
    margin-left: 0.375rem;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.kf-clip__open::before {
    content: "·";
    display: inline-block;
    margin-right: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
}

/* Its chapters: the one it's in, a list to go to one */
.kf-clip__chapter {
    max-width: 100%;
    min-height: 2rem;
    margin-top: 0.625rem;
    padding: 0 0.625rem 0 0.875rem;
    font-weight: 400;
    font-size: 0.8125rem;
}

.kf-clip__chapter span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.kf-clip__chapter svg {
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
    fill: currentColor;
    transition: transform 0.15s;
}

.kf-clip__chapter[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.kf-chapters {
    max-height: 38cqh;
    margin: 0.625rem 0 0;
    padding: 0.25rem 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.92);
}

.kf-chapters[hidden] {
    display: none;
}

.kf-chapters button {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.875rem;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.kf-chapters button:hover {
    background: var(--kf-grey);
}

.kf-chapters button.is-now {
    font-weight: 700;
}

.kf-chapters__time {
    flex: none;
    min-width: 3rem;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.7);
}

/* Where it goes on from, and "Frá byrjun" */
.kf-clip__resume {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0.625rem 0 0;
    font-size: 0.8125rem;
}

.kf-clip__resume[hidden] {
    display: none;
}

.kf-clip__resume .kf-btn--pill {
    min-height: 1.875rem;
    font-size: 0.8125rem;
}

/* A long one's scrubber, its time on either side; the chapters' beginnings marked on it */
.kf-seek-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.75rem;
}

.kf-seek {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
}

.kf-seek .kf-bar__seek {
    width: 100%;
    height: 1.75rem;
}

.kf-seek__ticks {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    margin-top: -1.5px;
    pointer-events: none;
}

.kf-seek__ticks i {
    position: absolute;
    top: 0;
    width: 2px;
    height: 3px;
    margin-left: -1px;
    background: rgba(0, 0, 0, 0.75);
}

.kf-seek-row .kf-bar__time {
    min-width: 2.75rem;
}

.kf-bar__time--now {
    text-align: left;
}

.kf-clip--long .kf-bar {
    margin-top: 0.375rem;
}

.kf-bar__skip {
    min-width: 3rem;
    font-variant-numeric: tabular-nums;
}

.kf-bar__gap {
    flex: 1 1 auto;
}

.kf-bar {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.75rem;
}

.kf-bar .kf-btn--disc {
    width: 2.5rem;
    height: 2.5rem;
}

.kf-bar__play .kf-i-pause,
.kf-clip.is-playing .kf-bar__play .kf-i-play,
.kf-bar__mute .kf-i-on,
.kf.is-sound .kf-bar__mute .kf-i-off {
    display: none;
}

.kf-clip.is-playing .kf-bar__play .kf-i-pause,
.kf.is-sound .kf-bar__mute .kf-i-on {
    display: block;
}

.kf-bar__seek {
    --kf-done: 0%;
    flex: 1 1 auto;
    min-width: 3rem;
    height: 1.5rem;
    touch-action: none; /* (a drag along it is the scrubber's, not a swipe of the feed) */
    margin: 0;
    background: transparent;
    color: #fff;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.kf-bar__seek::-webkit-slider-runnable-track {
    height: 3px;
    background: linear-gradient(to right, #fff var(--kf-done), rgba(255, 255, 255, 0.32) var(--kf-done));
}

.kf-bar__seek::-moz-range-track {
    height: 3px;
    background: linear-gradient(to right, #fff var(--kf-done), rgba(255, 255, 255, 0.32) var(--kf-done));
}

.kf-bar__seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 11px;
    height: 11px;
    margin-top: -4px;
    border: 0;
    border-radius: 50%;
    background: #fff;
}

.kf-bar__seek::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: #fff;
}

.kf-bar__seek:disabled {
    opacity: 0.4;
    cursor: default;
}

.kf-bar__time {
    flex: none;
    min-width: 2.25rem;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
    opacity: 0.85;
}

/* The next and the last (a computer's: a phone swipes) */
.kf__nav {
    display: none;
}

.kf__empty {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.kf__empty p {
    margin: 0;
}

.kf__toast {
    position: absolute;
    z-index: 6;
    left: 50%;
    top: calc(4.5rem + env(safe-area-inset-top, 0px));
    margin: 0;
    padding: 0.625rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 0.875rem;
    font-weight: 700;
    transform: translateX(-50%);
    white-space: nowrap;
}

.kf__toast[hidden] {
    display: none;
}

/* A computer (a window wider than tall-ish): the player the window's height, 9:16, in the middle */
@media (min-width: 768px) and (min-aspect-ratio: 4/5) {
    .kf {
        --kf-h: calc(100dvh - 2rem);
        --kf-w: min(calc(var(--kf-h) * 9 / 16), calc(100vw - 10rem));
    }

    .kf__top {
        padding: 1.25rem 1.5rem 0;
    }

    .kf__logo svg {
        height: 22px;
    }

    .kf__name {
        font-size: 1rem;
    }

    .kf__close {
        background: var(--kf-grey);
    }

    .kf__close:hover {
        background: var(--kf-grey-on);
    }

    .kf-clip__frame {
        width: var(--kf-w);
        height: var(--kf-h);
        border-radius: 7px; /* (as the site's cards' pictures) */
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    }

    .kf-clip__frame::before {
        display: none;
    }

    .kf-clip__unmute {
        top: 12px;
        left: 12px;
    }

    .kf-clip--sound {
        --kf-art-top: 4.5rem;
    }

    .kf__nav {
        position: absolute;
        z-index: 3;
        top: 50%;
        left: calc(50% + var(--kf-w) / 2 + 1.25rem);
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        transform: translateY(-50%);
    }

    /* A wide video: 16:9, as wide as the window lets it beside the buttons; its words and controls out of its way while
       it plays and the mouse rests (klippur.js is-idle). */
    .kf-clip--wide .kf-clip__frame {
        width: min(calc(100vw - 10rem), calc(var(--kf-h) * 16 / 9));
        height: auto;
        max-height: var(--kf-h);
        aspect-ratio: 16 / 9;
    }

    .kf-clip--wide .kf-clip__over {
        transition: opacity 0.3s;
    }

    .kf.is-idle .kf-clip--wide.is-playing .kf-clip__over {
        opacity: 0;
    }

    .kf.is-idle .kf-clip--wide.is-playing {
        cursor: none;
    }

    .kf.is-wide .kf__nav {
        left: auto;
        right: 1.25rem;
    }

    .kf-clip--wide .kf-clip__info {
        max-width: 40rem;
    }

    .kf__toast {
        top: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kf__track {
        scroll-behavior: auto;
    }

    .kf__backdrop,
    .kf-btn,
    .kf-clip--wide .kf-clip__over {
        transition: none;
    }

    .kf-sound__line.is-new {
        animation: none;
    }
}


/* The viewer's lists (shows/clips.py LISTS): short clips, every video, every sound, as pills over the picture. */
.kf__lists {
    display: inline-flex;
    gap: 4px;
    margin-right: auto;
    margin-left: 0.875rem;
    padding: 3px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.kf__list {
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    color: #fff;
    font-family: var(--kf-sans, inherit);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    opacity: 0.85;
}

.kf__list:hover,
.kf__list:focus-visible {
    color: #fff;
    text-decoration: none;
    opacity: 1;
    background: rgba(255, 255, 255, 0.14);
}

.kf__list.is-on {
    background: #fff;
    color: #111;
    opacity: 1;
}

.kf__list:focus {
    outline: none;
}

.kf__list:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 440px) {
    .kf__logo {
        display: none;
    }

    .kf__lists {
        margin-left: 0;
    }

    .kf__list {
        padding: 0.375rem 0.625rem;
    }
}
