.channel-refresh-icon, #profile-mobile-badges { display: none; }
@media (max-width: 650px) {
    .channel-page #profile-page {
        --channel-avatar: clamp(112px, 34vw, 144px);
        --channel-banner: calc((100vw - 32px) / 2.16);
        display: flex; flex-direction: column; width: calc(100% - 32px); min-height: 0;
        margin: 16px auto 24px; padding: 0; border-radius: 0; background: transparent;
    }
    .channel-page #profile-banner-container { order: 0; height: var(--channel-banner); border-radius: 8px; background-size: contain; }
    .channel-page #profile-banner > img { object-fit: cover; object-position: center; }
    .channel-page #profile-header { position: absolute; top: calc(var(--channel-banner) - var(--channel-avatar) * .62); left: 50%; transform: translateX(-50%); }
    .channel-page #profile-user-image { width: var(--channel-avatar); height: var(--channel-avatar); border-width: 3px; border-radius: 5px; }
    .channel-page #profile-header-2 { order: 2; min-height: 0; margin: 16px 0 0; }
    .channel-page #profile-stats-container { width: 100%; margin: 0; font-size: 16px; text-align: center; }
    .channel-page #followers-area { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
    .channel-page :is(#follower-count, #following-count) { gap: 6px; justify-content: center; }
    .channel-page .profile-following-row { margin: 0; justify-content: center; }
    .channel-page :is(.FollowersButton, .FollowingButton) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
    .channel-page #joined-date { margin: 4px 0 0; font-size: 12px; line-height: 1.5; }
    .channel-page #profile-action-buttons { grid-column: 1 / -1; width: 100%; margin: 0; gap: 8px; flex-wrap: wrap; }
    .channel-page #profile-action-buttons > div { flex: 1 1 auto; min-width: 0; }
    .channel-page :is(#follow-button, #subscribe-button, #profile-block-button) { width: 100%; min-height: 44px; height: auto; padding: 8px; font-size: 11px; }
    .channel-page :is(#follow-button:not(.is-following), #subscribe-button:not(.is-subscribed)) { background: #9b2d2d; }
    .channel-page :is(.profile-main-row, .profile-main-column, #profile-content-container) { display: contents; }
    .channel-page .profile-sub-container { order: 1; min-height: 36px; margin: calc(var(--channel-avatar) * .38 + 18px) 0 0; justify-content: center; }
    .channel-page #profile-username-container { width: 100%; gap: 6px 8px; flex-wrap: wrap; justify-content: center; }
    .channel-page #profile-username { min-width: 0; max-width: 100%; flex-wrap: wrap; gap: 5px; font-size: clamp(26px, 7vw, 30px); font-weight: 700; line-height: 1.25; justify-content: center; text-align: center; }
    .channel-page [data-profile-username] { max-width: 100%; overflow-wrap: anywhere; }
    .channel-page :is(.profile-role-badge, .profile-ceo-badge, .profile-founder-badge) { width: 20px; height: 20px; margin: 0; }
    .channel-page .profile-level-badges { gap: 6px; justify-content: center; }
    .channel-page #profile-mobile-badges { order: 3; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; margin: 18px 0 0; }
    .channel-page #profile-mobile-badges:not(:has(> :not([hidden]))) { display: none; }
    .channel-page #profile-mobile-badges :is(.profile-role-badge, .profile-ceo-badge, .profile-founder-badge) { width: clamp(52px, 16vw, 64px); height: clamp(52px, 16vw, 64px); }
    .channel-page .profile-level-badge { min-width: 44px; height: 22px; padding: 0 7px; font-size: 12px; }
    .channel-page .user-level { background: #9b2d2d; }
    .channel-page #bio-container { order: 6; width: 100%; margin: 24px 0 0; border-radius: 7px; }
    .channel-page #bio { min-height: 74px; height: auto !important; max-height: 180px; padding: 12px 48px 12px 12px !important; font-size: 14px !important; line-height: 1.5 !important; }
    .channel-page #bio-editor { height: 144px !important; padding: 12px !important; font-size: 16px !important; }
    .channel-page #edit-bio-icon { top: 2px; right: 2px; width: 44px; height: 44px; line-height: 44px; background: transparent; }
    .channel-page #edit-bio-container { position: static; flex-wrap: wrap; gap: 8px; padding: 0 8px 8px; }
    .channel-page :is(#edit-bio, #reset-bio) { flex: 1 1 auto; min-height: 44px; height: auto; padding: 8px; background: #9b2d2d; }
    .channel-page #profile-donation { order: 7; position: static; align-self: stretch; width: 100%; margin: 16px 0 0; }
    .channel-page #profile-donation-container { padding: 8px; border-radius: 8px; background: rgba(0,0,0,.22); }
    .channel-page .profile-donation-link { width: 100%; max-width: 100%; }
    .channel-page .profile-donation-link img { width: auto; max-width: 100%; max-height: 112px; object-fit: contain; }
    .channel-page #profile-content-container-2 { order: 8; min-width: 0; margin: 18px 0 0; }
    .channel-page .secondary-title { margin: 0 0 10px; font-size: 18px; line-height: 1.3; }
    .channel-page #reruns-container { min-height: 80px; padding: 8px; border: 1px solid #303030; border-radius: 8px; }
    .channel-page .info-text-grey { min-height: 64px; font-size: 13px; }
    .channel-page .rerun { min-height: 80px; flex-wrap: wrap; gap: 8px; background-repeat: no-repeat; overflow: hidden; }
    .channel-page .rerun:hover { box-shadow: inset 0 0 10px #9b2d2d; }
    .channel-page #profile-content-container > .secondary-title { order: 4; margin: 24px 0 10px; }
    .channel-page #posted-comments-outer-container { order: 5; width: 100%; }
    .channel-page #posted-comments-container { min-height: 164px; padding: 10px; border-radius: 8px; }
    .channel-page #leave-comment-form { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }
    .channel-page #leave-comment-form > .separator-v-s { display: none; }
    .channel-page #leave-comment { width: 100%; min-height: 52px; padding: 10px; font-size: 16px; line-height: 1.4; border-radius: 6px; }
    .channel-page #send-comment-button-container { width: 100%; }
    .channel-page #send-comment-button { min-height: 52px; height: 100%; padding: 8px; border-radius: 6px; background: #9b2d2d; font-size: 12px; }
    .channel-page .comments-toolbar { min-height: 44px; margin: 6px 0; font-size: 12px; }
    .channel-page #refresh-comments-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 8px; background: transparent; border: 0; color: #c2c2c2; }
    .channel-page .channel-refresh-label { display: none; }
    .channel-page .channel-refresh-icon { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .channel-page .comment-card { padding: 8px; gap: 8px; }
    .channel-page .comment-pfp { width: 32px; height: 32px; flex: 0 0 32px; }
    .channel-page .comment-header { flex-wrap: wrap; gap: 4px 8px; }
    .channel-page .comment-meta { flex-wrap: wrap; }
    .channel-page .comment-delete-button { min-height: 40px; border-color: rgba(155,45,45,.5); background: rgba(155,45,45,.16); }
    .channel-page .comment-card p { font-size: 13px; }
}
@media (max-width: 360px) {
    .channel-page #leave-comment-form { grid-template-columns: minmax(0, 1fr); }
    .channel-page #send-comment-button { min-height: 44px; }
}
