/* ==================== 个人主页 — 全屏样式 ==================== */
.profile-page {
    display: none;
    min-height: 100vh;
    background: #0a0c12;
    color: #f0f0f2;
    font-family: var(--font-body, 'Noto Sans SC', 'Inter', sans-serif);
}
.profile-page.active { display: block; }

/* ========== 封面区域 ========== */
.profile-cover {
    position: relative;
    width: 100%;
    height: 420px;
    background-color: #0f1021;
    background-image: linear-gradient(135deg, #1a1540 0%, #2d1b4e 30%, #1e1448 60%, #0f1021 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.profile-cover.has-cover::before {
    opacity: 0.15;
}
.profile-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 30% 50%, rgba(124,92,252,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 70% 35%, rgba(168,85,247,0.12) 0%, transparent 55%),
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.25) 100%);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.profile-cover.is-owner:hover::before {
    background: rgba(0,0,0,0.42);
}
.profile-cover::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 140%;
    height: 180%;
    background:
        radial-gradient(circle at 25% 60%, rgba(255,255,255,0.04) 0%, transparent 40%),
        radial-gradient(circle at 75% 30%, rgba(255,255,255,0.05) 0%, transparent 35%);
    pointer-events: none;
}
.profile-cover.is-owner {
    cursor: pointer;
}
.profile-cover.is-owner:hover .profile-cover-btn {
    opacity: 1;
    visibility: visible;
}
.profile-cover.is-saving {
    pointer-events: none;
}
.profile-cover-saving {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    z-index: 3;
    pointer-events: none;
}
.profile-cover-saving[hidden] {
    display: none !important;
}
.profile-cover-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    min-width: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    z-index: 2;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
}
.profile-cover-btn svg {
    opacity: 0.85;
}
.profile-cover-btn:hover {
    color: #fff;
    background: transparent;
    border-color: transparent;
    transform: translate(-50%, -50%);
    box-shadow: none;
}
.profile-cover-btn:active {
    transform: translate(-50%, -50%);
}

/* ========== 更换背景弹窗 ========== */
.profile-cover-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.profile-cover-modal[hidden] {
    display: none !important;
}
.profile-cover-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(4px);
}
.profile-cover-modal-panel {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #14161f;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
    overflow: hidden;
}
.profile-cover-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.profile-cover-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #f0f0f2;
}
.profile-cover-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.profile-cover-modal-close:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.profile-cover-crop-stage {
    position: relative;
    height: min(52vh, 420px);
    min-height: 280px;
    background: #0a0c12;
    overflow: hidden;
    touch-action: none;
    user-select: none;
}
.profile-cover-crop-stage img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    pointer-events: none;
    will-change: transform;
}
.profile-cover-crop-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.profile-cover-crop-window {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(88%, 760px);
    aspect-ratio: 5.45 / 1;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.58);
}
.profile-cover-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.profile-cover-modal-cancel,
.profile-cover-modal-confirm {
    min-width: 88px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-cover-modal-cancel {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.78);
}
.profile-cover-modal-cancel:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.profile-cover-modal-confirm {
    background: #fff;
    border: none;
    color: #111;
}
.profile-cover-modal-confirm:hover:not(:disabled) {
    opacity: 0.92;
}
.profile-cover-modal-confirm:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ========== 主体布局 ========== */
.profile-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px;
    display: flex;
    gap: 40px;
    position: relative;
}

/* ========== 左侧边栏 ========== */
.profile-sidebar {
    flex-shrink: 0;
    width: 280px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

/* 头像 */
.profile-avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
}
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    border: 4px solid #0a0c12;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-avatar-edit {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2a2d3a;
    border: 2px solid #0a0c12;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-avatar-edit:hover {
    background: #3a3d4a;
    color: #fff;
}

/* 用户名 */
.profile-username {
    font-size: 22px;
    font-weight: 700;
    color: #f0f0f2;
    margin: 0 0 8px;
    line-height: 1.3;
}

/* 简介 */
.profile-bio {
    font-size: 14px;
    color: #8b8fa6;
    line-height: 1.6;
    margin: 0 0 20px;
    word-break: break-word;
}

/* 统计数据 */
.profile-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 16px;
}
.profile-stat {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.profile-stat-num {
    font-size: 18px;
    font-weight: 700;
    color: #e0e2ea;
}
.profile-stat-label {
    font-size: 12px;
    color: #6b7280;
}
.profile-stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.06);
}

/* 分享按钮 */
.profile-share-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}
.profile-share-btn:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.14);
}

/* 底部元信息 */
.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #6b7280;
}
.profile-meta-item svg {
    flex-shrink: 0;
    color: #4b5563;
}

/* 编辑资料按钮 */
.profile-edit-btn {
    display: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c5cfc, #a855f7);
    border: none;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-edit-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 16px rgba(124,92,252,0.3);
}

/* ========== 右侧内容区 ========== */
.profile-content {
    flex: 1;
    min-width: 0;
    padding-top: 24px;
}

/* Tab 栏 — TapNow 风格 */
.profile-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0;
}
.profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0 16px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.38);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.profile-tab:hover {
    color: rgba(255,255,255,0.62);
}
.profile-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}
.profile-tab-icon {
    flex-shrink: 0;
    opacity: 0.85;
}
.profile-tab-lock {
    flex-shrink: 0;
    margin-left: 2px;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.2s, width 0.2s, margin 0.2s;
}
.profile-tab[data-tab="favorites"].active .profile-tab-icon-heart {
    display: none;
}
.profile-tab[data-tab="favorites"].active .profile-tab-lock {
    opacity: 0.75;
    width: 14px;
    margin-left: 4px;
}

/* 面板切换 */
.profile-panel[hidden] {
    display: none !important;
}
.profile-panel-works {
    padding-top: 24px;
}
.profile-panel-favorites {
    padding-top: 20px;
}

/* 收藏筛选 pill */
.profile-fav-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0 28px;
}
.profile-fav-filter {
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.42);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.profile-fav-filter:hover {
    color: rgba(255,255,255,0.68);
}
.profile-fav-filter.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* 收藏内容区 */
.profile-fav-body {
    min-height: 320px;
    position: relative;
}
.profile-fav-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px 20px;
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
}
.profile-fav-empty[hidden] {
    display: none !important;
}
.profile-fav-empty-icon {
    color: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-fav-empty-text {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.38);
    font-weight: 500;
}
.profile-fav-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px 16px;
    align-items: start;
    padding: 0 2px 8px;
}
.profile-fav-list[hidden] {
    display: none !important;
}
.profile-fav-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}
.profile-fav-card:hover {
    transform: translateY(-2px);
}
.profile-fav-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #14161c;
}
.profile-fav-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.profile-fav-card-cover--empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1c1f28, #12141a);
}
.profile-fav-card:hover .profile-fav-card-cover {
    transform: scale(1.03);
}
.profile-fav-card-duration,
.profile-fav-card-source,
.profile-fav-card-author {
    position: absolute;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.2;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-fav-card-duration {
    top: 10px;
    left: 10px;
}
.profile-fav-card-source {
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 500;
}
.profile-fav-card-author {
    left: 10px;
    bottom: 10px;
    font-weight: 500;
}
.profile-fav-card-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px 0;
}
.profile-fav-card-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.profile-fav-card-star {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    color: #f5c842;
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
}
.profile-fav-card-star svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    stroke: none;
}
.profile-fav-card-meta {
    display: none;
}

/* 代表作标头 */
.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.profile-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #d1d5db;
}
.profile-section-count {
    font-size: 13px;
    color: #6b7280;
    background: rgba(255,255,255,0.04);
    padding: 4px 12px;
    border-radius: 6px;
}

/* 作品网格 */
.profile-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    min-height: 180px;
}

/* 空状态 */
.profile-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    border-radius: 14px;
    background: rgba(255,255,255,0.015);
    border: 1px dashed rgba(255,255,255,0.06);
}
.profile-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    margin-bottom: 20px;
}
.profile-add-masterpiece-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(124,92,252,0.15), rgba(168,85,247,0.1));
    border: 1px solid rgba(124,92,252,0.25);
    color: #a78bfa;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-add-masterpiece-btn:hover {
    background: linear-gradient(135deg, rgba(124,92,252,0.25), rgba(168,85,247,0.18));
    border-color: rgba(124,92,252,0.4);
    color: #c4b5fd;
}

/* 作品卡片 */
.profile-work-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #11131a;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
    cursor: pointer;
}
.profile-work-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.profile-work-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #1a1d27;
}
.profile-work-card-info {
    padding: 10px 12px;
}
.profile-work-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-work-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #6b7280;
}
.profile-work-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}
.profile-work-card:hover .profile-work-card-actions {
    opacity: 1;
}
.profile-work-card-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}
.profile-work-card-action-btn:hover {
    background: rgba(0,0,0,0.85);
    color: #fff;
}

/* ========== 底部分页/筛选栏 ========== */
.profile-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
}
.profile-bottom-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 4px;
}
.profile-bottom-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-bottom-tab:hover {
    color: #9ca3af;
}
.profile-bottom-tab.active {
    color: #e0e2ea;
    background: rgba(124,92,252,0.15);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.profile-bottom-count {
    font-size: 12px;
    color: inherit;
    opacity: 0.65;
    font-weight: 400;
}
.profile-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}
.profile-filter-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}
.profile-filter-select {
    padding: 8px 32px 8px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #d1d5db;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.2s;
}
.profile-filter-select:hover {
    border-color: rgba(255,255,255,0.15);
    background-color: rgba(255,255,255,0.06);
}
.profile-filter-select:focus {
    border-color: rgba(124,92,252,0.4);
    box-shadow: 0 0 0 2px rgba(124,92,252,0.1);
}

/* ========== 响应式 ========== */
@media (max-width: 960px) {
    .profile-body {
        padding: 0 24px 40px;
        gap: 28px;
    }
    .profile-sidebar { width: 240px; }
    .profile-works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .profile-cover { height: 160px; }
    .profile-cover-btn {
        font-size: 12px;
        gap: 8px;
    }
    .profile-cover-btn svg {
        width: 20px;
        height: 20px;
    }
    .profile-cover-crop-stage {
        min-height: 220px;
        height: 42vh;
    }
    .profile-body {
        flex-direction: column;
        padding: 0 16px 32px;
        gap: 0;
    }
    .profile-sidebar {
        width: 100%;
        margin-top: -40px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }
    .profile-avatar-wrap {
        width: 72px;
        height: 72px;
        margin-bottom: 0;
    }
    .profile-avatar {
        width: 72px;
        height: 72px;
        font-size: 26px;
        border-width: 3px;
    }
    .profile-avatar-edit {
        width: 24px;
        height: 24px;
    }
    .profile-sidebar .profile-username {
        font-size: 18px;
        flex-basis: calc(100% - 84px);
        margin: 0;
    }
    .profile-sidebar .profile-bio {
        flex-basis: 100%;
        font-size: 13px;
        margin-bottom: 0;
    }
    .profile-stats {
        flex-basis: 100%;
        margin-bottom: 0;
    }
    .profile-share-btn { flex-basis: 100%; }
    .profile-meta { flex-basis: 100%; flex-direction: row; gap: 16px; }
    .profile-edit-btn { flex-basis: 100%; }
    .profile-content { padding-top: 20px; }
    .profile-tabs { gap: 20px; }
    .profile-tab { font-size: 14px; padding: 12px 0 14px; }
    .profile-fav-filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding-bottom: 20px;
    }
    .profile-fav-filter {
        padding: 7px 14px;
        font-size: 13px;
    }
    .profile-fav-body { min-height: 240px; }
    .profile-fav-list { grid-template-columns: 1fr; gap: 16px; }
    .profile-works-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .profile-bottom-bar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 12px 14px;
    }
    .profile-bottom-tabs { align-self: flex-start; }
    .profile-bottom-tab { padding: 7px 14px; font-size: 12px; }
    .profile-filter { justify-content: flex-end; }
    .profile-filter-select { padding: 7px 28px 7px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
    .profile-works-grid { grid-template-columns: 1fr; }
    .profile-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .profile-tab { white-space: nowrap; flex-shrink: 0; }
}
