.jz-share-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

.jz-share-button i.icon {
    margin: 0 !important;
}

.game-share-icon-button.ui.button {
    height: 42px !important;
    align-self: stretch !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.game-share-icon-button.ui.button i.icon {
    width: 1em !important;
    height: 1em !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 1rem !important;
}

.jz-share-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.jz-share-overlay.is-open {
    display: flex;
}

.jz-share-modal {
    width: min(960px, 100%);
    max-height: min(880px, calc(100vh - 2rem));
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1rem;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #141417;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62);
}

.jz-share-preview-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
}

.jz-share-card {
    width: 390px;
    min-height: 560px;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    color: #ffffff;
    background: #111116;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    isolation: isolate;
}

.jz-share-card.is-story {
    width: 405px;
    min-height: 720px;
}

.jz-share-card-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
    filter: blur(24px) saturate(1.2);
    transform: scale(1.14);
    opacity: 0.38;
}

.jz-share-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(20, 24, 30, 0.65) 0%, rgba(12, 13, 17, 0.92) 56%, rgba(5, 6, 9, 0.98) 100%),
        radial-gradient(circle at 50% 18%, rgba(255, 68, 68, 0.24), transparent 35%);
}

.jz-share-card-inner {
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px 34px 28px;
    text-align: center;
}

.jz-share-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: -16px;
    z-index: 2;
}

.jz-share-cover {
    width: 220px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    background: #202027;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.58);
}

.jz-share-card.is-story .jz-share-cover {
    width: 235px;
}

.jz-share-kicker {
    margin-top: 1.35rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: none;
}

.jz-share-title {
    max-width: 100%;
    margin: 0.35rem 0 0;
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.jz-share-subtitle {
    margin-top: 0.55rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.95rem;
    font-weight: 700;
}

.jz-share-stars {
    display: flex;
    gap: 0.16rem;
    margin-top: 0.9rem;
    font-size: 0.95rem;
}

.jz-share-stars i.icon {
    margin: 0 !important;
}

.jz-share-stars i.icon.is-active {
    color: #ff4444;
}

.jz-share-stars i.icon.is-empty {
    color: rgba(255, 255, 255, 0.28);
}

.jz-share-text {
    max-width: 100%;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.42;
    font-size: 0.94rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jz-share-brand {
    margin-top: auto;
    padding-top: 1.4rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.jz-share-brand span {
    color: #ff4444;
}

.jz-share-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.4rem 0.25rem 0.25rem;
}

.jz-share-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.jz-share-panel-title {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 900;
}

.jz-share-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    cursor: pointer;
}

.jz-share-close i.icon {
    margin: 0 !important;
}

.jz-share-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.jz-share-option {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-primary);
    font-weight: 800;
    cursor: pointer;
}

.jz-share-option:hover {
    border-color: rgba(255, 68, 68, 0.5);
    background: rgba(255, 68, 68, 0.12);
    color: #ffffff;
}

.jz-share-option i.icon {
    margin: 0 !important;
}

.jz-share-mode {
    display: inline-flex;
    gap: 0.25rem;
    width: fit-content;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.jz-share-mode button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.45rem 0.85rem;
    font-weight: 800;
    cursor: pointer;
}

.jz-share-mode button.is-active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.jz-share-hint {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .jz-share-overlay {
        align-items: flex-start;
        overflow: auto;
    }

    .jz-share-modal {
        grid-template-columns: 1fr;
    }

    .jz-share-card,
    .jz-share-card.is-story {
        width: min(390px, calc(100vw - 3rem));
        min-height: 560px;
    }

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