/*
|--------------------------------------------------------------------------
| FILE PATH:
| /home/mahaupsi/public_html/assets/public/css/reels.css
|
| Awaaz Reels
|
| Responsive blocks are consolidated at the end:
| - Desktop
| - Tablet
| - Mobile
|--------------------------------------------------------------------------
*/

:root {
    --reels-chrome-height: 110px;

    --reels-black: #050505;
    --reels-white: #ffffff;

    --reels-muted:
        rgba(
            255,
            255,
            255,
            0.78
        );

    --reels-line:
        rgba(
            255,
            255,
            255,
            0.18
        );

    --reels-shadow:
        0 24px 70px
        rgba(
            0,
            0,
            0,
            0.34
        );

    --reels-red:
        #ef123d;

    --reels-red-dark:
        #d90932;

    --reels-red-soft:
        rgba(
            239,
            18,
            61,
            0.09
        );
}


/* =========================================================
   PAGE / SHELL
   ========================================================= */

.reels-page {
    overflow: hidden;
}

.reels-page .site-main {
    min-height: 0;

    padding: 0;

    overflow: hidden;
}

.reels-shell {
    position: relative;

    height:
        calc(
            100dvh
            -
            var(
                --reels-chrome-height
            )
        );

    min-height: 360px;

    overflow: hidden;

    background:
        var(
            --bg-page,
            #f6f8fc
        );
}


/* =========================================================
   INTRO
   ========================================================= */

.reels-intro[hidden],
.reels-viewer[hidden] {
    display: none !important;
}

.reels-intro {
    position: absolute;

    inset: 0;

    overflow-y: auto;

    overscroll-behavior-y: contain;

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(
                239,
                18,
                61,
                0.11
            ),
            transparent 30%
        ),
        radial-gradient(
            circle at 8% 100%,
            rgba(
                37,
                99,
                235,
                0.08
            ),
            transparent 34%
        ),
        var(
            --bg-page,
            #f6f8fc
        );

    color:
        var(
            --text-primary,
            #0f172a
        );
}

.reels-intro-inner {
    width:
        min(
            100%,
            980px
        );

    min-height: 100%;

    margin:
        0
        auto;

    padding:
        28px
        22px
        34px;
}

.reels-intro-top {
    display: flex;

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

    gap: 16px;

    margin-bottom: 16px;
}

.reels-intro-kicker {
    color:
        var(
            --text-secondary,
            #64748b
        );

    font-size: 0.72rem;
    font-weight: 850;

    letter-spacing: 0.08em;
}

.reels-view-button {
    min-height: 44px;

    padding:
        0
        18px;

    display: inline-flex;

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

    gap: 8px;

    flex: 0 0 auto;

    border:
        1px solid
        rgba(
            239,
            18,
            61,
            0.36
        );

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            #ff1748,
            #e80c36
        );

    color: #ffffff;

    box-shadow:
        0 10px 26px
        rgba(
            239,
            18,
            61,
            0.24
        );

    font-size: 0.88rem;
    font-weight: 850;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.reels-view-button:hover,
.reels-view-button:focus-visible {
    transform:
        translateY(
            -1px
        );

    box-shadow:
        0 14px 30px
        rgba(
            239,
            18,
            61,
            0.32
        );
}

.reels-intro-card {
    overflow: hidden;

    padding: 28px;

    border:
        1px solid
        var(
            --border-color,
            rgba(
                148,
                163,
                184,
                0.25
            )
        );

    border-radius: 24px;

    background:
        var(
            --bg-surface,
            #ffffff
        );

    box-shadow:
        0 24px 65px
        rgba(
            15,
            23,
            42,
            0.09
        );
}

.reels-intro-hero {
    display: grid;

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

    align-items: center;

    gap: 18px;
}

.reels-intro-icon {
    width: 68px;
    height: 68px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(
            239,
            18,
            61,
            0.23
        );

    border-radius: 22px;

    background:
        var(
            --reels-red-soft
        );

    color:
        var(
            --reels-red
        );

    font-size: 1.45rem;

    box-shadow:
        inset
        0 0 0 1px
        rgba(
            255,
            255,
            255,
            0.22
        );
}

.reels-intro-hero h1 {
    margin: 0;

    color:
        var(
            --text-primary,
            #0f172a
        );

    font-size:
        clamp(
            1.5rem,
            3vw,
            2rem
        );

    line-height: 1.12;
}

.reels-intro-lead {
    max-width: 720px;

    margin:
        8px
        0
        0;

    color:
        var(
            --text-secondary,
            #64748b
        );

    font-size: 0.96rem;

    line-height: 1.6;
}

.reels-youtube-only {
    margin-top: 22px;

    padding:
        12px
        14px;

    display: flex;

    align-items: center;

    gap: 10px;

    border:
        1px solid
        rgba(
            239,
            18,
            61,
            0.2
        );

    border-radius: 14px;

    background:
        var(
            --reels-red-soft
        );

    color:
        var(
            --text-primary,
            #0f172a
        );

    font-size: 0.86rem;

    line-height: 1.45;
}

.reels-youtube-only-icon {
    width: 30px;
    height: 30px;

    display: grid;

    place-items: center;

    flex:
        0
        0
        30px;

    border-radius: 10px;

    background:
        var(
            --reels-red
        );

    color: #ffffff;

    font-size: 0.74rem;
}

.reels-how-title {
    margin-top: 24px;

    color:
        var(
            --text-primary,
            #0f172a
        );

    font-size: 0.92rem;
    font-weight: 850;
}

.reels-steps {
    display: grid;

    gap: 12px;

    margin-top: 12px;
}

.reels-step {
    min-width: 0;

    padding: 16px;

    display: grid;

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

    align-items: flex-start;

    gap: 12px;

    border:
        1px solid
        var(
            --border-color,
            rgba(
                148,
                163,
                184,
                0.25
            )
        );

    border-radius: 16px;

    background:
        var(
            --bg-surface-2,
            rgba(
                148,
                163,
                184,
                0.06
            )
        );
}

.reels-step-number {
    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        var(
            --color-primary,
            #2563eb
        );

    color: #ffffff;

    font-size: 0.82rem;
    font-weight: 900;
}

.reels-step h2 {
    margin: 1px 0 0;

    color:
        var(
            --text-primary,
            #0f172a
        );

    font-size: 0.92rem;

    line-height: 1.35;
}

.reels-step p {
    margin:
        5px
        0
        0;

    color:
        var(
            --text-secondary,
            #64748b
        );

    font-size: 0.82rem;

    line-height: 1.5;
}

.reels-intro-bottom {
    margin-top: 22px;

    padding-top: 20px;

    display: flex;

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

    gap: 16px;

    border-top:
        1px solid
        var(
            --border-color,
            rgba(
                148,
                163,
                184,
                0.25
            )
        );
}

.reels-intro-bottom p {
    margin: 0;

    color:
        var(
            --text-secondary,
            #64748b
        );

    font-size: 0.8rem;

    line-height: 1.5;
}

.reels-intro-add {
    flex: 0 0 auto;

    white-space: nowrap;
}


/* =========================================================
   VISITOR COUNTER — SUPER ADMIN ONLY
   ========================================================= */

.reels-visitor-counter-wrap {
    display: flex;
    justify-content: center;

    margin-top:
        var(
            --space-6,
            24px
        );
}

.reels-visitor-counter {
    display: inline-flex;
    align-items: center;

    padding:
        10px
        14px
        10px
        18px;

    background:
        var(
            --bg-surface,
            #ffffff
        );

    border:
        1px solid
        var(
            --border-color,
            rgba(
                148,
                163,
                184,
                0.25
            )
        );

    border-radius:
        var(
            --radius-pill,
            999px
        );

    box-shadow:
        var(
            --shadow-sm,
            0 2px 8px
            rgba(
                15,
                23,
                42,
                0.08
            )
        );
}

.reels-visitor-counter-label {
    margin-right: 12px;

    color:
        var(
            --text-secondary,
            #64748b
        );

    font-size:
        var(
            --font-sm,
            0.875rem
        );

    font-weight: 650;
}

.reels-visitor-counter-number {
    min-width: 34px;
    height: 34px;

    padding:
        0
        10px;

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

    background:
        var(
            --color-primary-soft,
            rgba(
                37,
                99,
                235,
                0.12
            )
        );

    color:
        var(
            --color-primary,
            #2563eb
        );

    border-radius:
        var(
            --radius-pill,
            999px
        );

    font-size:
        var(
            --font-md,
            1rem
        );

    font-weight: 800;
}



/* =========================================================
   USER REELS MANAGEMENT ENTRY
   ========================================================= */

.reels-intro-user-actions {
    display: flex;

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

    gap: 9px;

    flex: 0 0 auto;
}

.reels-first-actions {
    display: grid;

    justify-items: center;

    gap: 9px;
}

.reels-first-manage-link {
    color:
        rgba(
            255,
            255,
            255,
            0.82
        );

    font-size: 0.8rem;
    font-weight: 800;

    text-decoration: none;
}

.reels-first-manage-link:hover,
.reels-first-manage-link:focus-visible {
    color: #ffffff;

    text-decoration: underline;
}


/* =========================================================
   VIEWER
   ========================================================= */

.reels-viewer {
    position: absolute;

    inset: 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(
                30,
                64,
                175,
                0.2
            ),
            transparent 42%
        ),
        var(
            --reels-black
        );
}

.reels-info-button {
    position: absolute;

    z-index: 14;

    top: 14px;
    left: 14px;

    min-height: 40px;

    padding:
        0
        13px;

    display: inline-flex;

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

    gap: 6px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.22
        );

    border-radius: 999px;

    background:
        rgba(
            15,
            23,
            42,
            0.76
        );

    color: #ffffff;

    box-shadow:
        0 10px 28px
        rgba(
            0,
            0,
            0,
            0.24
        );

    backdrop-filter:
        blur(
            12px
        );

    font-size: 0.78rem;
    font-weight: 800;

    cursor: pointer;
}

.reels-info-button:hover,
.reels-info-button:focus-visible {
    background:
        rgba(
            30,
            64,
            175,
            0.92
        );
}


/* =========================================================
   FEED
   ========================================================= */

.reels-feed {
    width: 100%;
    height: 100%;

    overflow-y: auto;
    overflow-x: hidden;

    scroll-snap-type: y mandatory;

    overscroll-behavior-y: contain;

    scrollbar-width: none;
}

.reels-feed::-webkit-scrollbar {
    display: none;
}

.reel-item {
    width: 100%;
    height: 100%;

    min-height: 100%;

    display: grid;

    place-items: center;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    outline: none;
}

.reel-stage {
    position: relative;

    overflow: hidden;

    background: #000000;

    border:
        1px solid
        var(
            --reels-line
        );

    box-shadow:
        var(
            --reels-shadow
        );

    isolation: isolate;
}

.reel-player {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;

    background: #000000;

    z-index: 1;
}

.reel-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(
                0,
                0,
                0,
                0.9
            )
            0%,
            rgba(
                0,
                0,
                0,
                0.42
            )
            24%,
            rgba(
                0,
                0,
                0,
                0
            )
            54%
        );
}

.reel-info {
    position: absolute;

    z-index: 3;

    left: 18px;
    right: 84px;
    bottom: 22px;

    color: #ffffff;

    text-shadow:
        0 2px 10px
        rgba(
            0,
            0,
            0,
            0.5
        );
}

.reel-author-row {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 8px;
}

.reel-role {
    display: inline-flex;

    align-items: center;

    min-height: 26px;

    padding:
        4px
        9px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.28
        );

    border-radius: 999px;

    background:
        rgba(
            0,
            0,
            0,
            0.42
        );

    backdrop-filter:
        blur(
            12px
        );

    font-size: 0.72rem;
    font-weight: 800;
}

.reel-role--teacher {
    background:
        rgba(
            29,
            78,
            216,
            0.8
        );
}

.reel-role--parent {
    background:
        rgba(
            5,
            150,
            105,
            0.8
        );
}

.reel-author {
    font-size: 0.92rem;
}

.reel-title {
    margin: 0;

    color: #ffffff;

    font-size: 1.08rem;
    font-weight: 800;

    line-height: 1.35;
}

.reel-caption {
    display:
        -webkit-box;

    margin:
        7px
        0
        0;

    overflow: hidden;

    color:
        var(
            --reels-muted
        );

    font-size: 0.88rem;

    line-height: 1.45;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   REEL ACTIONS
   ========================================================= */

.reel-actions {
    position: absolute;

    z-index: 4;

    right: 12px;
    bottom: 24px;

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.reel-action {
    width: 58px;

    min-height: 58px;

    padding:
        7px
        4px;

    display: inline-flex;

    flex-direction: column;

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

    gap: 2px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.24
        );

    border-radius: 18px;

    background:
        rgba(
            10,
            10,
            10,
            0.58
        );

    color: #ffffff;

    box-shadow:
        0 8px 24px
        rgba(
            0,
            0,
            0,
            0.2
        );

    backdrop-filter:
        blur(
            12px
        );

    cursor: pointer;
}

.reel-action:focus-visible {
    background:
        rgba(
            255,
            255,
            255,
            0.16
        );

    border-color:
        rgba(
            255,
            255,
            255,
            0.45
        );
}

.reel-action > span {
    font-size: 1.2rem;
}

.reel-action small {
    color: inherit;

    font-size: 0.64rem;
    font-weight: 700;
}


.reel-action-form {
    margin: 0;
    padding: 0;
}

.reel-action {
    text-decoration: none;
}

.reel-action small {
    display: grid;

    justify-items: center;

    gap: 1px;
}

.reel-action small em {
    font-style: normal;

    font-size: 0.58rem;

    opacity: 0.82;
}

.reel-heart {
    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 1.62rem !important;
    font-weight: 400;

    line-height: 1;

    text-shadow:
        0 1px 4px
        rgba(
            0,
            0,
            0,
            0.42
        );

    transition:
        color 0.16s ease,
        transform 0.16s ease;
}

.reel-action--like.is-liked
.reel-heart {
    color: #ff3040;

    transform:
        scale(
            1.08
        );

    text-shadow:
        0 2px 10px
        rgba(
            255,
            48,
            64,
            0.34
        );
}

.reel-action--like.is-liked {
    border-color:
        rgba(
            255,
            48,
            64,
            0.42
        );

    background:
        rgba(
            10,
            10,
            10,
            0.68
        );
}

.reel-action--share:focus-visible {
    border-color:
        rgba(
            96,
            165,
            250,
            0.56
        );

    background:
        rgba(
            30,
            64,
            175,
            0.82
        );
}

.reel-action--report:focus-visible {
    border-color:
        rgba(
            245,
            158,
            11,
            0.56
        );

    background:
        rgba(
            180,
            83,
            9,
            0.82
        );
}

.reel-scroll-hint {
    position: absolute;

    z-index: 4;

    top: 14px;
    left: 50%;

    transform:
        translateX(
            -50%
        );

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding:
        7px
        10px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.18
        );

    border-radius: 999px;

    background:
        rgba(
            0,
            0,
            0,
            0.42
        );

    color:
        rgba(
            255,
            255,
            255,
            0.86
        );

    font-size: 0.72rem;
    font-weight: 700;

    backdrop-filter:
        blur(
            10px
        );

    transition:
        opacity 0.2s ease;
}

.reel-scroll-hint.is-hidden {
    opacity: 0;
}





/* =========================================================
   POINTER HOVER ONLY
   =========================================================
|
| Touch browsers can keep :hover "stuck" after a tap.
| Apply hover effects only on devices that actually have a
| fine pointer / real hover capability.
|
========================================================= */

@media (hover: hover) and (pointer: fine) {

    .reel-action:hover {
        background:
            rgba(
                255,
                255,
                255,
                0.16
            );

        border-color:
            rgba(
                255,
                255,
                255,
                0.45
            );
    }

    .reel-action--share:hover {
        border-color:
            rgba(
                96,
                165,
                250,
                0.56
            );

        background:
            rgba(
                30,
                64,
                175,
                0.82
            );
    }

    .reel-action--report:hover {
        border-color:
            rgba(
                245,
                158,
                11,
                0.56
            );

        background:
            rgba(
                180,
                83,
                9,
                0.82
            );
    }
}


/* =========================================================
   TOUCH FEEDBACK
   ========================================================= */

.reel-action:active {
    transform:
        scale(
            0.96
        );
}

.reel-action--like:not(.is-liked)
.reel-heart {
    color: #ffffff;
}

.reel-action--like.is-liked
.reel-heart {
    color: #ff3040;
}

/* =========================================================
   REEL FORWARD / BACKWARD CONTROLS
   ========================================================= */

.reels-direction-controls {
    position: absolute;

    z-index: 14;

    top: 50%;
    right: 26px;

    transform:
        translateY(
            -50%
        );

    display: grid;

    justify-items: center;

    gap: 8px;

    padding: 8px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.16
        );

    border-radius: 18px;

    background:
        rgba(
            15,
            23,
            42,
            0.7
        );

    box-shadow:
        0 14px 36px
        rgba(
            0,
            0,
            0,
            0.24
        );

    backdrop-filter:
        blur(
            12px
        );
}

.reels-direction-button {
    width: 62px;
    min-height: 54px;

    display: inline-flex;

    flex-direction: column;

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

    gap: 2px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.2
        );

    border-radius: 14px;

    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

    color: #ffffff;

    cursor: pointer;
}

.reels-direction-button:hover,
.reels-direction-button:focus-visible {
    background:
        rgba(
            37,
            99,
            235,
            0.9
        );
}

.reels-direction-button:disabled {
    opacity: 0.36;

    cursor: default;
}

.reels-direction-button > span {
    font-size: 1.12rem;
    font-weight: 900;

    line-height: 1;
}

.reels-direction-button small {
    color: inherit;

    font-size: 0.62rem;
    font-weight: 750;
}

.reels-direction-position {
    min-width: 54px;

    padding:
        5px
        7px;

    border-radius: 999px;

    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

    color:
        rgba(
            255,
            255,
            255,
            0.8
        );

    font-size: 0.68rem;
    font-weight: 800;

    text-align: center;
}


/* =========================================================
   ADD BUTTON
   ========================================================= */

.reels-add-button {
    position: absolute;

    z-index: 14;

    display: inline-flex;

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

    gap: 7px;

    min-height: 44px;

    padding:
        0
        15px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.22
        );

    border-radius: 999px;

    background:
        rgba(
            15,
            23,
            42,
            0.86
        );

    color: #ffffff;

    box-shadow:
        0 12px 30px
        rgba(
            0,
            0,
            0,
            0.28
        );

    backdrop-filter:
        blur(
            14px
        );

    font-size: 0.84rem;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;
}

.reels-add-button:hover,
.reels-add-button:focus-visible {
    background:
        rgba(
            30,
            64,
            175,
            0.96
        );

    color: #ffffff;
}

.reels-add-button > span:first-child {
    font-size: 1.2rem;
}


/* =========================================================
   FLASH
   ========================================================= */

.reels-flash {
    position: absolute;

    z-index: 60;

    left: 50%;

    transform:
        translateX(
            -50%
        );

    max-width:
        min(
            92vw,
            520px
        );

    padding:
        11px
        15px;

    border-radius: 12px;

    box-shadow:
        0 14px 38px
        rgba(
            0,
            0,
            0,
            0.26
        );

    font-size: 0.86rem;
    font-weight: 750;

    text-align: center;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.reels-flash--success {
    background: #065f46;

    color: #ffffff;
}

.reels-flash--error {
    background: #991b1b;

    color: #ffffff;
}

.reels-flash.is-hiding {
    opacity: 0;

    transform:
        translate(
            -50%,
            -8px
        );
}


/* =========================================================
   EMPTY VIEWER
   ========================================================= */

.reels-empty {
    width: 100%;
    height: 100%;

    display: grid;

    place-content: center;
    justify-items: center;

    gap: 10px;

    padding: 24px;

    color: #ffffff;

    text-align: center;
}

.reels-empty-mark {
    width: 58px;
    height: 58px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.22
        );

    border-radius: 18px;

    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

    font-size: 1.35rem;
}

.reels-empty h1,
.reels-empty p {
    margin: 0;
}

.reels-empty h1 {
    color: #ffffff;

    font-size: 1.35rem;
}

.reels-empty p {
    color:
        rgba(
            255,
            255,
            255,
            0.7
        );
}



/* =========================================================
   FIRST REEL CHALLENGE
   ========================================================= */

.reels-empty--first {
    position: relative;

    width: 100%;
    height: 100%;

    padding:
        28px
        20px;

    display: flex;

    flex-direction: column;

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

    gap: 16px;

    color: #ffffff;

    text-align: center;
}

.reels-first-icon {
    width: 70px;
    height: 70px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.2
        );

    border-radius: 22px;

    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

    color: #ffffff;

    box-shadow:
        0 18px 40px
        rgba(
            0,
            0,
            0,
            0.22
        );

    font-size: 1.45rem;
}

.reels-first-copy {
    width:
        min(
            100%,
            680px
        );

    display: grid;

    justify-items: center;

    gap: 12px;
}

.reels-first-eyebrow {
    color:
        rgba(
            255,
            255,
            255,
            0.62
        );

    font-size: 0.72rem;
    font-weight: 900;

    letter-spacing: 0.12em;
}

.reels-first-copy h1 {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            1.55rem,
            4vw,
            2.35rem
        );

    font-weight: 900;

    line-height: 1.12;
}

.reels-first-badge {
    max-width: 100%;

    padding:
        8px
        13px;

    border:
        1px solid
        rgba(
            250,
            204,
            21,
            0.28
        );

    border-radius: 999px;

    background:
        rgba(
            250,
            204,
            21,
            0.1
        );

    color: #fde68a;

    font-size: 0.76rem;
    font-weight: 900;

    letter-spacing: 0.02em;
}

.reels-first-marathi {
    max-width: 610px;

    margin: 2px 0 0;

    color:
        rgba(
            255,
            255,
            255,
            0.92
        );

    font-size: 1rem;

    line-height: 1.65;
}

.reels-first-support {
    max-width: 560px;

    margin: -2px 0 0;

    color:
        rgba(
            255,
            255,
            255,
            0.67
        );

    font-size: 0.84rem;

    line-height: 1.5;
}

.reels-first-cta {
    min-height: 48px;

    margin-top: 6px;

    padding:
        0
        20px;

    display: inline-flex;

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

    gap: 8px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.18
        );

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            #ff1748,
            #e80c36
        );

    color: #ffffff;

    box-shadow:
        0 14px 34px
        rgba(
            239,
            18,
            61,
            0.3
        );

    font-size: 0.9rem;
    font-weight: 900;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.reels-first-cta:hover,
.reels-first-cta:focus-visible {
    transform:
        translateY(
            -1px
        );

    color: #ffffff;

    box-shadow:
        0 18px 40px
        rgba(
            239,
            18,
            61,
            0.38
        );
}

.reels-first-cta > span:first-child {
    font-size: 1.1rem;
    line-height: 1;
}

.reels-first-disabled {
    margin-top: 5px;

    padding:
        9px
        12px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.15
        );

    border-radius: 12px;

    background:
        rgba(
            255,
            255,
            255,
            0.06
        );

    color:
        rgba(
            255,
            255,
            255,
            0.7
        );

    font-size: 0.78rem;
    font-weight: 700;
}


/* =========================================================
   MODALS
   ========================================================= */

.reels-modal[hidden] {
    display: none !important;
}

.reels-modal {
    position: fixed;

    z-index: 2000;

    inset: 0;

    display: grid;

    place-items: center;

    padding: 20px;
}

.reels-modal-backdrop {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;

    background:
        rgba(
            2,
            6,
            23,
            0.72
        );

    backdrop-filter:
        blur(
            7px
        );
}

.reels-modal-card {
    position: relative;

    z-index: 1;

    width:
        min(
            100%,
            520px
        );

    max-height:
        min(
            90dvh,
            720px
        );

    overflow-y: auto;

    padding: 22px;

    border:
        1px solid
        var(
            --border-color,
            rgba(
                148,
                163,
                184,
                0.25
            )
        );

    border-radius: 20px;

    background:
        var(
            --bg-surface,
            #ffffff
        );

    color:
        var(
            --text-primary,
            #0f172a
        );

    box-shadow:
        0 30px 80px
        rgba(
            0,
            0,
            0,
            0.38
        );
}

.reels-modal-card--compact {
    width:
        min(
            100%,
            460px
        );
}

.reels-modal-head {
    display: flex;

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

    gap: 14px;

    margin-bottom: 18px;
}

.reels-modal-head h2 {
    margin: 0;

    font-size: 1.15rem;
}

.reels-modal-close {
    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    flex:
        0
        0
        38px;

    border:
        1px solid
        var(
            --border-color,
            rgba(
                148,
                163,
                184,
                0.25
            )
        );

    border-radius: 12px;

    background:
        var(
            --bg-surface-2,
            rgba(
                148,
                163,
                184,
                0.1
            )
        );

    color: inherit;

    font-size: 1.4rem;

    cursor: pointer;
}

.reels-field {
    display: grid;

    gap: 7px;

    margin-bottom: 15px;
}

.reels-field label {
    font-size: 0.86rem;
    font-weight: 800;
}

.reels-field label span {
    margin-left: 5px;

    color:
        var(
            --text-secondary,
            #64748b
        );

    font-size: 0.74rem;
    font-weight: 600;
}

.reels-field textarea {
    resize: vertical;
}

.reels-modal-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 20px;
}

.reels-modal-open {
    overflow: hidden;
}



/* =========================================================
   INTRO AUTH ACTIONS
   ========================================================= */

.reels-intro-auth {
    display: flex;

    flex-direction: column;
    align-items: center;

    gap: 8px;

    flex: 0 0 auto;
}

.reels-create-account-link {
    color:
        var(
            --color-primary,
            #2563eb
        );

    font-size: 0.78rem;
    font-weight: 600;

    text-decoration: none;

    line-height: 1.3;
}

.reels-create-account-link strong {
    font-weight: 850;
}

.reels-create-account-link:hover,
.reels-create-account-link:focus-visible {
    text-decoration: underline;
}



/* =========================================================
   UPLOAD RULES + CONSENT
   ========================================================= */

.reels-upload-rules {
    margin-bottom: 18px;

    padding: 14px;

    border:
        1px solid
        rgba(
            217,
            119,
            6,
            0.28
        );

    border-radius: 16px;

    background:
        rgba(
            245,
            158,
            11,
            0.08
        );
}

.reels-upload-rules-head {
    display: grid;

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

    align-items: start;

    gap: 10px;
}

.reels-upload-rules-icon {
    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #d97706;

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 900;
}

.reels-upload-rules-head strong {
    display: block;

    color:
        var(
            --text-primary,
            #0f172a
        );

    font-size: 0.9rem;
    font-weight: 850;
}

.reels-upload-rules-head p {
    margin:
        4px
        0
        0;

    color:
        var(
            --text-secondary,
            #64748b
        );

    font-size: 0.78rem;

    line-height: 1.45;
}

.reels-rules-details {
    margin-top: 12px;
}

.reels-rules-details > summary {
    width: max-content;

    color:
        var(
            --color-primary,
            #2563eb
        );

    font-size: 0.78rem;
    font-weight: 800;

    cursor: pointer;

    user-select: none;
}

.reels-rules-content {
    margin-top: 10px;

    padding:
        12px
        12px
        10px;

    border:
        1px solid
        var(
            --border-color,
            rgba(
                148,
                163,
                184,
                0.25
            )
        );

    border-radius: 12px;

    background:
        var(
            --bg-surface,
            #ffffff
        );
}

.reels-rules-content ol {
    margin: 0;

    padding-left: 20px;
}

.reels-rules-content li {
    margin-bottom: 7px;

    color:
        var(
            --text-secondary,
            #64748b
        );

    font-size: 0.76rem;

    line-height: 1.45;
}

.reels-rules-content li:last-child {
    margin-bottom: 0;
}

.reels-rules-note {
    margin:
        10px
        0
        0;

    padding-top: 10px;

    border-top:
        1px solid
        var(
            --border-color,
            rgba(
                148,
                163,
                184,
                0.25
            )
        );

    color:
        var(
            --text-secondary,
            #64748b
        );

    font-size: 0.75rem;

    line-height: 1.45;
}

.reels-consent-check {
    margin-top: 13px;

    padding: 11px;

    display: grid;

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

    align-items: start;

    gap: 9px;

    border:
        1px solid
        rgba(
            37,
            99,
            235,
            0.22
        );

    border-radius: 12px;

    background:
        rgba(
            37,
            99,
            235,
            0.06
        );

    cursor: pointer;
}

.reels-consent-check input {
    width: 18px;
    height: 18px;

    margin-top: 1px;

    accent-color:
        var(
            --color-primary,
            #2563eb
        );
}

.reels-consent-check span {
    color:
        var(
            --text-primary,
            #0f172a
        );

    font-size: 0.77rem;
    font-weight: 650;

    line-height: 1.45;
}


/* =========================================================
   YOUTUBE CHECK
   ========================================================= */

.reels-check-row {
    display: grid;

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

    gap: 9px;

    align-items: stretch;
}

.reels-check-row .btn {
    white-space: nowrap;
}

.reels-video-check {
    display: grid;

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

    align-items: center;

    gap: 11px;

    margin:
        -2px
        0
        14px;

    padding: 12px;

    border:
        1px solid
        var(
            --border-color,
            rgba(
                148,
                163,
                184,
                0.25
            )
        );

    border-radius: 14px;

    background:
        var(
            --bg-surface-2,
            rgba(
                148,
                163,
                184,
                0.08
            )
        );
}

.reels-video-check-icon {
    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    font-size: 1rem;
    font-weight: 900;
}

.reels-video-check-copy {
    min-width: 0;

    display: grid;

    gap: 2px;
}

.reels-video-check-copy strong {
    font-size: 0.88rem;
}

.reels-video-check-copy span {
    color:
        var(
            --text-secondary,
            #64748b
        );

    font-size: 0.78rem;

    line-height: 1.35;
}

.reels-video-check.is-ready {
    border-color:
        rgba(
            22,
            163,
            74,
            0.3
        );

    background:
        rgba(
            22,
            163,
            74,
            0.08
        );
}

.reels-video-check.is-ready
.reels-video-check-icon {
    background: #16a34a;

    color: #ffffff;
}

.reels-video-check.is-warning {
    border-color:
        rgba(
            217,
            119,
            6,
            0.32
        );

    background:
        rgba(
            245,
            158,
            11,
            0.09
        );
}

.reels-video-check.is-warning
.reels-video-check-icon {
    background: #d97706;

    color: #ffffff;
}

.reels-video-check.is-error {
    border-color:
        rgba(
            220,
            38,
            38,
            0.3
        );

    background:
        rgba(
            220,
            38,
            38,
            0.08
        );
}

.reels-video-check.is-error
.reels-video-check-icon {
    background: #dc2626;

    color: #ffffff;
}

.reels-setting-help {
    display: flex;

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

    gap: 10px;

    margin:
        -4px
        0
        16px;

    padding:
        10px
        12px;

    border-radius: 12px;

    background:
        var(
            --bg-surface-2,
            rgba(
                148,
                163,
                184,
                0.08
            )
        );

    font-size: 0.78rem;
    font-weight: 750;
}

.reels-video-setting-button {
    white-space: nowrap;
}


/* =========================================================
   DARK THEME
   ========================================================= */

:root[data-theme="dark"]
.reels-intro {
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(
                239,
                18,
                61,
                0.12
            ),
            transparent 30%
        ),
        radial-gradient(
            circle at 8% 100%,
            rgba(
                59,
                130,
                246,
                0.1
            ),
            transparent 34%
        ),
        var(
            --bg-page,
            #0b1220
        );
}

:root[data-theme="dark"]
.reels-intro-card {
    box-shadow:
        0 26px 70px
        rgba(
            0,
            0,
            0,
            0.26
        );
}


/* =========================================================
   DESKTOP
   >= 1024px
   ========================================================= */

@media (min-width: 1024px) {

    .reels-steps {
        grid-template-columns:
            repeat(
                3,
                minmax(
                    0,
                    1fr
                )
            );
    }

    .reel-stage {
        width: auto;

        height:
            min(
                760px,
                calc(
                    100%
                    -
                    24px
                )
            );

        max-width:
            calc(
                100vw
                -
                80px
            );

        aspect-ratio: 9 / 16;

        border-radius: 24px;
    }

    .reels-add-button {
        right: 28px;
        bottom: 28px;
    }

    .reels-flash {
        top: 18px;
    }
}


/* =========================================================
   TABLET
   600px - 1023px
   ========================================================= */

@media (
    min-width: 600px
)
and (
    max-width: 1023px
) {

    .reels-direction-controls {
        right: 14px;
    }


    .reels-intro-inner {
        padding:
            24px
            20px
            30px;
    }

    .reels-steps {
        grid-template-columns: 1fr;
    }

    .reel-stage {
        width: auto;

        height:
            min(
                740px,
                calc(
                    100%
                    -
                    20px
                )
            );

        max-width:
            calc(
                100vw
                -
                40px
            );

        aspect-ratio: 9 / 16;

        border-radius: 22px;
    }

    .reels-add-button {
        right: 20px;
        bottom: 20px;
    }

    .reels-flash {
        top: 14px;
    }
}


/* =========================================================
   MOBILE
   <= 599px
   ========================================================= */

@media (max-width: 599px) {

    .reels-direction-controls {
        display: none;
    }

    .reels-shell {
        min-height: 320px;
    }


    /* INTRO */

    .reels-intro-inner {
        padding:
            14px
            12px
            24px;
    }

    .reels-intro-top {
        gap: 10px;

        margin-bottom: 12px;
    }

    .reels-intro-kicker {
        max-width: 52%;

        font-size: 0.62rem;

        line-height: 1.35;
    }

    .reels-view-button {
        min-height: 40px;

        padding:
            0
            14px;

        font-size: 0.8rem;
    }

    .reels-intro-card {
        padding: 18px;

        border-radius: 20px;
    }

    .reels-intro-hero {
        grid-template-columns:
            auto
            minmax(
                0,
                1fr
            );

        align-items: center;

        gap: 12px;
    }

    .reels-intro-hero > div:last-child {
        display: contents;
    }

    .reels-intro-icon {
        width: 52px;
        height: 52px;

        grid-column: 1;
        grid-row: 1;

        border-radius: 16px;

        font-size: 1.1rem;
    }

    .reels-intro-hero h1 {
        grid-column: 2;
        grid-row: 1;

        margin: 0;

        font-size: 1.7rem;
        font-weight: 900;

        line-height: 1.1;
    }

    .reels-intro-lead {
        grid-column:
            1
            /
            -1;

        margin:
            4px
            0
            0;

        font-size: 0.86rem;

        line-height: 1.52;
    }

    .reels-youtube-only {
        margin-top: 16px;

        padding:
            10px
            11px;

        font-size: 0.79rem;
    }

    .reels-how-title {
        margin-top: 18px;

        font-size: 0.84rem;
    }

    .reels-steps {
        grid-template-columns: 1fr;

        gap: 9px;

        margin-top: 10px;
    }

    .reels-step {
        padding: 12px;

        gap: 10px;

        border-radius: 14px;
    }

    .reels-step-number {
        width: 30px;
        height: 30px;

        font-size: 0.76rem;
    }

    .reels-step h2 {
        font-size: 0.84rem;
    }

    .reels-step p {
        margin-top: 3px;

        font-size: 0.76rem;

        line-height: 1.43;
    }

    .reels-intro-bottom {
        margin-top: 16px;
        padding-top: 15px;

        align-items: stretch;

        flex-direction: column;

        gap: 11px;
    }

    .reels-intro-bottom p {
        font-size: 0.75rem;
    }

    .reels-intro-add {
        width: 100%;
    }

    .reels-intro-user-actions {
        width: 100%;

        display: grid;

        grid-template-columns:
            1fr
            1fr;

        gap: 8px;
    }


    /* VIEWER */

    .reels-info-button {
        top: 10px;
        left: 10px;

        min-height: 38px;

        padding:
            0
            11px;

        font-size: 0.73rem;
    }

    .reel-stage {
        width: 100%;
        height: 100%;

        border: 0;

        border-radius: 0;

        box-shadow: none;
    }

    .reel-info {
        left: 14px;
        right: 78px;

        bottom:
            calc(
                18px
                +
                env(
                    safe-area-inset-bottom
                )
            );
    }

    .reel-title {
        font-size: 1rem;
    }

    .reel-caption {
        font-size: 0.82rem;
    }

    .reel-actions {
        right: 10px;

        bottom:
            calc(
                18px
                +
                env(
                    safe-area-inset-bottom
                )
            );

        gap: 9px;
    }

    .reel-action {
        width: 54px;

        min-height: 54px;

        border-radius: 17px;
    }

    .reels-add-button {
        top: 10px;
        right: 10px;
        bottom: auto;

        min-height: 38px;

        padding:
            0
            11px;

        font-size: 0.74rem;
    }

    .reels-flash {
        top: 60px;

        width:
            calc(
                100%
                -
                24px
            );
    }


    /* VIDEO CHECK */

    .reels-check-row {
        grid-template-columns: 1fr;
    }

    .reels-video-check {
        grid-template-columns:
            auto
            minmax(
                0,
                1fr
            );
    }

    .reels-video-setting-button {
        grid-column:
            1
            /
            -1;

        width: 100%;
    }

    .reels-setting-help {
        align-items: stretch;

        flex-direction: column;
    }

    .reels-setting-help .btn {
        width: 100%;
    }


    /* MODAL */

    .reels-modal {
        padding: 12px;

        align-items: end;
    }

    .reels-modal-card,
    .reels-modal-card--compact {
        width: 100%;

        max-height: 88dvh;

        padding: 18px;

        border-radius:
            20px
            20px
            14px
            14px;
    }

    .reels-modal-actions {
        display: grid;

        grid-template-columns:
            1fr
            1fr;
    }


    /* FIRST REEL CHALLENGE */

    .reels-empty--first {
        padding:
            20px
            16px;

        gap: 13px;
    }

    .reels-first-icon {
        width: 58px;
        height: 58px;

        border-radius: 18px;

        font-size: 1.15rem;
    }

    .reels-first-copy {
        gap: 10px;
    }

    .reels-first-eyebrow {
        font-size: 0.62rem;
    }

    .reels-first-copy h1 {
        font-size: 1.6rem;
    }

    .reels-first-badge {
        padding:
            7px
            10px;

        font-size: 0.67rem;

        line-height: 1.35;
    }

    .reels-first-marathi {
        font-size: 0.9rem;

        line-height: 1.58;
    }

    .reels-first-support {
        font-size: 0.77rem;
    }

    .reels-first-cta {
        width: 100%;

        min-height: 46px;

        margin-top: 4px;

        font-size: 0.84rem;
    }


    /* INTRO AUTH */

    .reels-intro-auth {
        width: 100%;
    }

    .reels-intro-auth
    .reels-intro-add {
        width: 100%;
    }

    .reels-create-account-link {
        font-size: 0.8rem;
    }


    /* UPLOAD RULES */

    .reels-upload-rules {
        padding: 12px;

        border-radius: 14px;
    }

    .reels-upload-rules-head p,
    .reels-consent-check span {
        font-size: 0.75rem;
    }

    .reels-rules-content {
        max-height: 34dvh;

        overflow-y: auto;
    }
}
