/*
 * RV_SOCIAL_MEDIA_V4_FLAGSHIP_STYLE_20260820
 *
 * Image-first consumer presentation.
 * No repair architecture.
 */

:root{
    --rv4-red:#e10600;
    --rv4-red-hot:#ff3029;
    --rv4-red-deep:#a80501;

    --rv4-black:#050506;
    --rv4-black2:#0b0c0e;
    --rv4-black3:#141619;

    --rv4-ink:#101113;
    --rv4-ink2:#26292e;

    --rv4-bg:#f7f7f8;
    --rv4-paper:#ffffff;

    --rv4-muted:#777e87;
    --rv4-muted2:#a0a6ae;

    --rv4-line:#e7e8eb;

    --rv4-shadow:
        0 24px 80px
        rgba(15,18,24,.09);
}

*{
    box-sizing:border-box;
}

html{
    min-height:100%;
    -webkit-text-size-adjust:100%;
}

body.rv4-light{
    margin:0;
    min-height:100vh;

    background:#f7f7f8;
    color:var(--rv4-ink);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    text-rendering:optimizeLegibility;
}

body.rv4-dark{
    margin:0;
    min-height:100vh;

    background:#050506;
    color:#fff;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    text-rendering:optimizeLegibility;
}

body.rv4-light a,
body.rv4-dark a{
    color:inherit;
    text-decoration:none;
}

body.rv4-light button,
body.rv4-light input,
body.rv4-light textarea,
body.rv4-light select,
body.rv4-dark button,
body.rv4-dark input,
body.rv4-dark textarea,
body.rv4-dark select{
    font:inherit;
}

[hidden]{
    display:none!important;
}

/* ==========================================================
   INLINE VECTOR ICONS
   ========================================================== */

.rv4-howl-inline{
    width:21px;
    height:21px;

    display:inline-grid;
    place-items:center;

    flex:0 0 auto;

    line-height:0;
}

.rv4-howl-inline svg{
    width:100%!important;
    height:100%!important;

    max-width:100%!important;
    max-height:100%!important;

    display:block!important;

    overflow:visible!important;
}

.rv4-brand-inline{
    width:100%;
    height:100%;

    display:grid;
    place-items:center;

    line-height:0;
}

.rv4-brand-inline svg{
    width:100%!important;
    height:100%!important;

    max-width:100%!important;
    max-height:100%!important;

    display:block!important;

    overflow:visible!important;
}

/* ==========================================================
   BRAND
   ========================================================== */

.rv4-brand{
    display:inline-flex;
    align-items:center;
    gap:10px;

    min-width:0;

    font-size:13px;
    font-weight:950;
    letter-spacing:-.03em;
}

.rv4-brand-mark{
    width:38px;
    height:38px;

    padding:1px;

    border:0;
    border-radius:10px;

    overflow:hidden;

    background:transparent;

    display:grid;
    place-items:center;

    flex:0 0 auto;

    box-shadow:none;
}




.rv4-viewer-brand{
    width:42px;
    height:42px;

    padding:3px;

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius:12px;

    overflow:hidden;

    background:
        rgba(12,13,16,.56);

    backdrop-filter:blur(16px);

    display:grid;
    place-items:center;

    flex:0 0 auto;
}

.rv4-viewer-brand
.rv4-brand-inline{
    width:34px;
    height:34px;
}

.rv4-wordmark{
    display:flex;
    align-items:baseline;
    gap:4px;
}

.rv4-wordmark strong{
    font-weight:950;
}

.rv4-wordmark span{
    color:var(--rv4-red);
    font-weight:950;
}

/* ==========================================================
   LAYOUT
   ========================================================== */

.rv4-shell{
    width:min(1380px,100%);

    margin:0 auto;

    padding:
        22px
        clamp(12px,3vw,38px)
        84px;
}

.rv4-topbar{
    min-height:50px;

    margin-bottom:24px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:14px;
}

.rv4-top-actions{
    display:flex;
    align-items:center;
    gap:7px;
    flex-wrap:wrap;
}

.rv4-eyebrow{
    color:var(--rv4-red);

    font-size:9px;
    line-height:1;

    letter-spacing:.17em;
    text-transform:uppercase;
    font-weight:950;
}

.rv4-display{
    margin:8px 0 0;

    font-size:
        clamp(
            42px,
            7vw,
            86px
        );

    line-height:.88;
    letter-spacing:-.085em;
    font-weight:950;
}

.rv4-lede{
    max-width:680px;

    margin:14px 0 0;

    color:var(--rv4-muted);

    font-size:12px;
    line-height:1.65;
    font-weight:650;
}

/* ==========================================================
   CONTROLS
   ========================================================== */

.rv4-btn{
    min-height:41px;

    padding:0 14px;

    border:
        1px solid
        #dedfe2;

    border-radius:999px;

    background:#fff;
    color:#22252a;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    gap:7px;

    cursor:pointer;

    font-size:9.5px;
    font-weight:900;

    transition:
        transform .14s ease,
        background .14s ease,
        border-color .14s ease;
}

.rv4-btn:hover{
    transform:translateY(-1px);
    background:#f3f4f5;
}

.rv4-btn.red{
    border-color:var(--rv4-red);
    background:var(--rv4-red);
    color:#fff;
}

.rv4-btn.black{
    border-color:#101113;
    background:#101113;
    color:#fff;
}

.rv4-btn.danger{
    border-color:#ffc9c6;
    color:#b42318;
}

.rv4-round{
    width:42px;
    height:42px;

    padding:0;

    border:1px solid #e0e1e4;
    border-radius:50%;

    background:#fff;
    color:#202328;

    display:grid;
    place-items:center;

    cursor:pointer;
}

.rv4-round svg{
    width:19px;
    height:19px;

    stroke:currentColor;
    fill:none;

    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* ==========================================================
   IDENTITY
   ========================================================== */

.rv4-identity{
    min-width:0;

    display:flex;
    align-items:center;

    gap:10px;
}

.rv4-avatar{
    width:43px;
    height:43px;

    flex:0 0 auto;

    overflow:hidden;

    border-radius:50%;

    background:#e7e8ea;
    color:#1d2025;

    display:grid;
    place-items:center;

    font-size:13px;
    font-weight:950;
}

.rv4-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.rv4-idcopy{
    min-width:0;
}

.rv4-name{
    min-width:0;

    display:flex;
    align-items:center;

    gap:5px;

    font-size:11.5px;
    font-weight:950;
}

.rv4-name-text{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.rv4-verified{
    width:16px;
    height:16px;

    border-radius:50%;

    background:var(--rv4-red);
    color:#fff;

    display:inline-grid;
    place-items:center;

    flex:0 0 auto;

    font-size:9px;
    font-weight:950;
}

.rv4-meta{
    margin-top:2px;

    color:#9298a0;

    font-size:9px;
    font-weight:750;
}

/* ==========================================================
   COMMENT COMPONENT
   ========================================================== */

.rv4-comments{
    display:grid;
    gap:11px;
}

.rv4-comment{
    display:grid;

    grid-template-columns:
        38px minmax(0,1fr);

    gap:9px;

    align-items:start;
}

.rv4-comment .rv4-avatar{
    width:38px;
    height:38px;
}

.rv4-comment-bubble{
    padding:9px 11px;

    border-radius:
        5px
        15px
        15px
        15px;

    background:#f1f2f4;
}

.rv4-comment-name{
    display:flex;
    align-items:center;
    gap:5px;

    color:#1d2025;

    font-size:10px;
    font-weight:950;
}

.rv4-comment-text{
    margin:4px 0 0;

    color:#343941;

    font-size:10px;
    line-height:1.5;
}

.rv4-comment-compose{
    display:grid;

    grid-template-columns:
        36px minmax(0,1fr) auto;

    gap:7px;

    align-items:center;
}

.rv4-comment-compose .rv4-avatar{
    width:36px;
    height:36px;
}

/* ==========================================================
   INPUTS
   ========================================================== */

.rv4-input,
.rv4-select,
.rv4-textarea{
    width:100%;

    outline:0;

    border:
        1px solid
        #d9dade;

    border-radius:13px;

    background:#fff;
    color:#202328;

    font-size:11px;
    font-weight:700;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.rv4-input,
.rv4-select{
    height:43px;
    padding:0 12px;
}

.rv4-textarea{
    min-height:92px;
    padding:11px 12px;
    resize:vertical;
}

.rv4-input:focus,
.rv4-select:focus,
.rv4-textarea:focus{
    border-color:
        rgba(225,6,0,.68);

    box-shadow:
        0 0 0 4px
        rgba(225,6,0,.065);
}

.rv4-field{
    display:grid;
    gap:6px;

    margin-bottom:11px;
}

.rv4-field label{
    color:#555b64;

    font-size:9px;
    font-weight:950;

    text-transform:uppercase;
    letter-spacing:.05em;
}

/* ==========================================================
   ACTION DOCK
   ========================================================== */

.rv4-dock{
    display:inline-flex;
    align-items:center;

    padding:5px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius:999px;

    background:
        rgba(13,14,17,.74);

    backdrop-filter:blur(22px);

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.28);
}

.rv4-dock-action{
    min-width:48px;
    height:42px;

    padding:0 11px;

    border:0;
    border-radius:999px;

    background:transparent;
    color:
        rgba(255,255,255,.76);

    display:inline-flex;
    align-items:center;
    justify-content:center;

    gap:7px;

    cursor:pointer;

    font-size:9px;
    font-weight:900;

    transition:
        background .14s ease,
        color .14s ease;
}

.rv4-dock-action:hover{
    background:
        rgba(255,255,255,.1);

    color:#fff;
}

.rv4-dock-action.howl{
    color:#ff4b44;
}

.rv4-dock-action.howl:hover{
    background:
        rgba(225,6,0,.16);

    color:#ff625c;
}

.rv4-dock-action svg{
    width:19px;
    height:19px;

    stroke:currentColor;
    fill:none;

    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* ==========================================================
   PHOTO / GALLERY MOSAIC
   ========================================================== */

.rv4-mosaic{
    display:grid;

    grid-template-columns:
        repeat(
            12,
            minmax(0,1fr)
        );

    grid-auto-flow:dense;
    grid-auto-rows:24px;

    gap:8px;
}

.rv4-tile{
    position:relative;

    grid-column:span 3;
    grid-row:span 12;

    min-height:240px;

    overflow:hidden;

    border-radius:15px;

    background:#111;

    box-shadow:
        0 10px 28px
        rgba(17,19,24,.065);
}

.rv4-tile.wide{
    grid-column:span 6;
}

.rv4-tile.tall{
    grid-row:span 19;
}

.rv4-tile.hero{
    grid-column:span 6;
    grid-row:span 21;
}

.rv4-tile-media{
    width:100%;
    height:100%;

    padding:0;
    border:0;

    display:block;

    background:#111;

    cursor:pointer;
}

.rv4-tile-media img,
.rv4-tile-media video{
    width:100%;
    height:100%;

    display:block;

    object-fit:cover;

    transition:
        transform .35s ease;
}

.rv4-tile:hover
.rv4-tile-media img,
.rv4-tile:hover
.rv4-tile-media video{
    transform:scale(1.025);
}

.rv4-tile-overlay{
    position:absolute;
    inset:auto 0 0;

    padding:
        48px
        12px
        11px;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(0,0,0,.75)
        );

    color:#fff;

    pointer-events:none;
}

.rv4-tile-overlay strong{
    display:block;

    overflow:hidden;

    text-overflow:ellipsis;
    white-space:nowrap;

    font-size:10px;
    font-weight:900;
}

.rv4-tile-overlay small{
    display:block;

    margin-top:2px;

    color:
        rgba(255,255,255,.64);

    font-size:8px;
    font-weight:800;
}

.rv4-media-chip{
    position:absolute;

    z-index:4;

    left:9px;
    top:9px;

    min-height:27px;

    padding:0 9px;

    border:
        1px solid
        rgba(255,255,255,.17);

    border-radius:999px;

    background:
        rgba(7,8,10,.48);

    color:#fff;

    backdrop-filter:blur(14px);

    display:inline-flex;
    align-items:center;

    font-size:8px;
    font-weight:900;
}

/* ==========================================================
   DIALOG
   ========================================================== */

.rv4-dialog{
    width:min(570px,calc(100% - 22px));

    max-height:88vh;

    padding:0;

    border:0;
    border-radius:24px;

    background:#fff;
    color:#17191d;

    overflow:auto;

    box-shadow:
        0 36px 120px
        rgba(0,0,0,.34);
}

.rv4-dialog::backdrop{
    background:
        rgba(4,5,7,.72);

    backdrop-filter:blur(13px);
}

.rv4-dialog-head{
    position:sticky;
    top:0;
    z-index:3;

    min-height:64px;

    padding:13px 16px;

    border-bottom:
        1px solid
        var(--rv4-line);

    background:
        rgba(255,255,255,.96);

    backdrop-filter:blur(18px);

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:10px;
}

.rv4-dialog-head h2{
    margin:0;

    font-size:17px;
    letter-spacing:-.04em;
}

.rv4-dialog-body{
    padding:17px;
}

/* ==========================================================
   FULLSCREEN LIGHTBOX
   ========================================================== */

.rv4-lightbox{
    width:100vw;
    max-width:none;

    height:100vh;
    max-height:none;

    margin:0;
    padding:0;

    border:0;

    background:#050506;
    color:#fff;
}

.rv4-lightbox::backdrop{
    background:#050506;
}

.rv4-lightbox-inner{
    position:relative;

    width:100%;
    height:100%;

    padding:24px;

    display:grid;
    place-items:center;
}

.rv4-lightbox-media{
    max-width:100%;
    max-height:100%;

    display:grid;
    place-items:center;
}

.rv4-lightbox-media img,
.rv4-lightbox-media video{
    max-width:100%;
    max-height:
        calc(100vh - 48px);

    border-radius:12px;

    object-fit:contain;
}

.rv4-lightbox-close{
    position:absolute;
    z-index:5;

    right:17px;
    top:17px;

    width:44px;
    height:44px;

    border:
        1px solid
        rgba(255,255,255,.16);

    border-radius:50%;

    background:
        rgba(255,255,255,.09);

    color:#fff;

    cursor:pointer;

    font-size:22px;
}

/* ==========================================================
   EMPTY / ALERT
   ========================================================== */

.rv4-empty{
    min-height:220px;

    border:
        1px dashed
        #cdd1d6;

    border-radius:20px;

    background:#fff;
    color:#7d848d;

    display:grid;
    place-items:center;

    padding:30px;

    text-align:center;

    font-size:11px;
}

.rv4-alert{
    margin-bottom:12px;

    padding:11px 13px;

    border-radius:12px;

    font-size:10px;
    font-weight:850;
}

.rv4-alert.ok{
    border:1px solid #b9e9ce;
    background:#effaf4;
    color:#087548;
}

.rv4-alert.error{
    border:1px solid #ffc7c4;
    background:#fff0ef;
    color:#aa201a;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media(max-width:1000px){

    .rv4-tile{
        grid-column:span 4;
    }

    .rv4-tile.wide,
    .rv4-tile.hero{
        grid-column:span 8;
    }
}

@media(max-width:720px){

    .rv4-shell{
        padding:
            14px
            9px
            70px;
    }

    .rv4-topbar{
        align-items:flex-start;
        flex-direction:column;
    }

    .rv4-top-actions{
        width:100%;
    }

    .rv4-mosaic{
        grid-template-columns:
            repeat(2,minmax(0,1fr));

        grid-auto-rows:auto;

        gap:5px;
    }

    .rv4-tile,
    .rv4-tile.wide,
    .rv4-tile.tall,
    .rv4-tile.hero{
        grid-column:auto;
        grid-row:auto;

        min-height:0;

        aspect-ratio:1;
        border-radius:9px;
    }

    .rv4-tile.tall{
        aspect-ratio:4/5;
    }

    .rv4-tile.hero{
        grid-column:span 2;
        aspect-ratio:16/10;
    }

    .rv4-comment-compose{
        grid-template-columns:
            35px
            minmax(0,1fr);
    }

    .rv4-comment-compose .rv4-btn{
        grid-column:2/3;
        width:100%;
    }
}
