
.ujsn-wrap,
.ujsn-wrap *,
.ujsn-wrap *::before,
.ujsn-wrap *::after {
    box-sizing: border-box !important;
    font-family: "Mukta Malar", sans-serif !important;
}

.ujsn-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
}

.ujsn-shell {
    width: 100% !important;
    padding: 14px !important;
    overflow: hidden !important;
    border: 1px solid #bfd4f3 !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #fbf8fc 0%, #f2f7ff 100%) !important;
    box-shadow: none !important;
}

.ujsn-empty {
    padding: 14px !important;
    border: 1px solid #e4e8ef !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #111 !important;
}

.ujsn-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 12px !important;
}

.ujsn-title {
    flex: 0 0 auto !important;
    margin: 0 !important;
    color: #0a60db !important;
    font-size: clamp(22px, 2.3vw, 30px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.ujsn-title-line {
    flex: 1 1 auto !important;
    height: 5px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #ef4fa0 0%, #f7762e 55%, #4f86e8 100%) !important;
}

.ujsn-carousel {
    position: relative !important;
}

.ujsn-track {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: calc(25% - 9px) !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 1px 4px !important;
    scroll-behavior: smooth !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    overscroll-behavior: contain !important;
}

.ujsn-track::-webkit-scrollbar {
    display: none !important;
}

.ujsn-card {
    overflow: hidden !important;
    border: 1px solid rgba(20, 41, 86, .45) !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #0a173b 0%, #040a20 100%) !important;
    cursor: pointer !important;
    outline: none !important;
    scroll-snap-align: start !important;
    transition: transform .2s ease !important;
}

.ujsn-card:hover,
.ujsn-card:focus-visible {
    transform: translateY(-2px) !important;
}

.ujsn-card-media {
    position: relative !important;
    overflow: hidden !important;
    aspect-ratio: 1.35 / 1 !important;
    background: #dbe4f3 !important;
}

.ujsn-card-media::after {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 34% !important;
    background: linear-gradient(to top, rgba(3,8,29,.78), rgba(3,8,29,0)) !important;
    content: "" !important;
}

.ujsn-card-media img,
.ujsn-story-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.ujsn-image-placeholder {
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #e2e8f0, #d1d5db, #ddd6fe) !important;
}

.ujsn-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 32px !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    background: #083f91 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.ujsn-play-icon {
    position: absolute !important;
    right: 12px !important;
    bottom: 12px !important;
    z-index: 2 !important;
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.95) !important;
    box-shadow: 0 8px 16px rgba(11, 24, 58, .18) !important;
}

.ujsn-play-icon::before {
    width: 0 !important;
    height: 0 !important;
    margin-left: 4px !important;
    border-top: 8px solid transparent !important;
    border-bottom: 8px solid transparent !important;
    border-left: 12px solid #f04d8f !important;
    content: "" !important;
}

.ujsn-card-content {
    padding: 14px !important;
    color: #fff !important;
}

.ujsn-card-title {
    display: -webkit-box !important;
    margin: 0 0 10px !important;
    overflow: hidden !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
}

.ujsn-card-excerpt {
    display: -webkit-box !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: rgba(255,255,255,.74) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.65 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
}

.ujsn-carousel-arrow {
    position: absolute !important;
    top: 50% !important;
    z-index: 5 !important;
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    border: 2px solid #1f2c48 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #121a2c !important;
    cursor: pointer !important;
    font-family: Arial, sans-serif !important;
    font-size: 32px !important;
    line-height: 1 !important;
    transform: translateY(-50%) !important;
}

.ujsn-carousel-prev { left: -8px !important; }
.ujsn-carousel-next { right: -8px !important; }

/* Story modal */
.ujsn-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: none !important;
    overflow: hidden !important;
    background: rgba(0,0,0,.86) !important;
    backdrop-filter: blur(3px) !important;
}

.ujsn-modal.is-open {
    display: block !important;
}

.ujsn-modal-actions {
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 20 !important;
    display: flex !important;
    gap: 8px !important;
}

.ujsn-action-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 8px 14px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(47,47,47,.78) !important;
    color: #fff !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.ujsn-story-stage {
    position: absolute !important;
    inset: 0 !important;
    overflow: hidden !important;
    touch-action: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.ujsn-story-track {
    width: 100% !important;
    will-change: transform !important;
    transform: translate3d(0,0,0);
}

.ujsn-story-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100dvh !important;
    padding: 34px 18px !important;
}

.ujsn-story-card {
    display: flex !important;
    flex-direction: column !important;
    width: min(450px, 100%) !important;
    height: min(860px, calc(100dvh - 54px)) !important;
    overflow: hidden !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: 0 20px 55px rgba(0,0,0,.28) !important;
}

.ujsn-story-image {
    flex: 0 0 300px !important;
    width: 100% !important;
    overflow: hidden !important;
    background: #eef2f7 !important;
}

.ujsn-story-body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding: 17px 16px 18px !important;
    overflow: hidden !important;
}

.ujsn-story-title {
    flex: 0 0 auto !important;
    margin: 0 0 10px !important;
    color: #111827 !important;
    font-size: 23px !important;
    font-weight: 800 !important;
    line-height: 1.38 !important;
}

.ujsn-story-meta {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 8px 12px !important;
    margin-bottom: 13px !important;
    color: #8c8c95 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.ujsn-story-author {
    color: #0b4b93 !important;
    font-weight: 800 !important;
}

.ujsn-story-copy {
    position: relative !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.ujsn-story-copy p {
    margin: 0 !important;
    color: #111 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.82 !important;
}

.ujsn-story-copy::after {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 70px !important;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 80%) !important;
    content: "" !important;
    pointer-events: none !important;
}

.ujsn-read-more {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    align-self: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    margin-top: 12px !important;
    padding: 8px 18px !important;
    border: 1px solid #d0d7e2 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #0a60db !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.ujsn-modal-nav {
    position: fixed !important;
    top: 50% !important;
    z-index: 15 !important;
    display: grid !important;
    place-items: center !important;
    width: 48px !important;
    height: 48px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #111827 !important;
    cursor: pointer !important;
    font-family: Arial, sans-serif !important;
    font-size: 38px !important;
    transform: translateY(-50%) !important;
}

.ujsn-modal-prev { left: 28px !important; }
.ujsn-modal-next { right: 28px !important; }

body.ujsn-body-locked {
    overflow: hidden !important;
    touch-action: none !important;
}

@media (max-width: 1200px) {
    .ujsn-track { grid-auto-columns: calc(33.333% - 8px) !important; }
}

@media (max-width: 900px) {
    .ujsn-track { grid-auto-columns: calc(50% - 6px) !important; }
}

@media (max-width: 767px) {
    .ujsn-wrap { padding: 8px !important; }
    .ujsn-shell { padding: 10px !important; border-radius: 10px !important; }
    .ujsn-title { font-size: 20px !important; }
    .ujsn-title-line { height: 4px !important; }

    .ujsn-track {
        grid-auto-columns: 82% !important;
        gap: 10px !important;
        touch-action: pan-x !important;
    }

    .ujsn-card-title { font-size: 15px !important; }
    .ujsn-card-excerpt { font-size: 12px !important; }
    .ujsn-carousel-arrow { width: 38px !important; height: 38px !important; font-size: 28px !important; }
    .ujsn-carousel-prev { left: -6px !important; }
    .ujsn-carousel-next { right: -6px !important; }
    .ujsn-play-icon { width: 40px !important; height: 40px !important; }
    .ujsn-play-icon::before { border-top-width: 7px !important; border-bottom-width: 7px !important; border-left-width: 10px !important; }
    .ujsn-badge { min-height: 28px !important; padding: 5px 11px !important; font-size: 11px !important; }

    .ujsn-modal-actions {
        top: max(10px, env(safe-area-inset-top)) !important;
        right: 10px !important;
    }

    .ujsn-action-button {
        min-height: 34px !important;
        padding: 7px 11px !important;
        font-size: 12px !important;
    }

    .ujsn-story-slide {
        align-items: stretch !important;
        padding: 0 !important;
    }

    .ujsn-story-card {
        width: 100% !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .ujsn-story-image {
        flex: 0 0 39dvh !important;
        min-height: 250px !important;
        max-height: 390px !important;
    }

    .ujsn-story-body {
        padding: 17px 16px max(18px, env(safe-area-inset-bottom)) !important;
    }

    .ujsn-story-title {
        margin-bottom: 10px !important;
        font-size: 23px !important;
        line-height: 1.38 !important;
    }

    .ujsn-story-meta {
        margin-bottom: 13px !important;
        font-size: 14px !important;
    }

    .ujsn-story-copy p {
        font-size: 16px !important;
        line-height: 1.82 !important;
    }

    .ujsn-read-more {
        min-height: 42px !important;
        padding: 8px 20px !important;
        font-size: 16px !important;
    }

    .ujsn-modal-nav {
        display: none !important;
    }
}
