* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --pink: #ff729a;
    --cream: #fff4db;
}

body {
    margin: 0;
    background: #0e0d12;
    color: white;
    font: 15px system-ui,sans-serif;
}

button,input,textarea,select {
    font: inherit;
}

button,a {
    cursor: pointer;
}

button {
    color: inherit;
}

button:focus-visible,a:focus-visible {
    outline: 3px solid #ffdf7d;
    outline-offset: 3px;
}

header {
    height: 76px;
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    background: #131219f5;
    border-bottom: 1px solid #ffffff18;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px max(14px,calc((100vw - 1000px)/2));
    gap: 16px;
}

.logo {
    font-weight: 1000;
    font-size: 23px;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

.logo i {
    color: var(--pink);
    font-style: normal;
}

.fund {
    width: 220px;
    min-width: 100px;
}

.fundline {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
}

.track {
    height: 6px;
    background: #ffffff20;
    border-radius: 10px;
    margin: 5px 0;
}

.fill {
    height: 100%;
    background: var(--pink);
    border-radius: 10px;
}

small {
    color: #bcb7c6;
    font-size: 11px;
}

.layout {
    height: 100dvh;
    padding-top: 76px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.sidebar {
    width: 260px;
    padding: 35px 0;
    align-self: flex-start;
}

.sidebar h1 {
    font-size: 37px;
    letter-spacing: -2px;
    line-height: 1;
    margin: 18px 0;
}

.sidebar p {
    color: #bdb8c6;
    line-height: 1.55;
}

.kicker {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--pink);
}

.pill {
    border-radius: 30px;
    padding: 12px 16px;
    background: #27232e;
    border: 1px solid #ffffff18;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    color: white;
}

.primary {
    background: var(--pink);
    color: #22101a;
    border: 0;
}

.feed {
    width: min(100vw,460px);
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    overscroll-behavior: contain;
}

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

.ad {
    height: 100%;
    min-height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #25202b;
}

.art {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px 145px;
    text-align: center;
    overflow: hidden;
}

.art:before {
    content: "";
    position: absolute;
    inset: -20%;
    background: repeating-conic-gradient(from 12deg at 50% 45%,#ffffff10 0deg 13deg,transparent 13deg 26deg);
    z-index: -1;
}

.art h2 {
    font-size: clamp(42px,8vw,65px);
    line-height: .91;
    letter-spacing: -3px;
    margin: 12px 0;
    font-weight: 1000;
    text-transform: uppercase;
    text-shadow: 3px 4px #0005;
}

.art .eyebrow {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    background: #fff4db;
    color: #151018;
    padding: 7px 11px;
    transform: rotate(-4deg);
}

.art p {
    font-size: 17px;
    font-weight: 750;
    max-width: 260px;
}

.product {
    font-size: 96px;
    filter: drop-shadow(0 12px 15px #0005);
    line-height: 1.1;
    margin-top: 8px;
}

.blue {
    background: radial-gradient(circle at 50% 40%,#40b6ed,#10388e 60%,#101d45);
}

.orange {
    background: radial-gradient(circle at 50% 40%,#edaf4b,#c04b24 65%,#4e1f23);
}

.green {
    background: radial-gradient(circle at 50% 40%,#74a66e,#295a46 65%,#16251f);
}

.purple {
    background: radial-gradient(circle at 50% 40%,#a775d2,#6341a0 65%,#281b42);
}

.photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%,#000d 100%);
    pointer-events: none;
}

.topline {
    position: absolute;
    top: 16px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
}

.tag {
    padding: 6px 9px;
    background: #14121dbb;
    border: 1px solid #ffffff30;
    border-radius: 20px;
}

.info {
    position: absolute;
    bottom: 70px;
    left: 18px;
    right: 77px;
}

.info h3 {
    font-size: 19px;
    margin: 0 0 6px;
}

.info p {
    font-size: 13px;
    margin: 0 0 12px;
    line-height: 1.45;
}

.watch {
    display: inline-block;
    border: 0;
    background: white;
    color: #15121b;
    border-radius: 9px;
    padding: 10px 14px;
    font-weight: 850;
    text-decoration: none;
}

.rail {
    position: absolute;
    right: 12px;
    bottom: 70px;
    display: grid;
    gap: 16px;
    text-align: center;
}

.rail button {
    border: 0;
    background: none;
    padding: 0;
    display: grid;
    justify-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 750;
    text-shadow: 0 1px 5px black;
}

.rail b {
    font-size: 27px;
    line-height: 1;
}

.next {
    position: absolute;
    bottom: 13px;
    left: 50%;
    transform: translateX(-50%);
    border: 0;
    background: #0006;
    border-radius: 24px;
    padding: 9px 14px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
}

.right {
    width: 200px;
    padding-top: 35px;
}

.stat {
    background: #1b1922;
    border: 1px solid #ffffff13;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
}

.stat strong {
    display: block;
    font-size: 32px;
    letter-spacing: -1px;
}

.stat p {
    color: #bcb7c6;
    font-size: 12px;
    line-height: 1.5;
    margin: 7px 0;
}

.right button {
    width: 100%;
    margin: 5px 0;
}

.modal {
    border: 1px solid #ffffff20;
    border-radius: 18px;
    background: #201c28;
    color: white;
    width: min(92vw,480px);
    max-height: 85dvh;
    overflow: auto;
    padding: 22px;
}

.modal::backdrop {
    background: #000b;
}

.modal h2 {
    margin-top: 0;
}

.modal p {
    color: #c9c3d0;
    line-height: 1.5;
}

.close {
    float: right;
    background: none;
    border: 0;
    font-size: 24px;
}

.field {
    display: grid;
    gap: 5px;
    margin: 12px 0;
    font-size: 12px;
    color: #d0cad8;
}

.field input,.field textarea,.field select {
    background: #100e16;
    border: 1px solid #ffffff30;
    border-radius: 8px;
    padding: 10px;
    color: white;
    width: 100%;
}

.modal .pill {
    margin: 5px 5px 5px 0;
}

.entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ffffff20;
    padding: 10px 0;
    gap: 10px;
}

.entry button {
    background: #332b3a;
    border: 0;
    border-radius: 8px;
    padding: 7px;
}

.mobile-actions {
    display: none;
}

.videoFallback {
    position: absolute;
    top: calc(16% + min(56.25vw,259px));
    left: 12px;
    z-index: 5;
    color: white;
    background: #111;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
}

.video {
    position: absolute;
    inset: 16% 0 auto;
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    z-index: 4;
}

.toast {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background: white;
    color: #111;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: 750;
    max-width: 90vw;
    text-align: center;
}

.hide {
    display: none;
}

@media (max-width:960px) {
    .right {
        display: none;
    }

    .sidebar {
        width: 220px;
    }

}

@media (max-width:700px) {
    header {
        height: 70px;
        gap: 9px;
        padding: 10px 12px;
    }

    .logo {
        font-size: 19px;
    }

    .fund {
        width: 115px;
    }

    .layout {
        padding-top: 70px;
        gap: 0;
    }

    .sidebar {
        display: none;
    }

    .feed {
        width: 100%;
    }

    #desktopAbout {
        padding: 8px;
        font-size: 11px;
        white-space: nowrap;
    }

    .mobile-actions {
        display: block;
        border: 0;
        background: var(--pink);
        color: #22101a;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 900;
        padding: 9px;
    }

    .art {
        padding-bottom: 130px;
    }

    .info {
        bottom: 73px;
    }

    .rail {
        bottom: 73px;
    }

}

body,header {
    background: #080808;
}

.layout {
    gap: 36px;
}

.feed {
    background: #000;
    width: min(100vw,480px);
}

.ad {
    background: #000;
}

.ad.videoAd .art {
    display: none;
}

.videoAd .shade {
    background: linear-gradient(#0009,transparent 18%,transparent 65%,#000b);
}

.video {
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    z-index: 0;
    pointer-events: none;
}

.videoAd .topline,.videoAd .info,.videoAd .rail,.videoAd .next {
    z-index: 2;
}

.videoAd .info {
    bottom: 42px;
}

.videoAd .rail {
    bottom: 42px;
}

.videoAd .watch {
    background: transparent;
    color: #fff;
    border: 1px solid #ffffff55;
    font-size: 12px;
}

.next {
    display: none;
}

.rail b {
    font-size: 30px;
}

.videoAd .shade {
    z-index: 1;
}

.videoAd .info p {
    color: #ddd;
}

.videoAd .topline {
    top: 18px;
}

.feed {
    touch-action: pan-y;
}

.videoAd .poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: .7;
}

.videoAd .video {
    background: #000;
}

.videoAd .rail button {
    min-width: 48px;
}

.videoAd .info h3 {
    font-size: 18px;
}

.videoAd .watch {
    display: none;
}

@media (max-width:700px) {
    .feed {
        width: 100%;
    }

    .layout {
        gap: 0;
    }

    .videoAd .info {
        bottom: 35px;
    }

    .videoAd .rail {
        bottom: 35px;
    }

}

header .logo {
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: clamp(16px,4.5vw,23px);
    letter-spacing: -1px;
}

header .fund {
    flex: 1 1 115px;
    min-width: 0;
    max-width: 220px;
}

.fundline {
    white-space: nowrap;
    font-size: 10px;
}

@media (max-width:700px) {
    #desktopAbout {
        display: none;
    }

    header {
        gap: 8px;
    }

    .mobile-actions {
        flex-shrink: 0;
    }

}

@media (max-width:350px) {
    header .logo {
        font-size: 15px;
    }

    .mobile-actions {
        padding: 7px;
        font-size: 10px;
    }

    .fundline {
        font-size: 9px;
    }

}

.soundtop {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 6;
    background: #0008;
    border: 0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
}

.videoAd .topline {
    left: 65px;
}

.rail button {
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
}

.rail button[aria-pressed="true"] {
    color: var(--pink);
}

.rail {
    gap: 18px;
}

.videoAd .rail {
    z-index: 6;
}

.date-row {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.date-row small {
    font-size: 10px;
}

.tiny-donate {
    font-size: 9px;
    color: #ff729a;
    text-decoration: none;
    border: 1px solid #ff729a77;
    border-radius: 12px;
    padding: 3px 6px;
    font-weight: 800;
}

@media (max-width:400px) {
    header .logo {
        font-size: 16px;
    }

    .mobile-actions {
        font-size: 9px;
        padding: 6px;
    }

    .date-row small {
        font-size: 9px;
    }

    .tiny-donate {
        padding: 2px 4px;
        font-size: 8px;
    }

}

.tiny-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: var(--pink,#ff729a);
    color: #241019;
    border: 0;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 2px 9px #ff729a35;
    transition: filter .2s,transform .2s;
    flex-shrink: 0;
}

.tiny-donate:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.tiny-donate:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.tiny-donate svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

@media (max-width:400px) {
    .tiny-donate {
        font-size: 9px;
        padding: 4px 6px;
    }

    .date-row {
        gap: 3px;
    }

}

@media (max-width:350px) {
    .tiny-donate {
        padding: 4px 5px;
    }

    .tiny-donate svg {
        display: none;
    }

}

.tiny-donate {
    background: transparent;
    color: var(--pink);
    border: 1px solid var(--pink);
    border-radius: 4px;
    padding: 4px 8px;
    font-family: inherit;
    font-weight: 1000;
    font-size: 11px;
    letter-spacing: -.35px;
    line-height: 1.15;
    box-shadow: none;
    transition: background .18s,color .18s;
    white-space: nowrap;
}

.tiny-donate:hover,.tiny-donate:focus-visible,.tiny-donate:active {
    background: var(--pink);
    color: #131219;
    filter: none;
    transform: none;
}

.tiny-donate:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 2px;
}

@media (max-width:400px) {
    .tiny-donate {
        font-size: 10px;
        padding: 3px 5px;
    }

}

header .mobile-actions,#desktopAbout,.sidebar,.right {
    display: none;
}

.layout {
    padding-bottom: 82px;
}

.legalnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #080808;
    border-top: 1px solid #252525;
    text-align: center;
    z-index: 9;
    padding: 7px 0 max(8px,env(safe-area-inset-bottom));
}

.legalnav button {
    background: none;
    border: 0;
    color: white;
    font-size: 11px;
}

.legalnav svg {
    display: block;
    margin: 0 auto 3px;
}

.legalnav a,.legalfoot a {
    color: #999;
    font-size: 11px;
    margin: 0 8px;
}

.legalnav button:hover {
    color: var(--pink);
}

/* V9.1: prevent the poster from overlapping the active video player. */
.videoAd .poster {
    z-index: 0;
    opacity: 1;
}

.videoAd:has(iframe.video) .poster {
    display: none;
}

.videoAd .video {
    z-index: 1;
    background: #000;
}

.videoAd .shade {
    display: none;
}

/* Playback controls sit outside the YouTube frame. */
.videoAd .video,
.videoAd .poster {
    top: 68px;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: calc(100% - 240px);
}

.videoAd .video {
    pointer-events: auto;
}

.videoAd .poster {
    pointer-events: none;
}

.videoAd .topline {
    left: 108px;
    right: 10px;
    gap: 4px;
}

.videoAd .topline .tag {
    padding: 5px 7px;
    font-size: 10px;
    white-space: nowrap;
}

.videoAd .playToggle {
    left: 58px;
}

.videoAd .rail {
    bottom: 12px;
    gap: 10px;
}

.videoAd .info {
    bottom: 25px;
}

.playStatus {
    display: block;
    color: #aaa;
    font-size: 11px;
    line-height: 1.4;
}

.playStatus:empty {
    display: none;
}

.ad {
    touch-action: pan-y;
}

/* Comments: a scrollable bottom sheet with a pinned composer. */
.commentSheet {
    position: fixed;
    inset: auto 0 0;
    margin: 0 auto;
    width: min(100%, 480px);
    height: min(66dvh, 580px);
    max-height: calc(100dvh - 24px);
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 18px 18px 0 0;
    color: #f5f5f5;
    background: #161616;
    overflow: hidden;
}

.commentSheet[open] {
    display: flex;
    flex-direction: column;
}

.commentSheet::backdrop {
    background: #0005;
}

.commentHeader {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 9px 48px 14px;
    border-bottom: 1px solid #292929;
    flex-shrink: 0;
}

.commentHandle {
    width: 34px;
    height: 4px;
    border-radius: 10px;
    background: #666;
}

.commentHeader h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 750;
}

.commentClose {
    position: absolute;
    right: 8px;
    top: 12px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 25px;
}

.commentList {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 15px;
}

.commentRow {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: start;
    padding: 10px 0;
}

.commentAvatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #353035;
    color: #e9b3c4;
    font-weight: 800;
}

.commentName, .commentMeta {
    color: #aaa;
    font-size: 12px;
}

.commentText {
    margin: 4px 0 6px;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.commentHeart {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 3px;
    background: none;
    border: 0;
    color: #aaa;
    font-size: 11px;
    min-height: 44px;
}

.commentHeart svg {
    width: 20px;
    height: 20px;
}

.commentHeart[aria-pressed="true"] {
    color: var(--pink);
}

.commentHeart[aria-pressed="true"] svg {
    fill: var(--pink);
}

.commentEmpty {
    display: grid;
    align-content: center;
    justify-items: center;
    height: 100%;
    text-align: center;
    color: #aaa;
    gap: 8px;
}

.commentEmpty strong {
    color: #eee;
    font-size: 15px;
}

.commentComposer {
    flex-shrink: 0;
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid #292929;
}

.commentForm {
    display: flex;
    align-items: center;
    gap: 10px;
}

.commentForm input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 24px;
    background: #292929;
    color: white;
    padding: 12px 14px;
    font-size: 16px;
}

.commentSend {
    border: 0;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--pink);
    color: #161616;
    font-size: 20px;
    font-weight: 800;
}

.commentSend:disabled {
    opacity: .35;
    cursor: default;
}

.commentNotice {
    margin: 8px 0 0;
    text-align: center;
    font-size: 10px;
    color: #aaa;
}

@media (max-height: 560px) {
    .videoAd .video, .videoAd .poster {
        top: 54px;
        height: calc(100% - 180px);
    }
    .videoAd .rail {
        grid-template-columns: repeat(3, 44px);
        bottom: 6px;
        right: 4px;
        gap: 0;
    }
    .videoAd .info {
        bottom: 54px;
        right: 12px;
    }
}

/* Production controls: shared counts, consent, moderation and unobtrusive links. */
.videoAd:has(.video) .poster { display: none; }
.videoAd video.video { object-fit: contain; touch-action: pan-y; }
.reactionCount { display: block; font-size: 10px; line-height: 1; }
.rail button:disabled { opacity: 0.45; cursor: not-allowed; }
.sourceLink { color: #bcb7c6; font-size: 11px; text-decoration: underline; }
.adDescription { max-width: 95%; }
.mediaConsent { position: absolute; z-index: 3; inset: 20% 16% 30%; display: grid; place-content: center; text-align: center; gap: 10px; }
.mediaConsent a { color: var(--pink); font-size: 12px; }
.mediaConsent p { color: #aaa; font-size: 13px; }
.emptyFeed { display: grid; place-items: center; text-align: center; padding: 30px; }
.emptyFeed h2 { font-size: 32px; line-height: 1; }
.emptyFeed h2 span { color: var(--pink); }
.legalText { color: #aaa; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.legalnav .legalText { font-size: 10px; margin-left: 6px; }
.commentHeader .reportAd { position: absolute; left: 12px; bottom: 12px; font-size: 10px; }
#authDialog { max-width: min(420px, 94vw); }
#authContent { min-height: 100px; }
#authDialog .field input { width: 100%; }
@media (max-width: 600px) {
    .adDescription { display: none; }
    .legalnav .legalText { font-size: 9px; }
}

/* ==========================================
   SUBMIT AD — Animated pink sparkles
   ========================================== */

.legalnav #submitAd {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 44px;
    padding: 0 24px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    cursor: pointer;
    transition: color 0.25s ease;
}

.submitAdIcon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 30px;
    overflow: visible;
}

.legalnav #submitAd .submitMegaphone {
    display: block;
    width: 30px;
    height: 30px;
    margin: 0;
    transition: transform 0.25s ease;
}

.legalnav #submitAd:hover,
.legalnav #submitAd:focus-visible {
    color: var(--pink, #ff729a);
}

.legalnav #submitAd:hover .submitMegaphone {
    transform: scale(1.08);
}

/* Decorative four-point stars, not emoji. */
.adSparkle {
    position: absolute;
    display: block;
    background: var(--pink, #ff729a);
    clip-path: polygon(
        50% 0%,
        62% 38%,
        100% 50%,
        62% 62%,
        50% 100%,
        38% 62%,
        0% 50%,
        38% 38%
    );
    pointer-events: none;
    animation: adTwinkle 2.8s ease-in-out infinite;
}

/* Different sizes and staggered timing give a natural twinkle. */
.sparkle1 {
    width: 12px;
    height: 12px;
    top: 0;
    left: 14px;
    animation-delay: -0.2s;
}

.sparkle2 {
    width: 8px;
    height: 8px;
    top: -2px;
    right: 15px;
    animation-delay: -1.2s;
}

.sparkle3 {
    width: 15px;
    height: 15px;
    top: 13px;
    right: 0;
    animation-delay: -0.7s;
}

.sparkle4 {
    width: 7px;
    height: 7px;
    top: 22px;
    left: 5px;
    animation-delay: -1.8s;
}

.sparkle5 {
    width: 6px;
    height: 6px;
    top: 27px;
    right: 17px;
    animation-delay: -2.1s;
}

@keyframes adTwinkle {
    0%,
    100% {
        opacity: 0.15;
        transform: scale(0.45) rotate(-12deg);
    }

    45% {
        opacity: 1;
        transform: scale(1.15) rotate(8deg);
    }

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

/* Account for the iPhone safe area while retaining the feed layout. */
.layout {
    padding-bottom: calc(82px + max(0px, env(safe-area-inset-bottom, 0px) - 8px));
}

/* Respect users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
    .adSparkle {
        animation: none;
        opacity: 0.85;
    }

    .legalnav #submitAd,
    .legalnav #submitAd .submitMegaphone {
        transition: none;
    }

    .legalnav #submitAd:hover .submitMegaphone {
        transform: none;
    }
}


/* ==========================================
   INSTAGRAM — Responsive, scrollable post
   ========================================== */

/* Only the active Instagram card uses this layout.
   The header, post and ad details have their own grid rows. */
.videoAd.instagramAd {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #000;
}

.videoAd.instagramAd .topline {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 10px 12px;
    gap: 6px;
}

/* Retain a way to advance even when a third-party iframe captures swipes. */
.videoAd.instagramAd .next {
    display: inline-flex;
    position: static;
    transform: none;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #ff729a66;
    border-radius: 6px;
    background: transparent;
    color: var(--pink, #ff729a);
    font-size: 11px;
    line-height: 1.2;
}

.videoAd.instagramAd .next:hover {
    background: #ff729a18;
}

/* The post can be taller than the visible portion of the feed.
   Scroll the region to reach the lower Instagram controls. */
.instagramEmbed {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #ff729a66 #181818;
    padding: 0 10px;
    background: #080808;
    touch-action: pan-y;
}

.instagramFrame {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 760px;
    aspect-ratio: 9 / 22;
    margin: 0 auto;
    border: 0;
    background: #fff;
}

/* Keep the sponsor information and reactions outside Instagram's frame. */
.videoAd.instagramAd .info {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    min-width: 0;
    padding: 12px 0 12px 16px;
}

.videoAd.instagramAd .info h3 {
    overflow-wrap: anywhere;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.videoAd.instagramAd .info p {
    margin-bottom: 5px;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.videoAd.instagramAd .playStatus {
    margin-top: 5px;
}

.videoAd.instagramAd .sourceLink {
    display: inline-block;
    color: var(--pink, #ff729a);
    padding: 6px 0;
}

.videoAd.instagramAd .rail {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 3;
    grid-template-columns: 1fr;
    align-self: end;
    gap: 2px;
    padding: 5px 4px 8px;
}

@media (max-width: 600px) {
    .videoAd.instagramAd .adDescription {
        display: none;
    }
}

@media (max-height: 560px) {
    .videoAd.instagramAd .rail {
        grid-column: 2;
        grid-row: 3;
        grid-template-columns: 1fr;
    }
    .videoAd.instagramAd .rail button {
        min-height: 36px;
    }
    .videoAd.instagramAd .info {
        padding-top: 5px;
        padding-bottom: 5px;
    }
}