/* ==========================================================================
   COLOSIAN CREATOR PAGE — VERIFIED CREDITS
   public/css/creator-credits.css
   ========================================================================== */


/* ==========================================================================
   OVERLAY
   ========================================================================== */

.credits-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;

    padding: 18px;

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

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    overflow: hidden;
}

.credits-overlay.hidden {
    display:
        none !important;
}

.credits-overlay:not(.hidden) {
    display: flex;

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


/* ==========================================================================
   MODAL SHELL
   ========================================================================== */

.credits-modal {
    width:
        min(1320px,
            calc(100vw - 36px));

    max-width:
        1320px;

    height:
        min(820px,
            calc(100vh - 36px));

    max-height:
        calc(100vh - 36px);

    min-height: 0;

    display: grid;

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

    overflow: hidden;

    border-radius:
        30px;

    color:
        #111111;

    background:
        radial-gradient(circle at 12% 0%,
            rgba(0, 0, 0, 0.025),
            transparent 28%),
        linear-gradient(180deg,
            #ffffff 0%,
            #f6f6f6 100%);

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

    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}


/*
 * Retained because your HTML currently adds this class.
 */

.credits-modal-horizontal {
    width:
        min(1320px,
            calc(100vw - 36px));

    max-width:
        1320px;

    height:
        min(820px,
            calc(100vh - 36px));

    max-height:
        calc(100vh - 36px);

    min-height: 0;

    display: grid;

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

    overflow: hidden;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.credits-modal-head {
    display: flex;

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

    gap: 24px;

    padding:
        18px 28px 16px;

    border-bottom:
        1px solid rgba(0, 0, 0, 0.07);

    flex: 0 0 auto;
}

.credits-modal-heading {
    min-width: 0;

    flex:
        1 1 auto;
}

.credits-eyebrow {
    margin-bottom:
        5px;

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        0.19em;

    color:
        rgba(0, 0, 0, 0.43);
}

.credits-modal-title {
    font-size:
        clamp(28px,
            3vw,
            38px);

    line-height:
        1;

    font-weight:
        900;

    letter-spacing:
        -0.05em;

    color:
        #111111;
}

.credits-modal-subtitle {
    margin-top:
        6px;

    max-width:
        620px;

    font-size:
        13px;

    line-height:
        1.4;

    color:
        rgba(0, 0, 0, 0.55);
}


/* ==========================================================================
   CLOSE BUTTON
   ========================================================================== */

.credits-close {
    width:
        42px;

    height:
        42px;

    flex:
        0 0 42px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        999px;

    border:
        1px solid rgba(0, 0, 0, 0.10);

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

    color:
        #111111;

    font-size:
        17px;

    font-weight:
        800;

    cursor:
        pointer;

    transition:
        background 160ms ease,
        transform 160ms ease,
        border-color 160ms ease;
}

.credits-close:hover {
    background:
        rgba(0, 0, 0, 0.07);

    border-color:
        rgba(0, 0, 0, 0.16);

    transform:
        translateY(-1px);
}


/* ==========================================================================
   SUMMARY
   ========================================================================== */

.credits-summary {
    display: grid;

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

    align-items: center;

    padding:
        14px 28px;

    border-bottom:
        1px solid rgba(0, 0, 0, 0.07);

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

    flex: 0 0 auto;
}

.credits-summary-stat {
    text-align: center;

    padding:
        2px 14px;
}

.credits-summary-value {
    font-size:
        22px;

    line-height:
        1;

    font-weight:
        900;

    letter-spacing:
        -0.04em;

    color:
        #111111;
}

.credits-summary-label {
    margin-top:
        5px;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;

    color:
        rgba(0, 0, 0, 0.44);
}

.credits-summary-divider {
    width:
        1px;

    height:
        32px;

    background:
        rgba(0, 0, 0, 0.08);
}


/* ==========================================================================
   CONTENT
   ========================================================================== */

/*
 * IMPORTANT:
 *
 * THIS is the vertical scrolling surface.
 *
 * The modal itself remains fixed and polished.
 * The header, stats and footer stay in place.
 * Only the credit content scrolls vertically when needed.
 */

.credits-content {
    width: 100%;

    min-width: 0;
    min-height: 0;

    padding:
        20px 28px 18px;

    overflow-x:
        hidden;

    overflow-y:
        auto;

    overscroll-behavior-y:
        contain;

    scrollbar-width:
        thin;

    scrollbar-color:
        rgba(0, 0, 0, 0.18) transparent;

    -webkit-overflow-scrolling:
        touch;
}

.credits-content-horizontal {
    width: 100%;

    min-width: 0;
    min-height: 0;

    overflow-x:
        hidden;

    overflow-y:
        auto;
}

.credits-content::-webkit-scrollbar {
    width:
        8px;
}

.credits-content::-webkit-scrollbar-track {
    background:
        transparent;
}

.credits-content::-webkit-scrollbar-thumb {
    border-radius:
        999px;

    background:
        rgba(0, 0, 0, 0.17);
}


/* ==========================================================================
   LOADING / ERROR / EMPTY
   ========================================================================== */

.credits-public-loading {
    padding:
        42px 24px;

    text-align:
        center;

    border-radius:
        24px;

    border:
        1px solid rgba(0, 0, 0, 0.08);

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

    font-size:
        13px;

    color:
        rgba(0, 0, 0, 0.52);
}

.credits-public-error {
    padding:
        16px 18px;

    margin-bottom:
        18px;

    border-radius:
        20px;

    border:
        1px solid rgba(220, 38, 38, 0.16);

    background:
        rgba(220, 38, 38, 0.06);

    color:
        #991b1b;

    font-size:
        13px;

    line-height:
        1.5;
}

.credits-public-empty {
    padding:
        46px 24px;

    text-align:
        center;

    border-radius:
        24px;

    border:
        1px dashed rgba(0, 0, 0, 0.12);
}

.credits-empty-mark {
    width:
        56px;

    height:
        56px;

    margin:
        0 auto 14px;

    border-radius:
        18px;

    display:
        grid;

    place-items:
        center;

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

    border:
        1px solid rgba(0, 0, 0, 0.08);
}

.credits-empty-mark svg {
    width:
        27px;

    height:
        27px;
}

.credits-empty-title {
    font-size:
        18px;

    font-weight:
        900;

    letter-spacing:
        -0.02em;
}

.credits-empty-copy {
    margin-top:
        6px;

    max-width:
        500px;

    margin-left:
        auto;

    margin-right:
        auto;

    font-size:
        13px;

    line-height:
        1.5;

    color:
        rgba(0, 0, 0, 0.50);
}


/* ==========================================================================
   RAIL SHELL
   ========================================================================== */

.credits-public-rail-shell {
    width:
        100%;

    max-width:
        100%;

    min-width:
        0;

    /*
     * Do NOT use overflow:hidden here.
     *
     * The horizontal list controls its own X axis and the parent
     * content surface handles vertical scrolling.
     */

    overflow:
        visible;
}


/* ==========================================================================
   PUBLIC CREDITS — HORIZONTAL RAIL
   ========================================================================== */

.credits-public-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    align-items: flex-start;

    gap: 18px;

    overflow-x: auto;
    overflow-y: visible;

    padding: 0 0 14px;

    /*
     * IMPORTANT:
     * Native scrolling feels much better here.
     */
    scroll-snap-type: none;
    scroll-behavior: auto;

    overscroll-behavior-x: contain;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;

    /*
     * Helps prevent browser selection / drag weirdness
     * during horizontal gestures.
     */
    touch-action: pan-x pan-y;
}

.credits-public-list.credits-public-rail {
    display:
        flex !important;
}

.credits-public-list.hidden {
    display:
        none !important;
}

.credits-public-list::-webkit-scrollbar {
    height:
        8px;
}

.credits-public-list::-webkit-scrollbar-track {
    background:
        transparent;
}

.credits-public-list::-webkit-scrollbar-thumb {
    border-radius:
        999px;

    background:
        rgba(0, 0, 0, 0.18);
}


/* ==========================================================================
   EACH CREDIT — HORIZONTAL CARD WIDTH
   ========================================================================== */

#creditsPublicList>* {
    flex:
        0 0 min(510px,
            calc(100vw - 100px));

    width:
        min(510px,
            calc(100vw - 100px));

    min-width:
        420px;

    max-width:
        510px;

    align-self:
        flex-start;
}


/* ==========================================================================
   INDIVIDUAL CREDIT CARD
   ========================================================================== */

.credits-public-card {
    display:
        flex;

    flex-direction:
        column;

    min-width:
        0;

    height:
        auto;

    overflow:
        hidden;

    border-radius:
        24px;

    background:
        #ffffff;

    border:
        1px solid rgba(0, 0, 0, 0.08);

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

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.credits-public-card:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(0, 0, 0, 0.13);

    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.08);
}


/* ==========================================================================
   VIDEO MEDIA
   ========================================================================== */

.credits-video-media {
    position:
        relative;

    width:
        100%;

    aspect-ratio:
        16 / 9;

    overflow:
        hidden;

    background:
        #111111;
}

.credits-video-media img {
    width:
        100%;

    height:
        100%;

    display:
        block;

    object-fit:
        cover;
}

.credits-video-shade {
    position:
        absolute;

    inset:
        0;

    pointer-events:
        none;

    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0) 42%,
            rgba(0, 0, 0, 0.68) 100%);
}


/* ==========================================================================
   CARD BODY
   ========================================================================== */

.credits-video-body {
    flex:
        1 1 auto;

    display:
        flex;

    flex-direction:
        column;

    padding:
        16px;
}

.credits-video-heading {
    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        14px;
}

.credits-video-copy {
    min-width:
        0;

    flex:
        1 1 auto;
}

.credits-video-title {
    font-size:
        16px;

    line-height:
        1.22;

    font-weight:
        900;

    letter-spacing:
        -0.025em;

    color:
        #111111;

    overflow-wrap:
        anywhere;
}

.credits-video-channel {
    margin-top:
        4px;

    font-size:
        11px;

    line-height:
        1.35;

    color:
        rgba(0, 0, 0, 0.48);
}


/* ==========================================================================
   VERIFICATION STATUS
   ========================================================================== */

.credits-status-area {
    flex:
        0 1 auto;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    gap:
        8px;

    max-width:
        48%;
}

.credits-status {
    flex:
        0 0 auto;

    display:
        inline-flex;

    align-items:
        center;

    gap:
        5px;

    padding:
        6px 9px;

    border-radius:
        999px;

    border:
        1px solid rgba(0, 0, 0, 0.08);

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

    font-size:
        9px;

    line-height:
        1;

    font-weight:
        900;

    letter-spacing:
        0.07em;

    text-transform:
        uppercase;

    white-space:
        nowrap;
}

.credit-status-verified {
    background:
        #111111;

    border-color:
        #111111;

    color:
        #ffffff;
}

.credit-status-confirmed {
    background:
        rgba(37, 99, 235, 0.07);

    border-color:
        rgba(37, 99, 235, 0.14);

    color:
        #1d4ed8;
}

.credit-status-pending {
    background:
        rgba(217, 119, 6, 0.07);

    border-color:
        rgba(217, 119, 6, 0.14);

    color:
        #92400e;
}

.credits-status-mark {
    width:
        16px;

    height:
        16px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        999px;

    background:
        #ffffff;

    color:
        #111111;

    font-size:
        9px;

    font-weight:
        900;
}


/* ==========================================================================
   CREDITED ROLES
   ========================================================================== */

.credits-body-roles {
    display:
        flex;

    flex-wrap:
        wrap;

    align-items:
        center;

    gap:
        6px;

    width:
        100%;

    max-width:
        420px;
}

.credits-body-role {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        26px;

    padding:
        0 9px;

    border:
        1px solid rgba(0, 0, 0, 0.11);

    border-radius:
        999px;

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

    color:
        #171717;

    white-space:
        nowrap;

    font-size:
        8px;

    font-weight:
        850;

    line-height:
        1;

    letter-spacing:
        0.035em;

    text-transform:
        uppercase;
}


/* ==========================================================================
   CREDIT METADATA
   ========================================================================== */

.credits-video-meta {
    display:
        flex;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        6px;

    margin-top:
        12px;

    font-size:
        10px;

    color:
        rgba(0, 0, 0, 0.48);
}

.credits-meta-dot {
    opacity:
        0.45;
}


/* ==========================================================================
   CONTRIBUTION
   ========================================================================== */

.credits-contribution {
    margin-top:
        12px;

    padding:
        12px 13px;

    border-radius:
        15px;

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

    border:
        1px solid rgba(0, 0, 0, 0.065);
}

.credits-contribution-kicker {
    font-size:
        8px;

    font-weight:
        900;

    letter-spacing:
        0.13em;

    text-transform:
        uppercase;

    color:
        rgba(0, 0, 0, 0.38);
}

.credits-contribution-copy {
    margin-top:
        5px;

    font-size:
        11px;

    line-height:
        1.45;

    color:
        rgba(0, 0, 0, 0.64);
}


/* ==========================================================================
   CONFIRMATION INDICATORS
   ========================================================================== */

.credits-confirmations {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        7px;

    margin-top:
        12px;
}

.credits-confirmation {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        5px;

    padding:
        6px 8px;

    border-radius:
        999px;

    border:
        1px solid rgba(0, 0, 0, 0.07);

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

    font-size:
        8px;

    font-weight:
        800;

    color:
        rgba(0, 0, 0, 0.40);
}

.credits-confirmation-dot {
    width:
        7px;

    height:
        7px;

    border-radius:
        999px;

    background:
        rgba(0, 0, 0, 0.18);
}

.credits-confirmation.is-confirmed {
    color:
        rgba(0, 0, 0, 0.76);
}

.credits-confirmation.is-confirmed .credits-confirmation-dot {
    background:
        #16a34a;

    box-shadow:
        0 0 0 3px rgba(22, 163, 74, 0.08);
}


/* ==========================================================================
   WATCH BUTTON
   ========================================================================== */

.credits-watch-btn {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    align-self:
        flex-start;

    gap:
        7px;

    margin-top:
        14px;

    padding:
        9px 12px;

    border-radius:
        999px;

    background:
        #111111;

    border:
        1px solid #111111;

    color:
        #ffffff;

    text-decoration:
        none;

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        0.06em;

    text-transform:
        uppercase;

    transition:
        background 160ms ease,
        transform 160ms ease;
}

.credits-watch-btn:hover {
    background:
        #222222;

    transform:
        translateY(-1px);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.credits-modal-footer {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    padding:
        13px 28px 15px;

    border-top:
        1px solid rgba(0, 0, 0, 0.07);

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

    flex:
        0 0 auto;
}

.credits-principle {
    font-size:
        11px;

    font-weight:
        900;

    letter-spacing:
        0.04em;

    color:
        #111111;
}

.credits-powered {
    font-size:
        10px;

    color:
        rgba(0, 0, 0, 0.45);
}


/* ==========================================================================
   DESKTOP
   ========================================================================== */

@media (min-width: 1200px) {

    #creditsPublicList>* {
        flex:
            0 0 510px;

        width:
            510px;

        min-width:
            510px;

        max-width:
            510px;
    }

}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {

    .credits-overlay {
        padding:
            12px;
    }

    .credits-modal,
    .credits-modal-horizontal {
        width:
            calc(100vw - 24px);

        height:
            calc(100vh - 24px);

        max-height:
            calc(100vh - 24px);

        border-radius:
            26px;
    }

    .credits-modal-head {
        padding:
            17px 20px 15px;
    }

    .credits-modal-title {
        font-size:
            30px;
    }

    .credits-summary {
        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));

        gap:
            8px;

        padding:
            12px 18px;
    }

    .credits-summary-divider {
        display:
            none;
    }

    .credits-summary-stat {
        padding:
            10px 8px;

        border-radius:
            15px;

        background:
            rgba(0, 0, 0, 0.025);
    }

    .credits-content {
        padding:
            16px 18px;
    }

    #creditsPublicList>* {
        flex:
            0 0 min(500px,
                calc(100vw - 62px));

        width:
            min(500px,
                calc(100vw - 62px));

        min-width:
            min(500px,
                calc(100vw - 62px));

        max-width:
            min(500px,
                calc(100vw - 62px));
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 640px) {

    .credits-overlay {
        padding:
            8px;
    }

    .credits-modal,
    .credits-modal-horizontal {
        width:
            calc(100vw - 16px);

        height:
            calc(100vh - 16px);

        max-height:
            calc(100vh - 16px);

        border-radius:
            22px;
    }

    .credits-modal-head {
        align-items:
            flex-start;

        gap:
            12px;

        padding:
            15px 16px 13px;
    }

    .credits-eyebrow {
        margin-bottom:
            4px;

        font-size:
            8px;
    }

    .credits-modal-title {
        font-size:
            27px;
    }

    .credits-modal-subtitle {
        margin-top:
            5px;

        font-size:
            11px;
    }

    .credits-close {
        width:
            38px;

        height:
            38px;

        flex-basis:
            38px;
    }

    .credits-summary {
        padding:
            10px 14px;

        gap:
            6px;
    }

    .credits-summary-value {
        font-size:
            18px;
    }

    .credits-summary-label {
        font-size:
            7px;
    }

    .credits-content {
        padding:
            14px;
    }

    .credits-public-list {
        gap:
            12px;

        padding-bottom:
            10px;
    }

    #creditsPublicList>* {
        flex:
            0 0 calc(100vw - 52px);

        width:
            calc(100vw - 52px);

        min-width:
            calc(100vw - 52px);

        max-width:
            calc(100vw - 52px);
    }

    .credits-video-heading {
        flex-direction:
            column;
    }

    .credits-status-area {
        width:
            100%;

        max-width:
            100%;
    }

    .credits-body-roles {
        width:
            100%;

        max-width:
            100%;
    }

    .credits-video-body {
        padding:
            14px;
    }

    .credits-video-title {
        font-size:
            15px;
    }

    .credits-public-empty {
        padding:
            34px 18px;
    }

    .credits-modal-footer {
        padding:
            11px 16px 13px;

        gap:
            10px;
    }

    .credits-principle {
        font-size:
            9px;
    }

    .credits-powered {
        font-size:
            8px;

        text-align:
            right;
    }

}


/* ==========================================================================
   VERY SMALL SCREENS
   ========================================================================== */

@media (max-width: 420px) {

    .credits-modal-head {
        padding:
            14px 14px 12px;
    }

    .credits-summary {
        padding:
            9px 12px;
    }

    .credits-content {
        padding:
            12px;
    }

    .credits-modal-footer {
        padding:
            10px 14px 12px;
    }

    .credits-confirmations {
        flex-direction:
            column;

        align-items:
            flex-start;
    }

    .credits-body-role {
        font-size:
            8px;

        min-height:
            25px;

        padding:
            0 8px;
    }

}