:root {
    --shortfeed-orange: #d84a08;
    --shortfeed-orange-bright: #ff6a16;
    --shortfeed-ink: #15100d;
    --shortfeed-muted: #796c62;
    --shortfeed-cream: #f7f1e8;
    --shortfeed-panel: rgba(255, 252, 247, 0.9);
    --shortfeed-line: rgba(41, 27, 17, 0.14);
    --shortfeed-navbar-height: 5.25rem;
    --shortfeed-copy-pad: clamp(0.9rem, 2vh, 1.25rem);
    --shortfeed-shell-pad: clamp(0.45rem, 1.2vh, 0.9rem);
    --shortfeed-ad-height: 12.5%;
}

body.shortfeed-page {
    height: 100vh;
    height: 100svh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    color: var(--shortfeed-ink);
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 122, 32, 0.16), transparent 28rem),
        radial-gradient(circle at 78% 78%, rgba(40, 26, 14, 0.12), transparent 32rem),
        linear-gradient(135deg, #fffaf2 0%, var(--shortfeed-cream) 52%, #eee2d3 100%);
}

.shortfeed-page .navbar-jelonka {
    z-index: 1200;
}

.shortfeed-shell {
    box-sizing: border-box;
    height: calc(100vh - var(--shortfeed-navbar-height));
    height: calc(100svh - var(--shortfeed-navbar-height));
    min-height: 0;
    overflow: hidden;
    padding: var(--shortfeed-shell-pad) 0;
}

.shortfeed-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.25rem, 3vw, 3rem);
    width: min(86rem, calc(100vw - 3rem));
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
}

.shortfeed-stage::before,
.shortfeed-stage::after {
    position: absolute;
    top: 50%;
    z-index: 0;
    display: grid;
    min-width: 8.4rem;
    min-height: 3.4rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 999px;
    color: #fff;
    background: rgba(216, 74, 8, 0.92);
    box-shadow: 0 1rem 2.2rem rgba(31, 18, 10, 0.22);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    opacity: 0;
    text-transform: uppercase;
    transform: translateY(-50%) scale(0.9);
    transition: opacity 120ms ease, transform 120ms ease;
    pointer-events: none;
}

.shortfeed-stage::before {
    left: clamp(0.75rem, 3vw, 2rem);
    content: "Szczegóły";
}

.shortfeed-stage::after {
    right: clamp(0.75rem, 3vw, 2rem);
    content: "Menu";
    background: rgba(21, 16, 13, 0.9);
}

.shortfeed-shell.is-gesture-detail .shortfeed-stage::before,
.shortfeed-shell.is-gesture-menu .shortfeed-stage::after {
    opacity: var(--shortfeed-drag-progress, 0);
    transform: translateY(-50%) scale(1);
}

.shortfeed-viewport {
    justify-self: center;
    height: 100%;
    width: min(28rem, 42vw, calc((100vh - var(--shortfeed-navbar-height) - (2 * var(--shortfeed-shell-pad))) * 0.5625));
    width: min(28rem, 42vw, calc((100svh - var(--shortfeed-navbar-height) - (2 * var(--shortfeed-shell-pad))) * 0.5625));
    aspect-ratio: 9 / 16;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    touch-action: pan-y;
}

.shortfeed-viewport::-webkit-scrollbar {
    display: none;
}

.shortfeed-card {
    position: relative;
    display: block;
    width: 100%;
    min-height: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 0;
    background: #1d1713;
    box-shadow: 0 2rem 5rem rgba(31, 18, 10, 0.3);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    will-change: transform;
}

.shortfeed-shell.is-horizontal-dragging .shortfeed-card.is-active,
.shortfeed-shell.is-horizontal-settling .shortfeed-card.is-active {
    transform: translateX(var(--shortfeed-drag-x, 0));
}

.shortfeed-shell.is-horizontal-dragging .shortfeed-card.is-active {
    transition: none;
}

.shortfeed-shell.is-horizontal-settling .shortfeed-card.is-active {
    transition: transform 180ms ease;
}

.shortfeed-comments__item[hidden] {
    display: none !important;
}

.shortfeed-card__media {
    position: absolute;
    inset: 0;
    background: #201a16;
}

.shortfeed-card--with-ad .shortfeed-card__media {
    inset: 0 0 var(--shortfeed-ad-height);
}

.shortfeed-card__media img,
.shortfeed-card__video,
.shortfeed-card__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.shortfeed-card__iframe {
    pointer-events: none;
}

.shortfeed-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(255, 255, 255, 0.85);
    font-family: Newsreader, Georgia, serif;
    font-size: 3rem;
    background:
        linear-gradient(135deg, rgba(216, 74, 8, 0.72), rgba(42, 25, 15, 0.9)),
        repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(255, 255, 255, 0.05) 19px, rgba(255, 255, 255, 0.05) 28px);
}

.shortfeed-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.06) 38%, rgba(0, 0, 0, 0.78));
    pointer-events: none;
}

.shortfeed-card__progress {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    margin: 0.38rem calc(-1 * var(--shortfeed-copy-pad)) 0;
    padding: 0.18rem var(--shortfeed-copy-pad) 0.16rem;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.shortfeed-card__progress input {
    width: 100%;
    min-width: 0;
    height: 1.1rem;
    margin: 0;
    accent-color: var(--shortfeed-orange-bright);
    cursor: pointer;
}

.shortfeed-card__progress input::-webkit-slider-runnable-track {
    height: 0.18rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
}

.shortfeed-card__progress input::-webkit-slider-thumb {
    margin-top: -0.31rem;
}

.shortfeed-card__progress span {
    min-width: 2.5rem;
    font-variant-numeric: tabular-nums;
}

.shortfeed-card__progress span:last-child {
    text-align: right;
}

.shortfeed-card--cinematic .shortfeed-card__shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.12) 34%, rgba(0, 0, 0, 0.86));
}

.shortfeed-card--compact .shortfeed-card__chips {
    display: none;
}

.shortfeed-card--compact .shortfeed-card__copy h1 {
    font-size: clamp(1.35rem, 2.7vw, 2.15rem);
    line-height: 1;
}

.shortfeed-card__copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: var(--shortfeed-copy-pad) var(--shortfeed-copy-pad) clamp(0.35rem, 0.9vh, 0.55rem);
    color: #fff;
}

.shortfeed-card--with-ad .shortfeed-card__copy {
    bottom: var(--shortfeed-ad-height);
}

.shortfeed-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: clamp(0.45rem, 1.2vh, 0.7rem);
}

.shortfeed-card__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.24rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    background: rgba(16, 10, 6, 0.36);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 800;
}

.shortfeed-card__copy h1 {
    margin: 0;
    font-family: Newsreader, Georgia, serif;
    font-size: clamp(1.55rem, 3.2vw, 2.7rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.shortfeed-card__read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(2.1rem, 5.2vh, 2.45rem);
    margin-top: clamp(0.55rem, 1.4vh, 0.85rem);
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--shortfeed-orange-bright), #c93400);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 0.75rem 1.7rem rgba(216, 74, 8, 0.28);
}

.shortfeed-card__ad {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    display: grid;
    height: var(--shortfeed-ad-height);
    min-height: 0;
    max-height: none;
    place-items: center;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.64);
    background: rgba(12, 9, 7, 0.92);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shortfeed-card__ad .ad-slot-shell {
    width: 100%;
    max-width: 100%;
}

.shortfeed-card__ad .ad-slot {
    width: 100%;
    height: 100%;
    margin: 0;
}

.shortfeed-card__ad .ad-slot__frame {
    height: 100%;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.shortfeed-card__ad .ad-slot__item {
    background: transparent;
}

.shortfeed-card__ad .ad-slot__media {
    background-color: transparent;
    background-size: contain;
}

.shortfeed-controls {
    position: absolute;
    top: 50%;
    left: calc(50% + min(14rem, 21vw) + 1.1rem);
    z-index: 40;
    display: grid;
    gap: 0.7rem;
    transform: translateY(-50%);
}

.shortfeed-controls button,
.shortfeed-controls a {
    position: relative;
    display: grid;
    width: 3.15rem;
    height: 3.15rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    color: var(--shortfeed-ink);
    background: rgba(255, 252, 247, 0.88);
    box-shadow: 0 1rem 2.5rem rgba(31, 18, 10, 0.16);
    font-size: 1.18rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(16px);
}

.shortfeed-controls button:hover,
.shortfeed-controls a:hover {
    color: #fff;
    background: var(--shortfeed-orange);
}

.shortfeed-controls button.is-disabled {
    color: rgba(121, 108, 98, 0.72);
    background: rgba(255, 252, 247, 0.48);
    cursor: not-allowed;
    opacity: 0.72;
}

.shortfeed-controls button.is-disabled:hover {
    color: rgba(121, 108, 98, 0.72);
    background: rgba(255, 252, 247, 0.48);
}

.shortfeed-controls button.is-disabled::after {
    content: "";
    position: absolute;
    width: 1.8rem;
    height: 0.15rem;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(-38deg);
}

.shortfeed-controls__icon {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.shortfeed-controls__icon--sound-on {
    display: none;
}

.shortfeed-shell.is-sound-enabled .shortfeed-controls__sound {
    color: #fff;
    background: var(--shortfeed-orange);
}

.shortfeed-shell.is-sound-enabled .shortfeed-controls__icon--sound-on {
    display: block;
}

.shortfeed-shell.is-sound-enabled .shortfeed-controls__icon--sound-off {
    display: none;
}

.shortfeed-menu {
    position: fixed;
    inset: 0;
    z-index: 1120;
    pointer-events: none;
    visibility: hidden;
}

.shortfeed-menu.is-open {
    pointer-events: auto;
    visibility: visible;
}

.shortfeed-menu.is-peeking {
    visibility: visible;
}

.shortfeed-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 12, 8, 0);
    transition: background 180ms ease;
}

.shortfeed-menu.is-open .shortfeed-menu__backdrop {
    background: rgba(18, 12, 8, 0.36);
}

.shortfeed-menu.is-peeking .shortfeed-menu__backdrop {
    background: rgba(18, 12, 8, 0.22);
    opacity: var(--shortfeed-drag-progress, 0);
}

.shortfeed-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(24rem, calc(100vw - 2rem));
    height: 100%;
    padding: 1.1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 250, 242, 0.96);
    box-shadow: -1.4rem 0 3rem rgba(31, 18, 10, 0.22);
    transform: translateX(105%);
    transition: transform 220ms ease;
}

.shortfeed-menu.is-open .shortfeed-menu__panel {
    transform: translateX(0);
}

.shortfeed-menu.is-peeking .shortfeed-menu__panel {
    transition: none;
}

.shortfeed-menu__head,
.shortfeed-comments__head-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shortfeed-menu__head {
    justify-content: space-between;
}

.shortfeed-menu__head span {
    color: var(--shortfeed-orange);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shortfeed-menu__head button,
.shortfeed-comments__head-actions button {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border: 1px solid rgba(41, 27, 17, 0.12);
    border-radius: 999px;
    color: var(--shortfeed-ink);
    background: rgba(255, 255, 255, 0.74);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.shortfeed-menu__search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
}

.shortfeed-menu__search input,
.shortfeed-menu__search button {
    min-height: 2.8rem;
    border-radius: 999px;
    font-weight: 800;
}

.shortfeed-menu__search input {
    width: 100%;
    border: 1px solid rgba(41, 27, 17, 0.16);
    padding: 0 1rem;
    background: #fff;
}

.shortfeed-menu__search button {
    border: 0;
    padding: 0 1.05rem;
    color: #fff;
    background: var(--shortfeed-orange);
}

.shortfeed-menu__links {
    display: grid;
    gap: 0.65rem;
}

.shortfeed-menu__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    padding: 0.2rem 1rem;
    border: 1px solid rgba(41, 27, 17, 0.12);
    border-radius: 1rem;
    color: var(--shortfeed-ink);
    background: rgba(255, 255, 255, 0.65);
    font-weight: 900;
    text-decoration: none;
}

.shortfeed-menu__links a::after {
    content: "→";
    color: var(--shortfeed-orange);
}

.shortfeed-comments {
    position: absolute;
    top: 50%;
    right: clamp(0.75rem, 2vw, 1.5rem);
    z-index: 28;
    display: none;
    width: min(23rem, calc(100vw - 2rem));
    height: min(100%, calc(100vh - var(--shortfeed-navbar-height) - (2 * var(--shortfeed-shell-pad))));
    height: min(100%, calc(100svh - var(--shortfeed-navbar-height) - (2 * var(--shortfeed-shell-pad))));
    min-height: min(100%, calc(100vh - var(--shortfeed-navbar-height) - (2 * var(--shortfeed-shell-pad))));
    min-height: min(100%, calc(100svh - var(--shortfeed-navbar-height) - (2 * var(--shortfeed-shell-pad))));
    max-height: min(100%, calc(100vh - var(--shortfeed-navbar-height) - (2 * var(--shortfeed-shell-pad))));
    max-height: min(100%, calc(100svh - var(--shortfeed-navbar-height) - (2 * var(--shortfeed-shell-pad))));
    overflow: hidden;
    border: 1px solid var(--shortfeed-line);
    border-radius: 1.4rem;
    background: var(--shortfeed-panel);
    box-shadow: 0 1.5rem 4rem rgba(31, 18, 10, 0.12);
    backdrop-filter: blur(18px);
    transform: translateY(-50%);
}

.shortfeed-comments.is-open {
    display: block;
}

.shortfeed-comments__item {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.shortfeed-comments__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border-bottom: 1px solid var(--shortfeed-line);
}

.shortfeed-comments__head span {
    color: var(--shortfeed-orange);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shortfeed-comments__head strong {
    display: grid;
    min-width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--shortfeed-orange);
}

.shortfeed-comments__list {
    display: grid;
    gap: 0.8rem;
    min-height: 0;
    flex: 1 1 0;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-color: rgba(216, 74, 8, 0.72) rgba(41, 27, 17, 0.05);
    scrollbar-width: thin;
    padding: 1rem;
}

.shortfeed-comments__list::-webkit-scrollbar {
    width: 0.62rem;
}

.shortfeed-comments__list::-webkit-scrollbar-thumb {
    border: 2px solid rgba(255, 252, 247, 0.88);
    border-radius: 999px;
    background: rgba(216, 74, 8, 0.56);
}

.shortfeed-comments__list::-webkit-scrollbar-track {
    background: rgba(41, 27, 17, 0.05);
}

.shortfeed-comment {
    position: relative;
    padding: 0.9rem;
    border: 1px solid rgba(41, 27, 17, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.58);
}

.shortfeed-comment strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--shortfeed-orange);
    font-size: 0.86rem;
}

.shortfeed-comment time {
    position: absolute;
    top: 0.72rem;
    right: 0.78rem;
    display: inline-flex;
    max-width: 45%;
    justify-content: flex-end;
    margin: 0;
    color: rgba(121, 108, 98, 0.86);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: right;
}

.shortfeed-comment p,
.shortfeed-comments__empty {
    margin: 0;
    color: var(--shortfeed-muted);
    line-height: 1.45;
    white-space: pre-line;
}

.shortfeed-comment__reply {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    margin-top: 0.55rem;
    border: 0;
    border-radius: 999px;
    padding: 0 0.75rem;
    color: var(--shortfeed-orange);
    background: rgba(216, 74, 8, 0.09);
    font-size: 0.74rem;
    font-weight: 900;
    cursor: pointer;
}

.shortfeed-comment__replies {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.7rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(216, 74, 8, 0.18);
}

.shortfeed-comment__replies:empty {
    display: none;
}

.shortfeed-comment--reply {
    padding: 0.75rem;
    border-radius: 0.85rem;
    background: rgba(255, 247, 237, 0.72);
}

.shortfeed-comments__empty {
    padding: 0.2rem 0.1rem;
}

.shortfeed-comments__disabled {
    display: grid;
    place-items: center;
    gap: 0.45rem;
    min-height: 11rem;
    margin: 1rem;
    padding: 1.4rem;
    border: 1px dashed rgba(216, 74, 8, 0.34);
    border-radius: 1.2rem;
    color: var(--shortfeed-muted);
    background: rgba(255, 247, 237, 0.72);
    text-align: center;
}

.shortfeed-comments__disabled span {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--shortfeed-orange);
    font-size: 1.35rem;
    font-weight: 900;
}

.shortfeed-comments__disabled strong {
    color: var(--shortfeed-ink);
    font-size: 1rem;
}

.shortfeed-comments__disabled p {
    max-width: 17rem;
    margin: 0;
    line-height: 1.45;
}

.shortfeed-comments__form {
    z-index: 2;
    display: grid;
    gap: 0.65rem;
    flex: 0 0 auto;
    margin: 0.9rem 1rem 0;
    padding: 0.85rem;
    border: 1px solid rgba(216, 74, 8, 0.18);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.66);
}

.shortfeed-comment > .shortfeed-comments__form {
    margin: 0.7rem 0 0;
    padding: 0.7rem;
    background: rgba(255, 247, 237, 0.88);
}

.shortfeed-comments__reply-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    border-radius: 0.8rem;
    padding: 0.55rem 0.65rem;
    color: var(--shortfeed-ink);
    background: rgba(216, 74, 8, 0.09);
    font-size: 0.78rem;
    font-weight: 800;
}

.shortfeed-comments__reply-context[hidden] {
    display: none !important;
}

.shortfeed-comments__form .shortfeed-comments__reply-context button {
    min-height: auto;
    border: 0;
    padding: 0;
    color: var(--shortfeed-orange);
    background: transparent;
    box-shadow: none;
    font: inherit;
    cursor: pointer;
}

.shortfeed-comments__form textarea {
    width: 100%;
    min-height: 4.1rem;
    max-height: 8rem;
    resize: none;
    border: 1px solid rgba(41, 27, 17, 0.14);
    border-radius: 0.9rem;
    padding: 0.8rem 0.9rem;
    color: var(--shortfeed-ink);
    background: rgba(255, 252, 247, 0.92);
    font: inherit;
    line-height: 1.35;
}

.shortfeed-comments__form textarea:focus {
    border-color: rgba(216, 74, 8, 0.72);
    outline: 0;
    box-shadow: 0 0 0 0.22rem rgba(216, 74, 8, 0.12);
}

.shortfeed-comments__form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.shortfeed-comments__form-row p,
.shortfeed-comments__login {
    margin: 0;
    color: var(--shortfeed-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.shortfeed-comments__form-row p.is-error {
    color: #b42318;
}

.shortfeed-comments__form button {
    min-height: 2.35rem;
    border: 0;
    border-radius: 999px;
    padding: 0 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--shortfeed-orange), #b73502);
    box-shadow: 0 0.8rem 1.6rem rgba(216, 74, 8, 0.22);
    font-weight: 900;
    cursor: pointer;
}

.shortfeed-comments__form button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.shortfeed-comments__login {
    margin: auto 1rem 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.58);
}

.shortfeed-comments__login a {
    color: var(--shortfeed-orange);
    font-weight: 900;
}

.shortfeed-hint {
    position: absolute;
    left: 50%;
    bottom: 1.1rem;
    margin: 0;
    color: var(--shortfeed-muted);
    font-size: 0.84rem;
    transform: translateX(-50%);
}

.shortfeed-empty {
    display: grid;
    min-height: calc(100vh - 4.4rem);
    place-items: center;
    padding: 2rem;
    text-align: center;
}

.shortfeed-empty h1 {
    margin: 0;
    font-family: Newsreader, Georgia, serif;
    font-size: clamp(3rem, 8vw, 6rem);
}

.shortfeed-empty a {
    color: var(--shortfeed-orange);
    font-weight: 900;
}

@media (max-width: 980px) {
    :root {
        --shortfeed-navbar-height: 4.35rem;
        --shortfeed-shell-pad: 0;
        --shortfeed-ad-height: clamp(4rem, 13vh, 5rem);
    }

    body.shortfeed-page {
        overflow-x: hidden;
        overflow-y: hidden;
        background: #12100f;
    }

    .shortfeed-shell {
        height: calc(100vh - var(--shortfeed-navbar-height));
        height: calc(100svh - var(--shortfeed-navbar-height));
        min-height: 0;
        padding: 0;
    }

    .shortfeed-page .navbar-jelonka .container {
        position: relative;
    }

    .shortfeed-page .navbar-jelonka__collapse {
        position: absolute;
        top: calc(100% + 0.35rem);
        right: 0.5rem;
        left: 0.5rem;
        max-height: calc(100vh - var(--shortfeed-navbar-height) - 1rem);
        max-height: calc(100svh - var(--shortfeed-navbar-height) - 1rem);
        margin-top: 0;
        overflow: auto;
    }

    .shortfeed-stage {
        display: block;
        width: 100vw;
        height: 100%;
    }

    .shortfeed-viewport {
        width: 100vw;
        height: 100%;
        aspect-ratio: auto;
    }

    .shortfeed-card {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .shortfeed-card__copy {
        padding-right: 5.4rem;
        padding-bottom: 0;
    }

    .shortfeed-card__copy h1 {
        font-size: clamp(1.9rem, 9.8vw, 3.3rem);
    }

    .shortfeed-controls {
        top: auto;
        right: 0.8rem;
        bottom: calc(var(--shortfeed-ad-height) + 1rem);
        left: auto;
        transform: none;
    }

    .shortfeed-controls button,
    .shortfeed-controls a {
        width: 3rem;
        height: 3rem;
        color: #fff;
        background: rgba(0, 0, 0, 0.32);
        border-color: rgba(255, 255, 255, 0.28);
    }

    .shortfeed-comments {
        position: fixed;
        z-index: 30;
        right: 0.6rem;
        bottom: 0.6rem;
        left: 0.6rem;
        display: none;
        width: auto;
        height: 58vh;
        min-height: 38vh;
        max-height: 58vh;
        border-radius: 1.4rem;
    }

    .shortfeed-comments__form textarea {
        min-height: 3.7rem;
    }

    .shortfeed-comments.is-open {
        display: block;
    }

    .shortfeed-menu__panel {
        width: min(21rem, calc(100vw - 1.2rem));
        padding-top: 1.4rem;
    }

    .shortfeed-hint {
        display: none;
    }
}

@media (max-height: 620px) {
    :root {
        --shortfeed-shell-pad: 0.25rem;
    }

    .shortfeed-card__chips {
        display: none;
    }

    .shortfeed-card__copy h1 {
        font-size: clamp(1.45rem, 7vh, 2.3rem);
    }

    .shortfeed-card__read {
        min-height: 2rem;
        margin-top: 0.45rem;
        padding: 0.35rem 0.9rem;
        font-size: 0.85rem;
    }

    .shortfeed-card__ad {
        padding: 0;
    }
}
