.uc-tooltip {
    position: absolute;
    z-index: 10500;
    min-width: 260px;
    max-width: 320px;
    background: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .15), 0 2px 6px rgba(0, 0, 0, .08);
    padding: 16px 14px 14px;
    font-size: 13px;
    line-height: 1.4;
    color: #2c2c2c;
    animation: uc-tooltip-fade-in .12s ease-out;
}

@keyframes uc-tooltip-fade-in {
    from { opacity: 0; transform: translateY(-2px); }
    to   { opacity: 1; transform: translateY(0); }
}

.uc-tooltip__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.uc-tooltip__avatar {
    display: block;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #e8e8e8;
    text-decoration: none;
}

.uc-tooltip__heading {
    flex: 1 1 auto;
    min-width: 0;
}

.uc-tooltip__name-row {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.uc-tooltip__name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.uc-tooltip__name:hover,
.uc-tooltip__name:focus {
    text-decoration: underline;
    color: #1a1a1a;
}
.uc-tooltip__name--deleted {
    color: #888;
    font-style: italic;
    text-decoration: none;
}

.uc-rank-icon {
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: middle;
}

.uc-tooltip__rank {
    font-size: 11px;
    color: #777;
    margin-top: 2px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.uc-tooltip__rank .uc-rank-icon {
    flex: 0 0 auto;
    position: relative;
    top: -2px;
}

.uc-tooltip__rank-label {
    display: inline-block;
    line-height: 1;
}

.uc-tooltip__rank.is-uploader,
.uc-tooltip__rank.is-elite-uploader,
.uc-tooltip__rank.is-verified-uploader {
}

.uc-tooltip__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 2px 12px;
    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 12px;
}

.uc-tooltip__stats--compact {
    justify-content: space-around;
}

.uc-tooltip__stats--compact .uc-tooltip__stat {
    flex: 1 1 0;
}

.uc-tooltip__stats--quad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    row-gap: 14px;
}

.uc-tooltip__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.15;
    min-width: 0;
}

.uc-tooltip__stat-num {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.uc-tooltip__stat-label {
    font-size: 10.5px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-top: 4px;
    white-space: nowrap;
}

.uc-tooltip__actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex-wrap: wrap;
}

.uc-tooltip__actions .uc-btn {
    flex: 1 1 0;
    text-align: center;
    min-width: 0;
}

.uc-tooltip__error {
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 11.5px;
    line-height: 1.35;
    color: #c0392b;
    background: #fdecec;
    border: 1px solid #f1c2c2;
    border-radius: 6px;
    text-align: center;
    word-wrap: break-word;
}
.uc-tooltip__error[hidden] {
    display: none;
}

.uc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 500;
    color: #5a5a5a;
    background: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 16px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    white-space: nowrap;
    user-select: none;
}
.uc-btn:focus {
    outline: none;
    color: #5a5a5a;
}
.uc-btn:focus-visible {
    outline: 2px solid #b2dcfc;
    outline-offset: 2px;
}
.uc-btn.is-loading {
    opacity: .55;
    pointer-events: none;
}
.uc-btn.has-error {
    border-color: #c0392b;
    color: #c0392b;
    animation: uc-shake .25s linear;
}
.uc-btn:disabled {
    opacity: .55;
    cursor: default;
    pointer-events: none;
}

@keyframes uc-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-2px); }
    75%      { transform: translateX(2px); }
}

.uc-btn__icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    align-items: center;
    justify-content: center;
}

.uc-btn .uc-btn__check,
.uc-btn .uc-btn__ban { display: none; }
.uc-btn.is-following .uc-btn__plus  { display: none; }
.uc-btn.is-following .uc-btn__check { display: inline; }
.uc-btn.is-ignored   .uc-btn__hide  { display: none; }
.uc-btn.is-ignored   .uc-btn__ban   { display: inline; }

.uc-btn--follow:hover,
.uc-btn--follow:focus:hover {
    background: #ebf5ff;
    border-color: #b2dcfc;
    color: #2c2c2c;
    text-decoration: none;
}
.uc-btn--follow.is-following,
.uc-btn--follow.is-following:focus {
    background: #ebf5ff;
    border-color: #b2dcfc;
    color: #1976d2;
}
.uc-btn--follow.is-following:hover,
.uc-btn--follow.is-following:focus:hover {
    background: #fdecec;
    border-color: #f1c2c2;
    color: #c0392b;
}

.uc-btn--ignore:hover,
.uc-btn--ignore:focus:hover {
    background: #fdecec;
    border-color: #f1c2c2;
    color: #c0392b;
    text-decoration: none;
}
.uc-btn--ignore.is-ignored,
.uc-btn--ignore.is-ignored:focus {
    background: #fdecec;
    border-color: #f1c2c2;
    color: #c0392b;
}
.uc-btn--ignore.is-ignored:hover,
.uc-btn--ignore.is-ignored:focus:hover {
    background: #ebf5ff;
    border-color: #b2dcfc;
    color: #1976d2;
}

.uc-btn--ghost {
    color: #555;
    background: #f7f7f7;
    border-color: #e6e6e6;
}
.uc-btn--ghost:hover {
    background: #efefef;
    border-color: #d8d8d8;
    color: #2c2c2c;
}
.uc-btn--guest {
    background: #fff;
    border-color: #d6d6d6;
    color: #5a5a5a;
}
.uc-btn--guest:hover {
    background: #ebf5ff;
    border-color: #b2dcfc;
    color: #2c2c2c;
}

.uc-tooltip__body {
    padding: 4px 2px;
    color: #777;
}
.uc-tooltip__body--loading {
    font-style: italic;
}
.uc-tooltip__body--empty {
    font-style: italic;
    color: #999;
}

.uc-skel__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.uc-skel__heading {
    flex: 1 1 auto;
    min-width: 0;
}
.uc-skel__stats {
    display: flex;
    gap: 14px;
    padding: 14px 2px 12px;
    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 12px;
}
.uc-skel__stat {
    flex: 1 1 0;
    min-width: 0;
}
.uc-skel__actions {
    display: flex;
    gap: 8px;
}

.uc-skel-shape {
    display: block;
    border-radius: 4px;
    background: linear-gradient(90deg, #ececec 25%, #dcdcdc 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: uc-skel-pulse 1.4s ease-in-out infinite;
}
.uc-skel__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.uc-skel__name {
    width: 60%;
    height: 14px;
    margin-bottom: 6px;
}
.uc-skel__rank {
    width: 38%;
    height: 10px;
}
.uc-skel__stat-num {
    width: 50%;
    height: 14px;
    margin-bottom: 6px;
}
.uc-skel__stat-lbl {
    width: 75%;
    height: 9px;
}
.uc-skel__btn {
    flex: 1 1 0;
    height: 28px;
    border-radius: 16px;
}

@keyframes uc-skel-pulse {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.uc-tooltip-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 18, 22, .42);
    z-index: 10498;
    opacity: 0;
    transition: opacity .18s ease;
}
.uc-tooltip-backdrop.is-visible {
    display: block;
    opacity: 1;
}

@media (max-width: 480px) {
    .uc-tooltip:not(.is-sheet) {
        max-width: calc(100vw - 24px);
        min-width: 220px;
    }

    .uc-tooltip.is-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        max-width: none;
        min-width: 0;
        width: 100%;
        border-radius: 14px 14px 0 0;
        border: 1px solid #d6d6d6;
        border-bottom: none;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
        padding: 22px 18px 26px;
        z-index: 10499;
        animation: uc-sheet-slide-up .2s ease-out;
        font-size: 14px;
    }
    .uc-tooltip.is-sheet::before {
        content: '';
        display: block;
        width: 38px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin: -6px auto 14px;
    }
    .uc-tooltip.is-sheet .uc-tooltip__avatar {
        width: 52px;
        height: 52px;
    }
    .uc-tooltip.is-sheet .uc-tooltip__name {
        font-size: 16px;
    }
    .uc-tooltip.is-sheet .uc-tooltip__stat-num {
        font-size: 18px;
    }
    .uc-tooltip.is-sheet .uc-tooltip__actions .uc-btn {
        padding: 9px 14px;
        font-size: 13px;
        line-height: 20px;
    }
}

@keyframes uc-sheet-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.dark-mode .uc-tooltip {
    background: #262a33;
    border-color: #333843;
    color: rgba(182, 190, 204, 0.87);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5),
                0 2px 6px rgba(0, 0, 0, 0.32);
}

.dark-mode .uc-tooltip__avatar {
    background-color: #2d323d;
    border-color: #404754;
}

.dark-mode .uc-tooltip__name,
.dark-mode .uc-tooltip__name:hover,
.dark-mode .uc-tooltip__name:focus {
    color: rgba(182, 190, 204, 0.95);
}
.dark-mode .uc-tooltip__name--deleted {
    color: #8d98ad;
}

.dark-mode .uc-tooltip__rank {
    color: #8d98ad;
}

.dark-mode .uc-tooltip__stats {
    border-top-color: #333843;
    border-bottom-color: #333843;
}
.dark-mode .uc-tooltip__stat-num {
    color: rgba(182, 190, 204, 0.95);
}
.dark-mode .uc-tooltip__stat-label {
    color: #8d98ad;
}

.dark-mode .uc-tooltip__body {
    color: #8d98ad;
}
.dark-mode .uc-tooltip__body--empty {
    color: #7f8898;
}

.dark-mode .uc-tooltip__error {
    color: #ff9ca7;
    background: rgba(220, 53, 69, 0.16);
    border-color: rgba(220, 53, 69, 0.35);
}

.dark-mode .uc-btn {
    background: #262a33;
    border-color: #3d4351;
    color: #b6becc;
}
.dark-mode .uc-btn:focus {
    color: #b6becc;
}
.dark-mode .uc-btn:focus-visible {
    outline-color: rgba(142, 198, 255, 0.55);
}
.dark-mode .uc-btn.has-error {
    border-color: rgba(220, 53, 69, 0.55);
    color: #ff9ca7;
}

.dark-mode .uc-btn--follow:hover,
.dark-mode .uc-btn--follow:focus:hover {
    background: rgba(19, 114, 187, 0.18);
    border-color: rgba(142, 198, 255, 0.4);
    color: #8ec6ff;
}
.dark-mode .uc-btn--follow.is-following,
.dark-mode .uc-btn--follow.is-following:focus {
    background: rgba(19, 114, 187, 0.18);
    border-color: rgba(142, 198, 255, 0.4);
    color: #8ec6ff;
}
.dark-mode .uc-btn--follow.is-following:hover,
.dark-mode .uc-btn--follow.is-following:focus:hover {
    background: rgba(220, 53, 69, 0.16);
    border-color: rgba(220, 53, 69, 0.35);
    color: #ff9ca7;
}

.dark-mode .uc-btn--ignore:hover,
.dark-mode .uc-btn--ignore:focus:hover {
    background: rgba(220, 53, 69, 0.16);
    border-color: rgba(220, 53, 69, 0.35);
    color: #ff9ca7;
}
.dark-mode .uc-btn--ignore.is-ignored,
.dark-mode .uc-btn--ignore.is-ignored:focus {
    background: rgba(220, 53, 69, 0.16);
    border-color: rgba(220, 53, 69, 0.35);
    color: #ff9ca7;
}
.dark-mode .uc-btn--ignore.is-ignored:hover,
.dark-mode .uc-btn--ignore.is-ignored:focus:hover {
    background: rgba(19, 114, 187, 0.18);
    border-color: rgba(142, 198, 255, 0.4);
    color: #8ec6ff;
}

.dark-mode .uc-btn--ghost {
    background: #2d323d;
    border-color: #333843;
    color: #b6becc;
}
.dark-mode .uc-btn--ghost:hover {
    background: #343a46;
    border-color: #404754;
    color: rgba(182, 190, 204, 0.95);
}

.dark-mode .uc-btn--guest {
    background: #262a33;
    border-color: #3d4351;
    color: #b6becc;
}
.dark-mode .uc-btn--guest:hover {
    background: rgba(19, 114, 187, 0.18);
    border-color: rgba(142, 198, 255, 0.4);
    color: #8ec6ff;
}

.dark-mode .uc-skel-shape {
    background: linear-gradient(90deg, #2a2f38 25%, #353c47 50%, #2a2f38 75%);
    background-size: 200% 100%;
}
.dark-mode .uc-skel__stats {
    border-top-color: #333843;
    border-bottom-color: #333843;
}

.dark-mode .uc-tooltip-backdrop {
    background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 480px) {
    .dark-mode .uc-tooltip.is-sheet {
        background: #262a33;
        border-color: #333843;
        border-bottom: none;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
    }
    .dark-mode .uc-tooltip.is-sheet::before {
        background: #404754;
    }
}
