/* Standalone public share landing for /w/{id}. Kept self-contained so an
   unfurled link loads fast without the full landing bundle. */

* { box-sizing: border-box; }

.share-body {
    margin: 0;
    min-height: 100vh;
    background: #0b0b0d;
    color: #f4f4f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.share-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
}

.share-topbar__logo img { display: block; }

.share-topbar__cta {
    padding: 9px 18px;
    border-radius: 999px;
    background: #db2f49;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}

.share-shell {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.share-main {
    display: grid;
    grid-template-columns: minmax(0, 460px) minmax(0, 360px);
    gap: 34px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px 60px;
}

.share-main--video { grid-template-columns: minmax(0, 720px) minmax(0, 340px); }

/* --- Stage ---------------------------------------------------------------- */

.share-stage {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #101013;
}

.share-main--clip .share-stage { aspect-ratio: 9 / 16; max-height: 76vh; margin: 0 auto; }
.share-main--video .share-stage { aspect-ratio: 16 / 9; }

.share-stage__blur,
.share-stage__poster,
.share-stage__preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The blur is a low-resolution derivative, so the full frame never leaks to a
   logged-out visitor even with devtools open. */
.share-stage__blur {
    filter: blur(20px) saturate(1.1);
    transform: scale(1.14);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.share-stage.is-gated .share-stage__blur { opacity: 1; }
.share-stage.is-gated .share-stage__preview { opacity: 0; }
.share-stage.is-gated .share-stage__countdown { display: none; }

.share-stage__countdown {
    position: absolute;
    right: 14px;
    top: 14px;
    margin: 0;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Gate ----------------------------------------------------------------- */

.share-gate {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 24px 26px;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, 0.95) 38%);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.share-stage.is-gated .share-gate {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.share-gate__title { margin: 0 0 4px; font-size: 21px; line-height: 1.3; }

.share-gate__byline {
    margin: 0 0 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.share-gate__byline a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.share-gate__byline a:hover { text-decoration: underline; }

.share-gate__pitch {
    margin: 0 0 16px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.82);
}

.share-gate__cta {
    display: block;
    padding: 14px 20px;
    border-radius: 999px;
    background: #db2f49;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.share-gate__link {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13.5px;
    text-align: center;
}

.share-gate__fine {
    margin: 12px 0 0;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

/* --- Context -------------------------------------------------------------- */

.share-context__description {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(244, 244, 245, 0.78);
}

.share-context__points {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: rgba(244, 244, 245, 0.7);
}

.share-context__points li {
    position: relative;
    padding: 7px 0 7px 22px;
}

.share-context__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #db2f49;
}

.share-context__discover {
    color: #f4f4f5;
    font-size: 13.5px;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .share-main,
    .share-main--video {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .share-gate, .share-stage__blur { transition: none; }
}
