/* ==========================================================
   INSIGHT MEDIA — APP V3
   installable • social • cinematic • fast
   ========================================================== */

.im-install{
    display:none;
    align-items:center;
    gap:10px;
    position:fixed;
    right:28px;
    top:24px;
    z-index:50;

    min-height:48px;
    padding:0 17px;

    border:1px solid rgba(255,255,255,.65);
    border-radius:18px;

    background:rgba(255,255,255,.86);
    backdrop-filter:blur(24px);

    box-shadow:
        0 14px 45px
        rgba(28,23,22,.10);

    cursor:pointer;
    font-weight:750;
}

.im-install.visible{
    display:flex;
}

.im-share-sheet{
    position:fixed;
    inset:0;
    z-index:120;

    display:none;

    align-items:flex-end;
    justify-content:center;

    background:rgba(20,17,18,.34);
    backdrop-filter:blur(13px);
}

.im-share-sheet.open{
    display:flex;
}

.im-share-panel{
    width:min(650px,calc(100% - 22px));
    margin-bottom:18px;
    padding:28px;

    border-radius:34px;
    background:#fffaf5;

    box-shadow:
        0 35px 100px
        rgba(20,17,18,.25);
}

.im-share-panel h3{
    margin:0 0 7px;
    font-size:28px;
    letter-spacing:-.04em;
}

.im-share-panel p{
    margin:0 0 23px;
    color:#706866;
}

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

.im-share-option{
    min-height:74px;
    border:0;
    border-radius:22px;
    cursor:pointer;

    background:#f0e6dc;

    display:flex;
    align-items:center;
    gap:13px;

    padding:0 18px;

    text-align:left;
    transition:.17s ease;
}

.im-share-option:hover{
    transform:translateY(-2px);
    background:#ead9ca;
}

.im-share-icon{
    width:40px;
    height:40px;
    border-radius:15px;
    display:grid;
    place-items:center;
    background:white;
    font-weight:850;
}

.im-share-option strong{
    display:block;
}

.im-share-option span{
    display:block;
    font-size:11px;
    color:#77706c;
    margin-top:2px;
}

.im-studio-v3{
    margin-top:35px;
    display:none;
}

body[data-media-view="studio"] .im-studio-v3{
    display:block;
}

body[data-media-view="studio"] .im-intro,
body[data-media-view="studio"] .im-hero,
body[data-media-view="studio"] .im-section{
    display:none;
}

.im-studio-shell{
    min-height:660px;
    border-radius:38px;
    overflow:hidden;
    position:relative;
    padding:34px;

    background:
        radial-gradient(
            circle at 82% 4%,
            rgba(239,182,70,.21),
            transparent 27rem
        ),
        linear-gradient(
            145deg,
            #211d24,
            #392e40 45%,
            #4e3835
        );

    color:white;

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

.im-studio-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.im-studio-status{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    font-weight:850;
    letter-spacing:.08em;
}

.im-studio-status-dot{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#92d49c;
    box-shadow:0 0 0 7px rgba(146,212,156,.11);
}

.im-studio-title{
    margin:80px auto 18px;
    max-width:760px;
    text-align:center;
}

.im-studio-title h2{
    margin:0;
    font-size:clamp(38px,6vw,70px);
    letter-spacing:-.06em;
    line-height:.98;
}

.im-studio-title p{
    max-width:520px;
    margin:17px auto 0;
    color:rgba(255,255,255,.62);
    line-height:1.55;
}

.im-studio-wave{
    height:110px;
    margin:35px auto 30px;
    max-width:650px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
}

.im-studio-wave span{
    width:5px;
    border-radius:999px;
    background:rgba(255,255,255,.76);
    animation:studio-wave 1.5s ease-in-out infinite;
}

.im-studio-wave span:nth-child(1){height:22%}
.im-studio-wave span:nth-child(2){height:50%;animation-delay:.1s}
.im-studio-wave span:nth-child(3){height:75%;animation-delay:.2s}
.im-studio-wave span:nth-child(4){height:42%;animation-delay:.3s}
.im-studio-wave span:nth-child(5){height:95%;animation-delay:.4s}
.im-studio-wave span:nth-child(6){height:65%;animation-delay:.15s}
.im-studio-wave span:nth-child(7){height:34%;animation-delay:.28s}
.im-studio-wave span:nth-child(8){height:84%;animation-delay:.37s}
.im-studio-wave span:nth-child(9){height:52%;animation-delay:.18s}
.im-studio-wave span:nth-child(10){height:90%;animation-delay:.42s}
.im-studio-wave span:nth-child(11){height:58%;animation-delay:.24s}
.im-studio-wave span:nth-child(12){height:31%;animation-delay:.34s}

@keyframes studio-wave{
    50%{
        transform:scaleY(.38);
        opacity:.42;
    }
}

.im-studio-tools{
    max-width:720px;
    margin:0 auto;

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
}

.im-studio-tool{
    min-height:100px;

    border:1px solid rgba(255,255,255,.09);
    border-radius:25px;

    background:rgba(255,255,255,.07);
    color:white;

    cursor:pointer;
    transition:.18s ease;
}

.im-studio-tool:hover,
.im-studio-tool.active{
    background:rgba(255,255,255,.15);
    transform:translateY(-3px);
}

.im-studio-tool strong{
    display:block;
    margin-top:7px;
}

.im-studio-action{
    display:flex;
    justify-content:center;
    margin-top:35px;
}

.im-studio-live-btn{
    min-width:200px;
    height:65px;

    border:0;
    border-radius:24px;

    cursor:pointer;

    background:#c15447;
    color:white;

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

    box-shadow:
        0 16px 50px
        rgba(193,84,71,.34);
}

.im-studio-note{
    text-align:center;
    color:rgba(255,255,255,.48);
    font-size:11px;
    margin-top:14px;
}

.im-viral-strip{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:19px;
}

.im-viral-chip{
    border:1px solid rgba(255,255,255,.11);
    border-radius:999px;
    padding:7px 11px;
    font-size:11px;
    background:rgba(255,255,255,.07);
}

.im-moment-share-main{
    border:0;
    border-radius:17px;

    min-height:44px;
    padding:0 15px;

    background:#fff;
    cursor:pointer;

    font-weight:750;
}

@media(max-width:720px){

    .im-install{
        top:13px;
        right:13px;
        min-height:42px;
        font-size:12px;
    }

    .im-share-options{
        grid-template-columns:1fr;
    }

    .im-studio-shell{
        padding:22px;
        min-height:620px;
    }

    .im-studio-title{
        margin-top:65px;
    }

    .im-studio-tools{
        grid-template-columns:repeat(2,1fr);
    }
}
