.author-profile-header {
    margin-bottom: 0;
    border-bottom: var(--border-style);
}

.author-profile-info {
    padding: 32px 24px 21px 24px;
    background-color: var(--background);
}

.profile-layout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.profile-avatar-section {
    flex-shrink: 0;
}

.author-avatar-large {
    width: 86px;
    height: 86px;
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--dark-background);
}

.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-content-section {
    flex: 1;
    min-width: 0;
}

.profile-name-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 28px;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
}

.author-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}

.adviser-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: black;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
}

.author-bio {
    color: var(--primary);
    font-size: 15px;
    line-height: 1.4em;
    margin: 0 0 16px 0;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.adviser-info,
.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.meta-item i {
    font-size: 14px;
    color: var(--secondary);
}

.meta-item strong {
    color: var(--primary);
    font-weight: 600;
}

.meta-link:hover {
    color: var(--primary);
}

.meta-link:hover i {
    color: var(--primary);
}

.profile-actions {
    display: flex;
    gap: 12px;
}

.edit-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgb(0 0 0);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.edit-profile-btn.secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 600px) {
    .author-profile-info {
        padding: 24px 16px;
    }

    .profile-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-content-section {
        width: 100%;
    }

    .profile-name-row {
        justify-content: center;
    }

    .adviser-info,
    .profile-stats {
        justify-content: center;
    }

    .profile-actions {
        flex-direction: column;
    }

    .edit-profile-btn {
        width: 100%;
        justify-content: center;
    }
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1px;
}

.media-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background-color: var(--dark-background);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.media-item:hover img,
.media-item:hover video {
    opacity: 0.8;
}

.video-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    font-size: 1.2rem;
    pointer-events: none;
}

.no-whinges {
    padding: 40px 20px;
    text-align: center;
    color: var(--primary);
}

.no-whinges-content i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--secondary);
    display: block;
}

.user-not-found-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 50vh;
}

.user-not-found-icon {
    font-size: 64px;
    color: var(--secondary);
    margin-bottom: 24px;
    opacity: 0.5;
}

.user-not-found-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--primary);
}

.user-not-found-message {
    font-size: 16px;
    color: var(--secondary);
    margin: 0 0 32px 0;
    max-width: 400px;
    line-height: 1.5;
}

.user-not-found-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--accent);
    color: var(--primary);
    text-decoration: none;
    border-radius: 24px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.user-not-found-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: var(--primary);
}

.author-username {
    color: white; font-size: 15px;
}