*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: 'Inter';
    min-height: 100%;
}

.profile-page {
    max-width: 480px;
    margin: 0 auto;
}

/* Header */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    position: sticky;
    top: 0;
    background: #000;
    z-index: 10;
}

.profile-header i {
    font-size: 22px;
    cursor: pointer;
}

.profile-header .username {
    font-size: 16px;
    font-weight: 600;
}

.header-right {
    display: flex;
    gap: 18px;
    font-size: 22px;
}

.header-right i {
    cursor: pointer;
}

/* Profile Info */
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px 0;
    text-align: center;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-fallback {
    display: none;
    width: 100%;
    height: 100%;
    background: #333;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
    color: #fff;
}

.display-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
}

.handle {
    margin: 0 0 14px;
    font-size: 14px;
    color: #aaa;
}

/* Stats */
.stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 17px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    color: #aaa;
}

.stat-divider {
    width: 1px;
    height: 28px;
    background: #333;
}

/* Buttons */
.profile-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.btn-follow {
    background: #5d7393;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn-message {
    background: transparent;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn-more {
    background: transparent;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 15px;
    cursor: pointer;
}

.bio {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #eee;
}

/* Tabs */
.tabs {
    display: flex;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.tab {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 12px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: #fff;
    border-bottom: 2px solid #fff;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.video-thumb {
    position: relative;
    aspect-ratio: 9/16;
    overflow: hidden;
    display: block;
    background: #111;
    text-decoration: none;
}

.video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.thumb-overlay {
    position: absolute;
    bottom: 6px;
    left: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.thumb-overlay i {
    font-size: 13px;
}