/* ==========================================================================
   Colosian Creator Page — Verified Credits
   ========================================================================== */

/* ==========================================================================
   Overlay
   ========================================================================== */

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

    padding: 24px;

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

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

    overflow-y: auto;
}

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

.credits-overlay:not(.hidden) {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================================================
   Modal Shell
   ========================================================================== */

.credits-modal {
    width: 100%;
    max-width: 1040px;

    max-height: calc(100vh - 48px);
    overflow-y: auto;

    border-radius: 32px;

    color: #111111;

    background:
        radial-gradient(circle at 12% 0%,
            rgba(0, 0, 0, 0.035),
            transparent 30%),
        linear-gradient(180deg,
            #ffffff 0%,
            #f5f5f5 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);
}


/* ==========================================================================
   Header
   ========================================================================== */

.credits-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    padding: 30px 30px 24px;

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

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

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

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.2em;

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

.credits-modal-title {
    font-size:
        clamp(30px,
            4vw,
            48px);

    line-height: 0.98;

    font-weight: 900;

    letter-spacing:
        -0.055em;
}

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

    max-width: 620px;

    font-size: 14px;

    line-height: 1.55;

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


/* ==========================================================================
   Close Button
   ========================================================================== */

.credits-close {
    width: 44px;
    height: 44px;

    flex: 0 0 auto;

    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.04);

    color: #111111;

    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.075);

    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: 22px 30px;

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

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

    padding: 4px 16px;
}

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

    line-height: 1;

    font-weight: 900;

    letter-spacing:
        -0.04em;

    color:
        #111111;
}

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

    font-size: 10px;

    font-weight: 800;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;

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

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

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


/* ==========================================================================
   Content Area
   ========================================================================== */

.credits-content {
    padding:
        24px 30px 30px;
}


/* ==========================================================================
   Loading / Error / Empty
   ========================================================================== */

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

    text-align: center;

    border-radius: 26px;

    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: 26px;

    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);
}


/* ==========================================================================
   Credits Grid
   ========================================================================== */

.credits-public-list {
    display: grid;

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

    gap: 16px;
}


/* ==========================================================================
   Individual Credit Card
   ========================================================================== */

.credits-public-card {
    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border-radius: 26px;

    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%);
}

.credits-video-role {
    position: absolute;

    left: 14px;
    bottom: 14px;

    z-index: 2;

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

    max-width:
        calc(100% - 28px);

    padding:
        7px 11px;

    border-radius:
        999px;

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

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

    backdrop-filter:
        blur(10px);

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

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        0.11em;

    text-transform:
        uppercase;

    color:
        #ffffff;
}


/* ==========================================================================
   Card Body
   ========================================================================== */

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

    display: flex;

    flex-direction: column;

    padding: 18px;
}

.credits-video-heading {
    display: flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap: 12px;
}

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

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

    line-height: 1.25;

    font-weight: 900;

    letter-spacing:
        -0.025em;

    color:
        #111111;

    overflow-wrap:
        anywhere;
}

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

    font-size: 12px;

    line-height: 1.35;

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


/* ==========================================================================
   Verification Status
   ========================================================================== */

.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;
}


/* ==========================================================================
   Credit Metadata
   ========================================================================== */

.credits-video-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 13px;

    font-size: 11px;

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

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


/* ==========================================================================
   Contribution
   ========================================================================== */

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

    padding: 13px 14px;

    border-radius: 17px;

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

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

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

    font-weight: 900;

    letter-spacing:
        0.13em;

    text-transform:
        uppercase;

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

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

    font-size: 12px;

    line-height: 1.5;

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


/* ==========================================================================
   Confirmation Indicators
   ========================================================================== */

.credits-confirmations {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 14px;
}

.credits-confirmation {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding:
        6px 9px;

    border-radius:
        999px;

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

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

    font-size:
        9px;

    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:
        auto;

    padding:
        9px 12px;

    border-radius:
        999px;

    background:
        #111111;

    border:
        1px solid #111111;

    color:
        #ffffff;

    text-decoration:
        none;

    font-size:
        10px;

    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:
        20px 30px 26px;

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

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

    font-weight:
        900;

    letter-spacing:
        0.04em;

    color:
        #111111;
}

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

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


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 900px) {

    .credits-public-list {
        grid-template-columns:
            1fr;
    }

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


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 760px) {

    .credits-overlay {
        padding:
            12px;

        align-items:
            flex-start;
    }

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

        max-height:
            none;

        border-radius:
            26px;
    }

    .credits-modal-head {
        gap:
            14px;

        padding:
            22px 20px 19px;
    }

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

    .credits-modal-subtitle {
        font-size:
            13px;
    }

    .credits-close {
        width:
            40px;

        height:
            40px;
    }

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

        gap:
            10px;

        padding:
            18px 20px;
    }

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

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

        border-radius:
            18px;

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

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

    .credits-content {
        padding:
            20px;
    }

    .credits-public-list {
        grid-template-columns:
            1fr;

        gap:
            14px;
    }

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

    .credits-status {
        align-self:
            flex-start;
    }

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

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

    .credits-public-empty {
        padding:
            38px 20px;
    }

    .credits-modal-footer {
        flex-direction:
            column;

        align-items:
            flex-start;

        padding:
            18px 20px 22px;
    }
}


/* ==========================================================================
   Very Small Screens
   ========================================================================== */

@media (max-width: 420px) {

    .credits-overlay {
        padding:
            8px;
    }

    .credits-modal {
        border-radius:
            22px;
    }

    .credits-modal-head {
        padding:
            19px 16px 17px;
    }

    .credits-summary {
        padding:
            14px 16px;
    }

    .credits-content {
        padding:
            16px;
    }

    .credits-modal-footer {
        padding:
            16px;
    }

    .credits-confirmations {
        flex-direction:
            column;

        align-items:
            flex-start;
    }
}