.mini-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    border-color: var(--user-profile-color, var(--accent-peach));
    text-decoration: none;
    color: var(--text);
}

.mini-profile:hover {
    background: var(--bg-hover-strong);
}

.mini-profile > img {
    height: var(--avatar-md);
    width: var(--avatar-md);
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.mini-profile-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mini-profile-name {
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1.3;
    min-width: 0;
}

.mini-profile-username {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-switcher-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    color: grey;
    font-size: 15px;
    text-align: center;
    border-color: var(--accent-purple);
    min-height: 25px;
    padding: 0;
    cursor: pointer;
}

.profile-switcher-toggle img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.switcher-action-btn:hover {
    background: var(--bg-hover);
}

.profile-switcher-toggle:hover img {
    opacity: 1;
}

.profile-switcher-toggle.open img {
    transform: rotate(180deg);
}

.profile-switcher {
    display: flex;
    padding: 0px;
    flex-direction: column;
    gap: 0;
    border-width: 0px 1px 1px 4px;
}

.profile-switcher.hidden {
    display: none;
}

.profile-switcher .mini-profile {
    padding: 8px 10px;
    flex: 1;
    min-width: 0;
    gap: 8px;
}

.profile-switcher .mini-profile > img {
    height: 28px;
    width: 28px;
}

.profile-switcher .mini-profile-name {
    font-size: 13px;
}

.profile-switcher .mini-profile-username {
    font-size: 11px;
}

.other-mini-profile {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}

.switch-account-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0 10px;
    cursor: pointer;
}

.switch-account-btn img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    opacity: 0.8;
}

.switch-account-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.switch-account-btn:hover img {
    opacity: 1;
}

.switch-account-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.main-profile {
    border-width: 1px 1px 0px 4px;
}

.profile-switcher-actions {
    display: flex;
    gap: 4px;
    padding: 4px;
}

.switcher-action-form {
    flex: 1;
    margin: 0;
    display: flex;
}

.switcher-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    border-color: var(--accent-blue);
    padding: 2px 4px;
    min-height: 20px;
    height: 20px;
    line-height: 1;
}

.switcher-action-btn.logout-btn {
    border-color: var(--warn);
}

.edit-profile-btn {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--accent-peach);
    padding: 6px 16px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.edit-profile-btn:hover {
    background: rgba(255, 200, 186, 0.12);
}

.profile-banner {
    width: 100%;
    height: var(--banner-height);
    background: rgb(70, 65, 80);
    border-style: solid;
    border-width: 1px 1px 1px 4px;
    border-color: var(--user-profile-color, var(--accent-pink));
    background-size: cover;
    background-position: center;
}

.profile-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-color: var(--user-profile-color, var(--accent-pink));
    border-width: 0 1px 1px 4px;
}

.profile-header-top {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -40px;
}

.profile-container2 {
    display: flex;
    align-items: center;
    order: 1;
}

.profile-avatar {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.profile-avatar img {
    height: var(--avatar-lg);
    width: var(--avatar-lg);
    border: 3px solid var(--bg);
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.status-container {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 220px;
    min-width: 0;
    flex: 1 1 auto;
    align-self: center;
    overflow: hidden;
}

.profile-header-actions-row {
    order: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.follow-btn {
    background: var(--accent-blue);
    color: rgb(30, 30, 30);
    border: 1px solid var(--accent-blue);
    padding: 6px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    min-width: 96px;
}

.follow-btn:hover {
    background: rgb(133, 177, 235);
    border-color: rgb(133, 177, 235);
}

.follow-btn .follow-btn-hover-label {
    display: none;
}

.follow-btn.following .follow-btn-label {
    display: inline;
}

.follow-btn.following:hover .follow-btn-label {
    display: none;
}

.follow-btn.following:hover .follow-btn-hover-label {
    display: inline;
}

.follow-btn.following {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.follow-btn.following:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: var(--danger);
}

.follow-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 19px;
    font-weight: bold;
    line-height: 1.3;
}

.profile-username {
    color: var(--text-muted);
}

.profile-pronouns {
    color: var(--text-muted);
    font-size: 13px;
}

.profile-bio {
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.profile-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.profile-stats a {
    color: var(--text-dim);
    text-decoration: none;
}

.profile-stats a:hover {
    text-decoration: underline;
}

.profile-stats span {
    color: var(--text-dim);
}

.profile-stats a:hover {
    text-decoration: underline;
}

.profile-stats b {
    color: var(--text);
}

.statusBox {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text);
    border-style: solid;
    border-width: 1px 1px 1px 4px;
    padding: 6px 10px;
    background: var(--input-bg);
    box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
}

.statusBox-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.status-content {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.status-content * {
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.status-content a,
.status-content .link {
    word-break: break-all;
}

.edit-status-link {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--text-dim);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.nowPlayingRow {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.nowPlayingRow-art {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nowPlayingRow-art:not([src]),
.nowPlayingRow-art[src=""] {
    display: none;
}

.nowPlayingRow-marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.nowPlayingRow-marquee.marquee {
    mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}

.nowPlayingRow-text {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
}

.nowPlayingRow-marquee.marquee .nowPlayingRow-text {
    animation: nowPlayingMarquee linear infinite;
    animation-duration: var(--marquee-duration, 8s);
    padding-right: 40px;
}

.nowPlayingRow-marquee.marquee .nowPlayingRow-text::after {
    content: attr(data-text);
    padding-left: 40px;
}

@keyframes nowPlayingMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.edit-status-link:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
    .edit-status-link {
        opacity: 0;
    }

    .statusBox:hover .edit-status-link {
        opacity: 0.5;
    }

    .statusBox:hover .edit-status-link:hover {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .mini-profile {
        flex: 1;
        min-width: 140px;
    }

    .profile-header-top {
        flex-wrap: wrap;
    }

    .profile-container2 {
        order: 1;
    }

    .profile-header-actions-row {
        order: 2;
        margin-left: auto;
    }

    .status-container {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
        min-width: 0;
        align-self: flex-start;
    }
}