@charset "UTF-8";

:root {
    --reels-sound-top: 12px;
    --reels-sound-left: 12px;
}

/* =========================================================
   REELS PAGE
   CORE / LOADING
========================================================= */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--kk-dark);
    background: var(--kk-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.70);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 1);
    z-index: 9999;
}

body.loading #loading-screen {
    display: flex;
}

body:not(.loading) #loading-screen {
    display: none;
}

#loading-screen img {
    width: 40px;
    height: 40px;
    background: transparent;
}

.reels-hidden {
    display: none !important;
}

.CookiebotWidget,
#CookiebotWidget {
    display: none !important;
}

/* =========================================================
   REELS PAGE
   LAYOUT
========================================================= */

.reels-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.reels-shell {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.reels-content {
    width: 100%;
    max-width: 1120px;
    padding: 82px 20px 170px;
    box-sizing: border-box;
}

/* =========================================================
   REELS PAGE
   HEADER / SECTION
========================================================= */

.reels-header {
    margin: 0 0 30px 0;
    text-align: center;
}

.reels-title {
    margin: 0 0 4px 0;
    font-family: 'pol_kam_extra_light', sans-serif;
    font-size: 32px;
    font-weight: normal;
    text-transform: none;
    line-height: 1.10;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 1);
}

.reels-intro {
    margin: 0;
    font-family: 'pol_kam_extra_light', sans-serif;
    font-size: 15px;
    line-height: 1.32;
    text-transform: none;
    color: rgba(255, 255, 255, 0.66);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 1);
}

.reels-section {
    margin: 0 0 46px 0;
}

.reels-section-title {
    margin: 0 0 16px 0;
    font-family: 'pol_kam_extra_light';
    font-size: 20px;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    color: rgba(255, 255, 255, 0.66);
    text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.85);
}

/* =========================================================
   REELS PAGE
   THUMBNAIL GRID LIKE PHOTOS PAGE
========================================================= */

.reels-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.reels-item {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(100, 155, 255, 0.16);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-user-drag: none;
    user-select: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.reels-item:hover {
    border-color: rgba(100, 155, 255, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.reels-thumb-frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.reels-thumb-image,
.reels-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.reels-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-sizing: border-box;
    font-family: 'pol_kam_extra_light', sans-serif;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 1);
}

.reels-thumb-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    opacity: 0.92;
    pointer-events: none;
    filter: drop-shadow(0 2px 9px rgba(0, 0, 0, 0.88));
}

.reels-thumb-play::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 85deg,
        rgba(255, 255, 255, 0.04) 125deg,
        rgba(255, 255, 255, 0.25) 195deg,
        rgba(255, 255, 255, 0.25) 285deg,
        transparent 360deg
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    animation: socialBorderRotate 2.2s linear infinite;
}

.reels-thumb-play img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.72;
}

/* =========================================================
   REELS PAGE
   MODAL LIKE PHOTOS PAGE
========================================================= */

.reels-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
}

.reels-modal.is-open {
    display: block;
}

.reels-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 22, 0.96);
}

.reels-modal-dialog {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(56px, 76px) minmax(0, 1fr) minmax(56px, 76px);
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
    padding: 24px 20px 18px;
    box-sizing: border-box;
}

.reels-modal-stage {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: calc(100vh - 150px);
}

.reels-video-frame {
    position: relative;
    overflow: hidden;
    width: min(100%, 430px, calc((var(--reels-vh, 100vh) - 175px) * 0.5625));
    height: auto;
    max-width: min(100%, 430px);
    max-height: calc(var(--reels-vh, 100vh) - 175px);
    aspect-ratio: 9 / 16;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.50);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
}

.reels-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.50);
}

.reels-video-poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    pointer-events: none;
    opacity: 1;
    transition: opacity 180ms ease;
}

.reels-video-poster.is-hidden {
    opacity: 0;
}

.reels-video-frame.is-switching .reels-video {
    opacity: 0;
}

.reels-video-frame.is-switching .reels-video-poster {
    opacity: 1;
}

.reels-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    background: rgba(8, 14, 22, 0.28);
    border-radius: 999px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.2s ease;
    z-index: 5;
}

.reels-modal-close:hover {
    background: rgba(8, 14, 22, 0.46);
}

.reels-modal-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.92);
    transform-origin: center;
}

.reels-modal-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.reels-modal-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.reels-modal-arrow {
    position: relative;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(8, 14, 22, 0.34);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    z-index: 4;
}

.reels-modal-arrow:hover {
    background: rgba(8, 14, 22, 0.50);
    border-color: rgba(255, 255, 255, 0.28);
}

.reels-modal-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 3px solid rgba(255, 255, 255, 0.92);
    border-right: 3px solid rgba(255, 255, 255, 0.92);
}

.reels-modal-arrow-prev {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
}

.reels-modal-arrow-prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.reels-modal-arrow-next {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
}

.reels-modal-arrow-next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.reels-modal-meta {
    display: none;
    grid-column: 2;
    grid-row: 2;
    margin-top: 10px;
    text-align: center;
    padding-bottom: 0;
}

.reels-modal-caption {
    font-family: 'pol_kam_extra_light', sans-serif;
    font-size: 15px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.84);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 1);
}

.reels-modal-counter {
    margin-top: 2px;
    font-family: 'pol_kam_extra_light', sans-serif;
    font-size: 12px;
    line-height: 1.10;
    color: rgba(255, 255, 255, 0.50);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 1);
}

/* =========================================================
   REELS PAGE
   CUSTOM VIDEO CONTROLS
========================================================= */

.reels-video-frame::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 260ms ease;
}

.reels-video-frame.controls-visible::after {
    opacity: 1;
}

.reels-sound-toggle,
.reels-play-toggle {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.02);
    opacity: .75;
    font-family: 'pol_kam_extra_light', sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.reels-sound-toggle {
    position: fixed;
    top: var(--reels-sound-top, 12px);
    left: var(--reels-sound-left, 12px);
    right: auto;
    z-index: 12008;
    width: 48px;
    height: 48px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.reels-sound-toggle img {
    display: block;
    width: 70%;
    height: 70%;
    opacity: .85;
    object-fit: contain;
    pointer-events: none;
}

.reels-sound-toggle.sound-off img {
    animation: imagePulse 1.9s infinite ease-in-out;
    transform-origin: center;
}

@keyframes imagePulse {
    0% {
        transform: scale(0.85);
        opacity: 0.65;
    }

    50% {
        transform: scale(1.10);
        opacity: 1;
    }

    100% {
        transform: scale(0.85);
        opacity: 0.65;
    }
}

.reels-center-play-toggle {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 7;
    width: 74px;
    height: 74px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
    -webkit-tap-highlight-color: transparent;
}

.reels-center-play-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 85deg,
        rgba(255, 255, 255, 0.04) 125deg,
        rgba(255, 255, 255, 0.25) 195deg,
        rgba(255, 255, 255, 0.25) 285deg,
        transparent 360deg
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    animation: socialBorderRotate 2.2s linear infinite;
}

@keyframes socialBorderRotate {
    to {
        transform: rotate(360deg);
    }
}

.reels-center-play-toggle img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: .35;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85));
}

.reels-video-frame.controls-visible .reels-center-play-toggle,
.reels-video-frame:not(.is-playing) .reels-center-play-toggle {
    opacity: .9;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.reels-center-play-toggle:active {
    transform: translate(-50%, -50%) scale(0.94);
}

.reels-custom-controls {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease;
}

.reels-video-frame.controls-visible .reels-custom-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.reels-progress-track {
    position: relative;
    flex: 1 1 auto;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.reels-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
}

.reels-sound-toggle:focus,
.reels-play-toggle:focus,
.reels-center-play-toggle:focus,
.reels-progress-track:focus {
    outline: none;
}

.reels-sound-toggle:active,
.reels-play-toggle:active {
    transform: translateY(1px);
}

/* =========================================================
   REELS PAGE
   EMPTY STATE
========================================================= */

.reels-empty {
    max-width: 620px;
    margin: 10px auto 0;
    padding: 28px 22px;
    border: 1px solid rgba(100, 155, 255, 0.15);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    text-align: center;
    box-sizing: border-box;
}

.reels-empty-title {
    margin: 0 0 8px;
    font-family: 'pol_kam_extra_light', sans-serif;
    font-size: 22px;
    font-weight: normal;
    line-height: 1.20;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 1);
}

.reels-empty-text {
    margin: 0;
    font-family: 'pol_kam_extra_light', sans-serif;
    font-size: 15px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.64);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 1);
}

.reels-empty-text strong {
    font-weight: normal;
    color: rgba(255, 255, 255, 0.82);
}

/* =========================================================
   REELS PAGE
   TABLET
========================================================= */

@media screen and (max-width: 1024px) {
    .reels-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   REELS PAGE
   MOBILE
========================================================= */

@media screen and (max-width: 700px) {
    .reels-shell {
        padding: 0 12px;
    }

    .reels-content {
        max-width: 100%;
        padding: 82px 12px 150px;
    }

    .reels-header {
        margin-bottom: 24px;
    }

    .reels-title {
        font-size: 28px;
        margin-bottom: 3px;
    }

    .reels-intro {
        font-size: 15px;
        line-height: 1.30;
    }

    .reels-section {
        margin-bottom: 34px;
    }

    .reels-section-title {
        margin-bottom: 14px;
        font-size: 18px;
    }

    .reels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .reels-thumb-play {
        width: 44px;
        height: 44px;
    }

    .reels-modal-dialog {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        grid-template-rows: auto auto;
        align-content: center;
        align-items: center;
        justify-items: center;
        row-gap: 24px;
        padding:
            14px
            12px
            calc(120px + env(safe-area-inset-bottom))
            12px;
    }

    .reels-modal-stage {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        max-height: calc(100vh - 268px);
    }

    .reels-video-frame {
        width: min(100%, 360px, calc((var(--reels-vh, 100vh) - 268px) * 0.5625));
        max-width: min(100%, 360px);
        max-height: calc(var(--reels-vh, 100vh) - 268px);
        border-radius: 4px;
    }

    .reels-modal-arrow {
        width: 42px;
        height: 42px;
        background: rgba(8, 14, 22, 0.42);
    }

    .reels-modal-arrow::before {
        width: 11px;
        height: 11px;
        border-top-width: 2px;
        border-right-width: 2px;
    }

    .reels-modal-arrow-prev {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        align-self: center;
        margin: 0;
    }

    .reels-modal-arrow-next {
        grid-column: 3;
        grid-row: 2;
        justify-self: center;
        align-self: center;
        margin: 0;
    }

    .reels-modal-meta {
        display: block;
        grid-column: 2;
        grid-row: 2;
        /*margin-top: 0;*/
        padding-bottom: 0;
        text-align: center;
        transform: translateY(-2px);
        width: 100%;
    }

    .reels-modal-caption {
        font-size: 14px;
        line-height: 1.18;
    }

    .reels-modal-counter {
        font-size: 11px;
        line-height: 1.08;
        margin-top: 1px;
    }

    .reels-modal-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .reels-modal-close span {
        width: 16px;
    }

    .reels-empty {
        padding: 24px 18px;
    }
}

/* =========================================================
   REELS PAGE
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 420px) {
    .reels-title {
        font-size: 24px;
    }

    .reels-content {
        padding-left: 8px;
        padding-right: 8px;
    }

    .reels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

/* =========================================================
   REELS PAGE
   EXTRA SMALL SMARTPHONE CLEANUP
   Keeps the modal calmer on short/narrow screens so video,
   arrows, caption and footer do not crowd each other.
========================================================= */

@media screen and (max-width: 420px) {
    .reels-modal-dialog {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        grid-template-rows: auto auto;
        align-content: center;
        row-gap: 18px;
        padding:
            calc(54px + env(safe-area-inset-top))
            12px
            calc(118px + env(safe-area-inset-bottom))
            12px;
    }

    .reels-modal-stage {
        max-height: min(54svh, 390px);
    }

    .reels-video-frame {
        width: min(74vw, 250px, 30.375svh);
        max-width: min(74vw, 250px);
        max-height: min(54svh, 390px);
        border-radius: 5px;
    }

    .reels-sound-toggle {
        width: 38px;
        height: 38px;
        padding: 3px;
    }

    .reels-center-play-toggle {
        width: 62px;
        height: 62px;
    }

    .reels-custom-controls {
        left: 10px;
        right: 10px;
        bottom: 9px;
    }

    .reels-progress-track {
        height: 3px;
    }

    .reels-modal-arrow {
        width: 44px;
        height: 44px;
    }

    .reels-modal-meta {
        align-self: center;
        transform: none;
    }

    .reels-modal-caption {
        font-size: 13px;
        line-height: 1.12;
    }

    .reels-modal-counter {
        font-size: 10px;
    }

    .reels-modal-close {
        top: calc(12px + env(safe-area-inset-top));
        right: 10px;
        width: 36px;
        height: 36px;
        z-index: 8;
    }
}

@media screen and (max-width: 380px), screen and (max-height: 680px) {
    .reels-modal-dialog {
        row-gap: 14px;
        padding:
            calc(50px + env(safe-area-inset-top))
            10px
            calc(108px + env(safe-area-inset-bottom))
            10px;
    }

    .reels-modal-stage {
        max-height: min(50svh, 350px);
    }

    .reels-video-frame {
        max-width: min(70vw, 226px);
        max-height: min(50svh, 350px);
    }

    .reels-modal-arrow {
        width: 40px;
        height: 40px;
    }

    .reels-modal-caption {
        font-size: 12px;
    }
}


/* =========================================================
   REELS PAGE
   SAFARI / MOBILE VIEWPORT CENTERING
   Keeps grid and modal content centered inside the real
   visible browser area, independent from Safari tab position.
========================================================= */

:root {
    --reels-sound-top: 12px;
    --reels-sound-left: 12px;
    --reels-vh: 100dvh;
    --reels-vv-top: 0px;
}

@supports not (height: 100dvh) {
    :root {
        --reels-vh: 100vh;
    }
}

.reels-page {
    min-height: var(--reels-vh);
}

.reels-modal {
    height: var(--reels-vh);
}

.reels-modal-backdrop {
    top: var(--reels-vv-top);
    height: var(--reels-vh);
    bottom: auto;
}

.reels-modal-dialog {
    inset: auto 0 auto 0;
    top: var(--reels-vv-top);
    min-height: 0;
    height: var(--reels-vh);
}

@media screen and (max-width: 700px) {
    .reels-content {
        padding-top: clamp(74px, 10dvh, 96px);
        padding-bottom: calc(190px + env(safe-area-inset-bottom));
    }

    .reels-modal-dialog {
        height: var(--reels-vh);
        min-height: 0;
        align-content: center;
        padding:
            calc(22px + env(safe-area-inset-top))
            12px
            calc(88px + env(safe-area-inset-bottom))
            12px;
    }

    .reels-modal-stage {
        max-height: calc(var(--reels-vh) - 190px);
    }

    .reels-video-frame {
        max-width: min(80vw, 360px);
        max-height: calc(var(--reels-vh) - 190px);
    }

    .reels-modal-close {
        top: calc(14px + env(safe-area-inset-top));
    }
}

@media screen and (max-width: 420px) {
    .reels-content {
        padding-top: clamp(70px, 9dvh, 90px);
        padding-bottom: calc(210px + env(safe-area-inset-bottom));
    }

    .reels-modal-dialog {
        row-gap: 16px;
        padding:
            calc(20px + env(safe-area-inset-top))
            10px
            calc(88px + env(safe-area-inset-bottom))
            10px;
    }

    .reels-modal-stage {
        max-height: calc(var(--reels-vh) - 188px);
    }

    .reels-video-frame {
        max-width: min(76vw, 300px);
        max-height: calc(var(--reels-vh) - 188px);
    }

    .reels-modal-meta {
        max-width: min(76vw, 300px);
    }
}

@media screen and (max-width: 380px), screen and (max-height: 680px) {
    .reels-content {
        padding-bottom: calc(220px + env(safe-area-inset-bottom));
    }

    .reels-modal-dialog {
        row-gap: 12px;
        padding:
            calc(18px + env(safe-area-inset-top))
            10px
            calc(82px + env(safe-area-inset-bottom))
            10px;
    }

    .reels-modal-stage {
        max-height: calc(var(--reels-vh) - 176px);
    }

    .reels-video-frame {
        max-width: min(74vw, 280px);
        max-height: calc(var(--reels-vh) - 176px);
    }

    .reels-modal-meta {
        max-width: min(74vw, 280px);
    }
}
