/* VKEY VClips · capa modular base */

#modal-crear-historia {
    position: fixed;
    inset: 0;
    z-index: 25000;
    background: #000;
    display: none;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

#modal-crear-historia.is-active { display: flex; transform: translateY(0); }
.story-text-input { background: transparent; color: #fff; font-size: 24px; font-weight: 900; text-align: center; border: 0; outline: 0; width: 100%; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); resize: none; overflow: hidden; }
.story-text-input::placeholder { color: rgba(255, 255, 255, .5); text-shadow: none; }

.discover-vclip-reaction-picker {
    position: absolute;
    right: 76px;
    bottom: 245px;
    z-index: 1300;
    display: flex;
    gap: 7px;
    padding: 9px;
    border-radius: 999px;
    background: rgba(8, 8, 8, .9);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .55);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(14px) scale(.92);
    transition: .2s ease;
}

.v-clip-container.reactions-open .discover-vclip-reaction-picker {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.discover-vclip-reaction-option {
    position: relative;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: grid;
    place-items: center;
    font-size: 23px;
    transition: .16s ease;
}

.discover-vclip-reaction-option:active { transform: scale(1.25); }
.discover-vclip-reaction-option.is-active { background: rgba(255, 221, 0, .2); box-shadow: 0 0 0 2px rgba(255, 221, 0, .8); }
.discover-vclip-reaction-option small { position: absolute; right: -3px; bottom: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #fff; color: #000; font-size: 8px; font-weight: 1000; display: grid; place-items: center; }
.vclip-main-reaction { font-size: 25px; line-height: 1; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .4)); }
.discover-vclip-reaction-burst { position: absolute; left: 50%; bottom: 18%; z-index: 1250; pointer-events: none; font-size: clamp(58px, 18vw, 115px); filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .55)); animation: discoverVClipReactionFlight 1.5s cubic-bezier(.18, .82, .22, 1) forwards; transform: translate(-50%, 0) scale(.3); }

@keyframes discoverVClipReactionFlight {
    0% { opacity: 0; transform: translate(calc(-50% + var(--x, 0px)), 50px) scale(.22) rotate(var(--r, 0deg)); }
    18% { opacity: 1; transform: translate(calc(-50% + var(--x, 0px)), 0) scale(1.18) rotate(var(--r, 0deg)); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--x2, 0px)), -70vh) scale(.82) rotate(calc(var(--r, 0deg) + 38deg)); }
}

#vkey-vclips-creator-context {
    position: fixed;
    left: 12px;
    top: max(72px, calc(env(safe-area-inset-top) + 58px));
    z-index: 1200;
    display: none;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 24px);
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .56);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}

body.mode-vclips #vkey-vclips-creator-context.is-visible { display: flex; }
#vkey-vclips-creator-context strong { font-size: 10px; font-weight: 1000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vkey-vclips-creator-context span { color: #ffdd00; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
#vkey-vclips-creator-context button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .13); color: #fff; }

@media (max-width: 390px) {
    .discover-vclip-reaction-picker { right: 68px; bottom: 238px; gap: 5px; padding: 7px; }
    .discover-vclip-reaction-option { width: 39px; height: 39px; font-size: 21px; }
}
